// @generated by protoc-gen-connect-es v1.5.0 // @generated from file component/switch/v1/switch.proto (package viam.component.switch.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import { GetNumberOfPositionsRequest, GetNumberOfPositionsResponse, GetPositionRequest, GetPositionResponse, SetPositionRequest, SetPositionResponse } from "./switch_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; import { DoCommandRequest, DoCommandResponse, GetStatusRequest, GetStatusResponse } from "../../../common/v1/common_pb.js"; /** * A SwitchService services switches associated with a machine. * Switches can have multiple discrete positions - e.g. a simple * switch has 2 positions, but a knob could have 10 positions. * * @generated from service viam.component.switch.v1.SwitchService */ export declare const SwitchService: { readonly typeName: "viam.component.switch.v1.SwitchService", readonly methods: { /** * Set the position of the switch * * @generated from rpc viam.component.switch.v1.SwitchService.SetPosition */ readonly setPosition: { readonly name: "SetPosition", readonly I: typeof SetPositionRequest, readonly O: typeof SetPositionResponse, readonly kind: MethodKind.Unary, }, /** * Get the position of the switch * * @generated from rpc viam.component.switch.v1.SwitchService.GetPosition */ readonly getPosition: { readonly name: "GetPosition", readonly I: typeof GetPositionRequest, readonly O: typeof GetPositionResponse, readonly kind: MethodKind.Unary, }, /** * Get the number of positions that the switch supports * * @generated from rpc viam.component.switch.v1.SwitchService.GetNumberOfPositions */ readonly getNumberOfPositions: { readonly name: "GetNumberOfPositions", readonly I: typeof GetNumberOfPositionsRequest, readonly O: typeof GetNumberOfPositionsResponse, readonly kind: MethodKind.Unary, }, /** * DoCommand sends/receives arbitrary commands * * @generated from rpc viam.component.switch.v1.SwitchService.DoCommand */ readonly doCommand: { readonly name: "DoCommand", readonly I: typeof DoCommandRequest, readonly O: typeof DoCommandResponse, readonly kind: MethodKind.Unary, }, /** * GetStatus returns the status of the resource * * @generated from rpc viam.component.switch.v1.SwitchService.GetStatus */ readonly getStatus: { readonly name: "GetStatus", readonly I: typeof GetStatusRequest, readonly O: typeof GetStatusResponse, readonly kind: MethodKind.Unary, }, } };