// @generated by protoc-gen-es v1.10.0 // @generated from file component/motor/v1/motor.proto (package viam.component.motor.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from message viam.component.motor.v1.SetPowerRequest */ export declare class SetPowerRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Percentage of motor's power, between -1 and 1 * * @generated from field: double power_pct = 2; */ powerPct: number; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.SetPowerRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetPowerRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetPowerRequest; static fromJsonString(jsonString: string, options?: Partial): SetPowerRequest; static equals(a: SetPowerRequest | PlainMessage | undefined, b: SetPowerRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.SetPowerResponse */ export declare class SetPowerResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.SetPowerResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetPowerResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetPowerResponse; static fromJsonString(jsonString: string, options?: Partial): SetPowerResponse; static equals(a: SetPowerResponse | PlainMessage | undefined, b: SetPowerResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GoForRequest */ export declare class GoForRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Speed of motor travel in rotations per minute * * @generated from field: double rpm = 2; */ rpm: number; /** * Number of revolutions relative to motor's start position * * @generated from field: double revolutions = 3; */ revolutions: number; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GoForRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GoForRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GoForRequest; static fromJsonString(jsonString: string, options?: Partial): GoForRequest; static equals(a: GoForRequest | PlainMessage | undefined, b: GoForRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GoForResponse */ export declare class GoForResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GoForResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GoForResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GoForResponse; static fromJsonString(jsonString: string, options?: Partial): GoForResponse; static equals(a: GoForResponse | PlainMessage | undefined, b: GoForResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GoToRequest */ export declare class GoToRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Speed of motor travel in rotations per minute * * @generated from field: double rpm = 2; */ rpm: number; /** * Number of revolutions relative to motor's home home/zero * * @generated from field: double position_revolutions = 3; */ positionRevolutions: number; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GoToRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GoToRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GoToRequest; static fromJsonString(jsonString: string, options?: Partial): GoToRequest; static equals(a: GoToRequest | PlainMessage | undefined, b: GoToRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GoToResponse */ export declare class GoToResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GoToResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GoToResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GoToResponse; static fromJsonString(jsonString: string, options?: Partial): GoToResponse; static equals(a: GoToResponse | PlainMessage | undefined, b: GoToResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.SetRPMRequest */ export declare class SetRPMRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Speed of motor travel in rotations per minute * * @generated from field: double rpm = 2; */ rpm: number; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.SetRPMRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetRPMRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetRPMRequest; static fromJsonString(jsonString: string, options?: Partial): SetRPMRequest; static equals(a: SetRPMRequest | PlainMessage | undefined, b: SetRPMRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.SetRPMResponse */ export declare class SetRPMResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.SetRPMResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetRPMResponse; static fromJson(jsonValue: JsonValue, options?: Partial): SetRPMResponse; static fromJsonString(jsonString: string, options?: Partial): SetRPMResponse; static equals(a: SetRPMResponse | PlainMessage | undefined, b: SetRPMResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.ResetZeroPositionRequest */ export declare class ResetZeroPositionRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Motor position * * @generated from field: double offset = 2; */ offset: number; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.ResetZeroPositionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ResetZeroPositionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ResetZeroPositionRequest; static fromJsonString(jsonString: string, options?: Partial): ResetZeroPositionRequest; static equals(a: ResetZeroPositionRequest | PlainMessage | undefined, b: ResetZeroPositionRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.ResetZeroPositionResponse */ export declare class ResetZeroPositionResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.ResetZeroPositionResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ResetZeroPositionResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ResetZeroPositionResponse; static fromJsonString(jsonString: string, options?: Partial): ResetZeroPositionResponse; static equals(a: ResetZeroPositionResponse | PlainMessage | undefined, b: ResetZeroPositionResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GetPositionRequest */ export declare class GetPositionRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GetPositionRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetPositionRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetPositionRequest; static fromJsonString(jsonString: string, options?: Partial): GetPositionRequest; static equals(a: GetPositionRequest | PlainMessage | undefined, b: GetPositionRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GetPositionResponse */ export declare class GetPositionResponse extends Message { /** * Current position of the motor relative to its home * * @generated from field: double position = 1; */ position: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GetPositionResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetPositionResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetPositionResponse; static fromJsonString(jsonString: string, options?: Partial): GetPositionResponse; static equals(a: GetPositionResponse | PlainMessage | undefined, b: GetPositionResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.StopRequest */ export declare class StopRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.StopRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StopRequest; static fromJson(jsonValue: JsonValue, options?: Partial): StopRequest; static fromJsonString(jsonString: string, options?: Partial): StopRequest; static equals(a: StopRequest | PlainMessage | undefined, b: StopRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.StopResponse */ export declare class StopResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.StopResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): StopResponse; static fromJson(jsonValue: JsonValue, options?: Partial): StopResponse; static fromJsonString(jsonString: string, options?: Partial): StopResponse; static equals(a: StopResponse | PlainMessage | undefined, b: StopResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.IsPoweredRequest */ export declare class IsPoweredRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.IsPoweredRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IsPoweredRequest; static fromJson(jsonValue: JsonValue, options?: Partial): IsPoweredRequest; static fromJsonString(jsonString: string, options?: Partial): IsPoweredRequest; static equals(a: IsPoweredRequest | PlainMessage | undefined, b: IsPoweredRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.IsPoweredResponse */ export declare class IsPoweredResponse extends Message { /** * Returns true if the motor is on * * @generated from field: bool is_on = 1; */ isOn: boolean; /** * Returns power percent (from 0 to 1, or from -1 to 1 for motors that support negative power), * based on the last command sent to motor. If the last command was a stop command, this value * will be 0. * * @generated from field: double power_pct = 2; */ powerPct: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.IsPoweredResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IsPoweredResponse; static fromJson(jsonValue: JsonValue, options?: Partial): IsPoweredResponse; static fromJsonString(jsonString: string, options?: Partial): IsPoweredResponse; static equals(a: IsPoweredResponse | PlainMessage | undefined, b: IsPoweredResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GetPropertiesRequest */ export declare class GetPropertiesRequest extends Message { /** * Name of a motor * * @generated from field: string name = 1; */ name: string; /** * Additional arguments to the method * * @generated from field: google.protobuf.Struct extra = 99; */ extra?: Struct; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GetPropertiesRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetPropertiesRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetPropertiesRequest; static fromJsonString(jsonString: string, options?: Partial): GetPropertiesRequest; static equals(a: GetPropertiesRequest | PlainMessage | undefined, b: GetPropertiesRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.GetPropertiesResponse */ export declare class GetPropertiesResponse extends Message { /** * Returns true if the motor supports reporting its position * * @generated from field: bool position_reporting = 1; */ positionReporting: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.GetPropertiesResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetPropertiesResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetPropertiesResponse; static fromJsonString(jsonString: string, options?: Partial): GetPropertiesResponse; static equals(a: GetPropertiesResponse | PlainMessage | undefined, b: GetPropertiesResponse | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.Status */ export declare class Status extends Message { /** * Returns true if the motor is powered * * @generated from field: bool is_powered = 1; */ isPowered: boolean; /** * Returns current position of the motor relative to its home * * @generated from field: double position = 3; */ position: number; /** * Returns true if the motor is moving * * @generated from field: bool is_moving = 4; */ isMoving: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.Status"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Status; static fromJson(jsonValue: JsonValue, options?: Partial): Status; static fromJsonString(jsonString: string, options?: Partial): Status; static equals(a: Status | PlainMessage | undefined, b: Status | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.IsMovingRequest */ export declare class IsMovingRequest extends Message { /** * @generated from field: string name = 1; */ name: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.IsMovingRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IsMovingRequest; static fromJson(jsonValue: JsonValue, options?: Partial): IsMovingRequest; static fromJsonString(jsonString: string, options?: Partial): IsMovingRequest; static equals(a: IsMovingRequest | PlainMessage | undefined, b: IsMovingRequest | PlainMessage | undefined): boolean; } /** * @generated from message viam.component.motor.v1.IsMovingResponse */ export declare class IsMovingResponse extends Message { /** * @generated from field: bool is_moving = 1; */ isMoving: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "viam.component.motor.v1.IsMovingResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): IsMovingResponse; static fromJson(jsonValue: JsonValue, options?: Partial): IsMovingResponse; static fromJsonString(jsonString: string, options?: Partial): IsMovingResponse; static equals(a: IsMovingResponse | PlainMessage | undefined, b: IsMovingResponse | PlainMessage | undefined): boolean; }