audioinv1grpc

package
v1.6.1-20260223222910-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AudioInService_GetAudio_FullMethodName      = "/viam.component.audioin.v1.AudioInService/GetAudio"
	AudioInService_GetProperties_FullMethodName = "/viam.component.audioin.v1.AudioInService/GetProperties"
	AudioInService_DoCommand_FullMethodName     = "/viam.component.audioin.v1.AudioInService/DoCommand"
	AudioInService_GetGeometries_FullMethodName = "/viam.component.audioin.v1.AudioInService/GetGeometries"
)

Variables

View Source
var AudioInService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "viam.component.audioin.v1.AudioInService",
	HandlerType: (*AudioInServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProperties",
			Handler:    _AudioInService_GetProperties_Handler,
		},
		{
			MethodName: "DoCommand",
			Handler:    _AudioInService_DoCommand_Handler,
		},
		{
			MethodName: "GetGeometries",
			Handler:    _AudioInService_GetGeometries_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAudio",
			Handler:       _AudioInService_GetAudio_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "component/audioin/v1/audioin.proto",
}

AudioInService_ServiceDesc is the grpc.ServiceDesc for AudioInService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAudioInServiceServer

func RegisterAudioInServiceServer(s grpc.ServiceRegistrar, srv AudioInServiceServer)

Types

type AudioInServiceClient

type AudioInServiceClient interface {
	// GetAudio streams audio from the given audioin
	GetAudio(ctx context.Context, in *v1.GetAudioRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[v1.GetAudioResponse], error)
	// GetProperties returns the properties of the audioin
	GetProperties(ctx context.Context, in *v11.GetPropertiesRequest, opts ...grpc.CallOption) (*v11.GetPropertiesResponse, error)
	// DoCommand sends/receives arbitrary commands
	DoCommand(ctx context.Context, in *v11.DoCommandRequest, opts ...grpc.CallOption) (*v11.DoCommandResponse, error)
	// GetGeometries returns the geometries of the component in their current configuration
	GetGeometries(ctx context.Context, in *v11.GetGeometriesRequest, opts ...grpc.CallOption) (*v11.GetGeometriesResponse, error)
}

AudioInServiceClient is the client API for AudioInService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

An AudioInService services all audio inputss associated with a robot

func NewAudioInServiceClient

func NewAudioInServiceClient(cc grpc.ClientConnInterface) AudioInServiceClient

type AudioInServiceServer

type AudioInServiceServer interface {
	// GetAudio streams audio from the given audioin
	GetAudio(*v1.GetAudioRequest, grpc.ServerStreamingServer[v1.GetAudioResponse]) error
	// GetProperties returns the properties of the audioin
	GetProperties(context.Context, *v11.GetPropertiesRequest) (*v11.GetPropertiesResponse, error)
	// DoCommand sends/receives arbitrary commands
	DoCommand(context.Context, *v11.DoCommandRequest) (*v11.DoCommandResponse, error)
	// GetGeometries returns the geometries of the component in their current configuration
	GetGeometries(context.Context, *v11.GetGeometriesRequest) (*v11.GetGeometriesResponse, error)
}

AudioInServiceServer is the server API for AudioInService service. All implementations should embed UnimplementedAudioInServiceServer for forward compatibility.

An AudioInService services all audio inputss associated with a robot

type AudioInService_GetAudioClient

type AudioInService_GetAudioClient = grpc.ServerStreamingClient[v1.GetAudioResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AudioInService_GetAudioServer

type AudioInService_GetAudioServer = grpc.ServerStreamingServer[v1.GetAudioResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type UnimplementedAudioInServiceServer

type UnimplementedAudioInServiceServer struct{}

UnimplementedAudioInServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAudioInServiceServer) DoCommand

func (UnimplementedAudioInServiceServer) GetAudio

func (UnimplementedAudioInServiceServer) GetGeometries

func (UnimplementedAudioInServiceServer) GetProperties

type UnsafeAudioInServiceServer

type UnsafeAudioInServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAudioInServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AudioInServiceServer will result in compilation errors.

Source Files

  • audioin_grpc.pb.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL