// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.7 // protoc v6.31.1 // source: vehicles.proto package grpcapi import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) 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) ) type Vehicle struct { state protoimpl.MessageState `protogen:"open.v1"` 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"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Vehicle) Reset() { *x = Vehicle{} 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 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 (*Vehicle) Descriptor() ([]byte, []int) { return file_vehicles_proto_rawDescGZIP(), []int{0} } func (x *Vehicle) GetId() string { if x != nil { return x.Id } return "" } func (x *Vehicle) GetNamespace() string { if x != nil { return x.Namespace } return "" } func (x *Vehicle) GetType() string { if x != nil { return x.Type } return "" } func (x *Vehicle) GetAdministrators() []string { if x != nil { return x.Administrators } return nil } func (x *Vehicle) GetData() *structpb.Struct { if x != nil { return x.Data } return nil } func (x *Vehicle) GetBookings() []*Booking { if x != nil { return x.Bookings } return nil } type Booking struct { state protoimpl.MessageState `protogen:"open.v1"` 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"` Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"` ManualStatus string `protobuf:"bytes,11,opt,name=manual_status,json=manualStatus,proto3" json:"manual_status,omitempty"` StatusHistory []*StatusHistoryEntry `protobuf:"bytes,12,rep,name=status_history,json=statusHistory,proto3" json:"status_history,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Booking) Reset() { *x = Booking{} 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 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 (*Booking) Descriptor() ([]byte, []int) { return file_vehicles_proto_rawDescGZIP(), []int{1} } func (x *Booking) GetId() string { if x != nil { return x.Id } return "" } func (x *Booking) GetVehicleid() string { if x != nil { return x.Vehicleid } return "" } func (x *Booking) GetDriver() string { if x != nil { return x.Driver } return "" } func (x *Booking) GetStartdate() *timestamppb.Timestamp { if x != nil { return x.Startdate } return nil } func (x *Booking) GetEnddate() *timestamppb.Timestamp { if x != nil { return x.Enddate } return nil } func (x *Booking) GetUnavailablefrom() *timestamppb.Timestamp { if x != nil { return x.Unavailablefrom } return nil } func (x *Booking) GetUnavailableto() *timestamppb.Timestamp { if x != nil { return x.Unavailableto } return nil } func (x *Booking) GetData() *structpb.Struct { if x != nil { return x.Data } return nil } func (x *Booking) GetVehicle() *Vehicle { if x != nil { return x.Vehicle } return nil } func (x *Booking) GetDeleted() bool { if x != nil { return x.Deleted } return false } func (x *Booking) GetManualStatus() string { if x != nil { return x.ManualStatus } return "" } func (x *Booking) GetStatusHistory() []*StatusHistoryEntry { if x != nil { return x.StatusHistory } return nil } type StatusHistoryEntry struct { state protoimpl.MessageState `protogen:"open.v1"` FromStatus string `protobuf:"bytes,1,opt,name=from_status,json=fromStatus,proto3" json:"from_status,omitempty"` ToStatus string `protobuf:"bytes,2,opt,name=to_status,json=toStatus,proto3" json:"to_status,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserName string `protobuf:"bytes,4,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` GroupId string `protobuf:"bytes,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` GroupName string `protobuf:"bytes,6,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=date,proto3" json:"date,omitempty"` Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StatusHistoryEntry) Reset() { *x = StatusHistoryEntry{} mi := &file_vehicles_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StatusHistoryEntry) String() string { return protoimpl.X.MessageStringOf(x) } func (*StatusHistoryEntry) ProtoMessage() {} func (x *StatusHistoryEntry) ProtoReflect() protoreflect.Message { mi := &file_vehicles_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use StatusHistoryEntry.ProtoReflect.Descriptor instead. func (*StatusHistoryEntry) Descriptor() ([]byte, []int) { return file_vehicles_proto_rawDescGZIP(), []int{2} } func (x *StatusHistoryEntry) GetFromStatus() string { if x != nil { return x.FromStatus } return "" } func (x *StatusHistoryEntry) GetToStatus() string { if x != nil { return x.ToStatus } return "" } func (x *StatusHistoryEntry) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *StatusHistoryEntry) GetUserName() string { if x != nil { return x.UserName } return "" } func (x *StatusHistoryEntry) GetGroupId() string { if x != nil { return x.GroupId } return "" } func (x *StatusHistoryEntry) GetGroupName() string { if x != nil { return x.GroupName } return "" } func (x *StatusHistoryEntry) GetDate() *timestamppb.Timestamp { if x != nil { return x.Date } return nil } func (x *StatusHistoryEntry) GetComment() string { if x != nil { return x.Comment } return "" } var File_vehicles_proto protoreflect.FileDescriptor const file_vehicles_proto_rawDesc = "" + "\n" + "\x0evehicles.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x01\n" + "\aVehicle\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" + "\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x12\n" + "\x04type\x18\x03 \x01(\tR\x04type\x12&\n" + "\x0eadministrators\x18\x04 \x03(\tR\x0eadministrators\x12+\n" + "\x04data\x18\x05 \x01(\v2\x17.google.protobuf.StructR\x04data\x12$\n" + "\bbookings\x18\x06 \x03(\v2\b.BookingR\bbookings\"\x93\x04\n" + "\aBooking\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" + "\tvehicleid\x18\x02 \x01(\tR\tvehicleid\x12\x16\n" + "\x06driver\x18\x03 \x01(\tR\x06driver\x128\n" + "\tstartdate\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tstartdate\x124\n" + "\aenddate\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\aenddate\x12D\n" + "\x0funavailablefrom\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\x0funavailablefrom\x12@\n" + "\runavailableto\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\runavailableto\x12+\n" + "\x04data\x18\b \x01(\v2\x17.google.protobuf.StructR\x04data\x12\"\n" + "\avehicle\x18\t \x01(\v2\b.VehicleR\avehicle\x12\x18\n" + "\adeleted\x18\n" + " \x01(\bR\adeleted\x12#\n" + "\rmanual_status\x18\v \x01(\tR\fmanualStatus\x12:\n" + "\x0estatus_history\x18\f \x03(\v2\x13.StatusHistoryEntryR\rstatusHistory\"\x8c\x02\n" + "\x12StatusHistoryEntry\x12\x1f\n" + "\vfrom_status\x18\x01 \x01(\tR\n" + "fromStatus\x12\x1b\n" + "\tto_status\x18\x02 \x01(\tR\btoStatus\x12\x17\n" + "\auser_id\x18\x03 \x01(\tR\x06userId\x12\x1b\n" + "\tuser_name\x18\x04 \x01(\tR\buserName\x12\x19\n" + "\bgroup_id\x18\x05 \x01(\tR\agroupId\x12\x1d\n" + "\n" + "group_name\x18\x06 \x01(\tR\tgroupName\x12.\n" + "\x04date\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x04date\x12\x18\n" + "\acomment\x18\b \x01(\tR\acommentB.Z,git.coopgo.io/coopgo-platform/fleets/grpcapib\x06proto3" var ( file_vehicles_proto_rawDescOnce sync.Once file_vehicles_proto_rawDescData []byte ) func file_vehicles_proto_rawDescGZIP() []byte { file_vehicles_proto_rawDescOnce.Do(func() { file_vehicles_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vehicles_proto_rawDesc), len(file_vehicles_proto_rawDesc))) }) return file_vehicles_proto_rawDescData } var file_vehicles_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_vehicles_proto_goTypes = []any{ (*Vehicle)(nil), // 0: Vehicle (*Booking)(nil), // 1: Booking (*StatusHistoryEntry)(nil), // 2: StatusHistoryEntry (*structpb.Struct)(nil), // 3: google.protobuf.Struct (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp } var file_vehicles_proto_depIdxs = []int32{ 3, // 0: Vehicle.data:type_name -> google.protobuf.Struct 1, // 1: Vehicle.bookings:type_name -> Booking 4, // 2: Booking.startdate:type_name -> google.protobuf.Timestamp 4, // 3: Booking.enddate:type_name -> google.protobuf.Timestamp 4, // 4: Booking.unavailablefrom:type_name -> google.protobuf.Timestamp 4, // 5: Booking.unavailableto:type_name -> google.protobuf.Timestamp 3, // 6: Booking.data:type_name -> google.protobuf.Struct 0, // 7: Booking.vehicle:type_name -> Vehicle 2, // 8: Booking.status_history:type_name -> StatusHistoryEntry 4, // 9: StatusHistoryEntry.date:type_name -> google.protobuf.Timestamp 10, // [10:10] is the sub-list for method output_type 10, // [10:10] is the sub-list for method input_type 10, // [10:10] is the sub-list for extension type_name 10, // [10:10] is the sub-list for extension extendee 0, // [0:10] 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 } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_vehicles_proto_rawDesc), len(file_vehicles_proto_rawDesc)), NumEnums: 0, NumMessages: 3, 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_goTypes = nil file_vehicles_proto_depIdxs = nil }