grpc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_grpc_user_device_data_proto protoreflect.FileDescriptor
View Source
var UseDeviceDataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.UseDeviceDataService",
	HandlerType: (*UseDeviceDataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserDeviceData",
			Handler:    _UseDeviceDataService_GetUserDeviceData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/grpc/user_device_data.proto",
}

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

Functions

func RegisterUseDeviceDataServiceServer

func RegisterUseDeviceDataServiceServer(s grpc.ServiceRegistrar, srv UseDeviceDataServiceServer)

Types

type TirePressureResponse

type TirePressureResponse struct {
	FrontLeft  float64 `protobuf:"fixed64,1,opt,name=front_left,json=frontLeft,proto3" json:"front_left,omitempty"`
	FrontRight float64 `protobuf:"fixed64,2,opt,name=front_right,json=frontRight,proto3" json:"front_right,omitempty"`
	BackLeft   float64 `protobuf:"fixed64,3,opt,name=back_left,json=backLeft,proto3" json:"back_left,omitempty"`
	BackRight  float64 `protobuf:"fixed64,4,opt,name=back_right,json=backRight,proto3" json:"back_right,omitempty"`
	Age        string  `protobuf:"bytes,5,opt,name=age,proto3" json:"age,omitempty"`
	DataAge    string  `protobuf:"bytes,6,opt,name=data_age,json=dataAge,proto3" json:"data_age,omitempty"`
	RequestId  string  `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	UnitSystem string  `protobuf:"bytes,8,opt,name=unit_system,json=unitSystem,proto3" json:"unit_system,omitempty"`
	// contains filtered or unexported fields
}

func (*TirePressureResponse) Descriptor deprecated

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

Deprecated: Use TirePressureResponse.ProtoReflect.Descriptor instead.

func (*TirePressureResponse) GetAge

func (x *TirePressureResponse) GetAge() string

func (*TirePressureResponse) GetBackLeft

func (x *TirePressureResponse) GetBackLeft() float64

func (*TirePressureResponse) GetBackRight

func (x *TirePressureResponse) GetBackRight() float64

func (*TirePressureResponse) GetDataAge

func (x *TirePressureResponse) GetDataAge() string

func (*TirePressureResponse) GetFrontLeft

func (x *TirePressureResponse) GetFrontLeft() float64

func (*TirePressureResponse) GetFrontRight

func (x *TirePressureResponse) GetFrontRight() float64

func (*TirePressureResponse) GetRequestId

func (x *TirePressureResponse) GetRequestId() string

func (*TirePressureResponse) GetUnitSystem

func (x *TirePressureResponse) GetUnitSystem() string

func (*TirePressureResponse) ProtoMessage

func (*TirePressureResponse) ProtoMessage()

func (*TirePressureResponse) ProtoReflect

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

func (*TirePressureResponse) Reset

func (x *TirePressureResponse) Reset()

func (*TirePressureResponse) String

func (x *TirePressureResponse) String() string

type UnimplementedUseDeviceDataServiceServer

type UnimplementedUseDeviceDataServiceServer struct {
}

UnimplementedUseDeviceDataServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUseDeviceDataServiceServer) GetUserDeviceData

type UnsafeUseDeviceDataServiceServer

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

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

type UseDeviceDataServiceClient

type UseDeviceDataServiceClient interface {
	GetUserDeviceData(ctx context.Context, in *UserDeviceDataRequest, opts ...grpc.CallOption) (*UserDeviceDataResponse, error)
}

UseDeviceDataServiceClient is the client API for UseDeviceDataService 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 UseDeviceDataServiceServer

type UseDeviceDataServiceServer interface {
	GetUserDeviceData(context.Context, *UserDeviceDataRequest) (*UserDeviceDataResponse, error)
	// contains filtered or unexported methods
}

UseDeviceDataServiceServer is the server API for UseDeviceDataService service. All implementations must embed UnimplementedUseDeviceDataServiceServer for forward compatibility

type UserDeviceDataRequest

type UserDeviceDataRequest struct {
	UserDeviceId       string `protobuf:"bytes,1,opt,name=user_device_id,json=userDeviceId,proto3" json:"user_device_id,omitempty"`
	DeviceDefinitionId string `protobuf:"bytes,2,opt,name=device_definition_id,json=deviceDefinitionId,proto3" json:"device_definition_id,omitempty"`
	DeviceStyleId      string `protobuf:"bytes,3,opt,name=device_style_id,json=deviceStyleId,proto3" json:"device_style_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UserDeviceDataRequest) Descriptor deprecated

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

Deprecated: Use UserDeviceDataRequest.ProtoReflect.Descriptor instead.

func (*UserDeviceDataRequest) GetDeviceDefinitionId

func (x *UserDeviceDataRequest) GetDeviceDefinitionId() string

func (*UserDeviceDataRequest) GetDeviceStyleId

func (x *UserDeviceDataRequest) GetDeviceStyleId() string

func (*UserDeviceDataRequest) GetUserDeviceId

func (x *UserDeviceDataRequest) GetUserDeviceId() string

func (*UserDeviceDataRequest) ProtoMessage

func (*UserDeviceDataRequest) ProtoMessage()

func (*UserDeviceDataRequest) ProtoReflect

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

func (*UserDeviceDataRequest) Reset

func (x *UserDeviceDataRequest) Reset()

func (*UserDeviceDataRequest) String

func (x *UserDeviceDataRequest) String() string

type UserDeviceDataResponse

type UserDeviceDataResponse struct {
	Charging             bool                   `protobuf:"varint,1,opt,name=charging,proto3" json:"charging,omitempty"`
	FuelPercentRemaining float64                `protobuf:"fixed64,2,opt,name=fuel_percent_remaining,json=fuelPercentRemaining,proto3" json:"fuel_percent_remaining,omitempty"`
	BatteryCapacity      int64                  `protobuf:"varint,3,opt,name=battery_capacity,json=batteryCapacity,proto3" json:"battery_capacity,omitempty"`
	OilLevel             float64                `protobuf:"fixed64,4,opt,name=oil_level,json=oilLevel,proto3" json:"oil_level,omitempty"`
	Odometer             float64                `protobuf:"fixed64,5,opt,name=odometer,proto3" json:"odometer,omitempty"`
	Latitude             float64                `protobuf:"fixed64,6,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude            float64                `protobuf:"fixed64,7,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Range                float64                `protobuf:"fixed64,8,opt,name=range,proto3" json:"range,omitempty"`
	StateOfCharge        float64                `protobuf:"fixed64,9,opt,name=state_of_charge,json=stateOfCharge,proto3" json:"state_of_charge,omitempty"`
	ChargeLimit          float64                `protobuf:"fixed64,10,opt,name=charge_limit,json=chargeLimit,proto3" json:"charge_limit,omitempty"`
	RecordUpdatedAt      *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=record_updated_at,json=recordUpdatedAt,proto3" json:"record_updated_at,omitempty"`
	RecordCreatedAt      *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=record_created_at,json=recordCreatedAt,proto3" json:"record_created_at,omitempty"`
	TirePressure         *TirePressureResponse  `protobuf:"bytes,13,opt,name=tire_pressure,json=tirePressure,proto3" json:"tire_pressure,omitempty"`
	BatteryVoltage       float64                `protobuf:"fixed64,14,opt,name=battery_voltage,json=batteryVoltage,proto3" json:"battery_voltage,omitempty"`
	AmbientTemp          float64                `protobuf:"fixed64,15,opt,name=ambient_temp,json=ambientTemp,proto3" json:"ambient_temp,omitempty"`
	// contains filtered or unexported fields
}

func (*UserDeviceDataResponse) Descriptor deprecated

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

Deprecated: Use UserDeviceDataResponse.ProtoReflect.Descriptor instead.

func (*UserDeviceDataResponse) GetAmbientTemp

func (x *UserDeviceDataResponse) GetAmbientTemp() float64

func (*UserDeviceDataResponse) GetBatteryCapacity

func (x *UserDeviceDataResponse) GetBatteryCapacity() int64

func (*UserDeviceDataResponse) GetBatteryVoltage

func (x *UserDeviceDataResponse) GetBatteryVoltage() float64

func (*UserDeviceDataResponse) GetChargeLimit

func (x *UserDeviceDataResponse) GetChargeLimit() float64

func (*UserDeviceDataResponse) GetCharging

func (x *UserDeviceDataResponse) GetCharging() bool

func (*UserDeviceDataResponse) GetFuelPercentRemaining

func (x *UserDeviceDataResponse) GetFuelPercentRemaining() float64

func (*UserDeviceDataResponse) GetLatitude

func (x *UserDeviceDataResponse) GetLatitude() float64

func (*UserDeviceDataResponse) GetLongitude

func (x *UserDeviceDataResponse) GetLongitude() float64

func (*UserDeviceDataResponse) GetOdometer

func (x *UserDeviceDataResponse) GetOdometer() float64

func (*UserDeviceDataResponse) GetOilLevel

func (x *UserDeviceDataResponse) GetOilLevel() float64

func (*UserDeviceDataResponse) GetRange

func (x *UserDeviceDataResponse) GetRange() float64

func (*UserDeviceDataResponse) GetRecordCreatedAt

func (x *UserDeviceDataResponse) GetRecordCreatedAt() *timestamppb.Timestamp

func (*UserDeviceDataResponse) GetRecordUpdatedAt

func (x *UserDeviceDataResponse) GetRecordUpdatedAt() *timestamppb.Timestamp

func (*UserDeviceDataResponse) GetStateOfCharge

func (x *UserDeviceDataResponse) GetStateOfCharge() float64

func (*UserDeviceDataResponse) GetTirePressure

func (x *UserDeviceDataResponse) GetTirePressure() *TirePressureResponse

func (*UserDeviceDataResponse) ProtoMessage

func (*UserDeviceDataResponse) ProtoMessage()

func (*UserDeviceDataResponse) ProtoReflect

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

func (*UserDeviceDataResponse) Reset

func (x *UserDeviceDataResponse) Reset()

func (*UserDeviceDataResponse) String

func (x *UserDeviceDataResponse) String() string

Jump to

Keyboard shortcuts

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