Documentation ¶
Index ¶
- Variables
- func RegisterVehicleServiceServer(s grpc.ServiceRegistrar, srv VehicleServiceServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetAction() *operation.RecordAction
- func (x *Action) GetBody() string
- func (x *Action) GetBrand() string
- func (x *Action) GetCapacity() int32
- func (x *Action) GetCategory() string
- func (x *Action) GetCode() string
- func (x *Action) GetColor() string
- func (x *Action) GetDate() *common.Date
- func (x *Action) GetDepartment() *operation.Department
- func (x *Action) GetFirstRegDate() *common.Date
- func (x *Action) GetFuel() string
- func (x *Action) GetKind() string
- func (x *Action) GetModel() string
- func (x *Action) GetNumSeating() int32
- func (x *Action) GetNumber() string
- func (x *Action) GetOwnWeight() int32
- func (x *Action) GetOwner() *operation.Owner
- func (x *Action) GetPurpose() string
- func (x *Action) GetTotalWeight() int32
- func (x *Action) GetVin() string
- func (x *Action) GetYear() int32
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type Advertisement
- func (*Advertisement) Descriptor() ([]byte, []int)deprecated
- func (x *Advertisement) GetBody() Advertisement_BodyType
- func (x *Advertisement) GetBrand() string
- func (x *Advertisement) GetCategory() Advertisement_Category
- func (x *Advertisement) GetEngineCapacity() float64
- func (x *Advertisement) GetFuel() Advertisement_FuelType
- func (x *Advertisement) GetGearbox() Advertisement_GearboxType
- func (x *Advertisement) GetId() uint32
- func (x *Advertisement) GetImageUrls() []string
- func (x *Advertisement) GetIsCustomsCleared() bool
- func (x *Advertisement) GetIsVerified() bool
- func (x *Advertisement) GetLastSeenAt() *timestamppb.Timestamp
- func (x *Advertisement) GetMileage() uint32
- func (x *Advertisement) GetModel() string
- func (x *Advertisement) GetNumber() string
- func (x *Advertisement) GetPrice() uint32
- func (x *Advertisement) GetPublishedAt() *timestamppb.Timestamp
- func (x *Advertisement) GetResource() string
- func (x *Advertisement) GetScrapedAt() *timestamppb.Timestamp
- func (x *Advertisement) GetTitle() string
- func (x *Advertisement) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Advertisement) GetUrl() string
- func (x *Advertisement) GetVin() string
- func (x *Advertisement) GetWheelDrive() Advertisement_WheelDriveType
- func (x *Advertisement) GetYear() uint32
- func (*Advertisement) ProtoMessage()
- func (x *Advertisement) ProtoReflect() protoreflect.Message
- func (x *Advertisement) Reset()
- func (x *Advertisement) String() string
- type Advertisement_BodyType
- func (Advertisement_BodyType) Descriptor() protoreflect.EnumDescriptor
- func (x Advertisement_BodyType) Enum() *Advertisement_BodyType
- func (Advertisement_BodyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Advertisement_BodyType) Number() protoreflect.EnumNumber
- func (x Advertisement_BodyType) String() string
- func (Advertisement_BodyType) Type() protoreflect.EnumType
- type Advertisement_Category
- func (Advertisement_Category) Descriptor() protoreflect.EnumDescriptor
- func (x Advertisement_Category) Enum() *Advertisement_Category
- func (Advertisement_Category) EnumDescriptor() ([]byte, []int)deprecated
- func (x Advertisement_Category) Number() protoreflect.EnumNumber
- func (x Advertisement_Category) String() string
- func (Advertisement_Category) Type() protoreflect.EnumType
- type Advertisement_FuelType
- func (Advertisement_FuelType) Descriptor() protoreflect.EnumDescriptor
- func (x Advertisement_FuelType) Enum() *Advertisement_FuelType
- func (Advertisement_FuelType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Advertisement_FuelType) Number() protoreflect.EnumNumber
- func (x Advertisement_FuelType) String() string
- func (Advertisement_FuelType) Type() protoreflect.EnumType
- type Advertisement_GearboxType
- func (Advertisement_GearboxType) Descriptor() protoreflect.EnumDescriptor
- func (x Advertisement_GearboxType) Enum() *Advertisement_GearboxType
- func (Advertisement_GearboxType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Advertisement_GearboxType) Number() protoreflect.EnumNumber
- func (x Advertisement_GearboxType) String() string
- func (Advertisement_GearboxType) Type() protoreflect.EnumType
- type Advertisement_WheelDriveType
- func (Advertisement_WheelDriveType) Descriptor() protoreflect.EnumDescriptor
- func (x Advertisement_WheelDriveType) Enum() *Advertisement_WheelDriveType
- func (Advertisement_WheelDriveType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Advertisement_WheelDriveType) Number() protoreflect.EnumNumber
- func (x Advertisement_WheelDriveType) String() string
- func (Advertisement_WheelDriveType) Type() protoreflect.EnumType
- type NumberRequest
- type Result
- type UnimplementedVehicleServiceServer
- type UnsafeVehicleServiceServer
- type VINRequest
- type Vehicle
- func (*Vehicle) Descriptor() ([]byte, []int)deprecated
- func (x *Vehicle) GetActions() []*Action
- func (x *Vehicle) GetAdvertisements() []*Advertisement
- func (x *Vehicle) GetBrand() string
- func (x *Vehicle) GetFirstRegDate() *common.Date
- func (x *Vehicle) GetModel() string
- func (x *Vehicle) GetVin() *Vin
- func (x *Vehicle) GetWanted() []*wanted.Vehicle
- func (x *Vehicle) GetYear() int32
- func (*Vehicle) ProtoMessage()
- func (x *Vehicle) ProtoReflect() protoreflect.Message
- func (x *Vehicle) Reset()
- func (x *Vehicle) String() string
- type VehicleServiceClient
- type VehicleServiceServer
- type Vin
- func (*Vin) Descriptor() ([]byte, []int)deprecated
- func (x *Vin) GetDecodedVin() *vin_decoding.DecodedVIN
- func (x *Vin) GetValue() string
- func (x *Vin) GetVehicle() *vin_decoding.Vehicle
- func (*Vin) ProtoMessage()
- func (x *Vin) ProtoReflect() protoreflect.Message
- func (x *Vin) Reset()
- func (x *Vin) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Advertisement_FuelType_name = map[int32]string{ 0: "FUEL_UNKNOWN", 1: "FUEL_GASOLINE", 2: "FUEL_DIESEL", 3: "FUEL_GAS", 4: "FUEL_GAS_GASOLINE", 5: "FUEL_HYBRID", 6: "FUEL_ELECTRIC", 7: "FUEL_PROPANE", 8: "FUEL_METHANE", 9: "FUEL_OTHER", } Advertisement_FuelType_value = map[string]int32{ "FUEL_UNKNOWN": 0, "FUEL_GASOLINE": 1, "FUEL_DIESEL": 2, "FUEL_GAS": 3, "FUEL_GAS_GASOLINE": 4, "FUEL_HYBRID": 5, "FUEL_ELECTRIC": 6, "FUEL_PROPANE": 7, "FUEL_METHANE": 8, "FUEL_OTHER": 9, } )
Enum value maps for Advertisement_FuelType.
var ( Advertisement_GearboxType_name = map[int32]string{ 0: "GEARBOX_UKNOWN", 1: "GEARBOX_AUTOMATIC", 2: "GEARBOX_MANUAL", 3: "GEARBOX_MANUMATIC", 4: "GEARBOX_VARIATOR", 5: "GEARBOX_AMT", 6: "GEARBOX_OTHER", } Advertisement_GearboxType_value = map[string]int32{ "GEARBOX_UKNOWN": 0, "GEARBOX_AUTOMATIC": 1, "GEARBOX_MANUAL": 2, "GEARBOX_MANUMATIC": 3, "GEARBOX_VARIATOR": 4, "GEARBOX_AMT": 5, "GEARBOX_OTHER": 6, } )
Enum value maps for Advertisement_GearboxType.
var ( Advertisement_WheelDriveType_name = map[int32]string{ 0: "WHEELDRIVE_UNKNOWN", 1: "WHEELDRIVE_REAR", 2: "WHEELDRIVE_FRONT", 3: "WHEELDRIVE_ALL", } Advertisement_WheelDriveType_value = map[string]int32{ "WHEELDRIVE_UNKNOWN": 0, "WHEELDRIVE_REAR": 1, "WHEELDRIVE_FRONT": 2, "WHEELDRIVE_ALL": 3, } )
Enum value maps for Advertisement_WheelDriveType.
var ( Advertisement_Category_name = map[int32]string{ 0: "CATEGORY_UNKNOWN", 1: "CATEGORY_CAR", 2: "CATEGORY_TRUCK", 3: "CATEGORY_MOTO", 4: "CATEGORY_BUS", 5: "CATEGORY_WATER", 6: "CATEGORY_AIR", 7: "CATEGORY_CAMPER", 8: "CATEGORY_TRAILER", 9: "CATEGORY_SPECIAL", } Advertisement_Category_value = map[string]int32{ "CATEGORY_UNKNOWN": 0, "CATEGORY_CAR": 1, "CATEGORY_TRUCK": 2, "CATEGORY_MOTO": 3, "CATEGORY_BUS": 4, "CATEGORY_WATER": 5, "CATEGORY_AIR": 6, "CATEGORY_CAMPER": 7, "CATEGORY_TRAILER": 8, "CATEGORY_SPECIAL": 9, } )
Enum value maps for Advertisement_Category.
var ( Advertisement_BodyType_name = map[int32]string{ 0: "BODY_UNKNOWN", 1: "BODY_SEDAN", 2: "BODY_CROSSOVER", 3: "BODY_MINIVAN", 4: "BODY_HATCHBACK", 5: "BODY_WAGON", 6: "BODY_COUPE", 7: "BODY_CONVERTIBLE", 8: "BODY_PICKUP", 9: "BODY_LIMOUSINE", 10: "BODY_LIGHTTRUCK", 11: "BODY_OTHER", } Advertisement_BodyType_value = map[string]int32{ "BODY_UNKNOWN": 0, "BODY_SEDAN": 1, "BODY_CROSSOVER": 2, "BODY_MINIVAN": 3, "BODY_HATCHBACK": 4, "BODY_WAGON": 5, "BODY_COUPE": 6, "BODY_CONVERTIBLE": 7, "BODY_PICKUP": 8, "BODY_LIMOUSINE": 9, "BODY_LIGHTTRUCK": 10, "BODY_OTHER": 11, } )
Enum value maps for Advertisement_BodyType.
var File_proto_core_action_proto protoreflect.FileDescriptor
var File_proto_core_vehicle_proto protoreflect.FileDescriptor
var VehicleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "core.VehicleService", HandlerType: (*VehicleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindByNumber", Handler: _VehicleService_FindByNumber_Handler, }, { MethodName: "FindByVIN", Handler: _VehicleService_FindByVIN_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/core/vehicle.proto", }
VehicleService_ServiceDesc is the grpc.ServiceDesc for VehicleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVehicleServiceServer ¶
func RegisterVehicleServiceServer(s grpc.ServiceRegistrar, srv VehicleServiceServer)
Types ¶
type Action ¶ added in v0.5.8
type Action struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` Vin string `protobuf:"bytes,2,opt,name=vin,proto3" json:"vin,omitempty"` Brand string `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` Year int32 `protobuf:"varint,5,opt,name=year,proto3" json:"year,omitempty"` Capacity int32 `protobuf:"varint,6,opt,name=capacity,proto3" json:"capacity,omitempty"` Color string `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"` Fuel string `protobuf:"bytes,8,opt,name=fuel,proto3" json:"fuel,omitempty"` Kind string `protobuf:"bytes,9,opt,name=kind,proto3" json:"kind,omitempty"` Date *common.Date `protobuf:"bytes,10,opt,name=date,proto3" json:"date,omitempty"` OwnWeight int32 `protobuf:"varint,11,opt,name=own_weight,json=ownWeight,proto3" json:"own_weight,omitempty"` TotalWeight int32 `protobuf:"varint,12,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"` // Operation: Body string `protobuf:"bytes,13,opt,name=body,proto3" json:"body,omitempty"` Purpose string `protobuf:"bytes,14,opt,name=purpose,proto3" json:"purpose,omitempty"` Action *operation.RecordAction `protobuf:"bytes,15,opt,name=action,proto3" json:"action,omitempty"` Department *operation.Department `protobuf:"bytes,16,opt,name=department,proto3" json:"department,omitempty"` Owner *operation.Owner `protobuf:"bytes,17,opt,name=owner,proto3" json:"owner,omitempty"` // Registration: Code string `protobuf:"bytes,18,opt,name=code,proto3" json:"code,omitempty"` NumSeating int32 `protobuf:"varint,19,opt,name=num_seating,json=numSeating,proto3" json:"num_seating,omitempty"` FirstRegDate *common.Date `protobuf:"bytes,20,opt,name=first_reg_date,json=firstRegDate,proto3" json:"first_reg_date,omitempty"` Category string `protobuf:"bytes,21,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
added in
v0.5.8
func (*Action) GetAction ¶ added in v0.5.8
func (x *Action) GetAction() *operation.RecordAction
func (*Action) GetCapacity ¶ added in v0.5.8
func (*Action) GetCategory ¶ added in v0.5.8
func (*Action) GetDepartment ¶ added in v0.5.8
func (x *Action) GetDepartment() *operation.Department
func (*Action) GetFirstRegDate ¶ added in v0.5.8
func (*Action) GetNumSeating ¶ added in v0.5.8
func (*Action) GetOwnWeight ¶ added in v0.5.8
func (*Action) GetPurpose ¶ added in v0.5.8
func (*Action) GetTotalWeight ¶ added in v0.5.8
func (*Action) ProtoMessage ¶ added in v0.5.8
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶ added in v0.5.8
func (x *Action) ProtoReflect() protoreflect.Message
type Advertisement ¶ added in v0.5.1
type Advertisement struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` Brand string `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` Category Advertisement_Category `protobuf:"varint,5,opt,name=category,proto3,enum=core.Advertisement_Category" json:"category,omitempty"` Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` IsVerified bool `protobuf:"varint,7,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"` Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"` Price uint32 `protobuf:"varint,9,opt,name=price,proto3" json:"price,omitempty"` ImageUrls []string `protobuf:"bytes,10,rep,name=image_urls,json=imageUrls,proto3" json:"image_urls,omitempty"` LastSeenAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"` PublishedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"` ScrapedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=scraped_at,json=scrapedAt,proto3" json:"scraped_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Year uint32 `protobuf:"varint,15,opt,name=year,proto3" json:"year,omitempty"` Gearbox Advertisement_GearboxType `protobuf:"varint,16,opt,name=gearbox,proto3,enum=core.Advertisement_GearboxType" json:"gearbox,omitempty"` WheelDrive Advertisement_WheelDriveType `` /* 132-byte string literal not displayed */ EngineCapacity float64 `protobuf:"fixed64,18,opt,name=engine_capacity,json=engineCapacity,proto3" json:"engine_capacity,omitempty"` Fuel Advertisement_FuelType `protobuf:"varint,19,opt,name=fuel,proto3,enum=core.Advertisement_FuelType" json:"fuel,omitempty"` Mileage uint32 `protobuf:"varint,20,opt,name=mileage,proto3" json:"mileage,omitempty"` Body Advertisement_BodyType `protobuf:"varint,21,opt,name=body,proto3,enum=core.Advertisement_BodyType" json:"body,omitempty"` IsCustomsCleared bool `protobuf:"varint,22,opt,name=is_customs_cleared,json=isCustomsCleared,proto3" json:"is_customs_cleared,omitempty"` Vin string `protobuf:"bytes,23,opt,name=vin,proto3" json:"vin,omitempty"` Number string `protobuf:"bytes,24,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*Advertisement) Descriptor
deprecated
added in
v0.5.1
func (*Advertisement) Descriptor() ([]byte, []int)
Deprecated: Use Advertisement.ProtoReflect.Descriptor instead.
func (*Advertisement) GetBody ¶ added in v0.5.1
func (x *Advertisement) GetBody() Advertisement_BodyType
func (*Advertisement) GetBrand ¶ added in v0.5.1
func (x *Advertisement) GetBrand() string
func (*Advertisement) GetCategory ¶ added in v0.5.1
func (x *Advertisement) GetCategory() Advertisement_Category
func (*Advertisement) GetEngineCapacity ¶ added in v0.5.1
func (x *Advertisement) GetEngineCapacity() float64
func (*Advertisement) GetFuel ¶ added in v0.5.1
func (x *Advertisement) GetFuel() Advertisement_FuelType
func (*Advertisement) GetGearbox ¶ added in v0.5.1
func (x *Advertisement) GetGearbox() Advertisement_GearboxType
func (*Advertisement) GetId ¶ added in v0.5.1
func (x *Advertisement) GetId() uint32
func (*Advertisement) GetImageUrls ¶ added in v0.5.1
func (x *Advertisement) GetImageUrls() []string
func (*Advertisement) GetIsCustomsCleared ¶ added in v0.5.1
func (x *Advertisement) GetIsCustomsCleared() bool
func (*Advertisement) GetIsVerified ¶ added in v0.5.1
func (x *Advertisement) GetIsVerified() bool
func (*Advertisement) GetLastSeenAt ¶ added in v0.5.1
func (x *Advertisement) GetLastSeenAt() *timestamppb.Timestamp
func (*Advertisement) GetMileage ¶ added in v0.5.1
func (x *Advertisement) GetMileage() uint32
func (*Advertisement) GetModel ¶ added in v0.5.1
func (x *Advertisement) GetModel() string
func (*Advertisement) GetNumber ¶ added in v0.5.7
func (x *Advertisement) GetNumber() string
func (*Advertisement) GetPrice ¶ added in v0.5.1
func (x *Advertisement) GetPrice() uint32
func (*Advertisement) GetPublishedAt ¶ added in v0.5.1
func (x *Advertisement) GetPublishedAt() *timestamppb.Timestamp
func (*Advertisement) GetResource ¶ added in v0.5.1
func (x *Advertisement) GetResource() string
func (*Advertisement) GetScrapedAt ¶ added in v0.5.1
func (x *Advertisement) GetScrapedAt() *timestamppb.Timestamp
func (*Advertisement) GetTitle ¶ added in v0.5.1
func (x *Advertisement) GetTitle() string
func (*Advertisement) GetUpdatedAt ¶ added in v0.5.1
func (x *Advertisement) GetUpdatedAt() *timestamppb.Timestamp
func (*Advertisement) GetUrl ¶ added in v0.5.1
func (x *Advertisement) GetUrl() string
func (*Advertisement) GetVin ¶ added in v0.5.1
func (x *Advertisement) GetVin() string
func (*Advertisement) GetWheelDrive ¶ added in v0.5.1
func (x *Advertisement) GetWheelDrive() Advertisement_WheelDriveType
func (*Advertisement) GetYear ¶ added in v0.5.1
func (x *Advertisement) GetYear() uint32
func (*Advertisement) ProtoMessage ¶ added in v0.5.1
func (*Advertisement) ProtoMessage()
func (*Advertisement) ProtoReflect ¶ added in v0.5.1
func (x *Advertisement) ProtoReflect() protoreflect.Message
func (*Advertisement) Reset ¶ added in v0.5.1
func (x *Advertisement) Reset()
func (*Advertisement) String ¶ added in v0.5.1
func (x *Advertisement) String() string
type Advertisement_BodyType ¶ added in v0.5.6
type Advertisement_BodyType int32
const ( Advertisement_BODY_UNKNOWN Advertisement_BodyType = 0 Advertisement_BODY_SEDAN Advertisement_BodyType = 1 Advertisement_BODY_CROSSOVER Advertisement_BodyType = 2 Advertisement_BODY_MINIVAN Advertisement_BodyType = 3 Advertisement_BODY_HATCHBACK Advertisement_BodyType = 4 Advertisement_BODY_WAGON Advertisement_BodyType = 5 Advertisement_BODY_COUPE Advertisement_BodyType = 6 Advertisement_BODY_CONVERTIBLE Advertisement_BodyType = 7 Advertisement_BODY_PICKUP Advertisement_BodyType = 8 Advertisement_BODY_LIMOUSINE Advertisement_BodyType = 9 Advertisement_BODY_LIGHTTRUCK Advertisement_BodyType = 10 Advertisement_BODY_OTHER Advertisement_BodyType = 11 )
func (Advertisement_BodyType) Descriptor ¶ added in v0.5.6
func (Advertisement_BodyType) Descriptor() protoreflect.EnumDescriptor
func (Advertisement_BodyType) Enum ¶ added in v0.5.6
func (x Advertisement_BodyType) Enum() *Advertisement_BodyType
func (Advertisement_BodyType) EnumDescriptor
deprecated
added in
v0.5.6
func (Advertisement_BodyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Advertisement_BodyType.Descriptor instead.
func (Advertisement_BodyType) Number ¶ added in v0.5.6
func (x Advertisement_BodyType) Number() protoreflect.EnumNumber
func (Advertisement_BodyType) String ¶ added in v0.5.6
func (x Advertisement_BodyType) String() string
func (Advertisement_BodyType) Type ¶ added in v0.5.6
func (Advertisement_BodyType) Type() protoreflect.EnumType
type Advertisement_Category ¶ added in v0.5.1
type Advertisement_Category int32
const ( Advertisement_CATEGORY_UNKNOWN Advertisement_Category = 0 Advertisement_CATEGORY_CAR Advertisement_Category = 1 Advertisement_CATEGORY_TRUCK Advertisement_Category = 2 Advertisement_CATEGORY_MOTO Advertisement_Category = 3 Advertisement_CATEGORY_BUS Advertisement_Category = 4 Advertisement_CATEGORY_WATER Advertisement_Category = 5 Advertisement_CATEGORY_AIR Advertisement_Category = 6 Advertisement_CATEGORY_CAMPER Advertisement_Category = 7 Advertisement_CATEGORY_TRAILER Advertisement_Category = 8 Advertisement_CATEGORY_SPECIAL Advertisement_Category = 9 )
func (Advertisement_Category) Descriptor ¶ added in v0.5.1
func (Advertisement_Category) Descriptor() protoreflect.EnumDescriptor
func (Advertisement_Category) Enum ¶ added in v0.5.1
func (x Advertisement_Category) Enum() *Advertisement_Category
func (Advertisement_Category) EnumDescriptor
deprecated
added in
v0.5.1
func (Advertisement_Category) EnumDescriptor() ([]byte, []int)
Deprecated: Use Advertisement_Category.Descriptor instead.
func (Advertisement_Category) Number ¶ added in v0.5.1
func (x Advertisement_Category) Number() protoreflect.EnumNumber
func (Advertisement_Category) String ¶ added in v0.5.1
func (x Advertisement_Category) String() string
func (Advertisement_Category) Type ¶ added in v0.5.1
func (Advertisement_Category) Type() protoreflect.EnumType
type Advertisement_FuelType ¶ added in v0.5.1
type Advertisement_FuelType int32
const ( Advertisement_FUEL_UNKNOWN Advertisement_FuelType = 0 Advertisement_FUEL_GASOLINE Advertisement_FuelType = 1 Advertisement_FUEL_DIESEL Advertisement_FuelType = 2 Advertisement_FUEL_GAS Advertisement_FuelType = 3 Advertisement_FUEL_GAS_GASOLINE Advertisement_FuelType = 4 Advertisement_FUEL_HYBRID Advertisement_FuelType = 5 Advertisement_FUEL_ELECTRIC Advertisement_FuelType = 6 Advertisement_FUEL_PROPANE Advertisement_FuelType = 7 Advertisement_FUEL_METHANE Advertisement_FuelType = 8 Advertisement_FUEL_OTHER Advertisement_FuelType = 9 )
func (Advertisement_FuelType) Descriptor ¶ added in v0.5.1
func (Advertisement_FuelType) Descriptor() protoreflect.EnumDescriptor
func (Advertisement_FuelType) Enum ¶ added in v0.5.1
func (x Advertisement_FuelType) Enum() *Advertisement_FuelType
func (Advertisement_FuelType) EnumDescriptor
deprecated
added in
v0.5.1
func (Advertisement_FuelType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Advertisement_FuelType.Descriptor instead.
func (Advertisement_FuelType) Number ¶ added in v0.5.1
func (x Advertisement_FuelType) Number() protoreflect.EnumNumber
func (Advertisement_FuelType) String ¶ added in v0.5.1
func (x Advertisement_FuelType) String() string
func (Advertisement_FuelType) Type ¶ added in v0.5.1
func (Advertisement_FuelType) Type() protoreflect.EnumType
type Advertisement_GearboxType ¶ added in v0.5.1
type Advertisement_GearboxType int32
const ( Advertisement_GEARBOX_UKNOWN Advertisement_GearboxType = 0 Advertisement_GEARBOX_AUTOMATIC Advertisement_GearboxType = 1 Advertisement_GEARBOX_MANUAL Advertisement_GearboxType = 2 Advertisement_GEARBOX_MANUMATIC Advertisement_GearboxType = 3 Advertisement_GEARBOX_VARIATOR Advertisement_GearboxType = 4 Advertisement_GEARBOX_AMT Advertisement_GearboxType = 5 Advertisement_GEARBOX_OTHER Advertisement_GearboxType = 6 )
func (Advertisement_GearboxType) Descriptor ¶ added in v0.5.1
func (Advertisement_GearboxType) Descriptor() protoreflect.EnumDescriptor
func (Advertisement_GearboxType) Enum ¶ added in v0.5.1
func (x Advertisement_GearboxType) Enum() *Advertisement_GearboxType
func (Advertisement_GearboxType) EnumDescriptor
deprecated
added in
v0.5.1
func (Advertisement_GearboxType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Advertisement_GearboxType.Descriptor instead.
func (Advertisement_GearboxType) Number ¶ added in v0.5.1
func (x Advertisement_GearboxType) Number() protoreflect.EnumNumber
func (Advertisement_GearboxType) String ¶ added in v0.5.1
func (x Advertisement_GearboxType) String() string
func (Advertisement_GearboxType) Type ¶ added in v0.5.1
func (Advertisement_GearboxType) Type() protoreflect.EnumType
type Advertisement_WheelDriveType ¶ added in v0.5.1
type Advertisement_WheelDriveType int32
const ( Advertisement_WHEELDRIVE_UNKNOWN Advertisement_WheelDriveType = 0 Advertisement_WHEELDRIVE_REAR Advertisement_WheelDriveType = 1 Advertisement_WHEELDRIVE_FRONT Advertisement_WheelDriveType = 2 Advertisement_WHEELDRIVE_ALL Advertisement_WheelDriveType = 3 )
func (Advertisement_WheelDriveType) Descriptor ¶ added in v0.5.1
func (Advertisement_WheelDriveType) Descriptor() protoreflect.EnumDescriptor
func (Advertisement_WheelDriveType) Enum ¶ added in v0.5.1
func (x Advertisement_WheelDriveType) Enum() *Advertisement_WheelDriveType
func (Advertisement_WheelDriveType) EnumDescriptor
deprecated
added in
v0.5.1
func (Advertisement_WheelDriveType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Advertisement_WheelDriveType.Descriptor instead.
func (Advertisement_WheelDriveType) Number ¶ added in v0.5.1
func (x Advertisement_WheelDriveType) Number() protoreflect.EnumNumber
func (Advertisement_WheelDriveType) String ¶ added in v0.5.1
func (x Advertisement_WheelDriveType) String() string
func (Advertisement_WheelDriveType) Type ¶ added in v0.5.1
func (Advertisement_WheelDriveType) Type() protoreflect.EnumType
type NumberRequest ¶ added in v0.0.5
type NumberRequest struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*NumberRequest) Descriptor
deprecated
added in
v0.0.5
func (*NumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use NumberRequest.ProtoReflect.Descriptor instead.
func (*NumberRequest) GetNumber ¶ added in v0.0.5
func (x *NumberRequest) GetNumber() string
func (*NumberRequest) ProtoMessage ¶ added in v0.0.5
func (*NumberRequest) ProtoMessage()
func (*NumberRequest) ProtoReflect ¶ added in v0.0.5
func (x *NumberRequest) ProtoReflect() protoreflect.Message
func (*NumberRequest) Reset ¶ added in v0.0.5
func (x *NumberRequest) Reset()
func (*NumberRequest) String ¶ added in v0.0.5
func (x *NumberRequest) String() string
type Result ¶ added in v0.0.5
type Result struct { Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
added in
v0.0.5
func (*Result) GetVehicles ¶ added in v0.0.5
func (*Result) ProtoMessage ¶ added in v0.0.5
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶ added in v0.0.5
func (x *Result) ProtoReflect() protoreflect.Message
type UnimplementedVehicleServiceServer ¶
type UnimplementedVehicleServiceServer struct { }
UnimplementedVehicleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVehicleServiceServer) FindByNumber ¶
func (UnimplementedVehicleServiceServer) FindByNumber(context.Context, *NumberRequest) (*Result, error)
func (UnimplementedVehicleServiceServer) FindByVIN ¶ added in v0.0.5
func (UnimplementedVehicleServiceServer) FindByVIN(context.Context, *VINRequest) (*Result, error)
type UnsafeVehicleServiceServer ¶ added in v0.0.6
type UnsafeVehicleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVehicleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VehicleServiceServer will result in compilation errors.
type VINRequest ¶ added in v0.0.5
type VINRequest struct { Vin string `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"` // contains filtered or unexported fields }
func (*VINRequest) Descriptor
deprecated
added in
v0.0.5
func (*VINRequest) Descriptor() ([]byte, []int)
Deprecated: Use VINRequest.ProtoReflect.Descriptor instead.
func (*VINRequest) GetVin ¶ added in v0.0.5
func (x *VINRequest) GetVin() string
func (*VINRequest) ProtoMessage ¶ added in v0.0.5
func (*VINRequest) ProtoMessage()
func (*VINRequest) ProtoReflect ¶ added in v0.0.5
func (x *VINRequest) ProtoReflect() protoreflect.Message
func (*VINRequest) Reset ¶ added in v0.0.5
func (x *VINRequest) Reset()
func (*VINRequest) String ¶ added in v0.0.5
func (x *VINRequest) String() string
type Vehicle ¶
type Vehicle struct { Vin *Vin `protobuf:"bytes,1,opt,name=vin,proto3" json:"vin,omitempty"` FirstRegDate *common.Date `protobuf:"bytes,2,opt,name=first_reg_date,json=firstRegDate,proto3" json:"first_reg_date,omitempty"` Brand string `protobuf:"bytes,3,opt,name=brand,proto3" json:"brand,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` Year int32 `protobuf:"varint,5,opt,name=year,proto3" json:"year,omitempty"` Advertisements []*Advertisement `protobuf:"bytes,8,rep,name=advertisements,proto3" json:"advertisements,omitempty"` Actions []*Action `protobuf:"bytes,9,rep,name=actions,proto3" json:"actions,omitempty"` Wanted []*wanted.Vehicle `protobuf:"bytes,10,rep,name=wanted,proto3" json:"wanted,omitempty"` // contains filtered or unexported fields }
func (*Vehicle) Descriptor
deprecated
func (*Vehicle) GetActions ¶ added in v0.5.8
func (*Vehicle) GetAdvertisements ¶ added in v0.5.3
func (x *Vehicle) GetAdvertisements() []*Advertisement
func (*Vehicle) GetFirstRegDate ¶ added in v0.0.5
func (*Vehicle) ProtoMessage ¶
func (*Vehicle) ProtoMessage()
func (*Vehicle) ProtoReflect ¶
func (x *Vehicle) ProtoReflect() protoreflect.Message
type VehicleServiceClient ¶
type VehicleServiceClient interface { FindByNumber(ctx context.Context, in *NumberRequest, opts ...grpc.CallOption) (*Result, error) FindByVIN(ctx context.Context, in *VINRequest, opts ...grpc.CallOption) (*Result, error) }
VehicleServiceClient is the client API for VehicleService 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.
func NewVehicleServiceClient ¶
func NewVehicleServiceClient(cc grpc.ClientConnInterface) VehicleServiceClient
type VehicleServiceServer ¶
type VehicleServiceServer interface { FindByNumber(context.Context, *NumberRequest) (*Result, error) FindByVIN(context.Context, *VINRequest) (*Result, error) // contains filtered or unexported methods }
VehicleServiceServer is the server API for VehicleService service. All implementations must embed UnimplementedVehicleServiceServer for forward compatibility
type Vin ¶ added in v0.4.0
type Vin struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Vehicle *vin_decoding.Vehicle `protobuf:"bytes,2,opt,name=vehicle,proto3" json:"vehicle,omitempty"` DecodedVin *vin_decoding.DecodedVIN `protobuf:"bytes,3,opt,name=decoded_vin,json=decodedVin,proto3" json:"decoded_vin,omitempty"` // contains filtered or unexported fields }
func (*Vin) Descriptor
deprecated
added in
v0.4.0
func (*Vin) GetDecodedVin ¶ added in v0.4.0
func (x *Vin) GetDecodedVin() *vin_decoding.DecodedVIN
func (*Vin) GetVehicle ¶ added in v0.4.0
func (x *Vin) GetVehicle() *vin_decoding.Vehicle
func (*Vin) ProtoMessage ¶ added in v0.4.0
func (*Vin) ProtoMessage()
func (*Vin) ProtoReflect ¶ added in v0.4.0
func (x *Vin) ProtoReflect() protoreflect.Message