centrumdispatches

package
v2026.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 19 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",
		14: "STATUS_DISPATCH_DELETED",
	}
	StatusDispatch_value = map[string]int32{
		"STATUS_DISPATCH_UNSPECIFIED":     0,
		"STATUS_DISPATCH_NEW":             1,
		"STATUS_DISPATCH_UNASSIGNED":      2,
		"STATUS_DISPATCH_UPDATED":         3,
		"STATUS_DISPATCH_UNIT_ASSIGNED":   4,
		"STATUS_DISPATCH_UNIT_UNASSIGNED": 5,
		"STATUS_DISPATCH_UNIT_ACCEPTED":   6,
		"STATUS_DISPATCH_UNIT_DECLINED":   7,
		"STATUS_DISPATCH_EN_ROUTE":        8,
		"STATUS_DISPATCH_ON_SCENE":        9,
		"STATUS_DISPATCH_NEED_ASSISTANCE": 10,
		"STATUS_DISPATCH_COMPLETED":       11,
		"STATUS_DISPATCH_CANCELLED":       12,
		"STATUS_DISPATCH_ARCHIVED":        13,
		"STATUS_DISPATCH_DELETED":         14,
	}
)

Enum value maps for StatusDispatch.

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 (
	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.

View Source
var (
	DispatchAttribute_name = map[int32]string{
		0: "DISPATCH_ATTRIBUTE_UNSPECIFIED",
		1: "DISPATCH_ATTRIBUTE_MULTIPLE",
		2: "DISPATCH_ATTRIBUTE_DUPLICATE",
		3: "DISPATCH_ATTRIBUTE_TOO_OLD",
		4: "DISPATCH_ATTRIBUTE_AUTOMATIC",
	}
	DispatchAttribute_value = map[string]int32{
		"DISPATCH_ATTRIBUTE_UNSPECIFIED": 0,
		"DISPATCH_ATTRIBUTE_MULTIPLE":    1,
		"DISPATCH_ATTRIBUTE_DUPLICATE":   2,
		"DISPATCH_ATTRIBUTE_TOO_OLD":     3,
		"DISPATCH_ATTRIBUTE_AUTOMATIC":   4,
	}
)

Enum value maps for DispatchAttribute.

View Source
var File_resources_centrum_dispatches_dispatches_proto protoreflect.FileDescriptor

Functions

func DispatchPointMatchFn

func DispatchPointMatchFn(dspId int64) func(p orb.Pointer) bool

Types

type Dispatch

type Dispatch struct {
	Id        int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id" sql:"primary_key"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	// Deprecated: Marked as deprecated in resources/centrum/dispatches/dispatches.proto.
	Job         string                `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
	Jobs        *centrum.JobList      `protobuf:"bytes,18,opt,name=jobs,proto3" json:"jobs,omitempty"`
	Status      *DispatchStatus       `protobuf:"bytes,5,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Message     string                `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"`
	Description *string               `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Attributes  *DispatchAttributes   `protobuf:"bytes,9,opt,name=attributes,proto3,oneof" json:"attributes,omitempty"`
	X           float64               `protobuf:"fixed64,10,opt,name=x,proto3" json:"x,omitempty"`
	Y           float64               `protobuf:"fixed64,11,opt,name=y,proto3" json:"y,omitempty"`
	Postal      *string               `protobuf:"bytes,12,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
	Anon        bool                  `protobuf:"varint,13,opt,name=anon,proto3" json:"anon,omitempty"`
	CreatorId   *int32                `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"`
	Creator     *users.User           `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty"`
	Units       []*DispatchAssignment `protobuf:"bytes,16,rep,name=units,proto3" json:"units,omitempty"`
	References  *DispatchReferences   `protobuf:"bytes,17,opt,name=references,proto3,oneof" json:"references,omitempty"`
	// contains filtered or unexported fields
}

func (*Dispatch) ClearAttributes

func (x *Dispatch) ClearAttributes()

func (*Dispatch) ClearCreatedAt

func (x *Dispatch) ClearCreatedAt()

func (*Dispatch) ClearCreator

func (x *Dispatch) ClearCreator()

func (*Dispatch) ClearCreatorId

func (x *Dispatch) ClearCreatorId()

func (*Dispatch) ClearDescription

func (x *Dispatch) ClearDescription()

func (*Dispatch) ClearJobs

func (x *Dispatch) ClearJobs()

func (*Dispatch) ClearPostal

func (x *Dispatch) ClearPostal()

func (*Dispatch) ClearReferences

func (x *Dispatch) ClearReferences()

func (*Dispatch) ClearStatus

func (x *Dispatch) ClearStatus()

func (*Dispatch) ClearUpdatedAt

func (x *Dispatch) ClearUpdatedAt()

func (*Dispatch) GetAnon

func (x *Dispatch) GetAnon() bool

func (*Dispatch) GetAttributes

func (x *Dispatch) GetAttributes() *DispatchAttributes

func (*Dispatch) GetCreatedAt

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

func (*Dispatch) GetCreator

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

func (*Dispatch) GetCreatorId

func (x *Dispatch) GetCreatorId() int32

func (*Dispatch) GetDescription

func (x *Dispatch) GetDescription() string

func (*Dispatch) GetId

func (x *Dispatch) GetId() int64

func (*Dispatch) GetJob deprecated

func (x *Dispatch) GetJob() string

Deprecated: Marked as deprecated in resources/centrum/dispatches/dispatches.proto.

func (*Dispatch) GetJobs

func (x *Dispatch) GetJobs() *centrum.JobList

func (*Dispatch) GetMessage

func (x *Dispatch) GetMessage() string

func (*Dispatch) GetPostal

func (x *Dispatch) GetPostal() string

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 (x *Dispatch) GetUpdatedAt() *timestamp.Timestamp

func (*Dispatch) GetX

func (x *Dispatch) GetX() float64

func (*Dispatch) GetY

func (x *Dispatch) GetY() float64

func (*Dispatch) HasAttributes

func (x *Dispatch) HasAttributes() bool

func (*Dispatch) HasCreatedAt

func (x *Dispatch) HasCreatedAt() bool

func (*Dispatch) HasCreator

func (x *Dispatch) HasCreator() bool

func (*Dispatch) HasCreatorId

func (x *Dispatch) HasCreatorId() bool

func (*Dispatch) HasDescription

func (x *Dispatch) HasDescription() bool

func (*Dispatch) HasJobs

func (x *Dispatch) HasJobs() bool

func (*Dispatch) HasPostal

func (x *Dispatch) HasPostal() bool

func (*Dispatch) HasReferences

func (x *Dispatch) HasReferences() bool

func (*Dispatch) HasStatus

func (x *Dispatch) HasStatus() bool

func (*Dispatch) HasUpdatedAt

func (x *Dispatch) HasUpdatedAt() bool

func (*Dispatch) Merge

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

func (*Dispatch) Point

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

func (m *Dispatch) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*Dispatch) SetAnon

func (x *Dispatch) SetAnon(v bool)

func (*Dispatch) SetAttributes

func (x *Dispatch) SetAttributes(v *DispatchAttributes)

func (*Dispatch) SetCreatedAt

func (x *Dispatch) SetCreatedAt(v *timestamp.Timestamp)

func (*Dispatch) SetCreator

func (x *Dispatch) SetCreator(v *users.User)

func (*Dispatch) SetCreatorId

func (x *Dispatch) SetCreatorId(v int32)

func (*Dispatch) SetDescription

func (x *Dispatch) SetDescription(v string)

func (*Dispatch) SetId

func (x *Dispatch) SetId(v int64)

func (*Dispatch) SetJob deprecated

func (x *Dispatch) SetJob(v string)

Deprecated: Marked as deprecated in resources/centrum/dispatches/dispatches.proto.

func (*Dispatch) SetJobs

func (x *Dispatch) SetJobs(v *centrum.JobList)

func (*Dispatch) SetMessage

func (x *Dispatch) SetMessage(v string)

func (*Dispatch) SetPostal

func (x *Dispatch) SetPostal(v string)

func (*Dispatch) SetReferences

func (x *Dispatch) SetReferences(v *DispatchReferences)

func (*Dispatch) SetStatus

func (x *Dispatch) SetStatus(v *DispatchStatus)

func (*Dispatch) SetUnits

func (x *Dispatch) SetUnits(v []*DispatchAssignment)

func (*Dispatch) SetUpdatedAt

func (x *Dispatch) SetUpdatedAt(v *timestamp.Timestamp)

func (*Dispatch) SetX

func (x *Dispatch) SetX(v float64)

func (*Dispatch) SetY

func (x *Dispatch) SetY(v float64)

func (*Dispatch) String

func (x *Dispatch) String() string

type DispatchAssignment

type DispatchAssignment struct {
	DispatchId int64                `` /* 130-byte string literal not displayed */
	UnitId     int64                `protobuf:"varint,2,opt,name=unit_id,json=unitId,proto3" json:"unit_id,omitempty" alias:"unit_id" sql:"primary_key"`
	Unit       *units.Unit          `protobuf:"bytes,3,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
	CreatedAt  *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	ExpiresAt  *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchAssignment) ClearCreatedAt

func (x *DispatchAssignment) ClearCreatedAt()

func (*DispatchAssignment) ClearExpiresAt

func (x *DispatchAssignment) ClearExpiresAt()

func (*DispatchAssignment) ClearUnit

func (x *DispatchAssignment) ClearUnit()

func (*DispatchAssignment) GetCreatedAt

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

func (*DispatchAssignment) GetDispatchId

func (x *DispatchAssignment) GetDispatchId() int64

func (*DispatchAssignment) GetExpiresAt

func (x *DispatchAssignment) GetExpiresAt() *timestamp.Timestamp

func (*DispatchAssignment) GetUnit

func (x *DispatchAssignment) GetUnit() *units.Unit

func (*DispatchAssignment) GetUnitId

func (x *DispatchAssignment) GetUnitId() int64

func (*DispatchAssignment) HasCreatedAt

func (x *DispatchAssignment) HasCreatedAt() bool

func (*DispatchAssignment) HasExpiresAt

func (x *DispatchAssignment) HasExpiresAt() bool

func (*DispatchAssignment) HasUnit

func (x *DispatchAssignment) HasUnit() bool

func (*DispatchAssignment) ProtoMessage

func (*DispatchAssignment) ProtoMessage()

func (*DispatchAssignment) ProtoReflect

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

func (*DispatchAssignment) Reset

func (x *DispatchAssignment) Reset()

func (*DispatchAssignment) Sanitize

func (m *DispatchAssignment) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*DispatchAssignment) SetCreatedAt

func (x *DispatchAssignment) SetCreatedAt(v *timestamp.Timestamp)

func (*DispatchAssignment) SetDispatchId

func (x *DispatchAssignment) SetDispatchId(v int64)

func (*DispatchAssignment) SetExpiresAt

func (x *DispatchAssignment) SetExpiresAt(v *timestamp.Timestamp)

func (*DispatchAssignment) SetUnit

func (x *DispatchAssignment) SetUnit(v *units.Unit)

func (*DispatchAssignment) SetUnitId

func (x *DispatchAssignment) SetUnitId(v int64)

func (*DispatchAssignment) String

func (x *DispatchAssignment) String() string

type DispatchAssignment_builder

type DispatchAssignment_builder struct {
	DispatchId int64
	UnitId     int64
	Unit       *units.Unit
	CreatedAt  *timestamp.Timestamp
	ExpiresAt  *timestamp.Timestamp
	// contains filtered or unexported fields
}

func (DispatchAssignment_builder) Build

type DispatchAssignments

type DispatchAssignments struct {
	DispatchId int64                 `protobuf:"varint,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
	Job        string                `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"`
	Units      []*DispatchAssignment `protobuf:"bytes,3,rep,name=units,proto3" json:"units,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchAssignments) GetDispatchId

func (x *DispatchAssignments) GetDispatchId() int64

func (*DispatchAssignments) GetJob

func (x *DispatchAssignments) GetJob() string

func (*DispatchAssignments) GetUnits

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

func (*DispatchAssignments) ProtoMessage

func (*DispatchAssignments) ProtoMessage()

func (*DispatchAssignments) ProtoReflect

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

func (*DispatchAssignments) Reset

func (x *DispatchAssignments) Reset()

func (*DispatchAssignments) Sanitize

func (m *DispatchAssignments) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*DispatchAssignments) SetDispatchId

func (x *DispatchAssignments) SetDispatchId(v int64)

func (*DispatchAssignments) SetJob

func (x *DispatchAssignments) SetJob(v string)

func (*DispatchAssignments) SetUnits

func (x *DispatchAssignments) SetUnits(v []*DispatchAssignment)

func (*DispatchAssignments) String

func (x *DispatchAssignments) String() string

type DispatchAssignments_builder

type DispatchAssignments_builder struct {
	DispatchId int64
	Job        string
	Units      []*DispatchAssignment
	// contains filtered or unexported fields
}

func (DispatchAssignments_builder) Build

type DispatchAttribute

type DispatchAttribute int32
const (
	DispatchAttribute_DISPATCH_ATTRIBUTE_UNSPECIFIED DispatchAttribute = 0
	DispatchAttribute_DISPATCH_ATTRIBUTE_MULTIPLE    DispatchAttribute = 1
	DispatchAttribute_DISPATCH_ATTRIBUTE_DUPLICATE   DispatchAttribute = 2
	DispatchAttribute_DISPATCH_ATTRIBUTE_TOO_OLD     DispatchAttribute = 3
	DispatchAttribute_DISPATCH_ATTRIBUTE_AUTOMATIC   DispatchAttribute = 4
)

func (DispatchAttribute) Descriptor

func (DispatchAttribute) Enum

func (DispatchAttribute) Number

func (DispatchAttribute) String

func (x DispatchAttribute) String() string

func (DispatchAttribute) Type

type DispatchAttributes

type DispatchAttributes struct {
	List []DispatchAttribute `protobuf:"varint,1,rep,packed,name=list,proto3,enum=resources.centrum.dispatches.DispatchAttribute" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchAttributes) Add

func (x *DispatchAttributes) Add(attribute DispatchAttribute) bool

func (*DispatchAttributes) GetList

func (x *DispatchAttributes) GetList() []DispatchAttribute

func (*DispatchAttributes) Has

func (x *DispatchAttributes) Has(attribute DispatchAttribute) bool

func (*DispatchAttributes) ProtoMessage

func (*DispatchAttributes) ProtoMessage()

func (*DispatchAttributes) ProtoReflect

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

func (*DispatchAttributes) Remove

func (x *DispatchAttributes) Remove(attribute DispatchAttribute) bool

func (*DispatchAttributes) Reset

func (x *DispatchAttributes) Reset()

func (*DispatchAttributes) Sanitize

func (m *DispatchAttributes) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*DispatchAttributes) Scan

func (x *DispatchAttributes) Scan(value any) error

Scan implements driver.Valuer for protobuf DispatchAttributes.

func (*DispatchAttributes) SetList

func (x *DispatchAttributes) SetList(v []DispatchAttribute)

func (*DispatchAttributes) String

func (x *DispatchAttributes) String() string

func (*DispatchAttributes) Value

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

Value marshals the DispatchAttributes value into driver.Valuer.

type DispatchAttributes_builder

type DispatchAttributes_builder struct {
	List []DispatchAttribute
	// contains filtered or unexported fields
}

func (DispatchAttributes_builder) Build

type DispatchReference

type DispatchReference struct {
	TargetDispatchId int64                 `protobuf:"varint,1,opt,name=target_dispatch_id,json=targetDispatchId,proto3" json:"target_dispatch_id,omitempty"`
	ReferenceType    DispatchReferenceType `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DispatchReference) GetReferenceType

func (x *DispatchReference) GetReferenceType() DispatchReferenceType

func (*DispatchReference) GetTargetDispatchId

func (x *DispatchReference) GetTargetDispatchId() int64

func (*DispatchReference) ProtoMessage

func (*DispatchReference) ProtoMessage()

func (*DispatchReference) ProtoReflect

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

func (*DispatchReference) Reset

func (x *DispatchReference) Reset()

func (*DispatchReference) Sanitize

func (m *DispatchReference) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*DispatchReference) SetReferenceType

func (x *DispatchReference) SetReferenceType(v DispatchReferenceType)

func (*DispatchReference) SetTargetDispatchId

func (x *DispatchReference) SetTargetDispatchId(v int64)

func (*DispatchReference) String

func (x *DispatchReference) String() string

type DispatchReferenceType

type DispatchReferenceType int32
const (
	DispatchReferenceType_DISPATCH_REFERENCE_TYPE_UNSPECIFIED   DispatchReferenceType = 0
	DispatchReferenceType_DISPATCH_REFERENCE_TYPE_REFERENCED    DispatchReferenceType = 1
	DispatchReferenceType_DISPATCH_REFERENCE_TYPE_DUPLICATED_BY DispatchReferenceType = 2
	DispatchReferenceType_DISPATCH_REFERENCE_TYPE_DUPLICATE_OF  DispatchReferenceType = 3
)

func (DispatchReferenceType) Descriptor

func (DispatchReferenceType) Enum

func (DispatchReferenceType) Number

func (DispatchReferenceType) String

func (x DispatchReferenceType) String() string

func (DispatchReferenceType) Type

type DispatchReference_builder

type DispatchReference_builder struct {
	TargetDispatchId int64
	ReferenceType    DispatchReferenceType
	// contains filtered or unexported fields
}

func (DispatchReference_builder) Build

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 (*DispatchReferences) GetReferences

func (x *DispatchReferences) GetReferences() []*DispatchReference

func (*DispatchReferences) Has

func (x *DispatchReferences) Has(dspId int64) bool

func (*DispatchReferences) ProtoMessage

func (*DispatchReferences) ProtoMessage()

func (*DispatchReferences) ProtoReflect

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

func (*DispatchReferences) Remove

func (x *DispatchReferences) Remove(dspId int64) bool

func (*DispatchReferences) Reset

func (x *DispatchReferences) Reset()

func (*DispatchReferences) Sanitize

func (m *DispatchReferences) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*DispatchReferences) Scan

func (x *DispatchReferences) Scan(value any) error

Scan implements driver.Valuer for protobuf DispatchReferences.

func (*DispatchReferences) SetReferences

func (x *DispatchReferences) SetReferences(v []*DispatchReference)

func (*DispatchReferences) String

func (x *DispatchReferences) String() string

func (*DispatchReferences) Value

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

Value marshals the DispatchReferences value into driver.Valuer.

type DispatchReferences_builder

type DispatchReferences_builder struct {
	References []*DispatchReference
	// contains filtered or unexported fields
}

func (DispatchReferences_builder) Build

type DispatchStatus

type DispatchStatus struct {
	Id         int64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"id" sql:"primary_key"`
	CreatedAt  *timestamp.Timestamp  `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	DispatchId int64                 `protobuf:"varint,3,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"`
	UnitId     *int64                `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"`
	Unit       *units.Unit           `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"`
	Status     StatusDispatch        `protobuf:"varint,6,opt,name=status,proto3,enum=resources.centrum.dispatches.StatusDispatch" json:"status,omitempty"`
	Reason     *string               `protobuf:"bytes,7,opt,name=reason,proto3,oneof" json:"reason,omitempty"`
	Code       *string               `protobuf:"bytes,8,opt,name=code,proto3,oneof" json:"code,omitempty"`
	UserId     *int32                `protobuf:"varint,9,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	User       *colleagues.Colleague `protobuf:"bytes,10,opt,name=user,proto3,oneof" json:"user,omitempty"`
	X          *float64              `protobuf:"fixed64,11,opt,name=x,proto3,oneof" json:"x,omitempty"`
	Y          *float64              `protobuf:"fixed64,12,opt,name=y,proto3,oneof" json:"y,omitempty"`
	Postal     *string               `protobuf:"bytes,13,opt,name=postal,proto3,oneof" json:"postal,omitempty"`
	CreatorJob *string               `protobuf:"bytes,14,opt,name=creator_job,json=creatorJob,proto3,oneof" json:"creator_job,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchStatus) ClearCode

func (x *DispatchStatus) ClearCode()

func (*DispatchStatus) ClearCreatedAt

func (x *DispatchStatus) ClearCreatedAt()

func (*DispatchStatus) ClearCreatorJob

func (x *DispatchStatus) ClearCreatorJob()

func (*DispatchStatus) ClearPostal

func (x *DispatchStatus) ClearPostal()

func (*DispatchStatus) ClearReason

func (x *DispatchStatus) ClearReason()

func (*DispatchStatus) ClearUnit

func (x *DispatchStatus) ClearUnit()

func (*DispatchStatus) ClearUnitId

func (x *DispatchStatus) ClearUnitId()

func (*DispatchStatus) ClearUser

func (x *DispatchStatus) ClearUser()

func (*DispatchStatus) ClearUserId

func (x *DispatchStatus) ClearUserId()

func (*DispatchStatus) ClearX

func (x *DispatchStatus) ClearX()

func (*DispatchStatus) ClearY

func (x *DispatchStatus) ClearY()

func (*DispatchStatus) GetCode

func (x *DispatchStatus) GetCode() string

func (*DispatchStatus) GetCreatedAt

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

func (*DispatchStatus) GetCreatorJob

func (x *DispatchStatus) GetCreatorJob() string

func (*DispatchStatus) GetDispatchId

func (x *DispatchStatus) GetDispatchId() int64

func (*DispatchStatus) GetId

func (x *DispatchStatus) GetId() int64

func (*DispatchStatus) GetPostal

func (x *DispatchStatus) GetPostal() string

func (*DispatchStatus) GetReason

func (x *DispatchStatus) GetReason() string

func (*DispatchStatus) GetStatus

func (x *DispatchStatus) GetStatus() StatusDispatch

func (*DispatchStatus) GetUnit

func (x *DispatchStatus) GetUnit() *units.Unit

func (*DispatchStatus) GetUnitId

func (x *DispatchStatus) GetUnitId() int64

func (*DispatchStatus) GetUser

func (x *DispatchStatus) GetUser() *colleagues.Colleague

func (*DispatchStatus) GetUserId

func (x *DispatchStatus) GetUserId() int32

func (*DispatchStatus) GetX

func (x *DispatchStatus) GetX() float64

func (*DispatchStatus) GetY

func (x *DispatchStatus) GetY() float64

func (*DispatchStatus) HasCode

func (x *DispatchStatus) HasCode() bool

func (*DispatchStatus) HasCreatedAt

func (x *DispatchStatus) HasCreatedAt() bool

func (*DispatchStatus) HasCreatorJob

func (x *DispatchStatus) HasCreatorJob() bool

func (*DispatchStatus) HasPostal

func (x *DispatchStatus) HasPostal() bool

func (*DispatchStatus) HasReason

func (x *DispatchStatus) HasReason() bool

func (*DispatchStatus) HasUnit

func (x *DispatchStatus) HasUnit() bool

func (*DispatchStatus) HasUnitId

func (x *DispatchStatus) HasUnitId() bool

func (*DispatchStatus) HasUser

func (x *DispatchStatus) HasUser() bool

func (*DispatchStatus) HasUserId

func (x *DispatchStatus) HasUserId() bool

func (*DispatchStatus) HasX

func (x *DispatchStatus) HasX() bool

func (*DispatchStatus) HasY

func (x *DispatchStatus) HasY() bool

func (*DispatchStatus) Point

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

func (*DispatchStatus) ProtoMessage

func (*DispatchStatus) ProtoMessage()

func (*DispatchStatus) ProtoReflect

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

func (*DispatchStatus) Reset

func (x *DispatchStatus) Reset()

func (*DispatchStatus) Sanitize

func (m *DispatchStatus) Sanitize() error

Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.

func (*DispatchStatus) SetCode

func (x *DispatchStatus) SetCode(v string)

func (*DispatchStatus) SetCreatedAt

func (x *DispatchStatus) SetCreatedAt(v *timestamp.Timestamp)

func (*DispatchStatus) SetCreatorJob

func (x *DispatchStatus) SetCreatorJob(v string)

func (*DispatchStatus) SetDispatchId

func (x *DispatchStatus) SetDispatchId(v int64)

func (*DispatchStatus) SetId

func (x *DispatchStatus) SetId(v int64)

func (*DispatchStatus) SetPostal

func (x *DispatchStatus) SetPostal(v string)

func (*DispatchStatus) SetReason

func (x *DispatchStatus) SetReason(v string)

func (*DispatchStatus) SetStatus

func (x *DispatchStatus) SetStatus(v StatusDispatch)

func (*DispatchStatus) SetUnit

func (x *DispatchStatus) SetUnit(v *units.Unit)

func (*DispatchStatus) SetUnitId

func (x *DispatchStatus) SetUnitId(v int64)

func (*DispatchStatus) SetUser

func (x *DispatchStatus) SetUser(v *colleagues.Colleague)

func (*DispatchStatus) SetUserId

func (x *DispatchStatus) SetUserId(v int32)

func (*DispatchStatus) SetX

func (x *DispatchStatus) SetX(v float64)

func (*DispatchStatus) SetY

func (x *DispatchStatus) SetY(v float64)

func (*DispatchStatus) String

func (x *DispatchStatus) String() string

type DispatchStatus_builder

type DispatchStatus_builder struct {
	Id         int64
	CreatedAt  *timestamp.Timestamp
	DispatchId int64
	UnitId     *int64
	Unit       *units.Unit
	Status     StatusDispatch
	Reason     *string
	Code       *string
	UserId     *int32
	User       *colleagues.Colleague
	X          *float64
	Y          *float64
	Postal     *string
	CreatorJob *string
	// contains filtered or unexported fields
}

func (DispatchStatus_builder) Build

type Dispatch_builder

type Dispatch_builder struct {
	Id        int64
	CreatedAt *timestamp.Timestamp
	UpdatedAt *timestamp.Timestamp
	// Deprecated: Marked as deprecated in resources/centrum/dispatches/dispatches.proto.
	Job         string
	Jobs        *centrum.JobList
	Status      *DispatchStatus
	Message     string
	Description *string
	Attributes  *DispatchAttributes
	X           float64
	Y           float64
	Postal      *string
	Anon        bool
	CreatorId   *int32
	Creator     *users.User
	Units       []*DispatchAssignment
	References  *DispatchReferences
	// contains filtered or unexported fields
}

func (Dispatch_builder) Build

func (b0 Dispatch_builder) Build() *Dispatch

type StatusDispatch

type StatusDispatch int32
const (
	StatusDispatch_STATUS_DISPATCH_UNSPECIFIED     StatusDispatch = 0
	StatusDispatch_STATUS_DISPATCH_NEW             StatusDispatch = 1
	StatusDispatch_STATUS_DISPATCH_UNASSIGNED      StatusDispatch = 2
	StatusDispatch_STATUS_DISPATCH_UPDATED         StatusDispatch = 3
	StatusDispatch_STATUS_DISPATCH_UNIT_ASSIGNED   StatusDispatch = 4
	StatusDispatch_STATUS_DISPATCH_UNIT_UNASSIGNED StatusDispatch = 5
	StatusDispatch_STATUS_DISPATCH_UNIT_ACCEPTED   StatusDispatch = 6
	StatusDispatch_STATUS_DISPATCH_UNIT_DECLINED   StatusDispatch = 7
	StatusDispatch_STATUS_DISPATCH_EN_ROUTE        StatusDispatch = 8
	StatusDispatch_STATUS_DISPATCH_ON_SCENE        StatusDispatch = 9
	StatusDispatch_STATUS_DISPATCH_NEED_ASSISTANCE StatusDispatch = 10
	StatusDispatch_STATUS_DISPATCH_COMPLETED       StatusDispatch = 11
	StatusDispatch_STATUS_DISPATCH_CANCELLED       StatusDispatch = 12
	StatusDispatch_STATUS_DISPATCH_ARCHIVED        StatusDispatch = 13
	StatusDispatch_STATUS_DISPATCH_DELETED         StatusDispatch = 14
)

func (StatusDispatch) Descriptor

func (StatusDispatch) Enum

func (x StatusDispatch) Enum() *StatusDispatch

func (StatusDispatch) Number

func (StatusDispatch) String

func (x StatusDispatch) String() string

func (StatusDispatch) Type

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

func (TakeDispatchResp) Number

func (TakeDispatchResp) String

func (x TakeDispatchResp) String() string

func (TakeDispatchResp) Type

Jump to

Keyboard shortcuts

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