Documentation ¶
Index ¶
- Constants
- Variables
- func DispatchPointMatchFn(dspId uint64) func(p orb.Pointer) bool
- type Attributes
- func (x *Attributes) Add(attribute string) bool
- func (*Attributes) Descriptor() ([]byte, []int)deprecated
- func (x *Attributes) GetList() []string
- func (x *Attributes) Has(attribute string) bool
- func (*Attributes) ProtoMessage()
- func (x *Attributes) ProtoReflect() protoreflect.Message
- func (x *Attributes) Remove(attribute string) bool
- 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) 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) 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) 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 DispatchReference
- func (*DispatchReference) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchReference) GetReferenceType() DispatchReferenceType
- func (x *DispatchReference) GetTargetDispatchId() uint64
- func (*DispatchReference) ProtoMessage()
- func (x *DispatchReference) ProtoReflect() protoreflect.Message
- func (x *DispatchReference) Reset()
- func (x *DispatchReference) String() string
- func (m *DispatchReference) Validate() error
- func (m *DispatchReference) ValidateAll() error
- type DispatchReferenceMultiError
- type DispatchReferenceType
- func (DispatchReferenceType) Descriptor() protoreflect.EnumDescriptor
- func (x DispatchReferenceType) Enum() *DispatchReferenceType
- func (DispatchReferenceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DispatchReferenceType) Number() protoreflect.EnumNumber
- func (x DispatchReferenceType) String() string
- func (DispatchReferenceType) Type() protoreflect.EnumType
- type DispatchReferenceValidationError
- func (e DispatchReferenceValidationError) Cause() error
- func (e DispatchReferenceValidationError) Error() string
- func (e DispatchReferenceValidationError) ErrorName() string
- func (e DispatchReferenceValidationError) Field() string
- func (e DispatchReferenceValidationError) Key() bool
- func (e DispatchReferenceValidationError) Reason() string
- type DispatchReferences
- func (x *DispatchReferences) Add(ref *DispatchReference) bool
- func (*DispatchReferences) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchReferences) GetReferences() []*DispatchReference
- func (x *DispatchReferences) Has(dspId uint64) bool
- func (*DispatchReferences) ProtoMessage()
- func (x *DispatchReferences) ProtoReflect() protoreflect.Message
- func (x *DispatchReferences) Remove(dspId uint64) bool
- func (x *DispatchReferences) Reset()
- func (x *DispatchReferences) Scan(value any) error
- func (x *DispatchReferences) String() string
- func (m *DispatchReferences) Validate() error
- func (m *DispatchReferences) ValidateAll() error
- func (x *DispatchReferences) Value() (driver.Value, error)
- type DispatchReferencesMultiError
- type DispatchReferencesValidationError
- func (e DispatchReferencesValidationError) Cause() error
- func (e DispatchReferencesValidationError) Error() string
- func (e DispatchReferencesValidationError) ErrorName() string
- func (e DispatchReferencesValidationError) Field() string
- func (e DispatchReferencesValidationError) Key() bool
- func (e DispatchReferencesValidationError) Reason() string
- 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 Disponents
- func (*Disponents) Descriptor() ([]byte, []int)deprecated
- func (x *Disponents) GetDisponents() []*users.UserShort
- func (x *Disponents) GetJob() string
- func (x *Disponents) Merge(in *Disponents) *Disponents
- func (*Disponents) ProtoMessage()
- func (x *Disponents) ProtoReflect() protoreflect.Message
- func (x *Disponents) Reset()
- func (x *Disponents) String() string
- func (m *Disponents) Validate() error
- func (m *Disponents) ValidateAll() error
- type DisponentsMultiError
- type DisponentsValidationError
- type PredefinedStatus
- func (*PredefinedStatus) Descriptor() ([]byte, []int)deprecated
- func (x *PredefinedStatus) GetDispatchStatus() []string
- func (x *PredefinedStatus) GetUnitStatus() []string
- func (*PredefinedStatus) ProtoMessage()
- func (x *PredefinedStatus) ProtoReflect() protoreflect.Message
- func (x *PredefinedStatus) Reset()
- func (x *PredefinedStatus) Scan(value any) error
- func (x *PredefinedStatus) String() string
- func (m *PredefinedStatus) Validate() error
- func (m *PredefinedStatus) ValidateAll() error
- func (x *PredefinedStatus) Value() (driver.Value, error)
- type PredefinedStatusMultiError
- type PredefinedStatusValidationError
- func (e PredefinedStatusValidationError) Cause() error
- func (e PredefinedStatusValidationError) Error() string
- func (e PredefinedStatusValidationError) ErrorName() string
- func (e PredefinedStatusValidationError) Field() string
- func (e PredefinedStatusValidationError) Key() bool
- func (e PredefinedStatusValidationError) Reason() string
- type Settings
- func (x *Settings) Default(job string)
- 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 (x *Settings) GetPredefinedStatus() *PredefinedStatus
- func (x *Settings) GetTimings() *Timings
- 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 Timings
- func (*Timings) Descriptor() ([]byte, []int)deprecated
- func (x *Timings) GetDispatchMaxWait() int64
- func (x *Timings) GetRequireUnit() bool
- func (x *Timings) GetRequireUnitReminderSeconds() int64
- func (*Timings) ProtoMessage()
- func (x *Timings) ProtoReflect() protoreflect.Message
- func (x *Timings) Reset()
- func (x *Timings) Scan(value any) error
- func (x *Timings) String() string
- func (m *Timings) Validate() error
- func (m *Timings) ValidateAll() error
- func (x *Timings) Value() (driver.Value, error)
- type TimingsMultiError
- type TimingsValidationError
- type Unit
- func (*Unit) Descriptor() ([]byte, []int)deprecated
- func (x *Unit) GetAttributes() *Attributes
- func (x *Unit) GetColor() string
- func (x *Unit) GetCreatedAt() *timestamp.Timestamp
- func (x *Unit) GetDescription() string
- func (x *Unit) GetHomePostal() 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) *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
- type UserUnitMapping
- func (*UserUnitMapping) Descriptor() ([]byte, []int)deprecated
- func (x *UserUnitMapping) GetCreatedAt() *timestamp.Timestamp
- func (x *UserUnitMapping) GetJob() string
- func (x *UserUnitMapping) GetUnitId() uint64
- func (x *UserUnitMapping) GetUserId() int32
- func (x *UserUnitMapping) Merge(in *UserUnitMapping) *UserUnitMapping
- func (*UserUnitMapping) ProtoMessage()
- func (x *UserUnitMapping) ProtoReflect() protoreflect.Message
- func (x *UserUnitMapping) Reset()
- func (x *UserUnitMapping) String() string
- func (m *UserUnitMapping) Validate() error
- func (m *UserUnitMapping) ValidateAll() error
- type UserUnitMappingMultiError
- type UserUnitMappingValidationError
- func (e UserUnitMappingValidationError) Cause() error
- func (e UserUnitMappingValidationError) Error() string
- func (e UserUnitMappingValidationError) ErrorName() string
- func (e UserUnitMappingValidationError) Field() string
- func (e UserUnitMappingValidationError) Key() bool
- func (e UserUnitMappingValidationError) Reason() string
Constants ¶
const ( UnitAttributeStatic = "static" UnitAttributeNoDispatchAutoAssign = "no_dispatch_auto_assign" DispatchAttributeMultiple = "multiple" DispatchAttributeDuplicate = "duplicate" DispatchAttributeTooOld = "too_old" )
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 ( 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 ( 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_centrum_dispatches_proto protoreflect.FileDescriptor
var File_resources_centrum_general_proto protoreflect.FileDescriptor
var File_resources_centrum_settings_proto protoreflect.FileDescriptor
var File_resources_centrum_units_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Attributes ¶
type Attributes struct { List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Attributes) Add ¶
func (x *Attributes) Add(attribute string) bool
func (*Attributes) Descriptor
deprecated
func (*Attributes) Descriptor() ([]byte, []int)
Deprecated: Use Attributes.ProtoReflect.Descriptor instead.
func (*Attributes) GetList ¶
func (x *Attributes) GetList() []string
func (*Attributes) Has ¶
func (x *Attributes) Has(attribute string) bool
func (*Attributes) ProtoMessage ¶
func (*Attributes) ProtoMessage()
func (*Attributes) ProtoReflect ¶
func (x *Attributes) ProtoReflect() protoreflect.Message
func (*Attributes) Remove ¶
func (x *Attributes) Remove(attribute string) bool
func (*Attributes) Reset ¶
func (x *Attributes) Reset()
func (*Attributes) Scan ¶
func (x *Attributes) Scan(value any) error
Scan implements driver.Valuer for protobuf Attributes.
func (*Attributes) String ¶
func (x *Attributes) String() string
func (*Attributes) Validate ¶
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 ¶
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 ¶
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 ¶
func (m AttributesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AttributesMultiError) Error ¶
func (m AttributesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AttributesValidationError ¶
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 ¶
func (e AttributesValidationError) Cause() error
Cause function returns cause value.
func (AttributesValidationError) Error ¶
func (e AttributesValidationError) Error() string
Error satisfies the builtin error interface
func (AttributesValidationError) ErrorName ¶
func (e AttributesValidationError) ErrorName() string
ErrorName returns error name.
func (AttributesValidationError) Field ¶
func (e AttributesValidationError) Field() string
Field function returns field value.
func (AttributesValidationError) Key ¶
func (e AttributesValidationError) Key() bool
Key function returns key value.
func (AttributesValidationError) Reason ¶
func (e AttributesValidationError) Reason() string
Reason function returns reason value.
type CentrumMode ¶
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 ¶
func (CentrumMode) Descriptor() protoreflect.EnumDescriptor
func (CentrumMode) Enum ¶
func (x CentrumMode) Enum() *CentrumMode
func (CentrumMode) EnumDescriptor
deprecated
func (CentrumMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use CentrumMode.Descriptor instead.
func (CentrumMode) Number ¶
func (x CentrumMode) Number() protoreflect.EnumNumber
func (CentrumMode) String ¶
func (x CentrumMode) String() string
func (CentrumMode) Type ¶
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"` References *DispatchReferences `protobuf:"bytes,17,opt,name=references,proto3,oneof" json:"references,omitempty"` // contains filtered or unexported fields }
func (*Dispatch) Descriptor
deprecated
func (*Dispatch) GetAttributes ¶
func (x *Dispatch) GetAttributes() *Attributes
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) 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 ¶
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
func (*DispatchAssignment) Descriptor() ([]byte, []int)
Deprecated: Use DispatchAssignment.ProtoReflect.Descriptor instead.
func (*DispatchAssignment) GetCreatedAt ¶
func (x *DispatchAssignment) GetCreatedAt() *timestamp.Timestamp
func (*DispatchAssignment) GetDispatchId ¶
func (x *DispatchAssignment) GetDispatchId() uint64
func (*DispatchAssignment) GetExpiresAt ¶
func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp
func (*DispatchAssignment) GetUnit ¶
func (x *DispatchAssignment) GetUnit() *Unit
func (*DispatchAssignment) GetUnitId ¶
func (x *DispatchAssignment) GetUnitId() uint64
func (*DispatchAssignment) ProtoMessage ¶
func (*DispatchAssignment) ProtoMessage()
func (*DispatchAssignment) ProtoReflect ¶
func (x *DispatchAssignment) ProtoReflect() protoreflect.Message
func (*DispatchAssignment) Reset ¶
func (x *DispatchAssignment) Reset()
func (*DispatchAssignment) String ¶
func (x *DispatchAssignment) String() string
func (*DispatchAssignment) Validate ¶
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 ¶
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 ¶
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 ¶
func (m DispatchAssignmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchAssignmentMultiError) Error ¶
func (m DispatchAssignmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchAssignmentValidationError ¶
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 ¶
func (e DispatchAssignmentValidationError) Cause() error
Cause function returns cause value.
func (DispatchAssignmentValidationError) Error ¶
func (e DispatchAssignmentValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchAssignmentValidationError) ErrorName ¶
func (e DispatchAssignmentValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchAssignmentValidationError) Field ¶
func (e DispatchAssignmentValidationError) Field() string
Field function returns field value.
func (DispatchAssignmentValidationError) Key ¶
func (e DispatchAssignmentValidationError) Key() bool
Key function returns key value.
func (DispatchAssignmentValidationError) Reason ¶
func (e DispatchAssignmentValidationError) Reason() string
Reason function returns reason value.
type DispatchAssignments ¶
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
func (*DispatchAssignments) Descriptor() ([]byte, []int)
Deprecated: Use DispatchAssignments.ProtoReflect.Descriptor instead.
func (*DispatchAssignments) GetDispatchId ¶
func (x *DispatchAssignments) GetDispatchId() uint64
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) String ¶
func (x *DispatchAssignments) String() string
func (*DispatchAssignments) Validate ¶
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 ¶
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 ¶
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 ¶
func (m DispatchAssignmentsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchAssignmentsMultiError) Error ¶
func (m DispatchAssignmentsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchAssignmentsValidationError ¶
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 ¶
func (e DispatchAssignmentsValidationError) Cause() error
Cause function returns cause value.
func (DispatchAssignmentsValidationError) Error ¶
func (e DispatchAssignmentsValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchAssignmentsValidationError) ErrorName ¶
func (e DispatchAssignmentsValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchAssignmentsValidationError) Field ¶
func (e DispatchAssignmentsValidationError) Field() string
Field function returns field value.
func (DispatchAssignmentsValidationError) Key ¶
func (e DispatchAssignmentsValidationError) Key() bool
Key function returns key value.
func (DispatchAssignmentsValidationError) Reason ¶
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 DispatchReference ¶
type DispatchReference struct { TargetDispatchId uint64 `protobuf:"varint,1,opt,name=target_dispatch_id,json=targetDispatchId,proto3" json:"target_dispatch_id,omitempty"` ReferenceType DispatchReferenceType `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DispatchReference) Descriptor
deprecated
func (*DispatchReference) Descriptor() ([]byte, []int)
Deprecated: Use DispatchReference.ProtoReflect.Descriptor instead.
func (*DispatchReference) GetReferenceType ¶
func (x *DispatchReference) GetReferenceType() DispatchReferenceType
func (*DispatchReference) GetTargetDispatchId ¶
func (x *DispatchReference) GetTargetDispatchId() uint64
func (*DispatchReference) ProtoMessage ¶
func (*DispatchReference) ProtoMessage()
func (*DispatchReference) ProtoReflect ¶
func (x *DispatchReference) ProtoReflect() protoreflect.Message
func (*DispatchReference) Reset ¶
func (x *DispatchReference) Reset()
func (*DispatchReference) String ¶
func (x *DispatchReference) String() string
func (*DispatchReference) Validate ¶
func (m *DispatchReference) Validate() error
Validate checks the field values on DispatchReference 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 (*DispatchReference) ValidateAll ¶
func (m *DispatchReference) ValidateAll() error
ValidateAll checks the field values on DispatchReference 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 DispatchReferenceMultiError, or nil if none found.
type DispatchReferenceMultiError ¶
type DispatchReferenceMultiError []error
DispatchReferenceMultiError is an error wrapping multiple validation errors returned by DispatchReference.ValidateAll() if the designated constraints aren't met.
func (DispatchReferenceMultiError) AllErrors ¶
func (m DispatchReferenceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchReferenceMultiError) Error ¶
func (m DispatchReferenceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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) EnumDescriptor
deprecated
func (DispatchReferenceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DispatchReferenceType.Descriptor instead.
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 DispatchReferenceValidationError ¶
type DispatchReferenceValidationError struct {
// contains filtered or unexported fields
}
DispatchReferenceValidationError is the validation error returned by DispatchReference.Validate if the designated constraints aren't met.
func (DispatchReferenceValidationError) Cause ¶
func (e DispatchReferenceValidationError) Cause() error
Cause function returns cause value.
func (DispatchReferenceValidationError) Error ¶
func (e DispatchReferenceValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchReferenceValidationError) ErrorName ¶
func (e DispatchReferenceValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchReferenceValidationError) Field ¶
func (e DispatchReferenceValidationError) Field() string
Field function returns field value.
func (DispatchReferenceValidationError) Key ¶
func (e DispatchReferenceValidationError) Key() bool
Key function returns key value.
func (DispatchReferenceValidationError) Reason ¶
func (e DispatchReferenceValidationError) Reason() string
Reason function returns reason value.
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) Descriptor
deprecated
func (*DispatchReferences) Descriptor() ([]byte, []int)
Deprecated: Use DispatchReferences.ProtoReflect.Descriptor instead.
func (*DispatchReferences) GetReferences ¶
func (x *DispatchReferences) GetReferences() []*DispatchReference
func (*DispatchReferences) Has ¶
func (x *DispatchReferences) Has(dspId uint64) bool
func (*DispatchReferences) ProtoMessage ¶
func (*DispatchReferences) ProtoMessage()
func (*DispatchReferences) ProtoReflect ¶
func (x *DispatchReferences) ProtoReflect() protoreflect.Message
func (*DispatchReferences) Remove ¶
func (x *DispatchReferences) Remove(dspId uint64) bool
func (*DispatchReferences) Reset ¶
func (x *DispatchReferences) Reset()
func (*DispatchReferences) Scan ¶
func (x *DispatchReferences) Scan(value any) error
Scan implements driver.Valuer for protobuf DispatchReferences.
func (*DispatchReferences) String ¶
func (x *DispatchReferences) String() string
func (*DispatchReferences) Validate ¶
func (m *DispatchReferences) Validate() error
Validate checks the field values on DispatchReferences 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 (*DispatchReferences) ValidateAll ¶
func (m *DispatchReferences) ValidateAll() error
ValidateAll checks the field values on DispatchReferences 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 DispatchReferencesMultiError, or nil if none found.
type DispatchReferencesMultiError ¶
type DispatchReferencesMultiError []error
DispatchReferencesMultiError is an error wrapping multiple validation errors returned by DispatchReferences.ValidateAll() if the designated constraints aren't met.
func (DispatchReferencesMultiError) AllErrors ¶
func (m DispatchReferencesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchReferencesMultiError) Error ¶
func (m DispatchReferencesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchReferencesValidationError ¶
type DispatchReferencesValidationError struct {
// contains filtered or unexported fields
}
DispatchReferencesValidationError is the validation error returned by DispatchReferences.Validate if the designated constraints aren't met.
func (DispatchReferencesValidationError) Cause ¶
func (e DispatchReferencesValidationError) Cause() error
Cause function returns cause value.
func (DispatchReferencesValidationError) Error ¶
func (e DispatchReferencesValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchReferencesValidationError) ErrorName ¶
func (e DispatchReferencesValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchReferencesValidationError) Field ¶
func (e DispatchReferencesValidationError) Field() string
Field function returns field value.
func (DispatchReferencesValidationError) Key ¶
func (e DispatchReferencesValidationError) Key() bool
Key function returns key value.
func (DispatchReferencesValidationError) Reason ¶
func (e DispatchReferencesValidationError) Reason() string
Reason function returns reason value.
type DispatchStatus ¶
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.centrum.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
func (*DispatchStatus) Descriptor() ([]byte, []int)
Deprecated: Use DispatchStatus.ProtoReflect.Descriptor instead.
func (*DispatchStatus) GetCode ¶
func (x *DispatchStatus) GetCode() string
func (*DispatchStatus) GetCreatedAt ¶
func (x *DispatchStatus) GetCreatedAt() *timestamp.Timestamp
func (*DispatchStatus) GetDispatchId ¶
func (x *DispatchStatus) GetDispatchId() uint64
func (*DispatchStatus) GetId ¶
func (x *DispatchStatus) GetId() uint64
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() *Unit
func (*DispatchStatus) GetUnitId ¶
func (x *DispatchStatus) GetUnitId() uint64
func (*DispatchStatus) GetUser ¶
func (x *DispatchStatus) GetUser() *users.UserShort
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) 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
func (*DispatchStatus) String ¶
func (x *DispatchStatus) String() string
func (*DispatchStatus) Validate ¶
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 ¶
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 ¶
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 ¶
func (m DispatchStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DispatchStatusMultiError) Error ¶
func (m DispatchStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DispatchStatusValidationError ¶
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 ¶
func (e DispatchStatusValidationError) Cause() error
Cause function returns cause value.
func (DispatchStatusValidationError) Error ¶
func (e DispatchStatusValidationError) Error() string
Error satisfies the builtin error interface
func (DispatchStatusValidationError) ErrorName ¶
func (e DispatchStatusValidationError) ErrorName() string
ErrorName returns error name.
func (DispatchStatusValidationError) Field ¶
func (e DispatchStatusValidationError) Field() string
Field function returns field value.
func (DispatchStatusValidationError) Key ¶
func (e DispatchStatusValidationError) Key() bool
Key function returns key value.
func (DispatchStatusValidationError) Reason ¶
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 Disponents ¶
type Disponents 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 (*Disponents) Descriptor
deprecated
func (*Disponents) Descriptor() ([]byte, []int)
Deprecated: Use Disponents.ProtoReflect.Descriptor instead.
func (*Disponents) GetDisponents ¶
func (x *Disponents) GetDisponents() []*users.UserShort
func (*Disponents) GetJob ¶
func (x *Disponents) GetJob() string
func (*Disponents) Merge ¶
func (x *Disponents) Merge(in *Disponents) *Disponents
func (*Disponents) ProtoMessage ¶
func (*Disponents) ProtoMessage()
func (*Disponents) ProtoReflect ¶
func (x *Disponents) ProtoReflect() protoreflect.Message
func (*Disponents) Reset ¶
func (x *Disponents) Reset()
func (*Disponents) String ¶
func (x *Disponents) String() string
func (*Disponents) Validate ¶
func (m *Disponents) Validate() error
Validate checks the field values on Disponents 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 (*Disponents) ValidateAll ¶
func (m *Disponents) ValidateAll() error
ValidateAll checks the field values on Disponents 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 DisponentsMultiError, or nil if none found.
type DisponentsMultiError ¶
type DisponentsMultiError []error
DisponentsMultiError is an error wrapping multiple validation errors returned by Disponents.ValidateAll() if the designated constraints aren't met.
func (DisponentsMultiError) AllErrors ¶
func (m DisponentsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DisponentsMultiError) Error ¶
func (m DisponentsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DisponentsValidationError ¶
type DisponentsValidationError struct {
// contains filtered or unexported fields
}
DisponentsValidationError is the validation error returned by Disponents.Validate if the designated constraints aren't met.
func (DisponentsValidationError) Cause ¶
func (e DisponentsValidationError) Cause() error
Cause function returns cause value.
func (DisponentsValidationError) Error ¶
func (e DisponentsValidationError) Error() string
Error satisfies the builtin error interface
func (DisponentsValidationError) ErrorName ¶
func (e DisponentsValidationError) ErrorName() string
ErrorName returns error name.
func (DisponentsValidationError) Field ¶
func (e DisponentsValidationError) Field() string
Field function returns field value.
func (DisponentsValidationError) Key ¶
func (e DisponentsValidationError) Key() bool
Key function returns key value.
func (DisponentsValidationError) Reason ¶
func (e DisponentsValidationError) Reason() string
Reason function returns reason value.
type PredefinedStatus ¶
type PredefinedStatus struct { UnitStatus []string `protobuf:"bytes,1,rep,name=unit_status,json=unitStatus,proto3" json:"unit_status,omitempty"` DispatchStatus []string `protobuf:"bytes,2,rep,name=dispatch_status,json=dispatchStatus,proto3" json:"dispatch_status,omitempty"` // contains filtered or unexported fields }
func (*PredefinedStatus) Descriptor
deprecated
func (*PredefinedStatus) Descriptor() ([]byte, []int)
Deprecated: Use PredefinedStatus.ProtoReflect.Descriptor instead.
func (*PredefinedStatus) GetDispatchStatus ¶
func (x *PredefinedStatus) GetDispatchStatus() []string
func (*PredefinedStatus) GetUnitStatus ¶
func (x *PredefinedStatus) GetUnitStatus() []string
func (*PredefinedStatus) ProtoMessage ¶
func (*PredefinedStatus) ProtoMessage()
func (*PredefinedStatus) ProtoReflect ¶
func (x *PredefinedStatus) ProtoReflect() protoreflect.Message
func (*PredefinedStatus) Reset ¶
func (x *PredefinedStatus) Reset()
func (*PredefinedStatus) Scan ¶
func (x *PredefinedStatus) Scan(value any) error
Scan implements driver.Valuer for protobuf PredefinedStatus.
func (*PredefinedStatus) String ¶
func (x *PredefinedStatus) String() string
func (*PredefinedStatus) Validate ¶
func (m *PredefinedStatus) Validate() error
Validate checks the field values on PredefinedStatus 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 (*PredefinedStatus) ValidateAll ¶
func (m *PredefinedStatus) ValidateAll() error
ValidateAll checks the field values on PredefinedStatus 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 PredefinedStatusMultiError, or nil if none found.
type PredefinedStatusMultiError ¶
type PredefinedStatusMultiError []error
PredefinedStatusMultiError is an error wrapping multiple validation errors returned by PredefinedStatus.ValidateAll() if the designated constraints aren't met.
func (PredefinedStatusMultiError) AllErrors ¶
func (m PredefinedStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PredefinedStatusMultiError) Error ¶
func (m PredefinedStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PredefinedStatusValidationError ¶
type PredefinedStatusValidationError struct {
// contains filtered or unexported fields
}
PredefinedStatusValidationError is the validation error returned by PredefinedStatus.Validate if the designated constraints aren't met.
func (PredefinedStatusValidationError) Cause ¶
func (e PredefinedStatusValidationError) Cause() error
Cause function returns cause value.
func (PredefinedStatusValidationError) Error ¶
func (e PredefinedStatusValidationError) Error() string
Error satisfies the builtin error interface
func (PredefinedStatusValidationError) ErrorName ¶
func (e PredefinedStatusValidationError) ErrorName() string
ErrorName returns error name.
func (PredefinedStatusValidationError) Field ¶
func (e PredefinedStatusValidationError) Field() string
Field function returns field value.
func (PredefinedStatusValidationError) Key ¶
func (e PredefinedStatusValidationError) Key() bool
Key function returns key value.
func (PredefinedStatusValidationError) Reason ¶
func (e PredefinedStatusValidationError) Reason() string
Reason function returns reason value.
type Settings ¶
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.centrum.CentrumMode" json:"mode,omitempty"` FallbackMode CentrumMode `` /* 133-byte string literal not displayed */ PredefinedStatus *PredefinedStatus `protobuf:"bytes,5,opt,name=predefined_status,json=predefinedStatus,proto3,oneof" json:"predefined_status,omitempty"` Timings *Timings `protobuf:"bytes,6,opt,name=timings,proto3" json:"timings,omitempty"` // contains filtered or unexported fields }
func (*Settings) Descriptor
deprecated
func (*Settings) GetEnabled ¶
func (*Settings) GetFallbackMode ¶
func (x *Settings) GetFallbackMode() CentrumMode
func (*Settings) GetMode ¶
func (x *Settings) GetMode() CentrumMode
func (*Settings) GetPredefinedStatus ¶
func (x *Settings) GetPredefinedStatus() *PredefinedStatus
func (*Settings) GetTimings ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶
func (x *Settings) ProtoReflect() protoreflect.Message
func (*Settings) Validate ¶
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 ¶
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 ¶
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 ¶
func (m SettingsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingsMultiError) Error ¶
func (m SettingsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingsValidationError ¶
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 ¶
func (e SettingsValidationError) Cause() error
Cause function returns cause value.
func (SettingsValidationError) Error ¶
func (e SettingsValidationError) Error() string
Error satisfies the builtin error interface
func (SettingsValidationError) ErrorName ¶
func (e SettingsValidationError) ErrorName() string
ErrorName returns error name.
func (SettingsValidationError) Field ¶
func (e SettingsValidationError) Field() string
Field function returns field value.
func (SettingsValidationError) Key ¶
func (e SettingsValidationError) Key() bool
Key function returns key value.
func (SettingsValidationError) Reason ¶
func (e SettingsValidationError) Reason() string
Reason function returns reason value.
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 )
func (StatusDispatch) Descriptor ¶
func (StatusDispatch) Descriptor() protoreflect.EnumDescriptor
func (StatusDispatch) Enum ¶
func (x StatusDispatch) Enum() *StatusDispatch
func (StatusDispatch) EnumDescriptor
deprecated
func (StatusDispatch) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusDispatch.Descriptor instead.
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 StatusUnit ¶
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 ¶
func (StatusUnit) Descriptor() protoreflect.EnumDescriptor
func (StatusUnit) Enum ¶
func (x StatusUnit) Enum() *StatusUnit
func (StatusUnit) EnumDescriptor
deprecated
func (StatusUnit) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusUnit.Descriptor instead.
func (StatusUnit) Number ¶
func (x StatusUnit) Number() protoreflect.EnumNumber
func (StatusUnit) String ¶
func (x StatusUnit) String() string
func (StatusUnit) Type ¶
func (StatusUnit) 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) EnumDescriptor
deprecated
func (TakeDispatchResp) EnumDescriptor() ([]byte, []int)
Deprecated: Use TakeDispatchResp.Descriptor instead.
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
type Timings ¶
type Timings struct { DispatchMaxWait int64 `protobuf:"varint,1,opt,name=dispatch_max_wait,json=dispatchMaxWait,proto3" json:"dispatch_max_wait,omitempty"` RequireUnit bool `protobuf:"varint,2,opt,name=require_unit,json=requireUnit,proto3" json:"require_unit,omitempty"` RequireUnitReminderSeconds int64 `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Timings) Descriptor
deprecated
func (*Timings) GetDispatchMaxWait ¶
func (*Timings) GetRequireUnit ¶ added in v0.9.3
func (*Timings) GetRequireUnitReminderSeconds ¶ added in v0.9.3
func (*Timings) ProtoMessage ¶
func (*Timings) ProtoMessage()
func (*Timings) ProtoReflect ¶
func (x *Timings) ProtoReflect() protoreflect.Message
func (*Timings) Validate ¶
Validate checks the field values on Timings 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 (*Timings) ValidateAll ¶
ValidateAll checks the field values on Timings 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 TimingsMultiError, or nil if none found.
type TimingsMultiError ¶
type TimingsMultiError []error
TimingsMultiError is an error wrapping multiple validation errors returned by Timings.ValidateAll() if the designated constraints aren't met.
func (TimingsMultiError) AllErrors ¶
func (m TimingsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TimingsMultiError) Error ¶
func (m TimingsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TimingsValidationError ¶
type TimingsValidationError struct {
// contains filtered or unexported fields
}
TimingsValidationError is the validation error returned by Timings.Validate if the designated constraints aren't met.
func (TimingsValidationError) Cause ¶
func (e TimingsValidationError) Cause() error
Cause function returns cause value.
func (TimingsValidationError) Error ¶
func (e TimingsValidationError) Error() string
Error satisfies the builtin error interface
func (TimingsValidationError) ErrorName ¶
func (e TimingsValidationError) ErrorName() string
ErrorName returns error name.
func (TimingsValidationError) Field ¶
func (e TimingsValidationError) Field() string
Field function returns field value.
func (TimingsValidationError) Key ¶
func (e TimingsValidationError) Key() bool
Key function returns key value.
func (TimingsValidationError) Reason ¶
func (e TimingsValidationError) Reason() string
Reason function returns reason value.
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"` // @sanitize: method=StripTags 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"` Attributes *Attributes `protobuf:"bytes,12,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"` HomePostal *string `protobuf:"bytes,13,opt,name=home_postal,json=homePostal,proto3,oneof" json:"home_postal,omitempty"` // contains filtered or unexported fields }
func (*Unit) Descriptor
deprecated
func (*Unit) GetAttributes ¶
func (x *Unit) GetAttributes() *Attributes
func (*Unit) GetCreatedAt ¶
func (*Unit) GetDescription ¶
func (*Unit) GetHomePostal ¶
func (*Unit) GetInitials ¶
func (*Unit) GetStatus ¶
func (x *Unit) GetStatus() *UnitStatus
func (*Unit) GetUpdatedAt ¶
func (*Unit) GetUsers ¶
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 ¶
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
func (*UnitAssignment) Descriptor() ([]byte, []int)
Deprecated: Use UnitAssignment.ProtoReflect.Descriptor instead.
func (*UnitAssignment) GetUnitId ¶
func (x *UnitAssignment) GetUnitId() uint64
func (*UnitAssignment) GetUser ¶
func (x *UnitAssignment) GetUser() *users.UserShort
func (*UnitAssignment) GetUserId ¶
func (x *UnitAssignment) GetUserId() int32
func (*UnitAssignment) ProtoMessage ¶
func (*UnitAssignment) ProtoMessage()
func (*UnitAssignment) ProtoReflect ¶
func (x *UnitAssignment) ProtoReflect() protoreflect.Message
func (*UnitAssignment) Reset ¶
func (x *UnitAssignment) Reset()
func (*UnitAssignment) String ¶
func (x *UnitAssignment) String() string
func (*UnitAssignment) Validate ¶
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 ¶
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 ¶
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 ¶
func (m UnitAssignmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitAssignmentMultiError) Error ¶
func (m UnitAssignmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitAssignmentValidationError ¶
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 ¶
func (e UnitAssignmentValidationError) Cause() error
Cause function returns cause value.
func (UnitAssignmentValidationError) Error ¶
func (e UnitAssignmentValidationError) Error() string
Error satisfies the builtin error interface
func (UnitAssignmentValidationError) ErrorName ¶
func (e UnitAssignmentValidationError) ErrorName() string
ErrorName returns error name.
func (UnitAssignmentValidationError) Field ¶
func (e UnitAssignmentValidationError) Field() string
Field function returns field value.
func (UnitAssignmentValidationError) Key ¶
func (e UnitAssignmentValidationError) Key() bool
Key function returns key value.
func (UnitAssignmentValidationError) Reason ¶
func (e UnitAssignmentValidationError) Reason() string
Reason function returns reason value.
type UnitAssignments ¶
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
func (*UnitAssignments) Descriptor() ([]byte, []int)
Deprecated: Use UnitAssignments.ProtoReflect.Descriptor instead.
func (*UnitAssignments) GetJob ¶
func (x *UnitAssignments) GetJob() string
func (*UnitAssignments) GetUnitId ¶
func (x *UnitAssignments) GetUnitId() uint64
func (*UnitAssignments) GetUsers ¶
func (x *UnitAssignments) GetUsers() []*UnitAssignment
func (*UnitAssignments) ProtoMessage ¶
func (*UnitAssignments) ProtoMessage()
func (*UnitAssignments) ProtoReflect ¶
func (x *UnitAssignments) ProtoReflect() protoreflect.Message
func (*UnitAssignments) Reset ¶
func (x *UnitAssignments) Reset()
func (*UnitAssignments) String ¶
func (x *UnitAssignments) String() string
func (*UnitAssignments) Validate ¶
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 ¶
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 ¶
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 ¶
func (m UnitAssignmentsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitAssignmentsMultiError) Error ¶
func (m UnitAssignmentsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitAssignmentsValidationError ¶
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 ¶
func (e UnitAssignmentsValidationError) Cause() error
Cause function returns cause value.
func (UnitAssignmentsValidationError) Error ¶
func (e UnitAssignmentsValidationError) Error() string
Error satisfies the builtin error interface
func (UnitAssignmentsValidationError) ErrorName ¶
func (e UnitAssignmentsValidationError) ErrorName() string
ErrorName returns error name.
func (UnitAssignmentsValidationError) Field ¶
func (e UnitAssignmentsValidationError) Field() string
Field function returns field value.
func (UnitAssignmentsValidationError) Key ¶
func (e UnitAssignmentsValidationError) Key() bool
Key function returns key value.
func (UnitAssignmentsValidationError) Reason ¶
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 ¶
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.centrum.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
func (*UnitStatus) Descriptor() ([]byte, []int)
Deprecated: Use UnitStatus.ProtoReflect.Descriptor instead.
func (*UnitStatus) GetCode ¶
func (x *UnitStatus) GetCode() string
func (*UnitStatus) GetCreatedAt ¶
func (x *UnitStatus) GetCreatedAt() *timestamp.Timestamp
func (*UnitStatus) GetCreator ¶
func (x *UnitStatus) GetCreator() *users.UserShort
func (*UnitStatus) GetCreatorId ¶
func (x *UnitStatus) GetCreatorId() int32
func (*UnitStatus) GetId ¶
func (x *UnitStatus) GetId() uint64
func (*UnitStatus) GetPostal ¶
func (x *UnitStatus) GetPostal() string
func (*UnitStatus) GetReason ¶
func (x *UnitStatus) GetReason() string
func (*UnitStatus) GetStatus ¶
func (x *UnitStatus) GetStatus() StatusUnit
func (*UnitStatus) GetUnit ¶
func (x *UnitStatus) GetUnit() *Unit
func (*UnitStatus) GetUnitId ¶
func (x *UnitStatus) GetUnitId() uint64
func (*UnitStatus) GetUser ¶
func (x *UnitStatus) GetUser() *users.UserShort
func (*UnitStatus) GetUserId ¶
func (x *UnitStatus) GetUserId() int32
func (*UnitStatus) GetX ¶
func (x *UnitStatus) GetX() float64
func (*UnitStatus) GetY ¶
func (x *UnitStatus) GetY() float64
func (*UnitStatus) Point ¶
func (x *UnitStatus) Point() orb.Point
func (*UnitStatus) ProtoMessage ¶
func (*UnitStatus) ProtoMessage()
func (*UnitStatus) ProtoReflect ¶
func (x *UnitStatus) ProtoReflect() protoreflect.Message
func (*UnitStatus) Reset ¶
func (x *UnitStatus) Reset()
func (*UnitStatus) Sanitize ¶
func (m *UnitStatus) Sanitize() error
func (*UnitStatus) String ¶
func (x *UnitStatus) String() string
func (*UnitStatus) Validate ¶
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 ¶
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 ¶
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 ¶
func (m UnitStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnitStatusMultiError) Error ¶
func (m UnitStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnitStatusValidationError ¶
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 ¶
func (e UnitStatusValidationError) Cause() error
Cause function returns cause value.
func (UnitStatusValidationError) Error ¶
func (e UnitStatusValidationError) Error() string
Error satisfies the builtin error interface
func (UnitStatusValidationError) ErrorName ¶
func (e UnitStatusValidationError) ErrorName() string
ErrorName returns error name.
func (UnitStatusValidationError) Field ¶
func (e UnitStatusValidationError) Field() string
Field function returns field value.
func (UnitStatusValidationError) Key ¶
func (e UnitStatusValidationError) Key() bool
Key function returns key value.
func (UnitStatusValidationError) Reason ¶
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.
type UserUnitMapping ¶
type UserUnitMapping 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"` UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*UserUnitMapping) Descriptor
deprecated
func (*UserUnitMapping) Descriptor() ([]byte, []int)
Deprecated: Use UserUnitMapping.ProtoReflect.Descriptor instead.
func (*UserUnitMapping) GetCreatedAt ¶
func (x *UserUnitMapping) GetCreatedAt() *timestamp.Timestamp
func (*UserUnitMapping) GetJob ¶
func (x *UserUnitMapping) GetJob() string
func (*UserUnitMapping) GetUnitId ¶
func (x *UserUnitMapping) GetUnitId() uint64
func (*UserUnitMapping) GetUserId ¶
func (x *UserUnitMapping) GetUserId() int32
func (*UserUnitMapping) Merge ¶
func (x *UserUnitMapping) Merge(in *UserUnitMapping) *UserUnitMapping
func (*UserUnitMapping) ProtoMessage ¶
func (*UserUnitMapping) ProtoMessage()
func (*UserUnitMapping) ProtoReflect ¶
func (x *UserUnitMapping) ProtoReflect() protoreflect.Message
func (*UserUnitMapping) Reset ¶
func (x *UserUnitMapping) Reset()
func (*UserUnitMapping) String ¶
func (x *UserUnitMapping) String() string
func (*UserUnitMapping) Validate ¶
func (m *UserUnitMapping) Validate() error
Validate checks the field values on UserUnitMapping 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 (*UserUnitMapping) ValidateAll ¶
func (m *UserUnitMapping) ValidateAll() error
ValidateAll checks the field values on UserUnitMapping 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 UserUnitMappingMultiError, or nil if none found.
type UserUnitMappingMultiError ¶
type UserUnitMappingMultiError []error
UserUnitMappingMultiError is an error wrapping multiple validation errors returned by UserUnitMapping.ValidateAll() if the designated constraints aren't met.
func (UserUnitMappingMultiError) AllErrors ¶
func (m UserUnitMappingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserUnitMappingMultiError) Error ¶
func (m UserUnitMappingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserUnitMappingValidationError ¶
type UserUnitMappingValidationError struct {
// contains filtered or unexported fields
}
UserUnitMappingValidationError is the validation error returned by UserUnitMapping.Validate if the designated constraints aren't met.
func (UserUnitMappingValidationError) Cause ¶
func (e UserUnitMappingValidationError) Cause() error
Cause function returns cause value.
func (UserUnitMappingValidationError) Error ¶
func (e UserUnitMappingValidationError) Error() string
Error satisfies the builtin error interface
func (UserUnitMappingValidationError) ErrorName ¶
func (e UserUnitMappingValidationError) ErrorName() string
ErrorName returns error name.
func (UserUnitMappingValidationError) Field ¶
func (e UserUnitMappingValidationError) Field() string
Field function returns field value.
func (UserUnitMappingValidationError) Key ¶
func (e UserUnitMappingValidationError) Key() bool
Key function returns key value.
func (UserUnitMappingValidationError) Reason ¶
func (e UserUnitMappingValidationError) Reason() string
Reason function returns reason value.