grpc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceDefinitionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.DeviceDefinitionService",
	HandlerType: (*DeviceDefinitionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDeviceDefinitionByID",
			Handler:    _DeviceDefinitionService_GetDeviceDefinitionByID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/grpc/device_definition.proto",
}

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

View Source
var File_pkg_grpc_device_definition_proto protoreflect.FileDescriptor

Functions

func RegisterDeviceDefinitionServiceServer

func RegisterDeviceDefinitionServiceServer(s grpc.ServiceRegistrar, srv DeviceDefinitionServiceServer)

Types

type DeviceDefinitionServiceClient

type DeviceDefinitionServiceClient interface {
	GetDeviceDefinitionByID(ctx context.Context, in *GetDeviceDefinitionRequest, opts ...grpc.CallOption) (*GetDeviceDefinitionResponse, error)
}

DeviceDefinitionServiceClient is the client API for DeviceDefinitionService 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 DeviceDefinitionServiceServer

type DeviceDefinitionServiceServer interface {
	GetDeviceDefinitionByID(context.Context, *GetDeviceDefinitionRequest) (*GetDeviceDefinitionResponse, error)
	// contains filtered or unexported methods
}

DeviceDefinitionServiceServer is the server API for DeviceDefinitionService service. All implementations must embed UnimplementedDeviceDefinitionServiceServer for forward compatibility

type GetDeviceDefinitionItemResponse added in v0.1.2

type GetDeviceDefinitionItemResponse struct {
	DeviceDefinitionId     string                                                    `protobuf:"bytes,1,opt,name=device_definition_id,json=deviceDefinitionId,proto3" json:"device_definition_id,omitempty"`
	Name                   string                                                    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ImageUrl               string                                                    `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	CompatibleIntegrations []*GetDeviceDefinitionItemResponse_CompatibleIntegrations `` /* 127-byte string literal not displayed */
	Type                   *GetDeviceDefinitionItemResponse_Type                     `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	VehicleData            *GetDeviceDefinitionItemResponse_VehicleInfo              `protobuf:"bytes,6,opt,name=vehicle_data,json=vehicleData,proto3" json:"vehicle_data,omitempty"`
	Verified               bool                                                      `protobuf:"varint,7,opt,name=verified,proto3" json:"verified,omitempty"`
	DeviceIntegrations     []*GetDeviceDefinitionItemResponse_DeviceIntegrations     `protobuf:"bytes,8,rep,name=device_integrations,json=deviceIntegrations,proto3" json:"device_integrations,omitempty"`
	Metadata               string                                                    `protobuf:"bytes,9,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionItemResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetDeviceDefinitionItemResponse.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionItemResponse) GetCompatibleIntegrations added in v0.1.2

func (*GetDeviceDefinitionItemResponse) GetDeviceDefinitionId added in v0.1.2

func (x *GetDeviceDefinitionItemResponse) GetDeviceDefinitionId() string

func (*GetDeviceDefinitionItemResponse) GetDeviceIntegrations added in v0.1.2

func (*GetDeviceDefinitionItemResponse) GetImageUrl added in v0.1.2

func (x *GetDeviceDefinitionItemResponse) GetImageUrl() string

func (*GetDeviceDefinitionItemResponse) GetMetadata added in v0.1.2

func (x *GetDeviceDefinitionItemResponse) GetMetadata() string

func (*GetDeviceDefinitionItemResponse) GetName added in v0.1.2

func (*GetDeviceDefinitionItemResponse) GetType added in v0.1.2

func (*GetDeviceDefinitionItemResponse) GetVehicleData added in v0.1.2

func (*GetDeviceDefinitionItemResponse) GetVerified added in v0.1.2

func (x *GetDeviceDefinitionItemResponse) GetVerified() bool

func (*GetDeviceDefinitionItemResponse) ProtoMessage added in v0.1.2

func (*GetDeviceDefinitionItemResponse) ProtoMessage()

func (*GetDeviceDefinitionItemResponse) ProtoReflect added in v0.1.2

func (*GetDeviceDefinitionItemResponse) Reset added in v0.1.2

func (*GetDeviceDefinitionItemResponse) String added in v0.1.2

type GetDeviceDefinitionItemResponse_CompatibleIntegrations added in v0.1.2

type GetDeviceDefinitionItemResponse_CompatibleIntegrations struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type         string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Style        string `protobuf:"bytes,3,opt,name=style,proto3" json:"style,omitempty"`
	Vendor       string `protobuf:"bytes,4,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Region       string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	Country      string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
	Capabilities string `protobuf:"bytes,7,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) Descriptor deprecated added in v0.1.2

Deprecated: Use GetDeviceDefinitionItemResponse_CompatibleIntegrations.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetCapabilities added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetCountry added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetId added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetRegion added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetStyle added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetType added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) GetVendor added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) ProtoMessage added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) ProtoReflect added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) Reset added in v0.1.2

func (*GetDeviceDefinitionItemResponse_CompatibleIntegrations) String added in v0.1.2

type GetDeviceDefinitionItemResponse_DeviceIntegrations added in v0.1.2

type GetDeviceDefinitionItemResponse_DeviceIntegrations struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type         string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Style        string `protobuf:"bytes,3,opt,name=style,proto3" json:"style,omitempty"`
	Vendor       string `protobuf:"bytes,4,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Region       string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
	Country      string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
	Capabilities string `protobuf:"bytes,7,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) Descriptor deprecated added in v0.1.2

Deprecated: Use GetDeviceDefinitionItemResponse_DeviceIntegrations.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetCapabilities added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetCountry added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetId added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetRegion added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetStyle added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetType added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) GetVendor added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) ProtoMessage added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) ProtoReflect added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) Reset added in v0.1.2

func (*GetDeviceDefinitionItemResponse_DeviceIntegrations) String added in v0.1.2

type GetDeviceDefinitionItemResponse_Type added in v0.1.2

type GetDeviceDefinitionItemResponse_Type struct {
	Type      string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Make      string   `protobuf:"bytes,2,opt,name=make,proto3" json:"make,omitempty"`
	Model     string   `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
	Year      uint32   `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"`
	SubModels []string `protobuf:"bytes,5,rep,name=sub_models,json=subModels,proto3" json:"sub_models,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionItemResponse_Type) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetDeviceDefinitionItemResponse_Type.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionItemResponse_Type) GetMake added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) GetModel added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) GetSubModels added in v0.1.2

func (x *GetDeviceDefinitionItemResponse_Type) GetSubModels() []string

func (*GetDeviceDefinitionItemResponse_Type) GetType added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) GetYear added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) ProtoMessage added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) ProtoMessage()

func (*GetDeviceDefinitionItemResponse_Type) ProtoReflect added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) Reset added in v0.1.2

func (*GetDeviceDefinitionItemResponse_Type) String added in v0.1.2

type GetDeviceDefinitionItemResponse_VehicleInfo added in v0.1.2

type GetDeviceDefinitionItemResponse_VehicleInfo struct {
	FuelType            string `protobuf:"bytes,1,opt,name=fuel_type,json=fuelType,proto3" json:"fuel_type,omitempty"`
	DrivenWheels        string `protobuf:"bytes,2,opt,name=driven_wheels,json=drivenWheels,proto3" json:"driven_wheels,omitempty"`
	NumberOfDoors       string `protobuf:"bytes,3,opt,name=number_of_doors,json=numberOfDoors,proto3" json:"number_of_doors,omitempty"`
	Base_MSRP           uint32 `protobuf:"varint,4,opt,name=base_MSRP,json=baseMSRP,proto3" json:"base_MSRP,omitempty"`
	EPAClass            string `protobuf:"bytes,5,opt,name=EPA_class,json=EPAClass,proto3" json:"EPA_class,omitempty"`
	VehicleType         string `protobuf:"bytes,6,opt,name=vehicle_type,json=vehicleType,proto3" json:"vehicle_type,omitempty"`
	MPGHighway          string `protobuf:"bytes,7,opt,name=MPG_highway,json=MPGHighway,proto3" json:"MPG_highway,omitempty"`
	MPGCity             string `protobuf:"bytes,8,opt,name=MPG_city,json=MPGCity,proto3" json:"MPG_city,omitempty"`
	FuelTankCapacityGal string `protobuf:"bytes,9,opt,name=fuel_tank_capacity_gal,json=fuelTankCapacityGal,proto3" json:"fuel_tank_capacity_gal,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionItemResponse_VehicleInfo) Descriptor deprecated added in v0.1.2

Deprecated: Use GetDeviceDefinitionItemResponse_VehicleInfo.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetBase_MSRP added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetDrivenWheels added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetEPAClass added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetFuelTankCapacityGal added in v0.1.2

func (x *GetDeviceDefinitionItemResponse_VehicleInfo) GetFuelTankCapacityGal() string

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetFuelType added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetMPGCity added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetMPGHighway added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetNumberOfDoors added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) GetVehicleType added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) ProtoMessage added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) ProtoReflect added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) Reset added in v0.1.2

func (*GetDeviceDefinitionItemResponse_VehicleInfo) String added in v0.1.2

type GetDeviceDefinitionRequest

type GetDeviceDefinitionRequest struct {
	Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionRequest) Descriptor deprecated

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

Deprecated: Use GetDeviceDefinitionRequest.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionRequest) GetId

func (x *GetDeviceDefinitionRequest) GetId() []string

func (*GetDeviceDefinitionRequest) ProtoMessage

func (*GetDeviceDefinitionRequest) ProtoMessage()

func (*GetDeviceDefinitionRequest) ProtoReflect

func (*GetDeviceDefinitionRequest) Reset

func (x *GetDeviceDefinitionRequest) Reset()

func (*GetDeviceDefinitionRequest) String

func (x *GetDeviceDefinitionRequest) String() string

type GetDeviceDefinitionResponse

type GetDeviceDefinitionResponse struct {
	DeviceDefinitions []*GetDeviceDefinitionItemResponse `protobuf:"bytes,1,rep,name=device_definitions,json=deviceDefinitions,proto3" json:"device_definitions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceDefinitionResponse) Descriptor deprecated

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

Deprecated: Use GetDeviceDefinitionResponse.ProtoReflect.Descriptor instead.

func (*GetDeviceDefinitionResponse) GetDeviceDefinitions added in v0.1.2

func (x *GetDeviceDefinitionResponse) GetDeviceDefinitions() []*GetDeviceDefinitionItemResponse

func (*GetDeviceDefinitionResponse) ProtoMessage

func (*GetDeviceDefinitionResponse) ProtoMessage()

func (*GetDeviceDefinitionResponse) ProtoReflect

func (*GetDeviceDefinitionResponse) Reset

func (x *GetDeviceDefinitionResponse) Reset()

func (*GetDeviceDefinitionResponse) String

func (x *GetDeviceDefinitionResponse) String() string

type UnimplementedDeviceDefinitionServiceServer

type UnimplementedDeviceDefinitionServiceServer struct {
}

UnimplementedDeviceDefinitionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDeviceDefinitionServiceServer) GetDeviceDefinitionByID added in v0.1.2

type UnsafeDeviceDefinitionServiceServer

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

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

Jump to

Keyboard shortcuts

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