Documentation
¶
Index ¶
- Variables
- func DispatchPointMatchFn(dspId int64) func(p orb.Pointer) bool
- type Dispatch
- func (x *Dispatch) ClearAttributes()
- func (x *Dispatch) ClearCreatedAt()
- func (x *Dispatch) ClearCreator()
- func (x *Dispatch) ClearCreatorId()
- func (x *Dispatch) ClearDescription()
- func (x *Dispatch) ClearJobs()
- func (x *Dispatch) ClearPostal()
- func (x *Dispatch) ClearReferences()
- func (x *Dispatch) ClearStatus()
- func (x *Dispatch) ClearUpdatedAt()
- func (x *Dispatch) GetAnon() bool
- func (x *Dispatch) GetAttributes() *DispatchAttributes
- func (x *Dispatch) GetCreatedAt() *timestamp.Timestamp
- func (x *Dispatch) GetCreator() *users.User
- func (x *Dispatch) GetCreatorId() int32
- func (x *Dispatch) GetDescription() string
- func (x *Dispatch) GetId() int64
- func (x *Dispatch) GetJob() stringdeprecated
- func (x *Dispatch) GetJobs() *centrum.JobList
- func (x *Dispatch) GetMessage() string
- func (x *Dispatch) GetPostal() string
- func (x *Dispatch) GetReferences() *DispatchReferences
- func (x *Dispatch) GetStatus() *DispatchStatus
- func (x *Dispatch) GetUnits() []*DispatchAssignment
- func (x *Dispatch) GetUpdatedAt() *timestamp.Timestamp
- func (x *Dispatch) GetX() float64
- func (x *Dispatch) GetY() float64
- func (x *Dispatch) HasAttributes() bool
- func (x *Dispatch) HasCreatedAt() bool
- func (x *Dispatch) HasCreator() bool
- func (x *Dispatch) HasCreatorId() bool
- func (x *Dispatch) HasDescription() bool
- func (x *Dispatch) HasJobs() bool
- func (x *Dispatch) HasPostal() bool
- func (x *Dispatch) HasReferences() bool
- func (x *Dispatch) HasStatus() bool
- func (x *Dispatch) HasUpdatedAt() bool
- func (x *Dispatch) Merge(in *Dispatch) *Dispatch
- func (x *Dispatch) Point() orb.Point
- func (*Dispatch) ProtoMessage()
- func (x *Dispatch) ProtoReflect() protoreflect.Message
- func (x *Dispatch) Reset()
- func (m *Dispatch) Sanitize() error
- func (x *Dispatch) SetAnon(v bool)
- func (x *Dispatch) SetAttributes(v *DispatchAttributes)
- func (x *Dispatch) SetCreatedAt(v *timestamp.Timestamp)
- func (x *Dispatch) SetCreator(v *users.User)
- func (x *Dispatch) SetCreatorId(v int32)
- func (x *Dispatch) SetDescription(v string)
- func (x *Dispatch) SetId(v int64)
- func (x *Dispatch) SetJob(v string)deprecated
- func (x *Dispatch) SetJobs(v *centrum.JobList)
- func (x *Dispatch) SetMessage(v string)
- func (x *Dispatch) SetPostal(v string)
- func (x *Dispatch) SetReferences(v *DispatchReferences)
- func (x *Dispatch) SetStatus(v *DispatchStatus)
- func (x *Dispatch) SetUnits(v []*DispatchAssignment)
- func (x *Dispatch) SetUpdatedAt(v *timestamp.Timestamp)
- func (x *Dispatch) SetX(v float64)
- func (x *Dispatch) SetY(v float64)
- func (x *Dispatch) String() string
- type DispatchAssignment
- func (x *DispatchAssignment) ClearCreatedAt()
- func (x *DispatchAssignment) ClearExpiresAt()
- func (x *DispatchAssignment) ClearUnit()
- func (x *DispatchAssignment) GetCreatedAt() *timestamp.Timestamp
- func (x *DispatchAssignment) GetDispatchId() int64
- func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp
- func (x *DispatchAssignment) GetUnit() *units.Unit
- func (x *DispatchAssignment) GetUnitId() int64
- func (x *DispatchAssignment) HasCreatedAt() bool
- func (x *DispatchAssignment) HasExpiresAt() bool
- func (x *DispatchAssignment) HasUnit() bool
- func (*DispatchAssignment) ProtoMessage()
- func (x *DispatchAssignment) ProtoReflect() protoreflect.Message
- func (x *DispatchAssignment) Reset()
- func (m *DispatchAssignment) Sanitize() error
- func (x *DispatchAssignment) SetCreatedAt(v *timestamp.Timestamp)
- func (x *DispatchAssignment) SetDispatchId(v int64)
- func (x *DispatchAssignment) SetExpiresAt(v *timestamp.Timestamp)
- func (x *DispatchAssignment) SetUnit(v *units.Unit)
- func (x *DispatchAssignment) SetUnitId(v int64)
- func (x *DispatchAssignment) String() string
- type DispatchAssignment_builder
- type DispatchAssignments
- func (x *DispatchAssignments) GetDispatchId() int64
- func (x *DispatchAssignments) GetJob() string
- func (x *DispatchAssignments) GetUnits() []*DispatchAssignment
- func (*DispatchAssignments) ProtoMessage()
- func (x *DispatchAssignments) ProtoReflect() protoreflect.Message
- func (x *DispatchAssignments) Reset()
- func (m *DispatchAssignments) Sanitize() error
- func (x *DispatchAssignments) SetDispatchId(v int64)
- func (x *DispatchAssignments) SetJob(v string)
- func (x *DispatchAssignments) SetUnits(v []*DispatchAssignment)
- func (x *DispatchAssignments) String() string
- type DispatchAssignments_builder
- type DispatchAttribute
- type DispatchAttributes
- func (x *DispatchAttributes) Add(attribute DispatchAttribute) bool
- func (x *DispatchAttributes) GetList() []DispatchAttribute
- func (x *DispatchAttributes) Has(attribute DispatchAttribute) bool
- func (*DispatchAttributes) ProtoMessage()
- func (x *DispatchAttributes) ProtoReflect() protoreflect.Message
- func (x *DispatchAttributes) Remove(attribute DispatchAttribute) bool
- func (x *DispatchAttributes) Reset()
- func (m *DispatchAttributes) Sanitize() error
- func (x *DispatchAttributes) Scan(value any) error
- func (x *DispatchAttributes) SetList(v []DispatchAttribute)
- func (x *DispatchAttributes) String() string
- func (x *DispatchAttributes) Value() (driver.Value, error)
- type DispatchAttributes_builder
- type DispatchReference
- func (x *DispatchReference) GetReferenceType() DispatchReferenceType
- func (x *DispatchReference) GetTargetDispatchId() int64
- func (*DispatchReference) ProtoMessage()
- func (x *DispatchReference) ProtoReflect() protoreflect.Message
- func (x *DispatchReference) Reset()
- func (m *DispatchReference) Sanitize() error
- func (x *DispatchReference) SetReferenceType(v DispatchReferenceType)
- func (x *DispatchReference) SetTargetDispatchId(v int64)
- func (x *DispatchReference) String() string
- type DispatchReferenceType
- type DispatchReference_builder
- type DispatchReferences
- func (x *DispatchReferences) Add(ref *DispatchReference) bool
- func (x *DispatchReferences) GetReferences() []*DispatchReference
- func (x *DispatchReferences) Has(dspId int64) bool
- func (*DispatchReferences) ProtoMessage()
- func (x *DispatchReferences) ProtoReflect() protoreflect.Message
- func (x *DispatchReferences) Remove(dspId int64) bool
- func (x *DispatchReferences) Reset()
- func (m *DispatchReferences) Sanitize() error
- func (x *DispatchReferences) Scan(value any) error
- func (x *DispatchReferences) SetReferences(v []*DispatchReference)
- func (x *DispatchReferences) String() string
- func (x *DispatchReferences) Value() (driver.Value, error)
- type DispatchReferences_builder
- type DispatchStatus
- func (x *DispatchStatus) ClearCode()
- func (x *DispatchStatus) ClearCreatedAt()
- func (x *DispatchStatus) ClearCreatorJob()
- func (x *DispatchStatus) ClearPostal()
- func (x *DispatchStatus) ClearReason()
- func (x *DispatchStatus) ClearUnit()
- func (x *DispatchStatus) ClearUnitId()
- func (x *DispatchStatus) ClearUser()
- func (x *DispatchStatus) ClearUserId()
- func (x *DispatchStatus) ClearX()
- func (x *DispatchStatus) ClearY()
- func (x *DispatchStatus) GetCode() string
- func (x *DispatchStatus) GetCreatedAt() *timestamp.Timestamp
- func (x *DispatchStatus) GetCreatorJob() string
- func (x *DispatchStatus) GetDispatchId() int64
- func (x *DispatchStatus) GetId() int64
- func (x *DispatchStatus) GetPostal() string
- func (x *DispatchStatus) GetReason() string
- func (x *DispatchStatus) GetStatus() StatusDispatch
- func (x *DispatchStatus) GetUnit() *units.Unit
- func (x *DispatchStatus) GetUnitId() int64
- func (x *DispatchStatus) GetUser() *colleagues.Colleague
- func (x *DispatchStatus) GetUserId() int32
- func (x *DispatchStatus) GetX() float64
- func (x *DispatchStatus) GetY() float64
- func (x *DispatchStatus) HasCode() bool
- func (x *DispatchStatus) HasCreatedAt() bool
- func (x *DispatchStatus) HasCreatorJob() bool
- func (x *DispatchStatus) HasPostal() bool
- func (x *DispatchStatus) HasReason() bool
- func (x *DispatchStatus) HasUnit() bool
- func (x *DispatchStatus) HasUnitId() bool
- func (x *DispatchStatus) HasUser() bool
- func (x *DispatchStatus) HasUserId() bool
- func (x *DispatchStatus) HasX() bool
- func (x *DispatchStatus) HasY() bool
- func (x *DispatchStatus) Point() orb.Point
- func (*DispatchStatus) ProtoMessage()
- func (x *DispatchStatus) ProtoReflect() protoreflect.Message
- func (x *DispatchStatus) Reset()
- func (m *DispatchStatus) Sanitize() error
- func (x *DispatchStatus) SetCode(v string)
- func (x *DispatchStatus) SetCreatedAt(v *timestamp.Timestamp)
- func (x *DispatchStatus) SetCreatorJob(v string)
- func (x *DispatchStatus) SetDispatchId(v int64)
- func (x *DispatchStatus) SetId(v int64)
- func (x *DispatchStatus) SetPostal(v string)
- func (x *DispatchStatus) SetReason(v string)
- func (x *DispatchStatus) SetStatus(v StatusDispatch)
- func (x *DispatchStatus) SetUnit(v *units.Unit)
- func (x *DispatchStatus) SetUnitId(v int64)
- func (x *DispatchStatus) SetUser(v *colleagues.Colleague)
- func (x *DispatchStatus) SetUserId(v int32)
- func (x *DispatchStatus) SetX(v float64)
- func (x *DispatchStatus) SetY(v float64)
- func (x *DispatchStatus) String() string
- type DispatchStatus_builder
- type Dispatch_builder
- type StatusDispatch
- type TakeDispatchResp
Constants ¶
This section is empty.
Variables ¶
var ( StatusDispatch_name = map[int32]string{ 0: "STATUS_DISPATCH_UNSPECIFIED", 1: "STATUS_DISPATCH_NEW", 2: "STATUS_DISPATCH_UNASSIGNED", 3: "STATUS_DISPATCH_UPDATED", 4: "STATUS_DISPATCH_UNIT_ASSIGNED", 5: "STATUS_DISPATCH_UNIT_UNASSIGNED", 6: "STATUS_DISPATCH_UNIT_ACCEPTED", 7: "STATUS_DISPATCH_UNIT_DECLINED", 8: "STATUS_DISPATCH_EN_ROUTE", 9: "STATUS_DISPATCH_ON_SCENE", 10: "STATUS_DISPATCH_NEED_ASSISTANCE", 11: "STATUS_DISPATCH_COMPLETED", 12: "STATUS_DISPATCH_CANCELLED", 13: "STATUS_DISPATCH_ARCHIVED", 14: "STATUS_DISPATCH_DELETED", } StatusDispatch_value = map[string]int32{ "STATUS_DISPATCH_UNSPECIFIED": 0, "STATUS_DISPATCH_NEW": 1, "STATUS_DISPATCH_UNASSIGNED": 2, "STATUS_DISPATCH_UPDATED": 3, "STATUS_DISPATCH_UNIT_ASSIGNED": 4, "STATUS_DISPATCH_UNIT_UNASSIGNED": 5, "STATUS_DISPATCH_UNIT_ACCEPTED": 6, "STATUS_DISPATCH_UNIT_DECLINED": 7, "STATUS_DISPATCH_EN_ROUTE": 8, "STATUS_DISPATCH_ON_SCENE": 9, "STATUS_DISPATCH_NEED_ASSISTANCE": 10, "STATUS_DISPATCH_COMPLETED": 11, "STATUS_DISPATCH_CANCELLED": 12, "STATUS_DISPATCH_ARCHIVED": 13, "STATUS_DISPATCH_DELETED": 14, } )
Enum value maps for StatusDispatch.
var ( TakeDispatchResp_name = map[int32]string{ 0: "TAKE_DISPATCH_RESP_UNSPECIFIED", 1: "TAKE_DISPATCH_RESP_TIMEOUT", 2: "TAKE_DISPATCH_RESP_ACCEPTED", 3: "TAKE_DISPATCH_RESP_DECLINED", } TakeDispatchResp_value = map[string]int32{ "TAKE_DISPATCH_RESP_UNSPECIFIED": 0, "TAKE_DISPATCH_RESP_TIMEOUT": 1, "TAKE_DISPATCH_RESP_ACCEPTED": 2, "TAKE_DISPATCH_RESP_DECLINED": 3, } )
Enum value maps for TakeDispatchResp.
var ( DispatchReferenceType_name = map[int32]string{ 0: "DISPATCH_REFERENCE_TYPE_UNSPECIFIED", 1: "DISPATCH_REFERENCE_TYPE_REFERENCED", 2: "DISPATCH_REFERENCE_TYPE_DUPLICATED_BY", 3: "DISPATCH_REFERENCE_TYPE_DUPLICATE_OF", } DispatchReferenceType_value = map[string]int32{ "DISPATCH_REFERENCE_TYPE_UNSPECIFIED": 0, "DISPATCH_REFERENCE_TYPE_REFERENCED": 1, "DISPATCH_REFERENCE_TYPE_DUPLICATED_BY": 2, "DISPATCH_REFERENCE_TYPE_DUPLICATE_OF": 3, } )
Enum value maps for DispatchReferenceType.
var ( DispatchAttribute_name = map[int32]string{ 0: "DISPATCH_ATTRIBUTE_UNSPECIFIED", 1: "DISPATCH_ATTRIBUTE_MULTIPLE", 2: "DISPATCH_ATTRIBUTE_DUPLICATE", 3: "DISPATCH_ATTRIBUTE_TOO_OLD", 4: "DISPATCH_ATTRIBUTE_AUTOMATIC", } DispatchAttribute_value = map[string]int32{ "DISPATCH_ATTRIBUTE_UNSPECIFIED": 0, "DISPATCH_ATTRIBUTE_MULTIPLE": 1, "DISPATCH_ATTRIBUTE_DUPLICATE": 2, "DISPATCH_ATTRIBUTE_TOO_OLD": 3, "DISPATCH_ATTRIBUTE_AUTOMATIC": 4, } )
Enum value maps for DispatchAttribute.
var File_resources_centrum_dispatches_dispatches_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Dispatch ¶
type Dispatch struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id" sql:"primary_key"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
// Deprecated: Marked as deprecated in resources/centrum/dispatches/dispatches.proto.
Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
Jobs *centrum.JobList `protobuf:"bytes,18,opt,name=jobs,proto3" json:"jobs,omitempty"`
Status *DispatchStatus `protobuf:"bytes,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
Attributes *DispatchAttributes `protobuf:"bytes,9,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"`
X float64 `protobuf:"fixed64,10,opt,name=x,proto3" json:"x,omitempty"`
Y float64 `protobuf:"fixed64,11,opt,name=y,proto3" json:"y,omitempty"`
Postal *string `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
Anon bool `protobuf:"varint,13,opt,name=anon,proto3" json:"anon,omitempty"`
CreatorId *int32 `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"`
Creator *users.User `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty"`
Units []*DispatchAssignment `protobuf:"bytes,16,rep,name=units,proto3" json:"units,omitempty"`
References *DispatchReferences `protobuf:"bytes,17,opt,name=references,proto3,oneof" json:"references,omitempty"`
// contains filtered or unexported fields
}
func (*Dispatch) ClearAttributes ¶
func (x *Dispatch) ClearAttributes()
func (*Dispatch) ClearCreatedAt ¶
func (x *Dispatch) ClearCreatedAt()
func (*Dispatch) ClearCreator ¶
func (x *Dispatch) ClearCreator()
func (*Dispatch) ClearCreatorId ¶
func (x *Dispatch) ClearCreatorId()
func (*Dispatch) ClearDescription ¶
func (x *Dispatch) ClearDescription()
func (*Dispatch) ClearPostal ¶
func (x *Dispatch) ClearPostal()
func (*Dispatch) ClearReferences ¶
func (x *Dispatch) ClearReferences()
func (*Dispatch) ClearStatus ¶
func (x *Dispatch) ClearStatus()
func (*Dispatch) ClearUpdatedAt ¶
func (x *Dispatch) ClearUpdatedAt()
func (*Dispatch) GetAttributes ¶
func (x *Dispatch) GetAttributes() *DispatchAttributes
func (*Dispatch) GetCreatedAt ¶
func (*Dispatch) GetCreator ¶
func (*Dispatch) GetCreatorId ¶
func (*Dispatch) GetDescription ¶
func (*Dispatch) GetMessage ¶
func (*Dispatch) GetReferences ¶
func (x *Dispatch) GetReferences() *DispatchReferences
func (*Dispatch) GetStatus ¶
func (x *Dispatch) GetStatus() *DispatchStatus
func (*Dispatch) GetUnits ¶
func (x *Dispatch) GetUnits() []*DispatchAssignment
func (*Dispatch) GetUpdatedAt ¶
func (*Dispatch) HasAttributes ¶
func (*Dispatch) HasCreatedAt ¶
func (*Dispatch) HasCreator ¶
func (*Dispatch) HasCreatorId ¶
func (*Dispatch) HasDescription ¶
func (*Dispatch) HasReferences ¶
func (*Dispatch) HasUpdatedAt ¶
func (*Dispatch) ProtoMessage ¶
func (*Dispatch) ProtoMessage()
func (*Dispatch) ProtoReflect ¶
func (x *Dispatch) ProtoReflect() protoreflect.Message
func (*Dispatch) Sanitize ¶
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*Dispatch) SetAttributes ¶
func (x *Dispatch) SetAttributes(v *DispatchAttributes)
func (*Dispatch) SetCreatedAt ¶
func (*Dispatch) SetCreator ¶
func (*Dispatch) SetCreatorId ¶
func (*Dispatch) SetDescription ¶
func (*Dispatch) SetMessage ¶
func (*Dispatch) SetReferences ¶
func (x *Dispatch) SetReferences(v *DispatchReferences)
func (*Dispatch) SetStatus ¶
func (x *Dispatch) SetStatus(v *DispatchStatus)
func (*Dispatch) SetUnits ¶
func (x *Dispatch) SetUnits(v []*DispatchAssignment)
func (*Dispatch) SetUpdatedAt ¶
type DispatchAssignment ¶
type DispatchAssignment struct {
DispatchId int64 `` /* 130-byte string literal not displayed */
UnitId int64 `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" alias:"unit_id" sql:"primary_key"`
Unit *units.Unit `protobuf:"bytes,3,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
ExpiresAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
// contains filtered or unexported fields
}
func (*DispatchAssignment) ClearCreatedAt ¶
func (x *DispatchAssignment) ClearCreatedAt()
func (*DispatchAssignment) ClearExpiresAt ¶
func (x *DispatchAssignment) ClearExpiresAt()
func (*DispatchAssignment) ClearUnit ¶
func (x *DispatchAssignment) ClearUnit()
func (*DispatchAssignment) GetCreatedAt ¶
func (x *DispatchAssignment) GetCreatedAt() *timestamp.Timestamp
func (*DispatchAssignment) GetDispatchId ¶
func (x *DispatchAssignment) GetDispatchId() int64
func (*DispatchAssignment) GetExpiresAt ¶
func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp
func (*DispatchAssignment) GetUnit ¶
func (x *DispatchAssignment) GetUnit() *units.Unit
func (*DispatchAssignment) GetUnitId ¶
func (x *DispatchAssignment) GetUnitId() int64
func (*DispatchAssignment) HasCreatedAt ¶
func (x *DispatchAssignment) HasCreatedAt() bool
func (*DispatchAssignment) HasExpiresAt ¶
func (x *DispatchAssignment) HasExpiresAt() bool
func (*DispatchAssignment) HasUnit ¶
func (x *DispatchAssignment) HasUnit() bool
func (*DispatchAssignment) ProtoMessage ¶
func (*DispatchAssignment) ProtoMessage()
func (*DispatchAssignment) ProtoReflect ¶
func (x *DispatchAssignment) ProtoReflect() protoreflect.Message
func (*DispatchAssignment) Reset ¶
func (x *DispatchAssignment) Reset()
func (*DispatchAssignment) Sanitize ¶
func (m *DispatchAssignment) Sanitize() error
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*DispatchAssignment) SetCreatedAt ¶
func (x *DispatchAssignment) SetCreatedAt(v *timestamp.Timestamp)
func (*DispatchAssignment) SetDispatchId ¶
func (x *DispatchAssignment) SetDispatchId(v int64)
func (*DispatchAssignment) SetExpiresAt ¶
func (x *DispatchAssignment) SetExpiresAt(v *timestamp.Timestamp)
func (*DispatchAssignment) SetUnit ¶
func (x *DispatchAssignment) SetUnit(v *units.Unit)
func (*DispatchAssignment) SetUnitId ¶
func (x *DispatchAssignment) SetUnitId(v int64)
func (*DispatchAssignment) String ¶
func (x *DispatchAssignment) String() string
type DispatchAssignment_builder ¶
type DispatchAssignment_builder struct {
DispatchId int64
UnitId int64
Unit *units.Unit
CreatedAt *timestamp.Timestamp
ExpiresAt *timestamp.Timestamp
// contains filtered or unexported fields
}
func (DispatchAssignment_builder) Build ¶
func (b0 DispatchAssignment_builder) Build() *DispatchAssignment
type DispatchAssignments ¶
type DispatchAssignments struct {
DispatchId int64 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
Units []*DispatchAssignment `protobuf:"bytes,3,rep,name=units,proto3" json:"units,omitempty"`
// contains filtered or unexported fields
}
func (*DispatchAssignments) GetDispatchId ¶
func (x *DispatchAssignments) GetDispatchId() int64
func (*DispatchAssignments) GetJob ¶
func (x *DispatchAssignments) GetJob() string
func (*DispatchAssignments) GetUnits ¶
func (x *DispatchAssignments) GetUnits() []*DispatchAssignment
func (*DispatchAssignments) ProtoMessage ¶
func (*DispatchAssignments) ProtoMessage()
func (*DispatchAssignments) ProtoReflect ¶
func (x *DispatchAssignments) ProtoReflect() protoreflect.Message
func (*DispatchAssignments) Reset ¶
func (x *DispatchAssignments) Reset()
func (*DispatchAssignments) Sanitize ¶
func (m *DispatchAssignments) Sanitize() error
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*DispatchAssignments) SetDispatchId ¶
func (x *DispatchAssignments) SetDispatchId(v int64)
func (*DispatchAssignments) SetJob ¶
func (x *DispatchAssignments) SetJob(v string)
func (*DispatchAssignments) SetUnits ¶
func (x *DispatchAssignments) SetUnits(v []*DispatchAssignment)
func (*DispatchAssignments) String ¶
func (x *DispatchAssignments) String() string
type DispatchAssignments_builder ¶
type DispatchAssignments_builder struct {
DispatchId int64
Job string
Units []*DispatchAssignment
// contains filtered or unexported fields
}
func (DispatchAssignments_builder) Build ¶
func (b0 DispatchAssignments_builder) Build() *DispatchAssignments
type DispatchAttribute ¶
type DispatchAttribute int32
const ( DispatchAttribute_DISPATCH_ATTRIBUTE_UNSPECIFIED DispatchAttribute = 0 DispatchAttribute_DISPATCH_ATTRIBUTE_MULTIPLE DispatchAttribute = 1 DispatchAttribute_DISPATCH_ATTRIBUTE_DUPLICATE DispatchAttribute = 2 DispatchAttribute_DISPATCH_ATTRIBUTE_TOO_OLD DispatchAttribute = 3 DispatchAttribute_DISPATCH_ATTRIBUTE_AUTOMATIC DispatchAttribute = 4 )
func (DispatchAttribute) Descriptor ¶
func (DispatchAttribute) Descriptor() protoreflect.EnumDescriptor
func (DispatchAttribute) Enum ¶
func (x DispatchAttribute) Enum() *DispatchAttribute
func (DispatchAttribute) Number ¶
func (x DispatchAttribute) Number() protoreflect.EnumNumber
func (DispatchAttribute) String ¶
func (x DispatchAttribute) String() string
func (DispatchAttribute) Type ¶
func (DispatchAttribute) Type() protoreflect.EnumType
type DispatchAttributes ¶
type DispatchAttributes struct {
List []DispatchAttribute `protobuf:"varint,1,rep,packed,name=list,proto3,enum=resources.centrum.dispatches.DispatchAttribute" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*DispatchAttributes) Add ¶
func (x *DispatchAttributes) Add(attribute DispatchAttribute) bool
func (*DispatchAttributes) GetList ¶
func (x *DispatchAttributes) GetList() []DispatchAttribute
func (*DispatchAttributes) Has ¶
func (x *DispatchAttributes) Has(attribute DispatchAttribute) bool
func (*DispatchAttributes) ProtoMessage ¶
func (*DispatchAttributes) ProtoMessage()
func (*DispatchAttributes) ProtoReflect ¶
func (x *DispatchAttributes) ProtoReflect() protoreflect.Message
func (*DispatchAttributes) Remove ¶
func (x *DispatchAttributes) Remove(attribute DispatchAttribute) bool
func (*DispatchAttributes) Reset ¶
func (x *DispatchAttributes) Reset()
func (*DispatchAttributes) Sanitize ¶
func (m *DispatchAttributes) Sanitize() error
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*DispatchAttributes) Scan ¶
func (x *DispatchAttributes) Scan(value any) error
Scan implements driver.Valuer for protobuf DispatchAttributes.
func (*DispatchAttributes) SetList ¶
func (x *DispatchAttributes) SetList(v []DispatchAttribute)
func (*DispatchAttributes) String ¶
func (x *DispatchAttributes) String() string
type DispatchAttributes_builder ¶
type DispatchAttributes_builder struct {
List []DispatchAttribute
// contains filtered or unexported fields
}
func (DispatchAttributes_builder) Build ¶
func (b0 DispatchAttributes_builder) Build() *DispatchAttributes
type DispatchReference ¶
type DispatchReference struct {
TargetDispatchId int64 `protobuf:"varint,1,opt,name=target_dispatch_id,json=targetDispatchId,proto3" json:"target_dispatch_id,omitempty"`
ReferenceType DispatchReferenceType `` /* 157-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DispatchReference) GetReferenceType ¶
func (x *DispatchReference) GetReferenceType() DispatchReferenceType
func (*DispatchReference) GetTargetDispatchId ¶
func (x *DispatchReference) GetTargetDispatchId() int64
func (*DispatchReference) ProtoMessage ¶
func (*DispatchReference) ProtoMessage()
func (*DispatchReference) ProtoReflect ¶
func (x *DispatchReference) ProtoReflect() protoreflect.Message
func (*DispatchReference) Reset ¶
func (x *DispatchReference) Reset()
func (*DispatchReference) Sanitize ¶
func (m *DispatchReference) Sanitize() error
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*DispatchReference) SetReferenceType ¶
func (x *DispatchReference) SetReferenceType(v DispatchReferenceType)
func (*DispatchReference) SetTargetDispatchId ¶
func (x *DispatchReference) SetTargetDispatchId(v int64)
func (*DispatchReference) String ¶
func (x *DispatchReference) String() string
type DispatchReferenceType ¶
type DispatchReferenceType int32
const ( DispatchReferenceType_DISPATCH_REFERENCE_TYPE_UNSPECIFIED DispatchReferenceType = 0 DispatchReferenceType_DISPATCH_REFERENCE_TYPE_REFERENCED DispatchReferenceType = 1 DispatchReferenceType_DISPATCH_REFERENCE_TYPE_DUPLICATED_BY DispatchReferenceType = 2 DispatchReferenceType_DISPATCH_REFERENCE_TYPE_DUPLICATE_OF DispatchReferenceType = 3 )
func (DispatchReferenceType) Descriptor ¶
func (DispatchReferenceType) Descriptor() protoreflect.EnumDescriptor
func (DispatchReferenceType) Enum ¶
func (x DispatchReferenceType) Enum() *DispatchReferenceType
func (DispatchReferenceType) Number ¶
func (x DispatchReferenceType) Number() protoreflect.EnumNumber
func (DispatchReferenceType) String ¶
func (x DispatchReferenceType) String() string
func (DispatchReferenceType) Type ¶
func (DispatchReferenceType) Type() protoreflect.EnumType
type DispatchReference_builder ¶
type DispatchReference_builder struct {
TargetDispatchId int64
ReferenceType DispatchReferenceType
// contains filtered or unexported fields
}
func (DispatchReference_builder) Build ¶
func (b0 DispatchReference_builder) Build() *DispatchReference
type DispatchReferences ¶
type DispatchReferences struct {
References []*DispatchReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
// contains filtered or unexported fields
}
func (*DispatchReferences) Add ¶
func (x *DispatchReferences) Add(ref *DispatchReference) bool
func (*DispatchReferences) GetReferences ¶
func (x *DispatchReferences) GetReferences() []*DispatchReference
func (*DispatchReferences) Has ¶
func (x *DispatchReferences) Has(dspId int64) bool
func (*DispatchReferences) ProtoMessage ¶
func (*DispatchReferences) ProtoMessage()
func (*DispatchReferences) ProtoReflect ¶
func (x *DispatchReferences) ProtoReflect() protoreflect.Message
func (*DispatchReferences) Remove ¶
func (x *DispatchReferences) Remove(dspId int64) bool
func (*DispatchReferences) Reset ¶
func (x *DispatchReferences) Reset()
func (*DispatchReferences) Sanitize ¶
func (m *DispatchReferences) Sanitize() error
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*DispatchReferences) Scan ¶
func (x *DispatchReferences) Scan(value any) error
Scan implements driver.Valuer for protobuf DispatchReferences.
func (*DispatchReferences) SetReferences ¶
func (x *DispatchReferences) SetReferences(v []*DispatchReference)
func (*DispatchReferences) String ¶
func (x *DispatchReferences) String() string
type DispatchReferences_builder ¶
type DispatchReferences_builder struct {
References []*DispatchReference
// contains filtered or unexported fields
}
func (DispatchReferences_builder) Build ¶
func (b0 DispatchReferences_builder) Build() *DispatchReferences
type DispatchStatus ¶
type DispatchStatus struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id" sql:"primary_key"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
DispatchId int64 `protobuf:"varint,3,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
UnitId *int64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"`
Unit *units.Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
Status StatusDispatch `protobuf:"varint,6,opt,name=status,proto3,enum=resources.centrum.dispatches.StatusDispatch" json:"status,omitempty"`
Reason *string `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
Code *string `protobuf:"bytes,8,opt,name=code,proto3,oneof" json:"code,omitempty"`
UserId *int32 `protobuf:"varint,9,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
User *colleagues.Colleague `protobuf:"bytes,10,opt,name=user,proto3,oneof" json:"user,omitempty"`
X *float64 `protobuf:"fixed64,11,opt,name=x,proto3,oneof" json:"x,omitempty"`
Y *float64 `protobuf:"fixed64,12,opt,name=y,proto3,oneof" json:"y,omitempty"`
Postal *string `protobuf:"bytes,13,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
CreatorJob *string `protobuf:"bytes,14,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"`
// contains filtered or unexported fields
}
func (*DispatchStatus) ClearCode ¶
func (x *DispatchStatus) ClearCode()
func (*DispatchStatus) ClearCreatedAt ¶
func (x *DispatchStatus) ClearCreatedAt()
func (*DispatchStatus) ClearCreatorJob ¶
func (x *DispatchStatus) ClearCreatorJob()
func (*DispatchStatus) ClearPostal ¶
func (x *DispatchStatus) ClearPostal()
func (*DispatchStatus) ClearReason ¶
func (x *DispatchStatus) ClearReason()
func (*DispatchStatus) ClearUnit ¶
func (x *DispatchStatus) ClearUnit()
func (*DispatchStatus) ClearUnitId ¶
func (x *DispatchStatus) ClearUnitId()
func (*DispatchStatus) ClearUser ¶
func (x *DispatchStatus) ClearUser()
func (*DispatchStatus) ClearUserId ¶
func (x *DispatchStatus) ClearUserId()
func (*DispatchStatus) ClearX ¶
func (x *DispatchStatus) ClearX()
func (*DispatchStatus) ClearY ¶
func (x *DispatchStatus) ClearY()
func (*DispatchStatus) GetCode ¶
func (x *DispatchStatus) GetCode() string
func (*DispatchStatus) GetCreatedAt ¶
func (x *DispatchStatus) GetCreatedAt() *timestamp.Timestamp
func (*DispatchStatus) GetCreatorJob ¶
func (x *DispatchStatus) GetCreatorJob() string
func (*DispatchStatus) GetDispatchId ¶
func (x *DispatchStatus) GetDispatchId() int64
func (*DispatchStatus) GetId ¶
func (x *DispatchStatus) GetId() int64
func (*DispatchStatus) GetPostal ¶
func (x *DispatchStatus) GetPostal() string
func (*DispatchStatus) GetReason ¶
func (x *DispatchStatus) GetReason() string
func (*DispatchStatus) GetStatus ¶
func (x *DispatchStatus) GetStatus() StatusDispatch
func (*DispatchStatus) GetUnit ¶
func (x *DispatchStatus) GetUnit() *units.Unit
func (*DispatchStatus) GetUnitId ¶
func (x *DispatchStatus) GetUnitId() int64
func (*DispatchStatus) GetUser ¶
func (x *DispatchStatus) GetUser() *colleagues.Colleague
func (*DispatchStatus) GetUserId ¶
func (x *DispatchStatus) GetUserId() int32
func (*DispatchStatus) GetX ¶
func (x *DispatchStatus) GetX() float64
func (*DispatchStatus) GetY ¶
func (x *DispatchStatus) GetY() float64
func (*DispatchStatus) HasCode ¶
func (x *DispatchStatus) HasCode() bool
func (*DispatchStatus) HasCreatedAt ¶
func (x *DispatchStatus) HasCreatedAt() bool
func (*DispatchStatus) HasCreatorJob ¶
func (x *DispatchStatus) HasCreatorJob() bool
func (*DispatchStatus) HasPostal ¶
func (x *DispatchStatus) HasPostal() bool
func (*DispatchStatus) HasReason ¶
func (x *DispatchStatus) HasReason() bool
func (*DispatchStatus) HasUnit ¶
func (x *DispatchStatus) HasUnit() bool
func (*DispatchStatus) HasUnitId ¶
func (x *DispatchStatus) HasUnitId() bool
func (*DispatchStatus) HasUser ¶
func (x *DispatchStatus) HasUser() bool
func (*DispatchStatus) HasUserId ¶
func (x *DispatchStatus) HasUserId() bool
func (*DispatchStatus) HasX ¶
func (x *DispatchStatus) HasX() bool
func (*DispatchStatus) HasY ¶
func (x *DispatchStatus) HasY() bool
func (*DispatchStatus) Point ¶
func (x *DispatchStatus) Point() orb.Point
func (*DispatchStatus) ProtoMessage ¶
func (*DispatchStatus) ProtoMessage()
func (*DispatchStatus) ProtoReflect ¶
func (x *DispatchStatus) ProtoReflect() protoreflect.Message
func (*DispatchStatus) Reset ¶
func (x *DispatchStatus) Reset()
func (*DispatchStatus) Sanitize ¶
func (m *DispatchStatus) Sanitize() error
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*DispatchStatus) SetCode ¶
func (x *DispatchStatus) SetCode(v string)
func (*DispatchStatus) SetCreatedAt ¶
func (x *DispatchStatus) SetCreatedAt(v *timestamp.Timestamp)
func (*DispatchStatus) SetCreatorJob ¶
func (x *DispatchStatus) SetCreatorJob(v string)
func (*DispatchStatus) SetDispatchId ¶
func (x *DispatchStatus) SetDispatchId(v int64)
func (*DispatchStatus) SetId ¶
func (x *DispatchStatus) SetId(v int64)
func (*DispatchStatus) SetPostal ¶
func (x *DispatchStatus) SetPostal(v string)
func (*DispatchStatus) SetReason ¶
func (x *DispatchStatus) SetReason(v string)
func (*DispatchStatus) SetStatus ¶
func (x *DispatchStatus) SetStatus(v StatusDispatch)
func (*DispatchStatus) SetUnit ¶
func (x *DispatchStatus) SetUnit(v *units.Unit)
func (*DispatchStatus) SetUnitId ¶
func (x *DispatchStatus) SetUnitId(v int64)
func (*DispatchStatus) SetUser ¶
func (x *DispatchStatus) SetUser(v *colleagues.Colleague)
func (*DispatchStatus) SetUserId ¶
func (x *DispatchStatus) SetUserId(v int32)
func (*DispatchStatus) SetX ¶
func (x *DispatchStatus) SetX(v float64)
func (*DispatchStatus) SetY ¶
func (x *DispatchStatus) SetY(v float64)
func (*DispatchStatus) String ¶
func (x *DispatchStatus) String() string
type DispatchStatus_builder ¶
type DispatchStatus_builder struct {
Id int64
CreatedAt *timestamp.Timestamp
DispatchId int64
UnitId *int64
Unit *units.Unit
Status StatusDispatch
Reason *string
Code *string
UserId *int32
User *colleagues.Colleague
X *float64
Y *float64
Postal *string
CreatorJob *string
// contains filtered or unexported fields
}
func (DispatchStatus_builder) Build ¶
func (b0 DispatchStatus_builder) Build() *DispatchStatus
type Dispatch_builder ¶
type Dispatch_builder struct {
Id int64
CreatedAt *timestamp.Timestamp
UpdatedAt *timestamp.Timestamp
// Deprecated: Marked as deprecated in resources/centrum/dispatches/dispatches.proto.
Job string
Jobs *centrum.JobList
Status *DispatchStatus
Message string
Description *string
Attributes *DispatchAttributes
X float64
Y float64
Postal *string
Anon bool
CreatorId *int32
Creator *users.User
Units []*DispatchAssignment
References *DispatchReferences
// contains filtered or unexported fields
}
func (Dispatch_builder) Build ¶
func (b0 Dispatch_builder) Build() *Dispatch
type StatusDispatch ¶
type StatusDispatch int32
const ( StatusDispatch_STATUS_DISPATCH_UNSPECIFIED StatusDispatch = 0 StatusDispatch_STATUS_DISPATCH_NEW StatusDispatch = 1 StatusDispatch_STATUS_DISPATCH_UNASSIGNED StatusDispatch = 2 StatusDispatch_STATUS_DISPATCH_UPDATED StatusDispatch = 3 StatusDispatch_STATUS_DISPATCH_UNIT_ASSIGNED StatusDispatch = 4 StatusDispatch_STATUS_DISPATCH_UNIT_UNASSIGNED StatusDispatch = 5 StatusDispatch_STATUS_DISPATCH_UNIT_ACCEPTED StatusDispatch = 6 StatusDispatch_STATUS_DISPATCH_UNIT_DECLINED StatusDispatch = 7 StatusDispatch_STATUS_DISPATCH_EN_ROUTE StatusDispatch = 8 StatusDispatch_STATUS_DISPATCH_ON_SCENE StatusDispatch = 9 StatusDispatch_STATUS_DISPATCH_NEED_ASSISTANCE StatusDispatch = 10 StatusDispatch_STATUS_DISPATCH_COMPLETED StatusDispatch = 11 StatusDispatch_STATUS_DISPATCH_CANCELLED StatusDispatch = 12 StatusDispatch_STATUS_DISPATCH_ARCHIVED StatusDispatch = 13 StatusDispatch_STATUS_DISPATCH_DELETED StatusDispatch = 14 )
func (StatusDispatch) Descriptor ¶
func (StatusDispatch) Descriptor() protoreflect.EnumDescriptor
func (StatusDispatch) Enum ¶
func (x StatusDispatch) Enum() *StatusDispatch
func (StatusDispatch) Number ¶
func (x StatusDispatch) Number() protoreflect.EnumNumber
func (StatusDispatch) String ¶
func (x StatusDispatch) String() string
func (StatusDispatch) Type ¶
func (StatusDispatch) Type() protoreflect.EnumType
type TakeDispatchResp ¶
type TakeDispatchResp int32
const ( TakeDispatchResp_TAKE_DISPATCH_RESP_UNSPECIFIED TakeDispatchResp = 0 TakeDispatchResp_TAKE_DISPATCH_RESP_TIMEOUT TakeDispatchResp = 1 TakeDispatchResp_TAKE_DISPATCH_RESP_ACCEPTED TakeDispatchResp = 2 TakeDispatchResp_TAKE_DISPATCH_RESP_DECLINED TakeDispatchResp = 3 )
func (TakeDispatchResp) Descriptor ¶
func (TakeDispatchResp) Descriptor() protoreflect.EnumDescriptor
func (TakeDispatchResp) Enum ¶
func (x TakeDispatchResp) Enum() *TakeDispatchResp
func (TakeDispatchResp) Number ¶
func (x TakeDispatchResp) Number() protoreflect.EnumNumber
func (TakeDispatchResp) String ¶
func (x TakeDispatchResp) String() string
func (TakeDispatchResp) Type ¶
func (TakeDispatchResp) Type() protoreflect.EnumType