wearablev1

package
v0.0.0-...-8574f6e Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WearableService_BeatsPerMinute_FullMethodName          = "/wearable.v1.WearableService/BeatsPerMinute"
	WearableService_ConsumeBeatsPerMinute_FullMethodName   = "/wearable.v1.WearableService/ConsumeBeatsPerMinute"
	WearableService_CalculateBeatsPerMinute_FullMethodName = "/wearable.v1.WearableService/CalculateBeatsPerMinute"
)

Variables

View Source
var File_wearable_v1_wearable_service_proto protoreflect.FileDescriptor
View Source
var WearableService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wearable.v1.WearableService",
	HandlerType: (*WearableServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "BeatsPerMinute",
			Handler:       _WearableService_BeatsPerMinute_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ConsumeBeatsPerMinute",
			Handler:       _WearableService_ConsumeBeatsPerMinute_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "CalculateBeatsPerMinute",
			Handler:       _WearableService_CalculateBeatsPerMinute_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "wearable/v1/wearable_service.proto",
}

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

Functions

func RegisterWearableServiceServer

func RegisterWearableServiceServer(s grpc.ServiceRegistrar, srv WearableServiceServer)

Types

type BeatsPerMinuteRequest

type BeatsPerMinuteRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*BeatsPerMinuteRequest) Descriptor deprecated

func (*BeatsPerMinuteRequest) Descriptor() ([]byte, []int)

Deprecated: Use BeatsPerMinuteRequest.ProtoReflect.Descriptor instead.

func (*BeatsPerMinuteRequest) GetUuid

func (x *BeatsPerMinuteRequest) GetUuid() string

func (*BeatsPerMinuteRequest) ProtoMessage

func (*BeatsPerMinuteRequest) ProtoMessage()

func (*BeatsPerMinuteRequest) ProtoReflect

func (x *BeatsPerMinuteRequest) ProtoReflect() protoreflect.Message

func (*BeatsPerMinuteRequest) Reset

func (x *BeatsPerMinuteRequest) Reset()

func (*BeatsPerMinuteRequest) String

func (x *BeatsPerMinuteRequest) String() string

type BeatsPerMinuteResponse

type BeatsPerMinuteResponse struct {
	Value  uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Minute uint32 `protobuf:"varint,2,opt,name=minute,proto3" json:"minute,omitempty"`
	// contains filtered or unexported fields
}

func (*BeatsPerMinuteResponse) Descriptor deprecated

func (*BeatsPerMinuteResponse) Descriptor() ([]byte, []int)

Deprecated: Use BeatsPerMinuteResponse.ProtoReflect.Descriptor instead.

func (*BeatsPerMinuteResponse) GetMinute

func (x *BeatsPerMinuteResponse) GetMinute() uint32

func (*BeatsPerMinuteResponse) GetValue

func (x *BeatsPerMinuteResponse) GetValue() uint32

func (*BeatsPerMinuteResponse) ProtoMessage

func (*BeatsPerMinuteResponse) ProtoMessage()

func (*BeatsPerMinuteResponse) ProtoReflect

func (x *BeatsPerMinuteResponse) ProtoReflect() protoreflect.Message

func (*BeatsPerMinuteResponse) Reset

func (x *BeatsPerMinuteResponse) Reset()

func (*BeatsPerMinuteResponse) String

func (x *BeatsPerMinuteResponse) String() string

type CalculateBeatsPerMinuteRequest

type CalculateBeatsPerMinuteRequest struct {
	Uuid   string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Value  uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	Minute uint32 `protobuf:"varint,3,opt,name=minute,proto3" json:"minute,omitempty"`
	// contains filtered or unexported fields
}

func (*CalculateBeatsPerMinuteRequest) Descriptor deprecated

func (*CalculateBeatsPerMinuteRequest) Descriptor() ([]byte, []int)

Deprecated: Use CalculateBeatsPerMinuteRequest.ProtoReflect.Descriptor instead.

func (*CalculateBeatsPerMinuteRequest) GetMinute

func (x *CalculateBeatsPerMinuteRequest) GetMinute() uint32

func (*CalculateBeatsPerMinuteRequest) GetUuid

func (*CalculateBeatsPerMinuteRequest) GetValue

func (x *CalculateBeatsPerMinuteRequest) GetValue() uint32

func (*CalculateBeatsPerMinuteRequest) ProtoMessage

func (*CalculateBeatsPerMinuteRequest) ProtoMessage()

func (*CalculateBeatsPerMinuteRequest) ProtoReflect

func (*CalculateBeatsPerMinuteRequest) Reset

func (x *CalculateBeatsPerMinuteRequest) Reset()

func (*CalculateBeatsPerMinuteRequest) String

type CalculateBeatsPerMinuteResponse

type CalculateBeatsPerMinuteResponse struct {
	Average float32 `protobuf:"fixed32,1,opt,name=average,proto3" json:"average,omitempty"`
	// contains filtered or unexported fields
}

func (*CalculateBeatsPerMinuteResponse) Descriptor deprecated

func (*CalculateBeatsPerMinuteResponse) Descriptor() ([]byte, []int)

Deprecated: Use CalculateBeatsPerMinuteResponse.ProtoReflect.Descriptor instead.

func (*CalculateBeatsPerMinuteResponse) GetAverage

func (x *CalculateBeatsPerMinuteResponse) GetAverage() float32

func (*CalculateBeatsPerMinuteResponse) ProtoMessage

func (*CalculateBeatsPerMinuteResponse) ProtoMessage()

func (*CalculateBeatsPerMinuteResponse) ProtoReflect

func (*CalculateBeatsPerMinuteResponse) Reset

func (*CalculateBeatsPerMinuteResponse) String

type ConsumeBeatsPerMinuteRequest

type ConsumeBeatsPerMinuteRequest struct {
	Uuid   string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Value  uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	Minute uint32 `protobuf:"varint,3,opt,name=minute,proto3" json:"minute,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsumeBeatsPerMinuteRequest) Descriptor deprecated

func (*ConsumeBeatsPerMinuteRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConsumeBeatsPerMinuteRequest.ProtoReflect.Descriptor instead.

func (*ConsumeBeatsPerMinuteRequest) GetMinute

func (x *ConsumeBeatsPerMinuteRequest) GetMinute() uint32

func (*ConsumeBeatsPerMinuteRequest) GetUuid

func (x *ConsumeBeatsPerMinuteRequest) GetUuid() string

func (*ConsumeBeatsPerMinuteRequest) GetValue

func (x *ConsumeBeatsPerMinuteRequest) GetValue() uint32

func (*ConsumeBeatsPerMinuteRequest) ProtoMessage

func (*ConsumeBeatsPerMinuteRequest) ProtoMessage()

func (*ConsumeBeatsPerMinuteRequest) ProtoReflect

func (*ConsumeBeatsPerMinuteRequest) Reset

func (x *ConsumeBeatsPerMinuteRequest) Reset()

func (*ConsumeBeatsPerMinuteRequest) String

type ConsumeBeatsPerMinuteResponse

type ConsumeBeatsPerMinuteResponse struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsumeBeatsPerMinuteResponse) Descriptor deprecated

func (*ConsumeBeatsPerMinuteResponse) Descriptor() ([]byte, []int)

Deprecated: Use ConsumeBeatsPerMinuteResponse.ProtoReflect.Descriptor instead.

func (*ConsumeBeatsPerMinuteResponse) GetTotal

func (x *ConsumeBeatsPerMinuteResponse) GetTotal() uint32

func (*ConsumeBeatsPerMinuteResponse) ProtoMessage

func (*ConsumeBeatsPerMinuteResponse) ProtoMessage()

func (*ConsumeBeatsPerMinuteResponse) ProtoReflect

func (*ConsumeBeatsPerMinuteResponse) Reset

func (x *ConsumeBeatsPerMinuteResponse) Reset()

func (*ConsumeBeatsPerMinuteResponse) String

type UnimplementedWearableServiceServer

type UnimplementedWearableServiceServer struct{}

UnimplementedWearableServiceServer must 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.

type UnsafeWearableServiceServer

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

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

type WearableServiceClient

WearableServiceClient is the client API for WearableService 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.

type WearableServiceServer

type WearableServiceServer interface {
	BeatsPerMinute(*BeatsPerMinuteRequest, grpc.ServerStreamingServer[BeatsPerMinuteResponse]) error
	ConsumeBeatsPerMinute(grpc.ClientStreamingServer[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]) error
	CalculateBeatsPerMinute(grpc.BidiStreamingServer[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]) error
	// contains filtered or unexported methods
}

WearableServiceServer is the server API for WearableService service. All implementations must embed UnimplementedWearableServiceServer for forward compatibility.

type WearableService_BeatsPerMinuteClient

type WearableService_BeatsPerMinuteClient = grpc.ServerStreamingClient[BeatsPerMinuteResponse]

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

type WearableService_BeatsPerMinuteServer

type WearableService_BeatsPerMinuteServer = grpc.ServerStreamingServer[BeatsPerMinuteResponse]

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

type WearableService_CalculateBeatsPerMinuteClient

type WearableService_CalculateBeatsPerMinuteClient = grpc.BidiStreamingClient[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]

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

type WearableService_CalculateBeatsPerMinuteServer

type WearableService_CalculateBeatsPerMinuteServer = grpc.BidiStreamingServer[CalculateBeatsPerMinuteRequest, CalculateBeatsPerMinuteResponse]

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

type WearableService_ConsumeBeatsPerMinuteClient

type WearableService_ConsumeBeatsPerMinuteClient = grpc.ClientStreamingClient[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]

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

type WearableService_ConsumeBeatsPerMinuteServer

type WearableService_ConsumeBeatsPerMinuteServer = grpc.ClientStreamingServer[ConsumeBeatsPerMinuteRequest, ConsumeBeatsPerMinuteResponse]

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

Jump to

Keyboard shortcuts

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