dispatch

package
v0.8.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_resources_dispatch_dispatches_proto protoreflect.FileDescriptor
View Source
var File_resources_dispatch_settings_proto protoreflect.FileDescriptor
View Source
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.

func (*Attributes) Value added in v0.8.0

func (x *Attributes) Value() (driver.Value, error)

Scan implements driver.Valuer for protobuf Attributes.

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

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

Field function returns field value.

func (AttributesValidationError) Key added in v0.8.0

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) 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

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) Descriptor() ([]byte, []int)

Deprecated: Use Dispatch.ProtoReflect.Descriptor instead.

func (*Dispatch) GetAnon added in v0.8.0

func (x *Dispatch) GetAnon() bool

func (*Dispatch) GetAttributes

func (x *Dispatch) GetAttributes() *Attributes

func (*Dispatch) GetCreatedAt

func (x *Dispatch) GetCreatedAt() *timestamp.Timestamp

func (*Dispatch) GetCreator added in v0.8.6

func (x *Dispatch) GetCreator() *users.User

func (*Dispatch) GetCreatorId added in v0.8.6

func (x *Dispatch) GetCreatorId() int32

func (*Dispatch) GetDescription

func (x *Dispatch) GetDescription() string

func (*Dispatch) GetId

func (x *Dispatch) GetId() uint64

func (*Dispatch) GetJob added in v0.8.0

func (x *Dispatch) GetJob() string

func (*Dispatch) GetMessage added in v0.8.0

func (x *Dispatch) GetMessage() string

func (*Dispatch) GetPostal added in v0.8.1

func (x *Dispatch) GetPostal() string

func (*Dispatch) GetStatus

func (x *Dispatch) GetStatus() *DispatchStatus

func (*Dispatch) GetUnits

func (x *Dispatch) GetUnits() []*DispatchAssignment

func (*Dispatch) GetUpdatedAt

func (x *Dispatch) GetUpdatedAt() *timestamp.Timestamp

func (*Dispatch) GetX added in v0.8.0

func (x *Dispatch) GetX() float64

func (*Dispatch) GetY added in v0.8.0

func (x *Dispatch) GetY() float64

func (*Dispatch) Merge added in v0.8.11

func (x *Dispatch) Merge(in *Dispatch)

func (*Dispatch) Point added in v0.8.10

func (x *Dispatch) Point() orb.Point

func (*Dispatch) ProtoMessage

func (*Dispatch) ProtoMessage()

func (*Dispatch) ProtoReflect

func (x *Dispatch) ProtoReflect() protoreflect.Message

func (*Dispatch) Reset

func (x *Dispatch) Reset()

func (*Dispatch) Sanitize added in v0.8.1

func (m *Dispatch) Sanitize() error

func (*Dispatch) String

func (x *Dispatch) String() string

func (*Dispatch) Validate

func (m *Dispatch) Validate() error

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

func (m *Dispatch) ValidateAll() error

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

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

Cause function returns cause value.

func (DispatchAssignmentValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (DispatchAssignmentValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (DispatchAssignmentValidationError) Field added in v0.8.0

Field function returns field value.

func (DispatchAssignmentValidationError) Key added in v0.8.0

Key function returns key value.

func (DispatchAssignmentValidationError) Reason added in v0.8.0

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

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

Cause function returns cause value.

func (DispatchAssignmentsValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (DispatchAssignmentsValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (DispatchAssignmentsValidationError) Field added in v0.8.0

Field function returns field value.

func (DispatchAssignmentsValidationError) Key added in v0.8.0

Key function returns key value.

func (DispatchAssignmentsValidationError) Reason added in v0.8.0

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

Cause function returns cause value.

func (DispatchStatusValidationError) Error added in v0.8.0

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

Field function returns field value.

func (DispatchStatusValidationError) Key added in v0.8.0

Key function returns key value.

func (DispatchStatusValidationError) Reason added in v0.8.0

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

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

Cause function returns cause value.

func (DisponentsChangeValidationError) Error added in v0.8.8

Error satisfies the builtin error interface

func (DisponentsChangeValidationError) ErrorName added in v0.8.8

ErrorName returns error name.

func (DisponentsChangeValidationError) Field added in v0.8.8

Field function returns field value.

func (DisponentsChangeValidationError) Key added in v0.8.8

Key function returns key value.

func (DisponentsChangeValidationError) Reason added in v0.8.8

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) Descriptor() ([]byte, []int)

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetEnabled added in v0.8.0

func (x *Settings) GetEnabled() bool

func (*Settings) GetFallbackMode added in v0.8.0

func (x *Settings) GetFallbackMode() CentrumMode

func (*Settings) GetJob added in v0.8.0

func (x *Settings) GetJob() string

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) Reset added in v0.8.0

func (x *Settings) Reset()

func (*Settings) String added in v0.8.0

func (x *Settings) String() string

func (*Settings) Validate added in v0.8.0

func (m *Settings) Validate() error

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

func (m *Settings) ValidateAll() error

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) 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 (StatusDispatch) String added in v0.8.3

func (x StatusDispatch) String() string

func (StatusDispatch) Type added in v0.8.3

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

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) Enum added in v0.8.11

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 (TakeDispatchResp) String added in v0.8.11

func (x TakeDispatchResp) String() string

func (TakeDispatchResp) Type added in v0.8.11

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) Descriptor() ([]byte, []int)

Deprecated: Use Unit.ProtoReflect.Descriptor instead.

func (*Unit) GetColor added in v0.8.0

func (x *Unit) GetColor() string

func (*Unit) GetCreatedAt added in v0.8.0

func (x *Unit) GetCreatedAt() *timestamp.Timestamp

func (*Unit) GetDescription

func (x *Unit) GetDescription() string

func (*Unit) GetId

func (x *Unit) GetId() uint64

func (*Unit) GetInitials

func (x *Unit) GetInitials() string

func (*Unit) GetJob added in v0.8.0

func (x *Unit) GetJob() string

func (*Unit) GetName

func (x *Unit) GetName() string

func (*Unit) GetStatus

func (x *Unit) GetStatus() *UnitStatus

func (*Unit) GetUpdatedAt added in v0.8.0

func (x *Unit) GetUpdatedAt() *timestamp.Timestamp

func (*Unit) GetUsers added in v0.8.0

func (x *Unit) GetUsers() []*UnitAssignment

func (*Unit) Merge added in v0.8.11

func (x *Unit) Merge(in *Unit)

func (*Unit) ProtoMessage

func (*Unit) ProtoMessage()

func (*Unit) ProtoReflect

func (x *Unit) ProtoReflect() protoreflect.Message

func (*Unit) Reset

func (x *Unit) Reset()

func (*Unit) Sanitize added in v0.8.1

func (m *Unit) Sanitize() error

func (*Unit) String

func (x *Unit) String() string

func (*Unit) Validate

func (m *Unit) Validate() error

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

func (m *Unit) ValidateAll() error

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

Cause function returns cause value.

func (UnitAssignmentValidationError) Error added in v0.8.0

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

Field function returns field value.

func (UnitAssignmentValidationError) Key added in v0.8.0

Key function returns key value.

func (UnitAssignmentValidationError) Reason added in v0.8.0

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

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

Cause function returns cause value.

func (UnitAssignmentsValidationError) Error added in v0.8.0

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

Field function returns field value.

func (UnitAssignmentsValidationError) Key added in v0.8.0

Key function returns key value.

func (UnitAssignmentsValidationError) Reason added in v0.8.0

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

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

Field function returns field value.

func (UnitStatusValidationError) Key added in v0.8.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL