From 896c1f2f1b6205d5aded878ddd41dd164b566ade Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 5 May 2023 15:16:00 +0200 Subject: [PATCH] edit proto files to add Deleted option --- go.mod | 2 +- grpcapi/bookings.go | 2 + grpcapi/fleets.pb.go | 2321 +++++++++++++------------------------ grpcapi/fleets_grpc.pb.go | 10 +- grpcapi/vehicles.pb.go | 433 +++---- grpcapi/vehicles.proto | 2 +- storage/bookings.go | 3 +- 7 files changed, 993 insertions(+), 1780 deletions(-) diff --git a/go.mod b/go.mod index bf4ac87..2d951b9 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module git.coopgo.io/coopgo-platform/fleets go 1.18 require ( + github.com/golang/protobuf v1.5.2 github.com/google/uuid v1.3.0 github.com/spf13/viper v1.12.0 go.mongodb.org/mongo-driver v1.10.1 @@ -12,7 +13,6 @@ require ( require ( github.com/fsnotify/fsnotify v1.5.4 // indirect - github.com/golang/protobuf v1.5.2 // indirect github.com/golang/snappy v0.0.1 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/klauspost/compress v1.13.6 // indirect diff --git a/grpcapi/bookings.go b/grpcapi/bookings.go index a5f3b06..b618450 100644 --- a/grpcapi/bookings.go +++ b/grpcapi/bookings.go @@ -20,6 +20,7 @@ func (v Booking) ToStorageType() storage.Booking { Unavailablefrom: v.Unavailablefrom.AsTime(), Unavailableto: v.Unavailableto.AsTime(), Data: map[string]any{}, + Deleted: v.Deleted, } for k, d := range v.Data.GetFields() { @@ -62,6 +63,7 @@ func BookingFromStorageType(booking *storage.Booking) (*Booking, error) { Unavailablefrom: timestamppb.New(booking.Unavailablefrom), Unavailableto: timestamppb.New(booking.Unavailableto), Data: data, + Deleted: booking.Deleted, } result.Vehicle, err = VehicleFromStorageType(&booking.Vehicle) diff --git a/grpcapi/fleets.pb.go b/grpcapi/fleets.pb.go index 76e3515..7e07d20 100644 --- a/grpcapi/fleets.pb.go +++ b/grpcapi/fleets.pb.go @@ -1,1787 +1,1108 @@ -//COOPGO Groups Management gRPC service definition - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 // source: fleets.proto package grpcapi import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fmt "fmt" + proto "github.com/golang/protobuf/proto" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type AddVehicleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicle *Vehicle `protobuf:"bytes,1,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + Vehicle *Vehicle `protobuf:"bytes,1,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AddVehicleRequest) Reset() { - *x = AddVehicleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddVehicleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddVehicleRequest) ProtoMessage() {} - -func (x *AddVehicleRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddVehicleRequest.ProtoReflect.Descriptor instead. +func (m *AddVehicleRequest) Reset() { *m = AddVehicleRequest{} } +func (m *AddVehicleRequest) String() string { return proto.CompactTextString(m) } +func (*AddVehicleRequest) ProtoMessage() {} func (*AddVehicleRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{0} + return fileDescriptor_b44dc601d6f9ec30, []int{0} } -func (x *AddVehicleRequest) GetVehicle() *Vehicle { - if x != nil { - return x.Vehicle +func (m *AddVehicleRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddVehicleRequest.Unmarshal(m, b) +} +func (m *AddVehicleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddVehicleRequest.Marshal(b, m, deterministic) +} +func (m *AddVehicleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddVehicleRequest.Merge(m, src) +} +func (m *AddVehicleRequest) XXX_Size() int { + return xxx_messageInfo_AddVehicleRequest.Size(m) +} +func (m *AddVehicleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AddVehicleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AddVehicleRequest proto.InternalMessageInfo + +func (m *AddVehicleRequest) GetVehicle() *Vehicle { + if m != nil { + return m.Vehicle } return nil } type AddVehicleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicle *Vehicle `protobuf:"bytes,2,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + Vehicle *Vehicle `protobuf:"bytes,2,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AddVehicleResponse) Reset() { - *x = AddVehicleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddVehicleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddVehicleResponse) ProtoMessage() {} - -func (x *AddVehicleResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddVehicleResponse.ProtoReflect.Descriptor instead. +func (m *AddVehicleResponse) Reset() { *m = AddVehicleResponse{} } +func (m *AddVehicleResponse) String() string { return proto.CompactTextString(m) } +func (*AddVehicleResponse) ProtoMessage() {} func (*AddVehicleResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{1} + return fileDescriptor_b44dc601d6f9ec30, []int{1} } -func (x *AddVehicleResponse) GetVehicle() *Vehicle { - if x != nil { - return x.Vehicle +func (m *AddVehicleResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddVehicleResponse.Unmarshal(m, b) +} +func (m *AddVehicleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddVehicleResponse.Marshal(b, m, deterministic) +} +func (m *AddVehicleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddVehicleResponse.Merge(m, src) +} +func (m *AddVehicleResponse) XXX_Size() int { + return xxx_messageInfo_AddVehicleResponse.Size(m) +} +func (m *AddVehicleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AddVehicleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AddVehicleResponse proto.InternalMessageInfo + +func (m *AddVehicleResponse) GetVehicle() *Vehicle { + if m != nil { + return m.Vehicle } return nil } type GetVehicleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicleid string `protobuf:"bytes,3,opt,name=vehicleid,proto3" json:"vehicleid,omitempty"` + Vehicleid string `protobuf:"bytes,3,opt,name=vehicleid,proto3" json:"vehicleid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetVehicleRequest) Reset() { - *x = GetVehicleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVehicleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVehicleRequest) ProtoMessage() {} - -func (x *GetVehicleRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVehicleRequest.ProtoReflect.Descriptor instead. +func (m *GetVehicleRequest) Reset() { *m = GetVehicleRequest{} } +func (m *GetVehicleRequest) String() string { return proto.CompactTextString(m) } +func (*GetVehicleRequest) ProtoMessage() {} func (*GetVehicleRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{2} + return fileDescriptor_b44dc601d6f9ec30, []int{2} } -func (x *GetVehicleRequest) GetVehicleid() string { - if x != nil { - return x.Vehicleid +func (m *GetVehicleRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVehicleRequest.Unmarshal(m, b) +} +func (m *GetVehicleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVehicleRequest.Marshal(b, m, deterministic) +} +func (m *GetVehicleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVehicleRequest.Merge(m, src) +} +func (m *GetVehicleRequest) XXX_Size() int { + return xxx_messageInfo_GetVehicleRequest.Size(m) +} +func (m *GetVehicleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVehicleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVehicleRequest proto.InternalMessageInfo + +func (m *GetVehicleRequest) GetVehicleid() string { + if m != nil { + return m.Vehicleid } return "" } type GetVehicleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicle *Vehicle `protobuf:"bytes,4,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + Vehicle *Vehicle `protobuf:"bytes,4,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetVehicleResponse) Reset() { - *x = GetVehicleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVehicleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVehicleResponse) ProtoMessage() {} - -func (x *GetVehicleResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVehicleResponse.ProtoReflect.Descriptor instead. +func (m *GetVehicleResponse) Reset() { *m = GetVehicleResponse{} } +func (m *GetVehicleResponse) String() string { return proto.CompactTextString(m) } +func (*GetVehicleResponse) ProtoMessage() {} func (*GetVehicleResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{3} + return fileDescriptor_b44dc601d6f9ec30, []int{3} } -func (x *GetVehicleResponse) GetVehicle() *Vehicle { - if x != nil { - return x.Vehicle +func (m *GetVehicleResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVehicleResponse.Unmarshal(m, b) +} +func (m *GetVehicleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVehicleResponse.Marshal(b, m, deterministic) +} +func (m *GetVehicleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVehicleResponse.Merge(m, src) +} +func (m *GetVehicleResponse) XXX_Size() int { + return xxx_messageInfo_GetVehicleResponse.Size(m) +} +func (m *GetVehicleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVehicleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVehicleResponse proto.InternalMessageInfo + +func (m *GetVehicleResponse) GetVehicle() *Vehicle { + if m != nil { + return m.Vehicle } return nil } type GetVehiclesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Namespaces []string `protobuf:"bytes,5,rep,name=namespaces,proto3" json:"namespaces,omitempty"` - Types []string `protobuf:"bytes,6,rep,name=types,proto3" json:"types,omitempty"` - Administrators []string `protobuf:"bytes,7,rep,name=administrators,proto3" json:"administrators,omitempty"` - AvailabilityFrom *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=availability_from,json=availabilityFrom,proto3" json:"availability_from,omitempty"` - AvailabilityTo *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=availability_to,json=availabilityTo,proto3" json:"availability_to,omitempty"` + Namespaces []string `protobuf:"bytes,5,rep,name=namespaces,proto3" json:"namespaces,omitempty"` + Types []string `protobuf:"bytes,6,rep,name=types,proto3" json:"types,omitempty"` + Administrators []string `protobuf:"bytes,7,rep,name=administrators,proto3" json:"administrators,omitempty"` + AvailabilityFrom *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=availability_from,json=availabilityFrom,proto3" json:"availability_from,omitempty"` + AvailabilityTo *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=availability_to,json=availabilityTo,proto3" json:"availability_to,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetVehiclesRequest) Reset() { - *x = GetVehiclesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVehiclesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVehiclesRequest) ProtoMessage() {} - -func (x *GetVehiclesRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVehiclesRequest.ProtoReflect.Descriptor instead. +func (m *GetVehiclesRequest) Reset() { *m = GetVehiclesRequest{} } +func (m *GetVehiclesRequest) String() string { return proto.CompactTextString(m) } +func (*GetVehiclesRequest) ProtoMessage() {} func (*GetVehiclesRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{4} + return fileDescriptor_b44dc601d6f9ec30, []int{4} } -func (x *GetVehiclesRequest) GetNamespaces() []string { - if x != nil { - return x.Namespaces +func (m *GetVehiclesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVehiclesRequest.Unmarshal(m, b) +} +func (m *GetVehiclesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVehiclesRequest.Marshal(b, m, deterministic) +} +func (m *GetVehiclesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVehiclesRequest.Merge(m, src) +} +func (m *GetVehiclesRequest) XXX_Size() int { + return xxx_messageInfo_GetVehiclesRequest.Size(m) +} +func (m *GetVehiclesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVehiclesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVehiclesRequest proto.InternalMessageInfo + +func (m *GetVehiclesRequest) GetNamespaces() []string { + if m != nil { + return m.Namespaces } return nil } -func (x *GetVehiclesRequest) GetTypes() []string { - if x != nil { - return x.Types +func (m *GetVehiclesRequest) GetTypes() []string { + if m != nil { + return m.Types } return nil } -func (x *GetVehiclesRequest) GetAdministrators() []string { - if x != nil { - return x.Administrators +func (m *GetVehiclesRequest) GetAdministrators() []string { + if m != nil { + return m.Administrators } return nil } -func (x *GetVehiclesRequest) GetAvailabilityFrom() *timestamppb.Timestamp { - if x != nil { - return x.AvailabilityFrom +func (m *GetVehiclesRequest) GetAvailabilityFrom() *timestamppb.Timestamp { + if m != nil { + return m.AvailabilityFrom } return nil } -func (x *GetVehiclesRequest) GetAvailabilityTo() *timestamppb.Timestamp { - if x != nil { - return x.AvailabilityTo +func (m *GetVehiclesRequest) GetAvailabilityTo() *timestamppb.Timestamp { + if m != nil { + return m.AvailabilityTo } return nil } type GetVehiclesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicles []*Vehicle `protobuf:"bytes,6,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + Vehicles []*Vehicle `protobuf:"bytes,6,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetVehiclesResponse) Reset() { - *x = GetVehiclesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVehiclesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVehiclesResponse) ProtoMessage() {} - -func (x *GetVehiclesResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVehiclesResponse.ProtoReflect.Descriptor instead. +func (m *GetVehiclesResponse) Reset() { *m = GetVehiclesResponse{} } +func (m *GetVehiclesResponse) String() string { return proto.CompactTextString(m) } +func (*GetVehiclesResponse) ProtoMessage() {} func (*GetVehiclesResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{5} + return fileDescriptor_b44dc601d6f9ec30, []int{5} } -func (x *GetVehiclesResponse) GetVehicles() []*Vehicle { - if x != nil { - return x.Vehicles +func (m *GetVehiclesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVehiclesResponse.Unmarshal(m, b) +} +func (m *GetVehiclesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVehiclesResponse.Marshal(b, m, deterministic) +} +func (m *GetVehiclesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVehiclesResponse.Merge(m, src) +} +func (m *GetVehiclesResponse) XXX_Size() int { + return xxx_messageInfo_GetVehiclesResponse.Size(m) +} +func (m *GetVehiclesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVehiclesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVehiclesResponse proto.InternalMessageInfo + +func (m *GetVehiclesResponse) GetVehicles() []*Vehicle { + if m != nil { + return m.Vehicles } return nil } type GetVehiclesBatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehiclesids []string `protobuf:"bytes,7,rep,name=vehiclesids,proto3" json:"vehiclesids,omitempty"` + Vehiclesids []string `protobuf:"bytes,7,rep,name=vehiclesids,proto3" json:"vehiclesids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetVehiclesBatchRequest) Reset() { - *x = GetVehiclesBatchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVehiclesBatchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVehiclesBatchRequest) ProtoMessage() {} - -func (x *GetVehiclesBatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVehiclesBatchRequest.ProtoReflect.Descriptor instead. +func (m *GetVehiclesBatchRequest) Reset() { *m = GetVehiclesBatchRequest{} } +func (m *GetVehiclesBatchRequest) String() string { return proto.CompactTextString(m) } +func (*GetVehiclesBatchRequest) ProtoMessage() {} func (*GetVehiclesBatchRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{6} + return fileDescriptor_b44dc601d6f9ec30, []int{6} } -func (x *GetVehiclesBatchRequest) GetVehiclesids() []string { - if x != nil { - return x.Vehiclesids +func (m *GetVehiclesBatchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVehiclesBatchRequest.Unmarshal(m, b) +} +func (m *GetVehiclesBatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVehiclesBatchRequest.Marshal(b, m, deterministic) +} +func (m *GetVehiclesBatchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVehiclesBatchRequest.Merge(m, src) +} +func (m *GetVehiclesBatchRequest) XXX_Size() int { + return xxx_messageInfo_GetVehiclesBatchRequest.Size(m) +} +func (m *GetVehiclesBatchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVehiclesBatchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVehiclesBatchRequest proto.InternalMessageInfo + +func (m *GetVehiclesBatchRequest) GetVehiclesids() []string { + if m != nil { + return m.Vehiclesids } return nil } type GetVehiclesBatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicles []*Vehicle `protobuf:"bytes,8,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + Vehicles []*Vehicle `protobuf:"bytes,8,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetVehiclesBatchResponse) Reset() { - *x = GetVehiclesBatchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVehiclesBatchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVehiclesBatchResponse) ProtoMessage() {} - -func (x *GetVehiclesBatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVehiclesBatchResponse.ProtoReflect.Descriptor instead. +func (m *GetVehiclesBatchResponse) Reset() { *m = GetVehiclesBatchResponse{} } +func (m *GetVehiclesBatchResponse) String() string { return proto.CompactTextString(m) } +func (*GetVehiclesBatchResponse) ProtoMessage() {} func (*GetVehiclesBatchResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{7} + return fileDescriptor_b44dc601d6f9ec30, []int{7} } -func (x *GetVehiclesBatchResponse) GetVehicles() []*Vehicle { - if x != nil { - return x.Vehicles +func (m *GetVehiclesBatchResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVehiclesBatchResponse.Unmarshal(m, b) +} +func (m *GetVehiclesBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVehiclesBatchResponse.Marshal(b, m, deterministic) +} +func (m *GetVehiclesBatchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVehiclesBatchResponse.Merge(m, src) +} +func (m *GetVehiclesBatchResponse) XXX_Size() int { + return xxx_messageInfo_GetVehiclesBatchResponse.Size(m) +} +func (m *GetVehiclesBatchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetVehiclesBatchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVehiclesBatchResponse proto.InternalMessageInfo + +func (m *GetVehiclesBatchResponse) GetVehicles() []*Vehicle { + if m != nil { + return m.Vehicles } return nil } type UpdateVehicleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicle *Vehicle `protobuf:"bytes,9,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + Vehicle *Vehicle `protobuf:"bytes,9,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *UpdateVehicleRequest) Reset() { - *x = UpdateVehicleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateVehicleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateVehicleRequest) ProtoMessage() {} - -func (x *UpdateVehicleRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateVehicleRequest.ProtoReflect.Descriptor instead. +func (m *UpdateVehicleRequest) Reset() { *m = UpdateVehicleRequest{} } +func (m *UpdateVehicleRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateVehicleRequest) ProtoMessage() {} func (*UpdateVehicleRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{8} + return fileDescriptor_b44dc601d6f9ec30, []int{8} } -func (x *UpdateVehicleRequest) GetVehicle() *Vehicle { - if x != nil { - return x.Vehicle +func (m *UpdateVehicleRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateVehicleRequest.Unmarshal(m, b) +} +func (m *UpdateVehicleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateVehicleRequest.Marshal(b, m, deterministic) +} +func (m *UpdateVehicleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateVehicleRequest.Merge(m, src) +} +func (m *UpdateVehicleRequest) XXX_Size() int { + return xxx_messageInfo_UpdateVehicleRequest.Size(m) +} +func (m *UpdateVehicleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateVehicleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateVehicleRequest proto.InternalMessageInfo + +func (m *UpdateVehicleRequest) GetVehicle() *Vehicle { + if m != nil { + return m.Vehicle } return nil } type UpdateVehicleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicle *Vehicle `protobuf:"bytes,10,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + Vehicle *Vehicle `protobuf:"bytes,10,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *UpdateVehicleResponse) Reset() { - *x = UpdateVehicleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateVehicleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateVehicleResponse) ProtoMessage() {} - -func (x *UpdateVehicleResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateVehicleResponse.ProtoReflect.Descriptor instead. +func (m *UpdateVehicleResponse) Reset() { *m = UpdateVehicleResponse{} } +func (m *UpdateVehicleResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateVehicleResponse) ProtoMessage() {} func (*UpdateVehicleResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{9} + return fileDescriptor_b44dc601d6f9ec30, []int{9} } -func (x *UpdateVehicleResponse) GetVehicle() *Vehicle { - if x != nil { - return x.Vehicle +func (m *UpdateVehicleResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateVehicleResponse.Unmarshal(m, b) +} +func (m *UpdateVehicleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateVehicleResponse.Marshal(b, m, deterministic) +} +func (m *UpdateVehicleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateVehicleResponse.Merge(m, src) +} +func (m *UpdateVehicleResponse) XXX_Size() int { + return xxx_messageInfo_UpdateVehicleResponse.Size(m) +} +func (m *UpdateVehicleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateVehicleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateVehicleResponse proto.InternalMessageInfo + +func (m *UpdateVehicleResponse) GetVehicle() *Vehicle { + if m != nil { + return m.Vehicle } return nil } type CreateBookingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Booking *Booking `protobuf:"bytes,11,opt,name=booking,proto3" json:"booking,omitempty"` + Booking *Booking `protobuf:"bytes,11,opt,name=booking,proto3" json:"booking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CreateBookingRequest) Reset() { - *x = CreateBookingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateBookingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateBookingRequest) ProtoMessage() {} - -func (x *CreateBookingRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateBookingRequest.ProtoReflect.Descriptor instead. +func (m *CreateBookingRequest) Reset() { *m = CreateBookingRequest{} } +func (m *CreateBookingRequest) String() string { return proto.CompactTextString(m) } +func (*CreateBookingRequest) ProtoMessage() {} func (*CreateBookingRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{10} + return fileDescriptor_b44dc601d6f9ec30, []int{10} } -func (x *CreateBookingRequest) GetBooking() *Booking { - if x != nil { - return x.Booking +func (m *CreateBookingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateBookingRequest.Unmarshal(m, b) +} +func (m *CreateBookingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateBookingRequest.Marshal(b, m, deterministic) +} +func (m *CreateBookingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateBookingRequest.Merge(m, src) +} +func (m *CreateBookingRequest) XXX_Size() int { + return xxx_messageInfo_CreateBookingRequest.Size(m) +} +func (m *CreateBookingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateBookingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateBookingRequest proto.InternalMessageInfo + +func (m *CreateBookingRequest) GetBooking() *Booking { + if m != nil { + return m.Booking } return nil } type CreateBookingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Booking *Booking `protobuf:"bytes,12,opt,name=booking,proto3" json:"booking,omitempty"` + Booking *Booking `protobuf:"bytes,12,opt,name=booking,proto3" json:"booking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CreateBookingResponse) Reset() { - *x = CreateBookingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateBookingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateBookingResponse) ProtoMessage() {} - -func (x *CreateBookingResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateBookingResponse.ProtoReflect.Descriptor instead. +func (m *CreateBookingResponse) Reset() { *m = CreateBookingResponse{} } +func (m *CreateBookingResponse) String() string { return proto.CompactTextString(m) } +func (*CreateBookingResponse) ProtoMessage() {} func (*CreateBookingResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{11} + return fileDescriptor_b44dc601d6f9ec30, []int{11} } -func (x *CreateBookingResponse) GetBooking() *Booking { - if x != nil { - return x.Booking +func (m *CreateBookingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateBookingResponse.Unmarshal(m, b) +} +func (m *CreateBookingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateBookingResponse.Marshal(b, m, deterministic) +} +func (m *CreateBookingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateBookingResponse.Merge(m, src) +} +func (m *CreateBookingResponse) XXX_Size() int { + return xxx_messageInfo_CreateBookingResponse.Size(m) +} +func (m *CreateBookingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateBookingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateBookingResponse proto.InternalMessageInfo + +func (m *CreateBookingResponse) GetBooking() *Booking { + if m != nil { + return m.Booking } return nil } type UpdateBookingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Booking *Booking `protobuf:"bytes,13,opt,name=booking,proto3" json:"booking,omitempty"` + Booking *Booking `protobuf:"bytes,13,opt,name=booking,proto3" json:"booking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *UpdateBookingRequest) Reset() { - *x = UpdateBookingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateBookingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateBookingRequest) ProtoMessage() {} - -func (x *UpdateBookingRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateBookingRequest.ProtoReflect.Descriptor instead. +func (m *UpdateBookingRequest) Reset() { *m = UpdateBookingRequest{} } +func (m *UpdateBookingRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateBookingRequest) ProtoMessage() {} func (*UpdateBookingRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{12} + return fileDescriptor_b44dc601d6f9ec30, []int{12} } -func (x *UpdateBookingRequest) GetBooking() *Booking { - if x != nil { - return x.Booking +func (m *UpdateBookingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateBookingRequest.Unmarshal(m, b) +} +func (m *UpdateBookingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateBookingRequest.Marshal(b, m, deterministic) +} +func (m *UpdateBookingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateBookingRequest.Merge(m, src) +} +func (m *UpdateBookingRequest) XXX_Size() int { + return xxx_messageInfo_UpdateBookingRequest.Size(m) +} +func (m *UpdateBookingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateBookingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateBookingRequest proto.InternalMessageInfo + +func (m *UpdateBookingRequest) GetBooking() *Booking { + if m != nil { + return m.Booking } return nil } type UpdateBookingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Booking *Booking `protobuf:"bytes,14,opt,name=booking,proto3" json:"booking,omitempty"` + Booking *Booking `protobuf:"bytes,14,opt,name=booking,proto3" json:"booking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *UpdateBookingResponse) Reset() { - *x = UpdateBookingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateBookingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateBookingResponse) ProtoMessage() {} - -func (x *UpdateBookingResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateBookingResponse.ProtoReflect.Descriptor instead. +func (m *UpdateBookingResponse) Reset() { *m = UpdateBookingResponse{} } +func (m *UpdateBookingResponse) String() string { return proto.CompactTextString(m) } +func (*UpdateBookingResponse) ProtoMessage() {} func (*UpdateBookingResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{13} + return fileDescriptor_b44dc601d6f9ec30, []int{13} } -func (x *UpdateBookingResponse) GetBooking() *Booking { - if x != nil { - return x.Booking +func (m *UpdateBookingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateBookingResponse.Unmarshal(m, b) +} +func (m *UpdateBookingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateBookingResponse.Marshal(b, m, deterministic) +} +func (m *UpdateBookingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateBookingResponse.Merge(m, src) +} +func (m *UpdateBookingResponse) XXX_Size() int { + return xxx_messageInfo_UpdateBookingResponse.Size(m) +} +func (m *UpdateBookingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateBookingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateBookingResponse proto.InternalMessageInfo + +func (m *UpdateBookingResponse) GetBooking() *Booking { + if m != nil { + return m.Booking } return nil } type DeleteBookingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,15,opt,name=id,proto3" json:"id,omitempty"` + Id string `protobuf:"bytes,15,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeleteBookingRequest) Reset() { - *x = DeleteBookingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteBookingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteBookingRequest) ProtoMessage() {} - -func (x *DeleteBookingRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteBookingRequest.ProtoReflect.Descriptor instead. +func (m *DeleteBookingRequest) Reset() { *m = DeleteBookingRequest{} } +func (m *DeleteBookingRequest) String() string { return proto.CompactTextString(m) } +func (*DeleteBookingRequest) ProtoMessage() {} func (*DeleteBookingRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{14} + return fileDescriptor_b44dc601d6f9ec30, []int{14} } -func (x *DeleteBookingRequest) GetId() string { - if x != nil { - return x.Id +func (m *DeleteBookingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteBookingRequest.Unmarshal(m, b) +} +func (m *DeleteBookingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteBookingRequest.Marshal(b, m, deterministic) +} +func (m *DeleteBookingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteBookingRequest.Merge(m, src) +} +func (m *DeleteBookingRequest) XXX_Size() int { + return xxx_messageInfo_DeleteBookingRequest.Size(m) +} +func (m *DeleteBookingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteBookingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteBookingRequest proto.InternalMessageInfo + +func (m *DeleteBookingRequest) GetId() string { + if m != nil { + return m.Id } return "" } type DeleteBookingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ok bool `protobuf:"varint,16,opt,name=ok,proto3" json:"ok,omitempty"` + Ok bool `protobuf:"varint,16,opt,name=ok,proto3" json:"ok,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DeleteBookingResponse) Reset() { - *x = DeleteBookingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteBookingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteBookingResponse) ProtoMessage() {} - -func (x *DeleteBookingResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteBookingResponse.ProtoReflect.Descriptor instead. +func (m *DeleteBookingResponse) Reset() { *m = DeleteBookingResponse{} } +func (m *DeleteBookingResponse) String() string { return proto.CompactTextString(m) } +func (*DeleteBookingResponse) ProtoMessage() {} func (*DeleteBookingResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{15} + return fileDescriptor_b44dc601d6f9ec30, []int{15} } -func (x *DeleteBookingResponse) GetOk() bool { - if x != nil { - return x.Ok +func (m *DeleteBookingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteBookingResponse.Unmarshal(m, b) +} +func (m *DeleteBookingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteBookingResponse.Marshal(b, m, deterministic) +} +func (m *DeleteBookingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteBookingResponse.Merge(m, src) +} +func (m *DeleteBookingResponse) XXX_Size() int { + return xxx_messageInfo_DeleteBookingResponse.Size(m) +} +func (m *DeleteBookingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteBookingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteBookingResponse proto.InternalMessageInfo + +func (m *DeleteBookingResponse) GetOk() bool { + if m != nil { + return m.Ok } return false } type FindVehicleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Namespace string `protobuf:"bytes,17,opt,name=namespace,proto3" json:"namespace,omitempty"` - Startdate *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=startdate,proto3" json:"startdate,omitempty"` - Enddate *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=enddate,proto3" json:"enddate,omitempty"` - Lat float64 `protobuf:"fixed64,20,opt,name=lat,proto3" json:"lat,omitempty"` - Lon float64 `protobuf:"fixed64,21,opt,name=lon,proto3" json:"lon,omitempty"` + Namespace string `protobuf:"bytes,17,opt,name=namespace,proto3" json:"namespace,omitempty"` + Startdate *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=startdate,proto3" json:"startdate,omitempty"` + Enddate *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=enddate,proto3" json:"enddate,omitempty"` + Lat float64 `protobuf:"fixed64,20,opt,name=lat,proto3" json:"lat,omitempty"` + Lon float64 `protobuf:"fixed64,21,opt,name=lon,proto3" json:"lon,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *FindVehicleRequest) Reset() { - *x = FindVehicleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindVehicleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindVehicleRequest) ProtoMessage() {} - -func (x *FindVehicleRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindVehicleRequest.ProtoReflect.Descriptor instead. +func (m *FindVehicleRequest) Reset() { *m = FindVehicleRequest{} } +func (m *FindVehicleRequest) String() string { return proto.CompactTextString(m) } +func (*FindVehicleRequest) ProtoMessage() {} func (*FindVehicleRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{16} + return fileDescriptor_b44dc601d6f9ec30, []int{16} } -func (x *FindVehicleRequest) GetNamespace() string { - if x != nil { - return x.Namespace +func (m *FindVehicleRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FindVehicleRequest.Unmarshal(m, b) +} +func (m *FindVehicleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FindVehicleRequest.Marshal(b, m, deterministic) +} +func (m *FindVehicleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindVehicleRequest.Merge(m, src) +} +func (m *FindVehicleRequest) XXX_Size() int { + return xxx_messageInfo_FindVehicleRequest.Size(m) +} +func (m *FindVehicleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FindVehicleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FindVehicleRequest proto.InternalMessageInfo + +func (m *FindVehicleRequest) GetNamespace() string { + if m != nil { + return m.Namespace } return "" } -func (x *FindVehicleRequest) GetStartdate() *timestamppb.Timestamp { - if x != nil { - return x.Startdate +func (m *FindVehicleRequest) GetStartdate() *timestamppb.Timestamp { + if m != nil { + return m.Startdate } return nil } -func (x *FindVehicleRequest) GetEnddate() *timestamppb.Timestamp { - if x != nil { - return x.Enddate +func (m *FindVehicleRequest) GetEnddate() *timestamppb.Timestamp { + if m != nil { + return m.Enddate } return nil } -func (x *FindVehicleRequest) GetLat() float64 { - if x != nil { - return x.Lat +func (m *FindVehicleRequest) GetLat() float64 { + if m != nil { + return m.Lat } return 0 } -func (x *FindVehicleRequest) GetLon() float64 { - if x != nil { - return x.Lon +func (m *FindVehicleRequest) GetLon() float64 { + if m != nil { + return m.Lon } return 0 } type FindVehicleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Vehicles []*Vehicle `protobuf:"bytes,22,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + Vehicles []*Vehicle `protobuf:"bytes,22,rep,name=vehicles,proto3" json:"vehicles,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *FindVehicleResponse) Reset() { - *x = FindVehicleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindVehicleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindVehicleResponse) ProtoMessage() {} - -func (x *FindVehicleResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindVehicleResponse.ProtoReflect.Descriptor instead. +func (m *FindVehicleResponse) Reset() { *m = FindVehicleResponse{} } +func (m *FindVehicleResponse) String() string { return proto.CompactTextString(m) } +func (*FindVehicleResponse) ProtoMessage() {} func (*FindVehicleResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{17} + return fileDescriptor_b44dc601d6f9ec30, []int{17} } -func (x *FindVehicleResponse) GetVehicles() []*Vehicle { - if x != nil { - return x.Vehicles +func (m *FindVehicleResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FindVehicleResponse.Unmarshal(m, b) +} +func (m *FindVehicleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FindVehicleResponse.Marshal(b, m, deterministic) +} +func (m *FindVehicleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindVehicleResponse.Merge(m, src) +} +func (m *FindVehicleResponse) XXX_Size() int { + return xxx_messageInfo_FindVehicleResponse.Size(m) +} +func (m *FindVehicleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_FindVehicleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_FindVehicleResponse proto.InternalMessageInfo + +func (m *FindVehicleResponse) GetVehicles() []*Vehicle { + if m != nil { + return m.Vehicles } return nil } type GetBookingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bookingid string `protobuf:"bytes,23,opt,name=bookingid,proto3" json:"bookingid,omitempty"` + Bookingid string `protobuf:"bytes,23,opt,name=bookingid,proto3" json:"bookingid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBookingRequest) Reset() { - *x = GetBookingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBookingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBookingRequest) ProtoMessage() {} - -func (x *GetBookingRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBookingRequest.ProtoReflect.Descriptor instead. +func (m *GetBookingRequest) Reset() { *m = GetBookingRequest{} } +func (m *GetBookingRequest) String() string { return proto.CompactTextString(m) } +func (*GetBookingRequest) ProtoMessage() {} func (*GetBookingRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{18} + return fileDescriptor_b44dc601d6f9ec30, []int{18} } -func (x *GetBookingRequest) GetBookingid() string { - if x != nil { - return x.Bookingid +func (m *GetBookingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBookingRequest.Unmarshal(m, b) +} +func (m *GetBookingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBookingRequest.Marshal(b, m, deterministic) +} +func (m *GetBookingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBookingRequest.Merge(m, src) +} +func (m *GetBookingRequest) XXX_Size() int { + return xxx_messageInfo_GetBookingRequest.Size(m) +} +func (m *GetBookingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBookingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBookingRequest proto.InternalMessageInfo + +func (m *GetBookingRequest) GetBookingid() string { + if m != nil { + return m.Bookingid } return "" } type GetBookingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Booking *Booking `protobuf:"bytes,24,opt,name=booking,proto3" json:"booking,omitempty"` + Booking *Booking `protobuf:"bytes,24,opt,name=booking,proto3" json:"booking,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBookingResponse) Reset() { - *x = GetBookingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBookingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBookingResponse) ProtoMessage() {} - -func (x *GetBookingResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBookingResponse.ProtoReflect.Descriptor instead. +func (m *GetBookingResponse) Reset() { *m = GetBookingResponse{} } +func (m *GetBookingResponse) String() string { return proto.CompactTextString(m) } +func (*GetBookingResponse) ProtoMessage() {} func (*GetBookingResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{19} + return fileDescriptor_b44dc601d6f9ec30, []int{19} } -func (x *GetBookingResponse) GetBooking() *Booking { - if x != nil { - return x.Booking +func (m *GetBookingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBookingResponse.Unmarshal(m, b) +} +func (m *GetBookingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBookingResponse.Marshal(b, m, deterministic) +} +func (m *GetBookingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBookingResponse.Merge(m, src) +} +func (m *GetBookingResponse) XXX_Size() int { + return xxx_messageInfo_GetBookingResponse.Size(m) +} +func (m *GetBookingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBookingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBookingResponse proto.InternalMessageInfo + +func (m *GetBookingResponse) GetBooking() *Booking { + if m != nil { + return m.Booking } return nil } type GetDriverBookingsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Driver string `protobuf:"bytes,25,opt,name=driver,proto3" json:"driver,omitempty"` + Driver string `protobuf:"bytes,25,opt,name=driver,proto3" json:"driver,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetDriverBookingsRequest) Reset() { - *x = GetDriverBookingsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDriverBookingsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDriverBookingsRequest) ProtoMessage() {} - -func (x *GetDriverBookingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDriverBookingsRequest.ProtoReflect.Descriptor instead. +func (m *GetDriverBookingsRequest) Reset() { *m = GetDriverBookingsRequest{} } +func (m *GetDriverBookingsRequest) String() string { return proto.CompactTextString(m) } +func (*GetDriverBookingsRequest) ProtoMessage() {} func (*GetDriverBookingsRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{20} + return fileDescriptor_b44dc601d6f9ec30, []int{20} } -func (x *GetDriverBookingsRequest) GetDriver() string { - if x != nil { - return x.Driver +func (m *GetDriverBookingsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDriverBookingsRequest.Unmarshal(m, b) +} +func (m *GetDriverBookingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDriverBookingsRequest.Marshal(b, m, deterministic) +} +func (m *GetDriverBookingsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDriverBookingsRequest.Merge(m, src) +} +func (m *GetDriverBookingsRequest) XXX_Size() int { + return xxx_messageInfo_GetDriverBookingsRequest.Size(m) +} +func (m *GetDriverBookingsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetDriverBookingsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDriverBookingsRequest proto.InternalMessageInfo + +func (m *GetDriverBookingsRequest) GetDriver() string { + if m != nil { + return m.Driver } return "" } type GetDriverBookingsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bookings []*Booking `protobuf:"bytes,26,rep,name=bookings,proto3" json:"bookings,omitempty"` + Bookings []*Booking `protobuf:"bytes,26,rep,name=bookings,proto3" json:"bookings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetDriverBookingsResponse) Reset() { - *x = GetDriverBookingsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDriverBookingsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDriverBookingsResponse) ProtoMessage() {} - -func (x *GetDriverBookingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDriverBookingsResponse.ProtoReflect.Descriptor instead. +func (m *GetDriverBookingsResponse) Reset() { *m = GetDriverBookingsResponse{} } +func (m *GetDriverBookingsResponse) String() string { return proto.CompactTextString(m) } +func (*GetDriverBookingsResponse) ProtoMessage() {} func (*GetDriverBookingsResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{21} + return fileDescriptor_b44dc601d6f9ec30, []int{21} } -func (x *GetDriverBookingsResponse) GetBookings() []*Booking { - if x != nil { - return x.Bookings +func (m *GetDriverBookingsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetDriverBookingsResponse.Unmarshal(m, b) +} +func (m *GetDriverBookingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetDriverBookingsResponse.Marshal(b, m, deterministic) +} +func (m *GetDriverBookingsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDriverBookingsResponse.Merge(m, src) +} +func (m *GetDriverBookingsResponse) XXX_Size() int { + return xxx_messageInfo_GetDriverBookingsResponse.Size(m) +} +func (m *GetDriverBookingsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDriverBookingsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetDriverBookingsResponse proto.InternalMessageInfo + +func (m *GetDriverBookingsResponse) GetBookings() []*Booking { + if m != nil { + return m.Bookings } return nil } type GetBookingsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Namespaces []string `protobuf:"bytes,27,rep,name=namespaces,proto3" json:"namespaces,omitempty"` + Namespaces []string `protobuf:"bytes,27,rep,name=namespaces,proto3" json:"namespaces,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBookingsRequest) Reset() { - *x = GetBookingsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBookingsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBookingsRequest) ProtoMessage() {} - -func (x *GetBookingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBookingsRequest.ProtoReflect.Descriptor instead. +func (m *GetBookingsRequest) Reset() { *m = GetBookingsRequest{} } +func (m *GetBookingsRequest) String() string { return proto.CompactTextString(m) } +func (*GetBookingsRequest) ProtoMessage() {} func (*GetBookingsRequest) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{22} + return fileDescriptor_b44dc601d6f9ec30, []int{22} } -func (x *GetBookingsRequest) GetNamespaces() []string { - if x != nil { - return x.Namespaces +func (m *GetBookingsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBookingsRequest.Unmarshal(m, b) +} +func (m *GetBookingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBookingsRequest.Marshal(b, m, deterministic) +} +func (m *GetBookingsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBookingsRequest.Merge(m, src) +} +func (m *GetBookingsRequest) XXX_Size() int { + return xxx_messageInfo_GetBookingsRequest.Size(m) +} +func (m *GetBookingsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBookingsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBookingsRequest proto.InternalMessageInfo + +func (m *GetBookingsRequest) GetNamespaces() []string { + if m != nil { + return m.Namespaces } return nil } type GetBookingsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bookings []*Booking `protobuf:"bytes,28,rep,name=bookings,proto3" json:"bookings,omitempty"` + Bookings []*Booking `protobuf:"bytes,28,rep,name=bookings,proto3" json:"bookings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBookingsResponse) Reset() { - *x = GetBookingsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_fleets_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBookingsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBookingsResponse) ProtoMessage() {} - -func (x *GetBookingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_fleets_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBookingsResponse.ProtoReflect.Descriptor instead. +func (m *GetBookingsResponse) Reset() { *m = GetBookingsResponse{} } +func (m *GetBookingsResponse) String() string { return proto.CompactTextString(m) } +func (*GetBookingsResponse) ProtoMessage() {} func (*GetBookingsResponse) Descriptor() ([]byte, []int) { - return file_fleets_proto_rawDescGZIP(), []int{23} + return fileDescriptor_b44dc601d6f9ec30, []int{23} } -func (x *GetBookingsResponse) GetBookings() []*Booking { - if x != nil { - return x.Bookings +func (m *GetBookingsResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBookingsResponse.Unmarshal(m, b) +} +func (m *GetBookingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBookingsResponse.Marshal(b, m, deterministic) +} +func (m *GetBookingsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBookingsResponse.Merge(m, src) +} +func (m *GetBookingsResponse) XXX_Size() int { + return xxx_messageInfo_GetBookingsResponse.Size(m) +} +func (m *GetBookingsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBookingsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBookingsResponse proto.InternalMessageInfo + +func (m *GetBookingsResponse) GetBookings() []*Booking { + if m != nil { + return m.Bookings } return nil } -var File_fleets_proto protoreflect.FileDescriptor - -var file_fleets_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x0e, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x37, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, - 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x22, 0x38, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x56, - 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, - 0x0a, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x08, 0x2e, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, - 0x6c, 0x65, 0x22, 0x31, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x65, 0x68, 0x69, 0x63, - 0x6c, 0x65, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x65, 0x68, 0x69, - 0x63, 0x6c, 0x65, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, - 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x07, 0x76, - 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, - 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x22, - 0x80, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x07, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x12, 0x47, 0x0a, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x10, 0x61, 0x76, 0x61, - 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x43, 0x0a, - 0x0f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x6f, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x54, 0x6f, 0x22, 0x3b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x08, 0x76, 0x65, 0x68, - 0x69, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, 0x65, - 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x08, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x22, - 0x3b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x76, 0x65, - 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0b, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x69, 0x64, 0x73, 0x22, 0x40, 0x0a, 0x18, - 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x08, 0x76, 0x65, 0x68, 0x69, - 0x63, 0x6c, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, 0x65, 0x68, - 0x69, 0x63, 0x6c, 0x65, 0x52, 0x08, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x22, 0x3a, - 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, - 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, - 0x65, 0x52, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x22, 0x3b, 0x0a, 0x15, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x07, - 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x22, 0x3a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x22, 0x0a, 0x07, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x22, 0x3b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, - 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x07, - 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, - 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, - 0x22, 0x3a, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x62, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x22, 0x3b, 0x0a, 0x15, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x07, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, - 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x22, 0x26, 0x0a, 0x14, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x27, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, - 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, - 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0xc6, 0x01, 0x0a, 0x12, 0x46, - 0x69, 0x6e, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x11, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, - 0x38, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x64, 0x61, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x64, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x6e, 0x64, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x64, 0x61, 0x74, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x6c, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x6c, 0x61, - 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x6e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, - 0x6c, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x08, 0x76, 0x65, - 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x56, - 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x08, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, - 0x22, 0x31, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, - 0x69, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, - 0x67, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x07, 0x62, 0x6f, 0x6f, - 0x6b, 0x69, 0x6e, 0x67, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, - 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x22, 0x32, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, - 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, - 0x76, 0x65, 0x72, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, - 0x72, 0x22, 0x41, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x6f, - 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, - 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x73, 0x22, 0x34, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, - 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, 0x3b, 0x0a, 0x13, 0x47, 0x65, - 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x24, 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x1c, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x62, - 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x32, 0xbd, 0x05, 0x0a, 0x06, 0x46, 0x6c, 0x65, 0x65, - 0x74, 0x73, 0x12, 0x37, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, - 0x12, 0x12, 0x2e, 0x41, 0x64, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x41, 0x64, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x0a, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x12, 0x12, 0x2e, 0x47, 0x65, 0x74, 0x56, - 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, - 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, - 0x6c, 0x65, 0x73, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, - 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x40, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, - 0x65, 0x12, 0x15, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x12, 0x15, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, - 0x6e, 0x67, 0x12, 0x12, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, - 0x0b, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x13, 0x2e, 0x47, - 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x14, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x19, - 0x2e, 0x47, 0x65, 0x74, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, - 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x47, 0x65, 0x74, 0x44, - 0x72, 0x69, 0x76, 0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x15, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x16, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0d, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x15, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x0b, 0x46, - 0x69, 0x6e, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x12, 0x13, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x14, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x2e, 0x63, - 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2d, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x2f, - 0x67, 0x72, 0x70, 0x63, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*AddVehicleRequest)(nil), "AddVehicleRequest") + proto.RegisterType((*AddVehicleResponse)(nil), "AddVehicleResponse") + proto.RegisterType((*GetVehicleRequest)(nil), "GetVehicleRequest") + proto.RegisterType((*GetVehicleResponse)(nil), "GetVehicleResponse") + proto.RegisterType((*GetVehiclesRequest)(nil), "GetVehiclesRequest") + proto.RegisterType((*GetVehiclesResponse)(nil), "GetVehiclesResponse") + proto.RegisterType((*GetVehiclesBatchRequest)(nil), "GetVehiclesBatchRequest") + proto.RegisterType((*GetVehiclesBatchResponse)(nil), "GetVehiclesBatchResponse") + proto.RegisterType((*UpdateVehicleRequest)(nil), "UpdateVehicleRequest") + proto.RegisterType((*UpdateVehicleResponse)(nil), "UpdateVehicleResponse") + proto.RegisterType((*CreateBookingRequest)(nil), "CreateBookingRequest") + proto.RegisterType((*CreateBookingResponse)(nil), "CreateBookingResponse") + proto.RegisterType((*UpdateBookingRequest)(nil), "UpdateBookingRequest") + proto.RegisterType((*UpdateBookingResponse)(nil), "UpdateBookingResponse") + proto.RegisterType((*DeleteBookingRequest)(nil), "DeleteBookingRequest") + proto.RegisterType((*DeleteBookingResponse)(nil), "DeleteBookingResponse") + proto.RegisterType((*FindVehicleRequest)(nil), "FindVehicleRequest") + proto.RegisterType((*FindVehicleResponse)(nil), "FindVehicleResponse") + proto.RegisterType((*GetBookingRequest)(nil), "GetBookingRequest") + proto.RegisterType((*GetBookingResponse)(nil), "GetBookingResponse") + proto.RegisterType((*GetDriverBookingsRequest)(nil), "GetDriverBookingsRequest") + proto.RegisterType((*GetDriverBookingsResponse)(nil), "GetDriverBookingsResponse") + proto.RegisterType((*GetBookingsRequest)(nil), "GetBookingsRequest") + proto.RegisterType((*GetBookingsResponse)(nil), "GetBookingsResponse") } -var ( - file_fleets_proto_rawDescOnce sync.Once - file_fleets_proto_rawDescData = file_fleets_proto_rawDesc -) - -func file_fleets_proto_rawDescGZIP() []byte { - file_fleets_proto_rawDescOnce.Do(func() { - file_fleets_proto_rawDescData = protoimpl.X.CompressGZIP(file_fleets_proto_rawDescData) - }) - return file_fleets_proto_rawDescData +func init() { + proto.RegisterFile("fleets.proto", fileDescriptor_b44dc601d6f9ec30) } -var file_fleets_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_fleets_proto_goTypes = []interface{}{ - (*AddVehicleRequest)(nil), // 0: AddVehicleRequest - (*AddVehicleResponse)(nil), // 1: AddVehicleResponse - (*GetVehicleRequest)(nil), // 2: GetVehicleRequest - (*GetVehicleResponse)(nil), // 3: GetVehicleResponse - (*GetVehiclesRequest)(nil), // 4: GetVehiclesRequest - (*GetVehiclesResponse)(nil), // 5: GetVehiclesResponse - (*GetVehiclesBatchRequest)(nil), // 6: GetVehiclesBatchRequest - (*GetVehiclesBatchResponse)(nil), // 7: GetVehiclesBatchResponse - (*UpdateVehicleRequest)(nil), // 8: UpdateVehicleRequest - (*UpdateVehicleResponse)(nil), // 9: UpdateVehicleResponse - (*CreateBookingRequest)(nil), // 10: CreateBookingRequest - (*CreateBookingResponse)(nil), // 11: CreateBookingResponse - (*UpdateBookingRequest)(nil), // 12: UpdateBookingRequest - (*UpdateBookingResponse)(nil), // 13: UpdateBookingResponse - (*DeleteBookingRequest)(nil), // 14: DeleteBookingRequest - (*DeleteBookingResponse)(nil), // 15: DeleteBookingResponse - (*FindVehicleRequest)(nil), // 16: FindVehicleRequest - (*FindVehicleResponse)(nil), // 17: FindVehicleResponse - (*GetBookingRequest)(nil), // 18: GetBookingRequest - (*GetBookingResponse)(nil), // 19: GetBookingResponse - (*GetDriverBookingsRequest)(nil), // 20: GetDriverBookingsRequest - (*GetDriverBookingsResponse)(nil), // 21: GetDriverBookingsResponse - (*GetBookingsRequest)(nil), // 22: GetBookingsRequest - (*GetBookingsResponse)(nil), // 23: GetBookingsResponse - (*Vehicle)(nil), // 24: Vehicle - (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp - (*Booking)(nil), // 26: Booking -} -var file_fleets_proto_depIdxs = []int32{ - 24, // 0: AddVehicleRequest.vehicle:type_name -> Vehicle - 24, // 1: AddVehicleResponse.vehicle:type_name -> Vehicle - 24, // 2: GetVehicleResponse.vehicle:type_name -> Vehicle - 25, // 3: GetVehiclesRequest.availability_from:type_name -> google.protobuf.Timestamp - 25, // 4: GetVehiclesRequest.availability_to:type_name -> google.protobuf.Timestamp - 24, // 5: GetVehiclesResponse.vehicles:type_name -> Vehicle - 24, // 6: GetVehiclesBatchResponse.vehicles:type_name -> Vehicle - 24, // 7: UpdateVehicleRequest.vehicle:type_name -> Vehicle - 24, // 8: UpdateVehicleResponse.vehicle:type_name -> Vehicle - 26, // 9: CreateBookingRequest.booking:type_name -> Booking - 26, // 10: CreateBookingResponse.booking:type_name -> Booking - 26, // 11: UpdateBookingRequest.booking:type_name -> Booking - 26, // 12: UpdateBookingResponse.booking:type_name -> Booking - 25, // 13: FindVehicleRequest.startdate:type_name -> google.protobuf.Timestamp - 25, // 14: FindVehicleRequest.enddate:type_name -> google.protobuf.Timestamp - 24, // 15: FindVehicleResponse.vehicles:type_name -> Vehicle - 26, // 16: GetBookingResponse.booking:type_name -> Booking - 26, // 17: GetDriverBookingsResponse.bookings:type_name -> Booking - 26, // 18: GetBookingsResponse.bookings:type_name -> Booking - 0, // 19: Fleets.AddVehicle:input_type -> AddVehicleRequest - 2, // 20: Fleets.GetVehicle:input_type -> GetVehicleRequest - 4, // 21: Fleets.GetVehicles:input_type -> GetVehiclesRequest - 8, // 22: Fleets.UpdateVehicle:input_type -> UpdateVehicleRequest - 10, // 23: Fleets.CreateBooking:input_type -> CreateBookingRequest - 18, // 24: Fleets.GetBooking:input_type -> GetBookingRequest - 22, // 25: Fleets.GetBookings:input_type -> GetBookingsRequest - 20, // 26: Fleets.GetDriverBookings:input_type -> GetDriverBookingsRequest - 12, // 27: Fleets.UpdateBooking:input_type -> UpdateBookingRequest - 14, // 28: Fleets.DeleteBooking:input_type -> DeleteBookingRequest - 16, // 29: Fleets.FindVehicle:input_type -> FindVehicleRequest - 1, // 30: Fleets.AddVehicle:output_type -> AddVehicleResponse - 3, // 31: Fleets.GetVehicle:output_type -> GetVehicleResponse - 5, // 32: Fleets.GetVehicles:output_type -> GetVehiclesResponse - 9, // 33: Fleets.UpdateVehicle:output_type -> UpdateVehicleResponse - 11, // 34: Fleets.CreateBooking:output_type -> CreateBookingResponse - 19, // 35: Fleets.GetBooking:output_type -> GetBookingResponse - 23, // 36: Fleets.GetBookings:output_type -> GetBookingsResponse - 21, // 37: Fleets.GetDriverBookings:output_type -> GetDriverBookingsResponse - 13, // 38: Fleets.UpdateBooking:output_type -> UpdateBookingResponse - 15, // 39: Fleets.DeleteBooking:output_type -> DeleteBookingResponse - 17, // 40: Fleets.FindVehicle:output_type -> FindVehicleResponse - 30, // [30:41] is the sub-list for method output_type - 19, // [19:30] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { file_fleets_proto_init() } -func file_fleets_proto_init() { - if File_fleets_proto != nil { - return - } - file_vehicles_proto_init() - if !protoimpl.UnsafeEnabled { - file_fleets_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddVehicleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddVehicleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVehicleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVehicleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVehiclesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVehiclesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVehiclesBatchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVehiclesBatchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateVehicleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateVehicleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateBookingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateBookingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateBookingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateBookingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteBookingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteBookingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindVehicleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindVehicleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBookingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBookingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDriverBookingsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDriverBookingsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBookingsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fleets_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBookingsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fleets_proto_rawDesc, - NumEnums: 0, - NumMessages: 24, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_fleets_proto_goTypes, - DependencyIndexes: file_fleets_proto_depIdxs, - MessageInfos: file_fleets_proto_msgTypes, - }.Build() - File_fleets_proto = out.File - file_fleets_proto_rawDesc = nil - file_fleets_proto_goTypes = nil - file_fleets_proto_depIdxs = nil +var fileDescriptor_b44dc601d6f9ec30 = []byte{ + // 811 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x4b, 0x4f, 0xe3, 0x3a, + 0x14, 0x6e, 0xcb, 0xa5, 0xb4, 0xa7, 0x50, 0xa8, 0xfb, 0xc0, 0xe4, 0xa2, 0x7b, 0xab, 0xe8, 0x8a, + 0xdb, 0xc5, 0xbd, 0xae, 0x86, 0x41, 0x02, 0xc1, 0x86, 0x97, 0x60, 0x33, 0xab, 0x8a, 0x99, 0xc5, + 0x6c, 0x46, 0x69, 0xe3, 0x16, 0x8b, 0x34, 0xce, 0x24, 0x06, 0x89, 0xdd, 0xfc, 0xb1, 0xd9, 0xce, + 0xef, 0x1a, 0x35, 0xb1, 0x53, 0xe7, 0x61, 0xd8, 0xd5, 0xe7, 0x9c, 0xcf, 0x5f, 0xce, 0xeb, 0x73, + 0x61, 0x7b, 0xee, 0x51, 0x2a, 0x22, 0x12, 0x84, 0x5c, 0x70, 0xeb, 0xef, 0x05, 0xe7, 0x0b, 0x8f, + 0x8e, 0xe3, 0xd3, 0xf4, 0x79, 0x3e, 0x16, 0x6c, 0x49, 0x23, 0xe1, 0x2c, 0x03, 0x19, 0xd0, 0x7e, + 0xa1, 0x8f, 0x6c, 0xe6, 0x51, 0x09, 0xb0, 0x4f, 0xa1, 0x73, 0xe5, 0xba, 0x5f, 0x12, 0xe3, 0x84, + 0x7e, 0x7f, 0xa6, 0x91, 0x40, 0x36, 0x6c, 0xc9, 0x30, 0x5c, 0x1d, 0x56, 0x47, 0xad, 0xe3, 0x06, + 0x51, 0x11, 0xca, 0x61, 0x9f, 0x01, 0xd2, 0x81, 0x51, 0xc0, 0xfd, 0x88, 0xea, 0xc8, 0x9a, 0x09, + 0xf9, 0x01, 0x3a, 0xf7, 0x54, 0xe4, 0x28, 0x0f, 0xa1, 0x29, 0xfd, 0xcc, 0xc5, 0x1b, 0xc3, 0xea, + 0xa8, 0x39, 0x59, 0x1b, 0x56, 0x64, 0x3a, 0xa4, 0x48, 0xf6, 0x87, 0x89, 0xec, 0x47, 0x4d, 0x87, + 0x46, 0x8a, 0xee, 0x2f, 0x00, 0xdf, 0x59, 0xd2, 0x28, 0x70, 0x66, 0x34, 0xc2, 0x9b, 0xc3, 0x8d, + 0x51, 0x73, 0xa2, 0x59, 0x50, 0x0f, 0x36, 0xc5, 0x6b, 0x40, 0x23, 0x5c, 0x8f, 0x5d, 0xc9, 0x01, + 0x1d, 0x41, 0xdb, 0x71, 0x97, 0xcc, 0x67, 0x91, 0x08, 0x1d, 0xc1, 0xc3, 0x08, 0x6f, 0xc5, 0xee, + 0x9c, 0x15, 0xdd, 0x43, 0xc7, 0x79, 0x71, 0x98, 0xe7, 0x4c, 0x99, 0xc7, 0xc4, 0xeb, 0xb7, 0x79, + 0xc8, 0x97, 0xb8, 0x11, 0x7f, 0xa2, 0x45, 0x92, 0x0e, 0x11, 0xd5, 0x21, 0xf2, 0xa0, 0x3a, 0x34, + 0xd9, 0xd3, 0x41, 0x77, 0x21, 0x5f, 0xa2, 0x1b, 0xd8, 0xcd, 0x5c, 0x24, 0x38, 0x6e, 0xbe, 0x7b, + 0x4d, 0x5b, 0x87, 0x3c, 0x70, 0xfb, 0x02, 0xba, 0x99, 0x0a, 0xc8, 0xea, 0xfd, 0x03, 0x0d, 0x35, + 0x0b, 0x71, 0x96, 0x7a, 0xf9, 0x52, 0x8f, 0x7d, 0x01, 0xfb, 0x1a, 0xf8, 0xda, 0x11, 0xb3, 0x47, + 0x55, 0xc3, 0x21, 0xb4, 0x54, 0x18, 0x73, 0x55, 0x29, 0x74, 0x93, 0x7d, 0x09, 0xb8, 0x08, 0x2e, + 0xa1, 0x6f, 0x18, 0xe9, 0xcf, 0xa1, 0xf7, 0x39, 0x70, 0x1d, 0x41, 0xcd, 0x13, 0xda, 0x34, 0xb5, + 0xfe, 0x02, 0xfa, 0x39, 0x6c, 0x71, 0x6e, 0xc0, 0x04, 0x3e, 0x87, 0xde, 0x4d, 0x48, 0x1d, 0x41, + 0xaf, 0x39, 0x7f, 0x62, 0xfe, 0x42, 0x23, 0x9e, 0x26, 0x16, 0xdc, 0x92, 0x58, 0x15, 0xa1, 0x1c, + 0x2b, 0xe2, 0x1c, 0x76, 0x4d, 0xac, 0xc0, 0xdb, 0x26, 0x70, 0x9a, 0xb1, 0x99, 0x78, 0xe7, 0x0d, + 0xe2, 0x1c, 0xb6, 0x48, 0xdc, 0x36, 0x81, 0x8f, 0xa0, 0x77, 0x4b, 0x3d, 0x5a, 0x20, 0x6e, 0x43, + 0x8d, 0xb9, 0x78, 0x37, 0x5e, 0xc9, 0x1a, 0x73, 0xed, 0x7f, 0xa1, 0x9f, 0x8b, 0x93, 0x24, 0x6d, + 0xa8, 0xf1, 0x27, 0xbc, 0x37, 0xac, 0x8e, 0x1a, 0x93, 0x1a, 0x7f, 0xb2, 0x7f, 0x55, 0x01, 0xdd, + 0x31, 0xdf, 0x2d, 0x6e, 0x7a, 0xba, 0x68, 0xb8, 0x93, 0x6c, 0x7a, 0x6a, 0x40, 0x67, 0xd0, 0x8c, + 0x84, 0x13, 0x8a, 0x55, 0x16, 0x18, 0xbd, 0x3b, 0xeb, 0xeb, 0x60, 0x74, 0x02, 0x5b, 0xd4, 0x77, + 0x63, 0x5c, 0xf7, 0x5d, 0x9c, 0x0a, 0x45, 0x7b, 0xb0, 0xe1, 0x39, 0x02, 0xf7, 0x86, 0xd5, 0x51, + 0x75, 0xb2, 0xfa, 0x19, 0x5b, 0xb8, 0x8f, 0xfb, 0xd2, 0xc2, 0xfd, 0xd5, 0x02, 0x65, 0xf2, 0x28, + 0x99, 0xe0, 0x81, 0x71, 0x82, 0x13, 0xb5, 0xcb, 0xd5, 0xf4, 0x10, 0x9a, 0xb2, 0xec, 0xcc, 0xc5, + 0xfb, 0x49, 0x0d, 0x52, 0x83, 0x54, 0xbb, 0x37, 0x7a, 0x88, 0x4d, 0x3d, 0x3c, 0x8e, 0x17, 0xee, + 0x36, 0x64, 0x2f, 0x34, 0x94, 0xce, 0x54, 0xf2, 0x06, 0x50, 0x77, 0x63, 0x07, 0x3e, 0x88, 0x09, + 0xe5, 0xc9, 0xbe, 0x82, 0x83, 0x12, 0xcc, 0x3a, 0x47, 0x79, 0x77, 0x84, 0x2d, 0x99, 0xa3, 0x62, + 0x4d, 0x3d, 0xf6, 0x89, 0xfe, 0xc1, 0x06, 0x8d, 0xfd, 0x33, 0xaf, 0xb1, 0x52, 0x97, 0xde, 0xa4, + 0x3c, 0x34, 0x51, 0x1e, 0xff, 0xdc, 0x84, 0xfa, 0x5d, 0xfc, 0xf2, 0xa1, 0x53, 0x80, 0xf5, 0x4b, + 0x84, 0x10, 0x29, 0xbc, 0x67, 0x56, 0x97, 0x14, 0x9f, 0x2a, 0xbb, 0xb2, 0x02, 0xae, 0xe5, 0x09, + 0x21, 0x52, 0x78, 0x95, 0xac, 0x2e, 0x29, 0x3e, 0x3b, 0x76, 0x05, 0x9d, 0x43, 0x4b, 0xd3, 0x35, + 0xa4, 0x47, 0xa9, 0xec, 0xad, 0x1e, 0x29, 0x11, 0x5d, 0xbb, 0x82, 0x2e, 0x61, 0x27, 0xa3, 0x4a, + 0xa8, 0x4f, 0xca, 0x14, 0xce, 0x1a, 0x90, 0x52, 0xf1, 0x4a, 0x6e, 0xc8, 0xc8, 0x0b, 0xea, 0x93, + 0x32, 0xa9, 0xb2, 0x06, 0xa4, 0x54, 0x85, 0xd2, 0xc4, 0x15, 0x3c, 0x4e, 0x3c, 0x87, 0xed, 0x92, + 0xe2, 0x04, 0xa6, 0x89, 0xab, 0x96, 0x21, 0x3d, 0x2a, 0x9b, 0x78, 0xbe, 0xab, 0x76, 0x05, 0x7d, + 0x8a, 0x17, 0x21, 0x3b, 0x67, 0xe8, 0x80, 0x98, 0xe6, 0xd5, 0xb2, 0x88, 0x71, 0x2c, 0xf5, 0x32, + 0xae, 0x8b, 0x50, 0x26, 0x9b, 0x69, 0x19, 0x8b, 0xb9, 0x5c, 0xc2, 0x4e, 0x46, 0xc7, 0x50, 0x9f, + 0x94, 0xe9, 0x9f, 0x35, 0x20, 0xa5, 0x72, 0x97, 0x54, 0x43, 0xd3, 0x05, 0xd4, 0x25, 0x45, 0xb5, + 0xb3, 0x7a, 0xa4, 0x44, 0x3a, 0xec, 0xca, 0x35, 0xf9, 0xfa, 0xdf, 0x82, 0x09, 0x32, 0xe3, 0x3c, + 0x58, 0x70, 0xc2, 0xf8, 0x38, 0xf9, 0xf5, 0x7f, 0xe0, 0x39, 0x62, 0xce, 0xc3, 0xe5, 0x38, 0xf9, + 0x5b, 0x37, 0x5e, 0x84, 0xc1, 0xcc, 0x09, 0xd8, 0xb4, 0x1e, 0x8b, 0xd8, 0xc7, 0xdf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x68, 0xac, 0x49, 0x0f, 0xef, 0x09, 0x00, 0x00, } diff --git a/grpcapi/fleets_grpc.pb.go b/grpcapi/fleets_grpc.pb.go index ba3d9d3..7a54ddd 100644 --- a/grpcapi/fleets_grpc.pb.go +++ b/grpcapi/fleets_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v3.19.4 +// - protoc v3.21.12 // source: fleets.proto package grpcapi @@ -27,14 +27,14 @@ type FleetsClient interface { GetVehicle(ctx context.Context, in *GetVehicleRequest, opts ...grpc.CallOption) (*GetVehicleResponse, error) GetVehicles(ctx context.Context, in *GetVehiclesRequest, opts ...grpc.CallOption) (*GetVehiclesResponse, error) UpdateVehicle(ctx context.Context, in *UpdateVehicleRequest, opts ...grpc.CallOption) (*UpdateVehicleResponse, error) - //Bookings + // Bookings CreateBooking(ctx context.Context, in *CreateBookingRequest, opts ...grpc.CallOption) (*CreateBookingResponse, error) GetBooking(ctx context.Context, in *GetBookingRequest, opts ...grpc.CallOption) (*GetBookingResponse, error) GetBookings(ctx context.Context, in *GetBookingsRequest, opts ...grpc.CallOption) (*GetBookingsResponse, error) GetDriverBookings(ctx context.Context, in *GetDriverBookingsRequest, opts ...grpc.CallOption) (*GetDriverBookingsResponse, error) UpdateBooking(ctx context.Context, in *UpdateBookingRequest, opts ...grpc.CallOption) (*UpdateBookingResponse, error) DeleteBooking(ctx context.Context, in *DeleteBookingRequest, opts ...grpc.CallOption) (*DeleteBookingResponse, error) - //Search / Availabilities + // Search / Availabilities FindVehicle(ctx context.Context, in *FindVehicleRequest, opts ...grpc.CallOption) (*FindVehicleResponse, error) } @@ -154,14 +154,14 @@ type FleetsServer interface { GetVehicle(context.Context, *GetVehicleRequest) (*GetVehicleResponse, error) GetVehicles(context.Context, *GetVehiclesRequest) (*GetVehiclesResponse, error) UpdateVehicle(context.Context, *UpdateVehicleRequest) (*UpdateVehicleResponse, error) - //Bookings + // Bookings CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error) GetBooking(context.Context, *GetBookingRequest) (*GetBookingResponse, error) GetBookings(context.Context, *GetBookingsRequest) (*GetBookingsResponse, error) GetDriverBookings(context.Context, *GetDriverBookingsRequest) (*GetDriverBookingsResponse, error) UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error) DeleteBooking(context.Context, *DeleteBookingRequest) (*DeleteBookingResponse, error) - //Search / Availabilities + // Search / Availabilities FindVehicle(context.Context, *FindVehicleRequest) (*FindVehicleResponse, error) mustEmbedUnimplementedFleetsServer() } diff --git a/grpcapi/vehicles.pb.go b/grpcapi/vehicles.pb.go index 1233d68..509bae2 100644 --- a/grpcapi/vehicles.pb.go +++ b/grpcapi/vehicles.pb.go @@ -1,359 +1,250 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.0 -// protoc v3.19.4 // source: vehicles.proto package grpcapi import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fmt "fmt" + proto "github.com/golang/protobuf/proto" structpb "google.golang.org/protobuf/types/known/structpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Vehicle struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Administrators []string `protobuf:"bytes,4,rep,name=administrators,proto3" json:"administrators,omitempty"` - Data *structpb.Struct `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` - Bookings []*Booking `protobuf:"bytes,6,rep,name=bookings,proto3" json:"bookings,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Administrators []string `protobuf:"bytes,4,rep,name=administrators,proto3" json:"administrators,omitempty"` + Data *structpb.Struct `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` + Bookings []*Booking `protobuf:"bytes,6,rep,name=bookings,proto3" json:"bookings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Vehicle) Reset() { - *x = Vehicle{} - if protoimpl.UnsafeEnabled { - mi := &file_vehicles_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Vehicle) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Vehicle) ProtoMessage() {} - -func (x *Vehicle) ProtoReflect() protoreflect.Message { - mi := &file_vehicles_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Vehicle.ProtoReflect.Descriptor instead. +func (m *Vehicle) Reset() { *m = Vehicle{} } +func (m *Vehicle) String() string { return proto.CompactTextString(m) } +func (*Vehicle) ProtoMessage() {} func (*Vehicle) Descriptor() ([]byte, []int) { - return file_vehicles_proto_rawDescGZIP(), []int{0} + return fileDescriptor_b84b5fa4f4d86273, []int{0} } -func (x *Vehicle) GetId() string { - if x != nil { - return x.Id +func (m *Vehicle) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Vehicle.Unmarshal(m, b) +} +func (m *Vehicle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Vehicle.Marshal(b, m, deterministic) +} +func (m *Vehicle) XXX_Merge(src proto.Message) { + xxx_messageInfo_Vehicle.Merge(m, src) +} +func (m *Vehicle) XXX_Size() int { + return xxx_messageInfo_Vehicle.Size(m) +} +func (m *Vehicle) XXX_DiscardUnknown() { + xxx_messageInfo_Vehicle.DiscardUnknown(m) +} + +var xxx_messageInfo_Vehicle proto.InternalMessageInfo + +func (m *Vehicle) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *Vehicle) GetNamespace() string { - if x != nil { - return x.Namespace +func (m *Vehicle) GetNamespace() string { + if m != nil { + return m.Namespace } return "" } -func (x *Vehicle) GetType() string { - if x != nil { - return x.Type +func (m *Vehicle) GetType() string { + if m != nil { + return m.Type } return "" } -func (x *Vehicle) GetAdministrators() []string { - if x != nil { - return x.Administrators +func (m *Vehicle) GetAdministrators() []string { + if m != nil { + return m.Administrators } return nil } -func (x *Vehicle) GetData() *structpb.Struct { - if x != nil { - return x.Data +func (m *Vehicle) GetData() *structpb.Struct { + if m != nil { + return m.Data } return nil } -func (x *Vehicle) GetBookings() []*Booking { - if x != nil { - return x.Bookings +func (m *Vehicle) GetBookings() []*Booking { + if m != nil { + return m.Bookings } return nil } type Booking struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Vehicleid string `protobuf:"bytes,2,opt,name=vehicleid,proto3" json:"vehicleid,omitempty"` - Driver string `protobuf:"bytes,3,opt,name=driver,proto3" json:"driver,omitempty"` - Startdate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=startdate,proto3" json:"startdate,omitempty"` - Enddate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=enddate,proto3" json:"enddate,omitempty"` - Unavailablefrom *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=unavailablefrom,proto3" json:"unavailablefrom,omitempty"` - Unavailableto *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=unavailableto,proto3" json:"unavailableto,omitempty"` - Data *structpb.Struct `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` - Vehicle *Vehicle `protobuf:"bytes,9,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Vehicleid string `protobuf:"bytes,2,opt,name=vehicleid,proto3" json:"vehicleid,omitempty"` + Driver string `protobuf:"bytes,3,opt,name=driver,proto3" json:"driver,omitempty"` + Startdate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=startdate,proto3" json:"startdate,omitempty"` + Enddate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=enddate,proto3" json:"enddate,omitempty"` + Unavailablefrom *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=unavailablefrom,proto3" json:"unavailablefrom,omitempty"` + Unavailableto *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=unavailableto,proto3" json:"unavailableto,omitempty"` + Data *structpb.Struct `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"` + Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"` + Vehicle *Vehicle `protobuf:"bytes,9,opt,name=vehicle,proto3" json:"vehicle,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Booking) Reset() { - *x = Booking{} - if protoimpl.UnsafeEnabled { - mi := &file_vehicles_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Booking) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Booking) ProtoMessage() {} - -func (x *Booking) ProtoReflect() protoreflect.Message { - mi := &file_vehicles_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Booking.ProtoReflect.Descriptor instead. +func (m *Booking) Reset() { *m = Booking{} } +func (m *Booking) String() string { return proto.CompactTextString(m) } +func (*Booking) ProtoMessage() {} func (*Booking) Descriptor() ([]byte, []int) { - return file_vehicles_proto_rawDescGZIP(), []int{1} + return fileDescriptor_b84b5fa4f4d86273, []int{1} } -func (x *Booking) GetId() string { - if x != nil { - return x.Id +func (m *Booking) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Booking.Unmarshal(m, b) +} +func (m *Booking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Booking.Marshal(b, m, deterministic) +} +func (m *Booking) XXX_Merge(src proto.Message) { + xxx_messageInfo_Booking.Merge(m, src) +} +func (m *Booking) XXX_Size() int { + return xxx_messageInfo_Booking.Size(m) +} +func (m *Booking) XXX_DiscardUnknown() { + xxx_messageInfo_Booking.DiscardUnknown(m) +} + +var xxx_messageInfo_Booking proto.InternalMessageInfo + +func (m *Booking) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *Booking) GetVehicleid() string { - if x != nil { - return x.Vehicleid +func (m *Booking) GetVehicleid() string { + if m != nil { + return m.Vehicleid } return "" } -func (x *Booking) GetDriver() string { - if x != nil { - return x.Driver +func (m *Booking) GetDriver() string { + if m != nil { + return m.Driver } return "" } -func (x *Booking) GetStartdate() *timestamppb.Timestamp { - if x != nil { - return x.Startdate +func (m *Booking) GetStartdate() *timestamppb.Timestamp { + if m != nil { + return m.Startdate } return nil } -func (x *Booking) GetEnddate() *timestamppb.Timestamp { - if x != nil { - return x.Enddate +func (m *Booking) GetEnddate() *timestamppb.Timestamp { + if m != nil { + return m.Enddate } return nil } -func (x *Booking) GetUnavailablefrom() *timestamppb.Timestamp { - if x != nil { - return x.Unavailablefrom +func (m *Booking) GetUnavailablefrom() *timestamppb.Timestamp { + if m != nil { + return m.Unavailablefrom } return nil } -func (x *Booking) GetUnavailableto() *timestamppb.Timestamp { - if x != nil { - return x.Unavailableto +func (m *Booking) GetUnavailableto() *timestamppb.Timestamp { + if m != nil { + return m.Unavailableto } return nil } -func (x *Booking) GetData() *structpb.Struct { - if x != nil { - return x.Data +func (m *Booking) GetData() *structpb.Struct { + if m != nil { + return m.Data } return nil } -func (x *Booking) GetVehicle() *Vehicle { - if x != nil { - return x.Vehicle +func (m *Booking) GetDeleted() bool { + if m != nil { + return m.Deleted + } + return false +} + +func (m *Booking) GetVehicle() *Vehicle { + if m != nil { + return m.Vehicle } return nil } -var File_vehicles_proto protoreflect.FileDescriptor - -var file_vehicles_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xc6, 0x01, 0x0a, 0x07, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, - 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x24, 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x08, - 0x62, 0x6f, 0x6f, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x98, 0x03, 0x0a, 0x07, 0x42, 0x6f, 0x6f, - 0x6b, 0x69, 0x6e, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, - 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x64, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x64, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x75, 0x6e, - 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0f, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x66, 0x72, 0x6f, 0x6d, - 0x12, 0x40, 0x0a, 0x0d, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x74, - 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x74, 0x6f, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x22, 0x0a, 0x07, 0x76, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x08, 0x2e, 0x56, 0x65, 0x68, 0x69, 0x63, 0x6c, 0x65, 0x52, 0x07, 0x76, 0x65, 0x68, 0x69, - 0x63, 0x6c, 0x65, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x6f, 0x70, 0x67, - 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2d, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, - 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +func init() { + proto.RegisterType((*Vehicle)(nil), "Vehicle") + proto.RegisterType((*Booking)(nil), "Booking") } -var ( - file_vehicles_proto_rawDescOnce sync.Once - file_vehicles_proto_rawDescData = file_vehicles_proto_rawDesc -) - -func file_vehicles_proto_rawDescGZIP() []byte { - file_vehicles_proto_rawDescOnce.Do(func() { - file_vehicles_proto_rawDescData = protoimpl.X.CompressGZIP(file_vehicles_proto_rawDescData) - }) - return file_vehicles_proto_rawDescData +func init() { + proto.RegisterFile("vehicles.proto", fileDescriptor_b84b5fa4f4d86273) } -var file_vehicles_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_vehicles_proto_goTypes = []interface{}{ - (*Vehicle)(nil), // 0: Vehicle - (*Booking)(nil), // 1: Booking - (*structpb.Struct)(nil), // 2: google.protobuf.Struct - (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp -} -var file_vehicles_proto_depIdxs = []int32{ - 2, // 0: Vehicle.data:type_name -> google.protobuf.Struct - 1, // 1: Vehicle.bookings:type_name -> Booking - 3, // 2: Booking.startdate:type_name -> google.protobuf.Timestamp - 3, // 3: Booking.enddate:type_name -> google.protobuf.Timestamp - 3, // 4: Booking.unavailablefrom:type_name -> google.protobuf.Timestamp - 3, // 5: Booking.unavailableto:type_name -> google.protobuf.Timestamp - 2, // 6: Booking.data:type_name -> google.protobuf.Struct - 0, // 7: Booking.vehicle:type_name -> Vehicle - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_vehicles_proto_init() } -func file_vehicles_proto_init() { - if File_vehicles_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_vehicles_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Vehicle); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_vehicles_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Booking); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_vehicles_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_vehicles_proto_goTypes, - DependencyIndexes: file_vehicles_proto_depIdxs, - MessageInfos: file_vehicles_proto_msgTypes, - }.Build() - File_vehicles_proto = out.File - file_vehicles_proto_rawDesc = nil - file_vehicles_proto_goTypes = nil - file_vehicles_proto_depIdxs = nil +var fileDescriptor_b84b5fa4f4d86273 = []byte{ + // 384 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x5d, 0xab, 0xd4, 0x30, + 0x10, 0xa5, 0xbb, 0xbd, 0xfd, 0x98, 0x8b, 0x2b, 0xe4, 0x41, 0xc3, 0xe5, 0x82, 0x65, 0x11, 0x29, + 0xa8, 0x29, 0x5c, 0x7d, 0xf0, 0x51, 0x2e, 0xfe, 0x82, 0x2a, 0x3e, 0xf8, 0x96, 0x36, 0xd3, 0x1a, + 0x6c, 0x9b, 0x90, 0xcc, 0x2e, 0xf8, 0xb7, 0xfc, 0x11, 0xfe, 0x2e, 0x21, 0x6d, 0xf7, 0xea, 0x2a, + 0xac, 0x6f, 0x99, 0x73, 0xe6, 0x0c, 0xe7, 0xcc, 0x04, 0x76, 0x47, 0xfc, 0xaa, 0xdb, 0x01, 0xbd, + 0xb0, 0xce, 0x90, 0xb9, 0xb9, 0xed, 0x8d, 0xe9, 0x07, 0xac, 0x42, 0xd5, 0x1c, 0xba, 0xca, 0x93, + 0x3b, 0xb4, 0xb4, 0xb0, 0xcf, 0xce, 0x59, 0xd2, 0x23, 0x7a, 0x92, 0xa3, 0x9d, 0x1b, 0xf6, 0x3f, + 0x23, 0x48, 0x3f, 0xcf, 0x13, 0xd9, 0x0e, 0x36, 0x5a, 0xf1, 0xa8, 0x88, 0xca, 0xbc, 0xde, 0x68, + 0xc5, 0x6e, 0x21, 0x9f, 0xe4, 0x88, 0xde, 0xca, 0x16, 0xf9, 0x26, 0xc0, 0x0f, 0x00, 0x63, 0x10, + 0xd3, 0x77, 0x8b, 0x7c, 0x1b, 0x88, 0xf0, 0x66, 0x2f, 0x60, 0x27, 0xd5, 0xa8, 0x27, 0xed, 0xc9, + 0x49, 0x32, 0xce, 0xf3, 0xb8, 0xd8, 0x96, 0x79, 0x7d, 0x86, 0xb2, 0x97, 0x10, 0x2b, 0x49, 0x92, + 0x5f, 0x15, 0x51, 0x79, 0x7d, 0xf7, 0x54, 0xcc, 0x2e, 0xc5, 0xea, 0x52, 0x7c, 0x0c, 0x19, 0xea, + 0xd0, 0xc4, 0x9e, 0x43, 0xd6, 0x18, 0xf3, 0x4d, 0x4f, 0xbd, 0xe7, 0x49, 0xb1, 0x2d, 0xaf, 0xef, + 0x32, 0x71, 0x3f, 0x03, 0xf5, 0x89, 0xd9, 0xff, 0xd8, 0x42, 0xba, 0xa0, 0xff, 0x0a, 0xb2, 0x6c, + 0x4d, 0xab, 0x35, 0xc8, 0x09, 0x60, 0x4f, 0x20, 0x51, 0x4e, 0x1f, 0xd1, 0x2d, 0x51, 0x96, 0x8a, + 0xbd, 0x83, 0xdc, 0x93, 0x74, 0xa4, 0x24, 0x21, 0x8f, 0x83, 0xd3, 0x9b, 0xbf, 0x9c, 0x7e, 0x5a, + 0xf7, 0x59, 0x3f, 0x34, 0xb3, 0xb7, 0x90, 0xe2, 0xa4, 0x82, 0xee, 0xea, 0xa2, 0x6e, 0x6d, 0x65, + 0x1f, 0xe0, 0xf1, 0x61, 0x92, 0x47, 0xa9, 0x07, 0xd9, 0x0c, 0xd8, 0x39, 0x33, 0xf2, 0xe4, 0xa2, + 0xfa, 0x5c, 0xc2, 0xde, 0xc3, 0xa3, 0xdf, 0x20, 0x32, 0x3c, 0xbd, 0x38, 0xe3, 0x4f, 0xc1, 0xe9, + 0x38, 0xd9, 0xff, 0x1c, 0x87, 0x43, 0xaa, 0x70, 0x40, 0x42, 0xc5, 0xa1, 0x88, 0xca, 0xac, 0x5e, + 0x4b, 0xb6, 0x87, 0x74, 0xd9, 0x31, 0xcf, 0xc3, 0xa4, 0x4c, 0x2c, 0x1f, 0xad, 0x5e, 0x89, 0x7b, + 0xf1, 0xe5, 0x55, 0xaf, 0x49, 0xb4, 0xc6, 0xd8, 0xde, 0x08, 0x6d, 0xaa, 0xf9, 0xf5, 0xda, 0x0e, + 0x92, 0x3a, 0xe3, 0xc6, 0xaa, 0x1b, 0x10, 0xc9, 0x57, 0xbd, 0xb3, 0xad, 0xb4, 0xba, 0x49, 0x82, + 0x89, 0x37, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xe0, 0xd8, 0xa7, 0x63, 0x05, 0x03, 0x00, 0x00, } diff --git a/grpcapi/vehicles.proto b/grpcapi/vehicles.proto index 85053a7..228704c 100644 --- a/grpcapi/vehicles.proto +++ b/grpcapi/vehicles.proto @@ -23,6 +23,6 @@ message Booking { google.protobuf.Timestamp unavailablefrom = 6; google.protobuf.Timestamp unavailableto = 7; google.protobuf.Struct data = 8; - + bool deleted = 10; Vehicle vehicle = 9; } \ No newline at end of file diff --git a/storage/bookings.go b/storage/bookings.go index 7c48857..9b2e7e7 100644 --- a/storage/bookings.go +++ b/storage/bookings.go @@ -17,8 +17,7 @@ type Booking struct { Unavailablefrom time.Time `json:"unavailablefrom"` Unavailableto time.Time `json:"unavailableto"` Data map[string]any `json:"data"` - - Deleted bool + Deleted bool `json:"deleted"` Vehicle Vehicle `json:"vehicle" bson:"-"` }