Documentation ¶
Index ¶
- Variables
- type Attributes
- func (*Attributes) Descriptor() ([]byte, []int)deprecated
- func (x *Attributes) GetList() []string
- func (*Attributes) ProtoMessage()
- func (x *Attributes) ProtoReflect() protoreflect.Message
- func (x *Attributes) Reset()
- func (x *Attributes) Scan(value any) error
- func (x *Attributes) String() string
- func (m *Attributes) Validate() error
- func (m *Attributes) ValidateAll() error
- func (x *Attributes) Value() (driver.Value, error)
- type AttributesMultiError
- type AttributesValidationError
- type CentrumMode
- func (CentrumMode) Descriptor() protoreflect.EnumDescriptor
- func (x CentrumMode) Enum() *CentrumMode
- func (CentrumMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x CentrumMode) Number() protoreflect.EnumNumber
- func (x CentrumMode) String() string
- func (CentrumMode) Type() protoreflect.EnumType
- type Dispatch
- func (*Dispatch) Descriptor() ([]byte, []int)deprecated
- func (x *Dispatch) GetAnon() bool
- func (x *Dispatch) GetAttributes() *Attributes
- 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() uint64
- func (x *Dispatch) GetJob() string
- func (x *Dispatch) GetMessage() string
- func (x *Dispatch) GetPostal() string
- 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) Merge(in *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) String() string
- func (m *Dispatch) Validate() error
- func (m *Dispatch) ValidateAll() error
- type DispatchAssignment
- func (*DispatchAssignment) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchAssignment) GetCreatedAt() *timestamp.Timestamp
- func (x *DispatchAssignment) GetDispatchId() uint64
- func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp
- func (x *DispatchAssignment) GetUnit() *Unit
- func (x *DispatchAssignment) GetUnitId() uint64
- func (*DispatchAssignment) ProtoMessage()
- func (x *DispatchAssignment) ProtoReflect() protoreflect.Message
- func (x *DispatchAssignment) Reset()
- func (x *DispatchAssignment) String() string
- func (m *DispatchAssignment) Validate() error
- func (m *DispatchAssignment) ValidateAll() error
- type DispatchAssignmentMultiError
- type DispatchAssignmentValidationError
- func (e DispatchAssignmentValidationError) Cause() error
- func (e DispatchAssignmentValidationError) Error() string
- func (e DispatchAssignmentValidationError) ErrorName() string
- func (e DispatchAssignmentValidationError) Field() string
- func (e DispatchAssignmentValidationError) Key() bool
- func (e DispatchAssignmentValidationError) Reason() string
- type DispatchAssignments
- func (*DispatchAssignments) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchAssignments) GetDispatchId() uint64
- func (x *DispatchAssignments) GetJob() string
- func (x *DispatchAssignments) GetUnits() []*DispatchAssignment
- func (*DispatchAssignments) ProtoMessage()
- func (x *DispatchAssignments) ProtoReflect() protoreflect.Message
- func (x *DispatchAssignments) Reset()
- func (x *DispatchAssignments) String() string
- func (m *DispatchAssignments) Validate() error
- func (m *DispatchAssignments) ValidateAll() error
- type DispatchAssignmentsMultiError
- type DispatchAssignmentsValidationError
- func (e DispatchAssignmentsValidationError) Cause() error
- func (e DispatchAssignmentsValidationError) Error() string
- func (e DispatchAssignmentsValidationError) ErrorName() string
- func (e DispatchAssignmentsValidationError) Field() string
- func (e DispatchAssignmentsValidationError) Key() bool
- func (e DispatchAssignmentsValidationError) Reason() string
- type DispatchMultiError
- type DispatchStatus
- func (*DispatchStatus) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchStatus) GetCode() string
- func (x *DispatchStatus) GetCreatedAt() *timestamp.Timestamp
- func (x *DispatchStatus) GetDispatchId() uint64
- func (x *DispatchStatus) GetId() uint64
- func (x *DispatchStatus) GetPostal() string
- func (x *DispatchStatus) GetReason() string
- func (x *DispatchStatus) GetStatus() StatusDispatch
- func (x *DispatchStatus) GetUnit() *Unit
- func (x *DispatchStatus) GetUnitId() uint64
- func (x *DispatchStatus) GetUser() *users.UserShort
- func (x *DispatchStatus) GetUserId() int32
- func (x *DispatchStatus) GetX() float64
- func (x *DispatchStatus) GetY() float64
- 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) String() string
- func (m *DispatchStatus) Validate() error
- func (m *DispatchStatus) ValidateAll() error
- type DispatchStatusMultiError
- type DispatchStatusValidationError
- func (e DispatchStatusValidationError) Cause() error
- func (e DispatchStatusValidationError) Error() string
- func (e DispatchStatusValidationError) ErrorName() string
- func (e DispatchStatusValidationError) Field() string
- func (e DispatchStatusValidationError) Key() bool
- func (e DispatchStatusValidationError) Reason() string
- type DispatchValidationError
- type DisponentsChange
- func (*DisponentsChange) Descriptor() ([]byte, []int)deprecated
- func (x *DisponentsChange) GetDisponents() []*users.UserShort
- func (x *DisponentsChange) GetJob() string
- func (*DisponentsChange) ProtoMessage()
- func (x *DisponentsChange) ProtoReflect() protoreflect.Message
- func (x *DisponentsChange) Reset()
- func (x *DisponentsChange) String() string
- func (m *DisponentsChange) Validate() error
- func (m *DisponentsChange) ValidateAll() error
- type DisponentsChangeMultiError
- type DisponentsChangeValidationError
- func (e DisponentsChangeValidationError) Cause() error
- func (e DisponentsChangeValidationError) Error() string
- func (e DisponentsChangeValidationError) ErrorName() string
- func (e DisponentsChangeValidationError) Field() string
- func (e DisponentsChangeValidationError) Key() bool
- func (e DisponentsChangeValidationError) Reason() string
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetEnabled() bool
- func (x *Settings) GetFallbackMode() CentrumMode
- func (x *Settings) GetJob() string
- func (x *Settings) GetMode() CentrumMode
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- func (m *Settings) Validate() error
- func (m *Settings) ValidateAll() error
- type SettingsMultiError
- type SettingsValidationError
- type StatusDispatch
- func (StatusDispatch) Descriptor() protoreflect.EnumDescriptor
- func (x StatusDispatch) Enum() *StatusDispatch
- func (StatusDispatch) EnumDescriptor() ([]byte, []int)deprecated
- func (x StatusDispatch) Number() protoreflect.EnumNumber
- func (x StatusDispatch) String() string
- func (StatusDispatch) Type() protoreflect.EnumType
- type StatusUnit
- type TakeDispatchResp
- func (TakeDispatchResp) Descriptor() protoreflect.EnumDescriptor
- func (x TakeDispatchResp) Enum() *TakeDispatchResp
- func (TakeDispatchResp) EnumDescriptor() ([]byte, []int)deprecated
- func (x TakeDispatchResp) Number() protoreflect.EnumNumber
- func (x TakeDispatchResp) String() string
- func (TakeDispatchResp) Type() protoreflect.EnumType
- type Unit
- func (*Unit) Descriptor() ([]byte, []int)deprecated
- func (x *Unit) GetColor() string
- func (x *Unit) GetCreatedAt() *timestamp.Timestamp
- func (x *Unit) GetDescription() string
- func (x *Unit) GetId() uint64
- func (x *Unit) GetInitials() string
- func (x *Unit) GetJob() string
- func (x *Unit) GetName() string
- func (x *Unit) GetStatus() *UnitStatus
- func (x *Unit) GetUpdatedAt() *timestamp.Timestamp
- func (x *Unit) GetUsers() []*UnitAssignment
- func (x *Unit) Merge(in *Unit)
- func (*Unit) ProtoMessage()
- func (x *Unit) ProtoReflect() protoreflect.Message
- func (x *Unit) Reset()
- func (m *Unit) Sanitize() error
- func (x *Unit) String() string
- func (m *Unit) Validate() error
- func (m *Unit) ValidateAll() error
- type UnitAssignment
- func (*UnitAssignment) Descriptor() ([]byte, []int)deprecated
- func (x *UnitAssignment) GetUnitId() uint64
- func (x *UnitAssignment) GetUser() *users.UserShort
- func (x *UnitAssignment) GetUserId() int32
- func (*UnitAssignment) ProtoMessage()
- func (x *UnitAssignment) ProtoReflect() protoreflect.Message
- func (x *UnitAssignment) Reset()
- func (x *UnitAssignment) String() string
- func (m *UnitAssignment) Validate() error
- func (m *UnitAssignment) ValidateAll() error
- type UnitAssignmentMultiError
- type UnitAssignmentValidationError
- func (e UnitAssignmentValidationError) Cause() error
- func (e UnitAssignmentValidationError) Error() string
- func (e UnitAssignmentValidationError) ErrorName() string
- func (e UnitAssignmentValidationError) Field() string
- func (e UnitAssignmentValidationError) Key() bool
- func (e UnitAssignmentValidationError) Reason() string
- type UnitAssignments
- func (*UnitAssignments) Descriptor() ([]byte, []int)deprecated
- func (x *UnitAssignments) GetJob() string
- func (x *UnitAssignments) GetUnitId() uint64
- func (x *UnitAssignments) GetUsers() []*UnitAssignment
- func (*UnitAssignments) ProtoMessage()
- func (x *UnitAssignments) ProtoReflect() protoreflect.Message
- func (x *UnitAssignments) Reset()
- func (x *UnitAssignments) String() string
- func (m *UnitAssignments) Validate() error
- func (m *UnitAssignments) ValidateAll() error
- type UnitAssignmentsMultiError
- type UnitAssignmentsValidationError
- func (e UnitAssignmentsValidationError) Cause() error
- func (e UnitAssignmentsValidationError) Error() string
- func (e UnitAssignmentsValidationError) ErrorName() string
- func (e UnitAssignmentsValidationError) Field() string
- func (e UnitAssignmentsValidationError) Key() bool
- func (e UnitAssignmentsValidationError) Reason() string
- type UnitMultiError
- type UnitStatus
- func (*UnitStatus) Descriptor() ([]byte, []int)deprecated
- func (x *UnitStatus) GetCode() string
- func (x *UnitStatus) GetCreatedAt() *timestamp.Timestamp
- func (x *UnitStatus) GetCreator() *users.UserShort
- func (x *UnitStatus) GetCreatorId() int32
- func (x *UnitStatus) GetId() uint64
- func (x *UnitStatus) GetPostal() string
- func (x *UnitStatus) GetReason() string
- func (x *UnitStatus) GetStatus() StatusUnit
- func (x *UnitStatus) GetUnit() *Unit
- func (x *UnitStatus) GetUnitId() uint64
- func (x *UnitStatus) GetUser() *users.UserShort
- func (x *UnitStatus) GetUserId() int32
- func (x *UnitStatus) GetX() float64
- func (x *UnitStatus) GetY() float64
- func (x *UnitStatus) Point() orb.Point
- func (*UnitStatus) ProtoMessage()
- func (x *UnitStatus) ProtoReflect() protoreflect.Message
- func (x *UnitStatus) Reset()
- func (m *UnitStatus) Sanitize() error
- func (x *UnitStatus) String() string
- func (m *UnitStatus) Validate() error
- func (m *UnitStatus) ValidateAll() error
- type UnitStatusMultiError
- type UnitStatusValidationError
- type UnitValidationError
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", } 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, } )
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 ( CentrumMode_name = map[int32]string{ 0: "CENTRUM_MODE_UNSPECIFIED", 1: "CENTRUM_MODE_MANUAL", 2: "CENTRUM_MODE_CENTRAL_COMMAND", 3: "CENTRUM_MODE_AUTO_ROUND_ROBIN", 4: "CENTRUM_MODE_SIMPLIFIED", } CentrumMode_value = map[string]int32{ "CENTRUM_MODE_UNSPECIFIED": 0, "CENTRUM_MODE_MANUAL": 1, "CENTRUM_MODE_CENTRAL_COMMAND": 2, "CENTRUM_MODE_AUTO_ROUND_ROBIN": 3, "CENTRUM_MODE_SIMPLIFIED": 4, } )
Enum value maps for CentrumMode.
var ( StatusUnit_name = map[int32]string{ 0: "STATUS_UNIT_UNSPECIFIED", 1: "STATUS_UNIT_UNKNOWN", 2: "STATUS_UNIT_USER_ADDED", 3: "STATUS_UNIT_USER_REMOVED", 4: "STATUS_UNIT_UNAVAILABLE", 5: "STATUS_UNIT_AVAILABLE", 6: "STATUS_UNIT_ON_BREAK", 7: "STATUS_UNIT_BUSY", } StatusUnit_value = map[string]int32{ "STATUS_UNIT_UNSPECIFIED": 0, "STATUS_UNIT_UNKNOWN": 1, "STATUS_UNIT_USER_ADDED": 2, "STATUS_UNIT_USER_REMOVED": 3, "STATUS_UNIT_UNAVAILABLE": 4, "STATUS_UNIT_AVAILABLE": 5, "STATUS_UNIT_ON_BREAK": 6, "STATUS_UNIT_BUSY": 7, } )
Enum value maps for StatusUnit.
var File_resources_dispatch_dispatches_proto protoreflect.FileDescriptor
var File_resources_dispatch_settings_proto protoreflect.FileDescriptor
var File_resources_dispatch_units_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Attributes ¶ added in v0.8.0
type Attributes struct { List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Attributes) Descriptor
deprecated
added in
v0.8.0
func (*Attributes) Descriptor() ([]byte, []int)
Deprecated: Use Attributes.ProtoReflect.Descriptor instead.
func (*Attributes) GetList ¶ added in v0.8.0
func (x *Attributes) GetList() []string
func (*Attributes) ProtoMessage ¶ added in v0.8.0
func (*Attributes) ProtoMessage()
func (*Attributes) ProtoReflect ¶ added in v0.8.0
func (x *Attributes) ProtoReflect() protoreflect.Message
func (*Attributes) Reset ¶ added in v0.8.0
func (x *Attributes) Reset()
func (*Attributes) Scan ¶ added in v0.8.0
func (x *Attributes) Scan(value any) error
func (*Attributes) String ¶ added in v0.8.0
func (x *Attributes) String() string
func (*Attributes) Validate ¶ added in v0.8.0
func (m *Attributes) Validate() error
Validate checks the field values on Attributes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Attributes) ValidateAll ¶ added in v0.8.0
func (m *Attributes) ValidateAll() error
ValidateAll checks the field values on Attributes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttributesMultiError, or nil if none found.
type AttributesMultiError ¶ added in v0.8.0
type AttributesMultiError []error
AttributesMultiError is an error wrapping multiple validation errors returned by Attributes.ValidateAll() if the designated constraints aren't met.
func (AttributesMultiError) AllErrors ¶ added in v0.8.0
func (m AttributesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AttributesMultiError) Error ¶ added in v0.8.0
func (m AttributesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AttributesValidationError ¶ added in v0.8.0
type AttributesValidationError struct {
// contains filtered or unexported fields
}
AttributesValidationError is the validation error returned by Attributes.Validate if the designated constraints aren't met.
func (AttributesValidationError) Cause ¶ added in v0.8.0
func (e AttributesValidationError) Cause() error
Cause function returns cause value.
func (AttributesValidationError) Error ¶ added in v0.8.0
func (e AttributesValidationError) Error() string
Error satisfies the builtin error interface
func (AttributesValidationError) ErrorName ¶ added in v0.8.0
func (e AttributesValidationError) ErrorName() string
ErrorName returns error name.
func (AttributesValidationError) Field ¶ added in v0.8.0
func (e AttributesValidationError) Field() string
Field function returns field value.
func (AttributesValidationError) Key ¶ added in v0.8.0
func (e AttributesValidationError) Key() bool
Key function returns key value.
func (AttributesValidationError) Reason ¶ added in v0.8.0
func (e AttributesValidationError) Reason() string
Reason function returns reason value.
type CentrumMode ¶ added in v0.8.3
type CentrumMode int32
const ( CentrumMode_CENTRUM_MODE_UNSPECIFIED CentrumMode = 0 CentrumMode_CENTRUM_MODE_MANUAL CentrumMode = 1 CentrumMode_CENTRUM_MODE_CENTRAL_COMMAND CentrumMode = 2 CentrumMode_CENTRUM_MODE_AUTO_ROUND_ROBIN CentrumMode = 3 CentrumMode_CENTRUM_MODE_SIMPLIFIED CentrumMode = 4 )
func (CentrumMode) Descriptor ¶ added in v0.8.3
func (CentrumMode) Descriptor() protoreflect.EnumDescriptor
func (CentrumMode) Enum ¶ added in v0.8.3
func (x CentrumMode) Enum() *CentrumMode
func (CentrumMode) EnumDescriptor
deprecated
added in
v0.8.3
func (CentrumMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use CentrumMode.Descriptor instead.
func (CentrumMode) Number ¶ added in v0.8.3
func (x CentrumMode) Number() protoreflect.EnumNumber
func (CentrumMode) String ¶ added in v0.8.3
func (x CentrumMode) String() string
func (CentrumMode) Type ¶ added in v0.8.3
func (CentrumMode) Type() protoreflect.EnumType
type Dispatch ¶
type Dispatch struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" 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"` Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` Status *DispatchStatus `protobuf:"bytes,5,opt,name=status,proto3,oneof" json:"status,omitempty"` // @sanitize Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"` // @sanitize Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"` Attributes *Attributes `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"` // @sanitize 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"` // contains filtered or unexported fields }
func (*Dispatch) Descriptor
deprecated
func (*Dispatch) GetAttributes ¶
func (x *Dispatch) GetAttributes() *Attributes
func (*Dispatch) GetCreatedAt ¶
func (*Dispatch) GetCreator ¶ added in v0.8.6
func (*Dispatch) GetCreatorId ¶ added in v0.8.6
func (*Dispatch) GetDescription ¶
func (*Dispatch) GetMessage ¶ added in v0.8.0
func (*Dispatch) GetStatus ¶
func (x *Dispatch) GetStatus() *DispatchStatus
func (*Dispatch) GetUnits ¶
func (x *Dispatch) GetUnits() []*DispatchAssignment
func (*Dispatch) GetUpdatedAt ¶
func (*Dispatch) ProtoMessage ¶
func (*Dispatch) ProtoMessage()
func (*Dispatch) ProtoReflect ¶
func (x *Dispatch) ProtoReflect() protoreflect.Message
func (*Dispatch) Validate ¶
Validate checks the field values on Dispatch with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Dispatch) ValidateAll ¶
ValidateAll checks the field values on Dispatch with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DispatchMultiError, or nil if none found.
type DispatchAssignment ¶ added in v0.8.0
type DispatchAssignment struct { DispatchId uint64 `` // @gotags: sql:"primary_key" alias:"dispatch_id" /* 130-byte string literal not displayed */ UnitId uint64 `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id" Unit *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) Descriptor
deprecated
added in
v0.8.0
func (*DispatchAssignment) Descriptor() ([]byte, []int)
Deprecated: Use DispatchAssignment.ProtoReflect.Descriptor instead.
func (*DispatchAssignment) GetCreatedAt ¶ added in v0.8.0
func (x *DispatchAssignment) GetCreatedAt() *timestamp.Timestamp
func (*DispatchAssignment) GetDispatchId ¶ added in v0.8.0
func (x *DispatchAssignment) GetDispatchId() uint64
func (*DispatchAssignment) GetExpiresAt ¶ added in v0.8.0
func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp
func (*DispatchAssignment) GetUnit ¶ added in v0.8.0
func (x *DispatchAssignment) GetUnit() *Unit
func (*DispatchAssignment) GetUnitId ¶ added in v0.8.0
func (x *DispatchAssignment) GetUnitId() uint64
func (*DispatchAssignment) ProtoMessage ¶ added in v0.8.0
func (*DispatchAssignment) ProtoMessage()
func (*DispatchAssignment) ProtoReflect ¶ added in v0.8.0
func (x *DispatchAssignment) ProtoReflect() protoreflect.Message
func (*DispatchAssignment) Reset ¶ added in v0.8.0
func (x *DispatchAssignment) Reset()
func (*DispatchAssignment) String ¶ added in v0.8.0
func (x *DispatchAssignment) String() string
func (*DispatchAssignment) Validate ¶ added in v0.8.0
func (m *DispatchAssignment) Validate() error
Validate checks the field values on DispatchAssignment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DispatchAssignment) ValidateAll ¶ added in v0.8.0
func (m *DispatchAssignment) ValidateAll() error
ValidateAll checks the field values on DispatchAssignment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DispatchAssignmentMultiError, or nil if none found.
type DispatchAssignmentMultiError ¶ added in v0.8.0
type DispatchAssignmentMultiError []error
DispatchAssignmentMultiError is an error wrapping multiple validation errors returned by DispatchAssignment.ValidateAll() if the designated constraints aren't met.
func (DispatchAssignmentMultiError) AllErrors ¶ added in v0.8.0
func (m DispatchAssignmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchAssignmentMultiError) Error ¶ added in v0.8.0
func (m DispatchAssignmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchAssignmentValidationError ¶ added in v0.8.0
type DispatchAssignmentValidationError struct {
// contains filtered or unexported fields
}
DispatchAssignmentValidationError is the validation error returned by DispatchAssignment.Validate if the designated constraints aren't met.
func (DispatchAssignmentValidationError) Cause ¶ added in v0.8.0
func (e DispatchAssignmentValidationError) Cause() error
Cause function returns cause value.
func (DispatchAssignmentValidationError) Error ¶ added in v0.8.0
func (e DispatchAssignmentValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchAssignmentValidationError) ErrorName ¶ added in v0.8.0
func (e DispatchAssignmentValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchAssignmentValidationError) Field ¶ added in v0.8.0
func (e DispatchAssignmentValidationError) Field() string
Field function returns field value.
func (DispatchAssignmentValidationError) Key ¶ added in v0.8.0
func (e DispatchAssignmentValidationError) Key() bool
Key function returns key value.
func (DispatchAssignmentValidationError) Reason ¶ added in v0.8.0
func (e DispatchAssignmentValidationError) Reason() string
Reason function returns reason value.
type DispatchAssignments ¶ added in v0.8.0
type DispatchAssignments struct { DispatchId uint64 `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) Descriptor
deprecated
added in
v0.8.0
func (*DispatchAssignments) Descriptor() ([]byte, []int)
Deprecated: Use DispatchAssignments.ProtoReflect.Descriptor instead.
func (*DispatchAssignments) GetDispatchId ¶ added in v0.8.0
func (x *DispatchAssignments) GetDispatchId() uint64
func (*DispatchAssignments) GetJob ¶ added in v0.8.0
func (x *DispatchAssignments) GetJob() string
func (*DispatchAssignments) GetUnits ¶ added in v0.8.0
func (x *DispatchAssignments) GetUnits() []*DispatchAssignment
func (*DispatchAssignments) ProtoMessage ¶ added in v0.8.0
func (*DispatchAssignments) ProtoMessage()
func (*DispatchAssignments) ProtoReflect ¶ added in v0.8.0
func (x *DispatchAssignments) ProtoReflect() protoreflect.Message
func (*DispatchAssignments) Reset ¶ added in v0.8.0
func (x *DispatchAssignments) Reset()
func (*DispatchAssignments) String ¶ added in v0.8.0
func (x *DispatchAssignments) String() string
func (*DispatchAssignments) Validate ¶ added in v0.8.0
func (m *DispatchAssignments) Validate() error
Validate checks the field values on DispatchAssignments with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DispatchAssignments) ValidateAll ¶ added in v0.8.0
func (m *DispatchAssignments) ValidateAll() error
ValidateAll checks the field values on DispatchAssignments with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DispatchAssignmentsMultiError, or nil if none found.
type DispatchAssignmentsMultiError ¶ added in v0.8.0
type DispatchAssignmentsMultiError []error
DispatchAssignmentsMultiError is an error wrapping multiple validation errors returned by DispatchAssignments.ValidateAll() if the designated constraints aren't met.
func (DispatchAssignmentsMultiError) AllErrors ¶ added in v0.8.0
func (m DispatchAssignmentsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchAssignmentsMultiError) Error ¶ added in v0.8.0
func (m DispatchAssignmentsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchAssignmentsValidationError ¶ added in v0.8.0
type DispatchAssignmentsValidationError struct {
// contains filtered or unexported fields
}
DispatchAssignmentsValidationError is the validation error returned by DispatchAssignments.Validate if the designated constraints aren't met.
func (DispatchAssignmentsValidationError) Cause ¶ added in v0.8.0
func (e DispatchAssignmentsValidationError) Cause() error
Cause function returns cause value.
func (DispatchAssignmentsValidationError) Error ¶ added in v0.8.0
func (e DispatchAssignmentsValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchAssignmentsValidationError) ErrorName ¶ added in v0.8.0
func (e DispatchAssignmentsValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchAssignmentsValidationError) Field ¶ added in v0.8.0
func (e DispatchAssignmentsValidationError) Field() string
Field function returns field value.
func (DispatchAssignmentsValidationError) Key ¶ added in v0.8.0
func (e DispatchAssignmentsValidationError) Key() bool
Key function returns key value.
func (DispatchAssignmentsValidationError) Reason ¶ added in v0.8.0
func (e DispatchAssignmentsValidationError) Reason() string
Reason function returns reason value.
type DispatchMultiError ¶
type DispatchMultiError []error
DispatchMultiError is an error wrapping multiple validation errors returned by Dispatch.ValidateAll() if the designated constraints aren't met.
func (DispatchMultiError) AllErrors ¶
func (m DispatchMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchMultiError) Error ¶
func (m DispatchMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchStatus ¶ added in v0.8.0
type DispatchStatus struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` DispatchId uint64 `protobuf:"varint,3,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` UnitId *uint64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` Unit *Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"` Status StatusDispatch `protobuf:"varint,6,opt,name=status,proto3,enum=resources.dispatch.StatusDispatch" json:"status,omitempty"` // @sanitize Reason *string `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // @sanitize 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 *users.UserShort `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"` // @sanitize Postal *string `protobuf:"bytes,13,opt,name=postal,proto3,oneof" json:"postal,omitempty"` // contains filtered or unexported fields }
func (*DispatchStatus) Descriptor
deprecated
added in
v0.8.0
func (*DispatchStatus) Descriptor() ([]byte, []int)
Deprecated: Use DispatchStatus.ProtoReflect.Descriptor instead.
func (*DispatchStatus) GetCode ¶ added in v0.8.0
func (x *DispatchStatus) GetCode() string
func (*DispatchStatus) GetCreatedAt ¶ added in v0.8.0
func (x *DispatchStatus) GetCreatedAt() *timestamp.Timestamp
func (*DispatchStatus) GetDispatchId ¶ added in v0.8.0
func (x *DispatchStatus) GetDispatchId() uint64
func (*DispatchStatus) GetId ¶ added in v0.8.0
func (x *DispatchStatus) GetId() uint64
func (*DispatchStatus) GetPostal ¶ added in v0.8.1
func (x *DispatchStatus) GetPostal() string
func (*DispatchStatus) GetReason ¶ added in v0.8.0
func (x *DispatchStatus) GetReason() string
func (*DispatchStatus) GetStatus ¶ added in v0.8.0
func (x *DispatchStatus) GetStatus() StatusDispatch
func (*DispatchStatus) GetUnit ¶ added in v0.8.0
func (x *DispatchStatus) GetUnit() *Unit
func (*DispatchStatus) GetUnitId ¶ added in v0.8.0
func (x *DispatchStatus) GetUnitId() uint64
func (*DispatchStatus) GetUser ¶ added in v0.8.0
func (x *DispatchStatus) GetUser() *users.UserShort
func (*DispatchStatus) GetUserId ¶ added in v0.8.0
func (x *DispatchStatus) GetUserId() int32
func (*DispatchStatus) GetX ¶ added in v0.8.0
func (x *DispatchStatus) GetX() float64
func (*DispatchStatus) GetY ¶ added in v0.8.0
func (x *DispatchStatus) GetY() float64
func (*DispatchStatus) Point ¶ added in v0.8.10
func (x *DispatchStatus) Point() orb.Point
func (*DispatchStatus) ProtoMessage ¶ added in v0.8.0
func (*DispatchStatus) ProtoMessage()
func (*DispatchStatus) ProtoReflect ¶ added in v0.8.0
func (x *DispatchStatus) ProtoReflect() protoreflect.Message
func (*DispatchStatus) Reset ¶ added in v0.8.0
func (x *DispatchStatus) Reset()
func (*DispatchStatus) Sanitize ¶ added in v0.8.1
func (m *DispatchStatus) Sanitize() error
func (*DispatchStatus) String ¶ added in v0.8.0
func (x *DispatchStatus) String() string
func (*DispatchStatus) Validate ¶ added in v0.8.0
func (m *DispatchStatus) Validate() error
Validate checks the field values on DispatchStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DispatchStatus) ValidateAll ¶ added in v0.8.0
func (m *DispatchStatus) ValidateAll() error
ValidateAll checks the field values on DispatchStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DispatchStatusMultiError, or nil if none found.
type DispatchStatusMultiError ¶ added in v0.8.0
type DispatchStatusMultiError []error
DispatchStatusMultiError is an error wrapping multiple validation errors returned by DispatchStatus.ValidateAll() if the designated constraints aren't met.
func (DispatchStatusMultiError) AllErrors ¶ added in v0.8.0
func (m DispatchStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchStatusMultiError) Error ¶ added in v0.8.0
func (m DispatchStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchStatusValidationError ¶ added in v0.8.0
type DispatchStatusValidationError struct {
// contains filtered or unexported fields
}
DispatchStatusValidationError is the validation error returned by DispatchStatus.Validate if the designated constraints aren't met.
func (DispatchStatusValidationError) Cause ¶ added in v0.8.0
func (e DispatchStatusValidationError) Cause() error
Cause function returns cause value.
func (DispatchStatusValidationError) Error ¶ added in v0.8.0
func (e DispatchStatusValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchStatusValidationError) ErrorName ¶ added in v0.8.0
func (e DispatchStatusValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchStatusValidationError) Field ¶ added in v0.8.0
func (e DispatchStatusValidationError) Field() string
Field function returns field value.
func (DispatchStatusValidationError) Key ¶ added in v0.8.0
func (e DispatchStatusValidationError) Key() bool
Key function returns key value.
func (DispatchStatusValidationError) Reason ¶ added in v0.8.0
func (e DispatchStatusValidationError) Reason() string
Reason function returns reason value.
type DispatchValidationError ¶
type DispatchValidationError struct {
// contains filtered or unexported fields
}
DispatchValidationError is the validation error returned by Dispatch.Validate if the designated constraints aren't met.
func (DispatchValidationError) Cause ¶
func (e DispatchValidationError) Cause() error
Cause function returns cause value.
func (DispatchValidationError) Error ¶
func (e DispatchValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchValidationError) ErrorName ¶
func (e DispatchValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchValidationError) Field ¶
func (e DispatchValidationError) Field() string
Field function returns field value.
func (DispatchValidationError) Key ¶
func (e DispatchValidationError) Key() bool
Key function returns key value.
func (DispatchValidationError) Reason ¶
func (e DispatchValidationError) Reason() string
Reason function returns reason value.
type DisponentsChange ¶ added in v0.8.8
type DisponentsChange struct { Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Disponents []*users.UserShort `protobuf:"bytes,2,rep,name=disponents,proto3" json:"disponents,omitempty"` // contains filtered or unexported fields }
func (*DisponentsChange) Descriptor
deprecated
added in
v0.8.8
func (*DisponentsChange) Descriptor() ([]byte, []int)
Deprecated: Use DisponentsChange.ProtoReflect.Descriptor instead.
func (*DisponentsChange) GetDisponents ¶ added in v0.8.8
func (x *DisponentsChange) GetDisponents() []*users.UserShort
func (*DisponentsChange) GetJob ¶ added in v0.8.8
func (x *DisponentsChange) GetJob() string
func (*DisponentsChange) ProtoMessage ¶ added in v0.8.8
func (*DisponentsChange) ProtoMessage()
func (*DisponentsChange) ProtoReflect ¶ added in v0.8.8
func (x *DisponentsChange) ProtoReflect() protoreflect.Message
func (*DisponentsChange) Reset ¶ added in v0.8.8
func (x *DisponentsChange) Reset()
func (*DisponentsChange) String ¶ added in v0.8.8
func (x *DisponentsChange) String() string
func (*DisponentsChange) Validate ¶ added in v0.8.8
func (m *DisponentsChange) Validate() error
Validate checks the field values on DisponentsChange with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DisponentsChange) ValidateAll ¶ added in v0.8.8
func (m *DisponentsChange) ValidateAll() error
ValidateAll checks the field values on DisponentsChange with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DisponentsChangeMultiError, or nil if none found.
type DisponentsChangeMultiError ¶ added in v0.8.8
type DisponentsChangeMultiError []error
DisponentsChangeMultiError is an error wrapping multiple validation errors returned by DisponentsChange.ValidateAll() if the designated constraints aren't met.
func (DisponentsChangeMultiError) AllErrors ¶ added in v0.8.8
func (m DisponentsChangeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DisponentsChangeMultiError) Error ¶ added in v0.8.8
func (m DisponentsChangeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DisponentsChangeValidationError ¶ added in v0.8.8
type DisponentsChangeValidationError struct {
// contains filtered or unexported fields
}
DisponentsChangeValidationError is the validation error returned by DisponentsChange.Validate if the designated constraints aren't met.
func (DisponentsChangeValidationError) Cause ¶ added in v0.8.8
func (e DisponentsChangeValidationError) Cause() error
Cause function returns cause value.
func (DisponentsChangeValidationError) Error ¶ added in v0.8.8
func (e DisponentsChangeValidationError) Error() string
Error satisfies the builtin error interface
func (DisponentsChangeValidationError) ErrorName ¶ added in v0.8.8
func (e DisponentsChangeValidationError) ErrorName() string
ErrorName returns error name.
func (DisponentsChangeValidationError) Field ¶ added in v0.8.8
func (e DisponentsChangeValidationError) Field() string
Field function returns field value.
func (DisponentsChangeValidationError) Key ¶ added in v0.8.8
func (e DisponentsChangeValidationError) Key() bool
Key function returns key value.
func (DisponentsChangeValidationError) Reason ¶ added in v0.8.8
func (e DisponentsChangeValidationError) Reason() string
Reason function returns reason value.
type Settings ¶ added in v0.8.0
type Settings struct { Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` Mode CentrumMode `protobuf:"varint,3,opt,name=mode,proto3,enum=resources.dispatch.CentrumMode" json:"mode,omitempty"` FallbackMode CentrumMode `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Settings) Descriptor
deprecated
added in
v0.8.0
func (*Settings) GetEnabled ¶ added in v0.8.0
func (*Settings) GetFallbackMode ¶ added in v0.8.0
func (x *Settings) GetFallbackMode() CentrumMode
func (*Settings) GetMode ¶ added in v0.8.0
func (x *Settings) GetMode() CentrumMode
func (*Settings) ProtoMessage ¶ added in v0.8.0
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶ added in v0.8.0
func (x *Settings) ProtoReflect() protoreflect.Message
func (*Settings) Validate ¶ added in v0.8.0
Validate checks the field values on Settings with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Settings) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on Settings with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SettingsMultiError, or nil if none found.
type SettingsMultiError ¶ added in v0.8.0
type SettingsMultiError []error
SettingsMultiError is an error wrapping multiple validation errors returned by Settings.ValidateAll() if the designated constraints aren't met.
func (SettingsMultiError) AllErrors ¶ added in v0.8.0
func (m SettingsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingsMultiError) Error ¶ added in v0.8.0
func (m SettingsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingsValidationError ¶ added in v0.8.0
type SettingsValidationError struct {
// contains filtered or unexported fields
}
SettingsValidationError is the validation error returned by Settings.Validate if the designated constraints aren't met.
func (SettingsValidationError) Cause ¶ added in v0.8.0
func (e SettingsValidationError) Cause() error
Cause function returns cause value.
func (SettingsValidationError) Error ¶ added in v0.8.0
func (e SettingsValidationError) Error() string
Error satisfies the builtin error interface
func (SettingsValidationError) ErrorName ¶ added in v0.8.0
func (e SettingsValidationError) ErrorName() string
ErrorName returns error name.
func (SettingsValidationError) Field ¶ added in v0.8.0
func (e SettingsValidationError) Field() string
Field function returns field value.
func (SettingsValidationError) Key ¶ added in v0.8.0
func (e SettingsValidationError) Key() bool
Key function returns key value.
func (SettingsValidationError) Reason ¶ added in v0.8.0
func (e SettingsValidationError) Reason() string
Reason function returns reason value.
type StatusDispatch ¶ added in v0.8.3
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 )
func (StatusDispatch) Descriptor ¶ added in v0.8.3
func (StatusDispatch) Descriptor() protoreflect.EnumDescriptor
func (StatusDispatch) Enum ¶ added in v0.8.3
func (x StatusDispatch) Enum() *StatusDispatch
func (StatusDispatch) EnumDescriptor
deprecated
added in
v0.8.3
func (StatusDispatch) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusDispatch.Descriptor instead.
func (StatusDispatch) Number ¶ added in v0.8.3
func (x StatusDispatch) Number() protoreflect.EnumNumber
func (StatusDispatch) String ¶ added in v0.8.3
func (x StatusDispatch) String() string
func (StatusDispatch) Type ¶ added in v0.8.3
func (StatusDispatch) Type() protoreflect.EnumType
type StatusUnit ¶ added in v0.8.3
type StatusUnit int32
const ( StatusUnit_STATUS_UNIT_UNSPECIFIED StatusUnit = 0 StatusUnit_STATUS_UNIT_UNKNOWN StatusUnit = 1 StatusUnit_STATUS_UNIT_USER_ADDED StatusUnit = 2 StatusUnit_STATUS_UNIT_USER_REMOVED StatusUnit = 3 StatusUnit_STATUS_UNIT_UNAVAILABLE StatusUnit = 4 StatusUnit_STATUS_UNIT_AVAILABLE StatusUnit = 5 StatusUnit_STATUS_UNIT_ON_BREAK StatusUnit = 6 StatusUnit_STATUS_UNIT_BUSY StatusUnit = 7 )
func (StatusUnit) Descriptor ¶ added in v0.8.3
func (StatusUnit) Descriptor() protoreflect.EnumDescriptor
func (StatusUnit) Enum ¶ added in v0.8.3
func (x StatusUnit) Enum() *StatusUnit
func (StatusUnit) EnumDescriptor
deprecated
added in
v0.8.3
func (StatusUnit) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusUnit.Descriptor instead.
func (StatusUnit) Number ¶ added in v0.8.3
func (x StatusUnit) Number() protoreflect.EnumNumber
func (StatusUnit) String ¶ added in v0.8.3
func (x StatusUnit) String() string
func (StatusUnit) Type ¶ added in v0.8.3
func (StatusUnit) Type() protoreflect.EnumType
type TakeDispatchResp ¶ added in v0.8.11
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 ¶ added in v0.8.11
func (TakeDispatchResp) Descriptor() protoreflect.EnumDescriptor
func (TakeDispatchResp) Enum ¶ added in v0.8.11
func (x TakeDispatchResp) Enum() *TakeDispatchResp
func (TakeDispatchResp) EnumDescriptor
deprecated
added in
v0.8.11
func (TakeDispatchResp) EnumDescriptor() ([]byte, []int)
Deprecated: Use TakeDispatchResp.Descriptor instead.
func (TakeDispatchResp) Number ¶ added in v0.8.11
func (x TakeDispatchResp) Number() protoreflect.EnumNumber
func (TakeDispatchResp) String ¶ added in v0.8.11
func (x TakeDispatchResp) String() string
func (TakeDispatchResp) Type ¶ added in v0.8.11
func (TakeDispatchResp) Type() protoreflect.EnumType
type Unit ¶
type Unit struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" 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"` Job string `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"` // @sanitize Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // @sanitize Initials string `protobuf:"bytes,6,opt,name=initials,proto3" json:"initials,omitempty"` Color string `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"` // @sanitize Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"` Status *UnitStatus `protobuf:"bytes,9,opt,name=status,proto3,oneof" json:"status,omitempty"` Users []*UnitAssignment `protobuf:"bytes,11,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*Unit) Descriptor
deprecated
func (*Unit) GetCreatedAt ¶ added in v0.8.0
func (*Unit) GetDescription ¶
func (*Unit) GetInitials ¶
func (*Unit) GetStatus ¶
func (x *Unit) GetStatus() *UnitStatus
func (*Unit) GetUpdatedAt ¶ added in v0.8.0
func (*Unit) GetUsers ¶ added in v0.8.0
func (x *Unit) GetUsers() []*UnitAssignment
func (*Unit) ProtoMessage ¶
func (*Unit) ProtoMessage()
func (*Unit) ProtoReflect ¶
func (x *Unit) ProtoReflect() protoreflect.Message
func (*Unit) Validate ¶
Validate checks the field values on Unit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Unit) ValidateAll ¶
ValidateAll checks the field values on Unit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnitMultiError, or nil if none found.
type UnitAssignment ¶ added in v0.8.0
type UnitAssignment struct { UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" sql:"primary_key" alias:"unit_id"` // @gotags: sql:"primary_key" alias:"unit_id" UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" sql:"primary_key" alias:"user_id"` // @gotags: sql:"primary_key" alias:"user_id" User *users.UserShort `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UnitAssignment) Descriptor
deprecated
added in
v0.8.0
func (*UnitAssignment) Descriptor() ([]byte, []int)
Deprecated: Use UnitAssignment.ProtoReflect.Descriptor instead.
func (*UnitAssignment) GetUnitId ¶ added in v0.8.0
func (x *UnitAssignment) GetUnitId() uint64
func (*UnitAssignment) GetUser ¶ added in v0.8.0
func (x *UnitAssignment) GetUser() *users.UserShort
func (*UnitAssignment) GetUserId ¶ added in v0.8.0
func (x *UnitAssignment) GetUserId() int32
func (*UnitAssignment) ProtoMessage ¶ added in v0.8.0
func (*UnitAssignment) ProtoMessage()
func (*UnitAssignment) ProtoReflect ¶ added in v0.8.0
func (x *UnitAssignment) ProtoReflect() protoreflect.Message
func (*UnitAssignment) Reset ¶ added in v0.8.0
func (x *UnitAssignment) Reset()
func (*UnitAssignment) String ¶ added in v0.8.0
func (x *UnitAssignment) String() string
func (*UnitAssignment) Validate ¶ added in v0.8.0
func (m *UnitAssignment) Validate() error
Validate checks the field values on UnitAssignment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UnitAssignment) ValidateAll ¶ added in v0.8.0
func (m *UnitAssignment) ValidateAll() error
ValidateAll checks the field values on UnitAssignment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnitAssignmentMultiError, or nil if none found.
type UnitAssignmentMultiError ¶ added in v0.8.0
type UnitAssignmentMultiError []error
UnitAssignmentMultiError is an error wrapping multiple validation errors returned by UnitAssignment.ValidateAll() if the designated constraints aren't met.
func (UnitAssignmentMultiError) AllErrors ¶ added in v0.8.0
func (m UnitAssignmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitAssignmentMultiError) Error ¶ added in v0.8.0
func (m UnitAssignmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitAssignmentValidationError ¶ added in v0.8.0
type UnitAssignmentValidationError struct {
// contains filtered or unexported fields
}
UnitAssignmentValidationError is the validation error returned by UnitAssignment.Validate if the designated constraints aren't met.
func (UnitAssignmentValidationError) Cause ¶ added in v0.8.0
func (e UnitAssignmentValidationError) Cause() error
Cause function returns cause value.
func (UnitAssignmentValidationError) Error ¶ added in v0.8.0
func (e UnitAssignmentValidationError) Error() string
Error satisfies the builtin error interface
func (UnitAssignmentValidationError) ErrorName ¶ added in v0.8.0
func (e UnitAssignmentValidationError) ErrorName() string
ErrorName returns error name.
func (UnitAssignmentValidationError) Field ¶ added in v0.8.0
func (e UnitAssignmentValidationError) Field() string
Field function returns field value.
func (UnitAssignmentValidationError) Key ¶ added in v0.8.0
func (e UnitAssignmentValidationError) Key() bool
Key function returns key value.
func (UnitAssignmentValidationError) Reason ¶ added in v0.8.0
func (e UnitAssignmentValidationError) Reason() string
Reason function returns reason value.
type UnitAssignments ¶ added in v0.8.0
type UnitAssignments struct { UnitId uint64 `protobuf:"varint,1,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` Job string `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` Users []*UnitAssignment `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*UnitAssignments) Descriptor
deprecated
added in
v0.8.0
func (*UnitAssignments) Descriptor() ([]byte, []int)
Deprecated: Use UnitAssignments.ProtoReflect.Descriptor instead.
func (*UnitAssignments) GetJob ¶ added in v0.8.0
func (x *UnitAssignments) GetJob() string
func (*UnitAssignments) GetUnitId ¶ added in v0.8.0
func (x *UnitAssignments) GetUnitId() uint64
func (*UnitAssignments) GetUsers ¶ added in v0.8.0
func (x *UnitAssignments) GetUsers() []*UnitAssignment
func (*UnitAssignments) ProtoMessage ¶ added in v0.8.0
func (*UnitAssignments) ProtoMessage()
func (*UnitAssignments) ProtoReflect ¶ added in v0.8.0
func (x *UnitAssignments) ProtoReflect() protoreflect.Message
func (*UnitAssignments) Reset ¶ added in v0.8.0
func (x *UnitAssignments) Reset()
func (*UnitAssignments) String ¶ added in v0.8.0
func (x *UnitAssignments) String() string
func (*UnitAssignments) Validate ¶ added in v0.8.0
func (m *UnitAssignments) Validate() error
Validate checks the field values on UnitAssignments with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UnitAssignments) ValidateAll ¶ added in v0.8.0
func (m *UnitAssignments) ValidateAll() error
ValidateAll checks the field values on UnitAssignments with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnitAssignmentsMultiError, or nil if none found.
type UnitAssignmentsMultiError ¶ added in v0.8.0
type UnitAssignmentsMultiError []error
UnitAssignmentsMultiError is an error wrapping multiple validation errors returned by UnitAssignments.ValidateAll() if the designated constraints aren't met.
func (UnitAssignmentsMultiError) AllErrors ¶ added in v0.8.0
func (m UnitAssignmentsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitAssignmentsMultiError) Error ¶ added in v0.8.0
func (m UnitAssignmentsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitAssignmentsValidationError ¶ added in v0.8.0
type UnitAssignmentsValidationError struct {
// contains filtered or unexported fields
}
UnitAssignmentsValidationError is the validation error returned by UnitAssignments.Validate if the designated constraints aren't met.
func (UnitAssignmentsValidationError) Cause ¶ added in v0.8.0
func (e UnitAssignmentsValidationError) Cause() error
Cause function returns cause value.
func (UnitAssignmentsValidationError) Error ¶ added in v0.8.0
func (e UnitAssignmentsValidationError) Error() string
Error satisfies the builtin error interface
func (UnitAssignmentsValidationError) ErrorName ¶ added in v0.8.0
func (e UnitAssignmentsValidationError) ErrorName() string
ErrorName returns error name.
func (UnitAssignmentsValidationError) Field ¶ added in v0.8.0
func (e UnitAssignmentsValidationError) Field() string
Field function returns field value.
func (UnitAssignmentsValidationError) Key ¶ added in v0.8.0
func (e UnitAssignmentsValidationError) Key() bool
Key function returns key value.
func (UnitAssignmentsValidationError) Reason ¶ added in v0.8.0
func (e UnitAssignmentsValidationError) Reason() string
Reason function returns reason value.
type UnitMultiError ¶
type UnitMultiError []error
UnitMultiError is an error wrapping multiple validation errors returned by Unit.ValidateAll() if the designated constraints aren't met.
func (UnitMultiError) AllErrors ¶
func (m UnitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitMultiError) Error ¶
func (m UnitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitStatus ¶ added in v0.8.0
type UnitStatus struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id" CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UnitId uint64 `protobuf:"varint,3,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty"` Unit *Unit `protobuf:"bytes,4,opt,name=unit,proto3,oneof" json:"unit,omitempty"` Status StatusUnit `protobuf:"varint,5,opt,name=status,proto3,enum=resources.dispatch.StatusUnit" json:"status,omitempty"` // @sanitize Reason *string `protobuf:"bytes,6,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // @sanitize Code *string `protobuf:"bytes,7,opt,name=code,proto3,oneof" json:"code,omitempty"` UserId *int32 `protobuf:"varint,8,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` User *users.UserShort `protobuf:"bytes,9,opt,name=user,proto3,oneof" json:"user,omitempty"` X *float64 `protobuf:"fixed64,10,opt,name=x,proto3,oneof" json:"x,omitempty"` Y *float64 `protobuf:"fixed64,11,opt,name=y,proto3,oneof" json:"y,omitempty"` // @sanitize Postal *string `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"` CreatorId *int32 `protobuf:"varint,13,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` Creator *users.UserShort `protobuf:"bytes,14,opt,name=creator,proto3,oneof" json:"creator,omitempty"` // contains filtered or unexported fields }
func (*UnitStatus) Descriptor
deprecated
added in
v0.8.0
func (*UnitStatus) Descriptor() ([]byte, []int)
Deprecated: Use UnitStatus.ProtoReflect.Descriptor instead.
func (*UnitStatus) GetCode ¶ added in v0.8.0
func (x *UnitStatus) GetCode() string
func (*UnitStatus) GetCreatedAt ¶ added in v0.8.0
func (x *UnitStatus) GetCreatedAt() *timestamp.Timestamp
func (*UnitStatus) GetCreator ¶ added in v0.8.0
func (x *UnitStatus) GetCreator() *users.UserShort
func (*UnitStatus) GetCreatorId ¶ added in v0.8.0
func (x *UnitStatus) GetCreatorId() int32
func (*UnitStatus) GetId ¶ added in v0.8.0
func (x *UnitStatus) GetId() uint64
func (*UnitStatus) GetPostal ¶ added in v0.8.1
func (x *UnitStatus) GetPostal() string
func (*UnitStatus) GetReason ¶ added in v0.8.0
func (x *UnitStatus) GetReason() string
func (*UnitStatus) GetStatus ¶ added in v0.8.0
func (x *UnitStatus) GetStatus() StatusUnit
func (*UnitStatus) GetUnit ¶ added in v0.8.6
func (x *UnitStatus) GetUnit() *Unit
func (*UnitStatus) GetUnitId ¶ added in v0.8.0
func (x *UnitStatus) GetUnitId() uint64
func (*UnitStatus) GetUser ¶ added in v0.8.0
func (x *UnitStatus) GetUser() *users.UserShort
func (*UnitStatus) GetUserId ¶ added in v0.8.0
func (x *UnitStatus) GetUserId() int32
func (*UnitStatus) GetX ¶ added in v0.8.0
func (x *UnitStatus) GetX() float64
func (*UnitStatus) GetY ¶ added in v0.8.0
func (x *UnitStatus) GetY() float64
func (*UnitStatus) Point ¶ added in v0.8.10
func (x *UnitStatus) Point() orb.Point
func (*UnitStatus) ProtoMessage ¶ added in v0.8.0
func (*UnitStatus) ProtoMessage()
func (*UnitStatus) ProtoReflect ¶ added in v0.8.0
func (x *UnitStatus) ProtoReflect() protoreflect.Message
func (*UnitStatus) Reset ¶ added in v0.8.0
func (x *UnitStatus) Reset()
func (*UnitStatus) Sanitize ¶ added in v0.8.1
func (m *UnitStatus) Sanitize() error
func (*UnitStatus) String ¶ added in v0.8.0
func (x *UnitStatus) String() string
func (*UnitStatus) Validate ¶ added in v0.8.0
func (m *UnitStatus) Validate() error
Validate checks the field values on UnitStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UnitStatus) ValidateAll ¶ added in v0.8.0
func (m *UnitStatus) ValidateAll() error
ValidateAll checks the field values on UnitStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnitStatusMultiError, or nil if none found.
type UnitStatusMultiError ¶ added in v0.8.0
type UnitStatusMultiError []error
UnitStatusMultiError is an error wrapping multiple validation errors returned by UnitStatus.ValidateAll() if the designated constraints aren't met.
func (UnitStatusMultiError) AllErrors ¶ added in v0.8.0
func (m UnitStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitStatusMultiError) Error ¶ added in v0.8.0
func (m UnitStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitStatusValidationError ¶ added in v0.8.0
type UnitStatusValidationError struct {
// contains filtered or unexported fields
}
UnitStatusValidationError is the validation error returned by UnitStatus.Validate if the designated constraints aren't met.
func (UnitStatusValidationError) Cause ¶ added in v0.8.0
func (e UnitStatusValidationError) Cause() error
Cause function returns cause value.
func (UnitStatusValidationError) Error ¶ added in v0.8.0
func (e UnitStatusValidationError) Error() string
Error satisfies the builtin error interface
func (UnitStatusValidationError) ErrorName ¶ added in v0.8.0
func (e UnitStatusValidationError) ErrorName() string
ErrorName returns error name.
func (UnitStatusValidationError) Field ¶ added in v0.8.0
func (e UnitStatusValidationError) Field() string
Field function returns field value.
func (UnitStatusValidationError) Key ¶ added in v0.8.0
func (e UnitStatusValidationError) Key() bool
Key function returns key value.
func (UnitStatusValidationError) Reason ¶ added in v0.8.0
func (e UnitStatusValidationError) Reason() string
Reason function returns reason value.
type UnitValidationError ¶
type UnitValidationError struct {
// contains filtered or unexported fields
}
UnitValidationError is the validation error returned by Unit.Validate if the designated constraints aren't met.
func (UnitValidationError) Cause ¶
func (e UnitValidationError) Cause() error
Cause function returns cause value.
func (UnitValidationError) Error ¶
func (e UnitValidationError) Error() string
Error satisfies the builtin error interface
func (UnitValidationError) ErrorName ¶
func (e UnitValidationError) ErrorName() string
ErrorName returns error name.
func (UnitValidationError) Field ¶
func (e UnitValidationError) Field() string
Field function returns field value.
func (UnitValidationError) Key ¶
func (e UnitValidationError) Key() bool
Key function returns key value.
func (UnitValidationError) Reason ¶
func (e UnitValidationError) Reason() string
Reason function returns reason value.