Documentation ¶
Index ¶
- Variables
- type CircleMarker
- func (*CircleMarker) Descriptor() ([]byte, []int)deprecated
- func (x *CircleMarker) GetOapcity() float32
- func (x *CircleMarker) GetRadius() int32
- func (*CircleMarker) ProtoMessage()
- func (x *CircleMarker) ProtoReflect() protoreflect.Message
- func (x *CircleMarker) Reset()
- func (x *CircleMarker) String() string
- func (m *CircleMarker) Validate() error
- func (m *CircleMarker) ValidateAll() error
- type CircleMarkerMultiError
- type CircleMarkerValidationError
- func (e CircleMarkerValidationError) Cause() error
- func (e CircleMarkerValidationError) Error() string
- func (e CircleMarkerValidationError) ErrorName() string
- func (e CircleMarkerValidationError) Field() string
- func (e CircleMarkerValidationError) Key() bool
- func (e CircleMarkerValidationError) Reason() string
- type Coords
- func (*Coords) Descriptor() ([]byte, []int)deprecated
- func (x *Coords) GetX() float64
- func (x *Coords) GetY() float64
- func (*Coords) ProtoMessage()
- func (x *Coords) ProtoReflect() protoreflect.Message
- func (x *Coords) Reset()
- func (x *Coords) String() string
- func (m *Coords) Validate() error
- func (m *Coords) ValidateAll() error
- type CoordsMultiError
- type CoordsValidationError
- type IconMarker
- func (*IconMarker) Descriptor() ([]byte, []int)deprecated
- func (x *IconMarker) GetIcon() string
- func (*IconMarker) ProtoMessage()
- func (x *IconMarker) ProtoReflect() protoreflect.Message
- func (x *IconMarker) Reset()
- func (x *IconMarker) String() string
- func (m *IconMarker) Validate() error
- func (m *IconMarker) ValidateAll() error
- type IconMarkerMultiError
- type IconMarkerValidationError
- type Marker
- func (*Marker) Descriptor() ([]byte, []int)deprecated
- func (x *Marker) GetCreator() *users.UserShort
- func (x *Marker) GetCreatorId() int32
- func (x *Marker) GetData() *MarkerData
- func (x *Marker) GetInfo() *MarkerInfo
- func (x *Marker) GetType() MarkerType
- func (*Marker) ProtoMessage()
- func (x *Marker) ProtoReflect() protoreflect.Message
- func (x *Marker) Reset()
- func (x *Marker) String() string
- func (m *Marker) Validate() error
- func (m *Marker) ValidateAll() error
- type MarkerData
- func (*MarkerData) Descriptor() ([]byte, []int)deprecated
- func (x *MarkerData) GetCircle() *CircleMarker
- func (m *MarkerData) GetData() isMarkerData_Data
- func (x *MarkerData) GetIcon() *IconMarker
- func (*MarkerData) ProtoMessage()
- func (x *MarkerData) ProtoReflect() protoreflect.Message
- func (x *MarkerData) Reset()
- func (x *MarkerData) Scan(value any) error
- func (x *MarkerData) String() string
- func (m *MarkerData) Validate() error
- func (m *MarkerData) ValidateAll() error
- func (x *MarkerData) Value() (driver.Value, error)
- type MarkerDataMultiError
- type MarkerDataValidationError
- type MarkerData_Circle
- type MarkerData_Icon
- type MarkerInfo
- func (*MarkerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MarkerInfo) GetColor() string
- func (x *MarkerInfo) GetCreatedAt() *timestamp.Timestamp
- func (x *MarkerInfo) GetDescription() string
- func (x *MarkerInfo) GetIcon() string
- func (x *MarkerInfo) GetId() uint64
- func (x *MarkerInfo) GetJob() string
- func (x *MarkerInfo) GetName() string
- func (x *MarkerInfo) GetPostal() string
- func (x *MarkerInfo) GetUpdatedAt() *timestamp.Timestamp
- func (x *MarkerInfo) GetX() float64
- func (x *MarkerInfo) GetY() float64
- func (*MarkerInfo) ProtoMessage()
- func (x *MarkerInfo) ProtoReflect() protoreflect.Message
- func (x *MarkerInfo) Reset()
- func (m *MarkerInfo) Sanitize() error
- func (x *MarkerInfo) String() string
- func (m *MarkerInfo) Validate() error
- func (m *MarkerInfo) ValidateAll() error
- type MarkerInfoMultiError
- type MarkerInfoValidationError
- type MarkerMultiError
- type MarkerType
- type MarkerValidationError
- type UserMarker
- func (*UserMarker) Descriptor() ([]byte, []int)deprecated
- func (x *UserMarker) GetInfo() *MarkerInfo
- func (x *UserMarker) GetUnit() *centrum.Unit
- func (x *UserMarker) GetUnitId() uint64
- func (x *UserMarker) GetUser() *users.UserShort
- func (x *UserMarker) GetUserId() int32
- func (*UserMarker) ProtoMessage()
- func (x *UserMarker) ProtoReflect() protoreflect.Message
- func (x *UserMarker) Reset()
- func (x *UserMarker) String() string
- func (m *UserMarker) Validate() error
- func (m *UserMarker) ValidateAll() error
- type UserMarkerMultiError
- type UserMarkerValidationError
Constants ¶
This section is empty.
Variables ¶
var ( MarkerType_name = map[int32]string{ 0: "MARKER_TYPE_UNSPECIFIED", 1: "MARKER_TYPE_DOT", 2: "MARKER_TYPE_CIRCLE", 3: "MARKER_TYPE_ICON", } MarkerType_value = map[string]int32{ "MARKER_TYPE_UNSPECIFIED": 0, "MARKER_TYPE_DOT": 1, "MARKER_TYPE_CIRCLE": 2, "MARKER_TYPE_ICON": 3, } )
Enum value maps for MarkerType.
var File_resources_livemap_livemap_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CircleMarker ¶ added in v0.8.0
type CircleMarker struct { Radius int32 `protobuf:"varint,1,opt,name=radius,proto3" json:"radius,omitempty"` Oapcity *float32 `protobuf:"fixed32,2,opt,name=oapcity,proto3,oneof" json:"oapcity,omitempty"` // contains filtered or unexported fields }
func (*CircleMarker) Descriptor
deprecated
added in
v0.8.0
func (*CircleMarker) Descriptor() ([]byte, []int)
Deprecated: Use CircleMarker.ProtoReflect.Descriptor instead.
func (*CircleMarker) GetOapcity ¶ added in v0.8.1
func (x *CircleMarker) GetOapcity() float32
func (*CircleMarker) GetRadius ¶ added in v0.8.0
func (x *CircleMarker) GetRadius() int32
func (*CircleMarker) ProtoMessage ¶ added in v0.8.0
func (*CircleMarker) ProtoMessage()
func (*CircleMarker) ProtoReflect ¶ added in v0.8.0
func (x *CircleMarker) ProtoReflect() protoreflect.Message
func (*CircleMarker) Reset ¶ added in v0.8.0
func (x *CircleMarker) Reset()
func (*CircleMarker) String ¶ added in v0.8.0
func (x *CircleMarker) String() string
func (*CircleMarker) Validate ¶ added in v0.8.0
func (m *CircleMarker) Validate() error
Validate checks the field values on CircleMarker 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 (*CircleMarker) ValidateAll ¶ added in v0.8.0
func (m *CircleMarker) ValidateAll() error
ValidateAll checks the field values on CircleMarker 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 CircleMarkerMultiError, or nil if none found.
type CircleMarkerMultiError ¶ added in v0.8.0
type CircleMarkerMultiError []error
CircleMarkerMultiError is an error wrapping multiple validation errors returned by CircleMarker.ValidateAll() if the designated constraints aren't met.
func (CircleMarkerMultiError) AllErrors ¶ added in v0.8.0
func (m CircleMarkerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CircleMarkerMultiError) Error ¶ added in v0.8.0
func (m CircleMarkerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CircleMarkerValidationError ¶ added in v0.8.0
type CircleMarkerValidationError struct {
// contains filtered or unexported fields
}
CircleMarkerValidationError is the validation error returned by CircleMarker.Validate if the designated constraints aren't met.
func (CircleMarkerValidationError) Cause ¶ added in v0.8.0
func (e CircleMarkerValidationError) Cause() error
Cause function returns cause value.
func (CircleMarkerValidationError) Error ¶ added in v0.8.0
func (e CircleMarkerValidationError) Error() string
Error satisfies the builtin error interface
func (CircleMarkerValidationError) ErrorName ¶ added in v0.8.0
func (e CircleMarkerValidationError) ErrorName() string
ErrorName returns error name.
func (CircleMarkerValidationError) Field ¶ added in v0.8.0
func (e CircleMarkerValidationError) Field() string
Field function returns field value.
func (CircleMarkerValidationError) Key ¶ added in v0.8.0
func (e CircleMarkerValidationError) Key() bool
Key function returns key value.
func (CircleMarkerValidationError) Reason ¶ added in v0.8.0
func (e CircleMarkerValidationError) Reason() string
Reason function returns reason value.
type Coords ¶ added in v0.8.1
type Coords struct { X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*Coords) Descriptor
deprecated
added in
v0.8.1
func (*Coords) ProtoMessage ¶ added in v0.8.1
func (*Coords) ProtoMessage()
func (*Coords) ProtoReflect ¶ added in v0.8.1
func (x *Coords) ProtoReflect() protoreflect.Message
func (*Coords) Validate ¶ added in v0.8.1
Validate checks the field values on Coords 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 (*Coords) ValidateAll ¶ added in v0.8.1
ValidateAll checks the field values on Coords 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 CoordsMultiError, or nil if none found.
type CoordsMultiError ¶ added in v0.8.1
type CoordsMultiError []error
CoordsMultiError is an error wrapping multiple validation errors returned by Coords.ValidateAll() if the designated constraints aren't met.
func (CoordsMultiError) AllErrors ¶ added in v0.8.1
func (m CoordsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CoordsMultiError) Error ¶ added in v0.8.1
func (m CoordsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CoordsValidationError ¶ added in v0.8.1
type CoordsValidationError struct {
// contains filtered or unexported fields
}
CoordsValidationError is the validation error returned by Coords.Validate if the designated constraints aren't met.
func (CoordsValidationError) Cause ¶ added in v0.8.1
func (e CoordsValidationError) Cause() error
Cause function returns cause value.
func (CoordsValidationError) Error ¶ added in v0.8.1
func (e CoordsValidationError) Error() string
Error satisfies the builtin error interface
func (CoordsValidationError) ErrorName ¶ added in v0.8.1
func (e CoordsValidationError) ErrorName() string
ErrorName returns error name.
func (CoordsValidationError) Field ¶ added in v0.8.1
func (e CoordsValidationError) Field() string
Field function returns field value.
func (CoordsValidationError) Key ¶ added in v0.8.1
func (e CoordsValidationError) Key() bool
Key function returns key value.
func (CoordsValidationError) Reason ¶ added in v0.8.1
func (e CoordsValidationError) Reason() string
Reason function returns reason value.
type IconMarker ¶ added in v0.8.11
type IconMarker struct { Icon string `protobuf:"bytes,1,opt,name=icon,proto3" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*IconMarker) Descriptor
deprecated
added in
v0.8.11
func (*IconMarker) Descriptor() ([]byte, []int)
Deprecated: Use IconMarker.ProtoReflect.Descriptor instead.
func (*IconMarker) GetIcon ¶ added in v0.8.11
func (x *IconMarker) GetIcon() string
func (*IconMarker) ProtoMessage ¶ added in v0.8.11
func (*IconMarker) ProtoMessage()
func (*IconMarker) ProtoReflect ¶ added in v0.8.11
func (x *IconMarker) ProtoReflect() protoreflect.Message
func (*IconMarker) Reset ¶ added in v0.8.11
func (x *IconMarker) Reset()
func (*IconMarker) String ¶ added in v0.8.11
func (x *IconMarker) String() string
func (*IconMarker) Validate ¶ added in v0.8.11
func (m *IconMarker) Validate() error
Validate checks the field values on IconMarker 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 (*IconMarker) ValidateAll ¶ added in v0.8.11
func (m *IconMarker) ValidateAll() error
ValidateAll checks the field values on IconMarker 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 IconMarkerMultiError, or nil if none found.
type IconMarkerMultiError ¶ added in v0.8.11
type IconMarkerMultiError []error
IconMarkerMultiError is an error wrapping multiple validation errors returned by IconMarker.ValidateAll() if the designated constraints aren't met.
func (IconMarkerMultiError) AllErrors ¶ added in v0.8.11
func (m IconMarkerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IconMarkerMultiError) Error ¶ added in v0.8.11
func (m IconMarkerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IconMarkerValidationError ¶ added in v0.8.11
type IconMarkerValidationError struct {
// contains filtered or unexported fields
}
IconMarkerValidationError is the validation error returned by IconMarker.Validate if the designated constraints aren't met.
func (IconMarkerValidationError) Cause ¶ added in v0.8.11
func (e IconMarkerValidationError) Cause() error
Cause function returns cause value.
func (IconMarkerValidationError) Error ¶ added in v0.8.11
func (e IconMarkerValidationError) Error() string
Error satisfies the builtin error interface
func (IconMarkerValidationError) ErrorName ¶ added in v0.8.11
func (e IconMarkerValidationError) ErrorName() string
ErrorName returns error name.
func (IconMarkerValidationError) Field ¶ added in v0.8.11
func (e IconMarkerValidationError) Field() string
Field function returns field value.
func (IconMarkerValidationError) Key ¶ added in v0.8.11
func (e IconMarkerValidationError) Key() bool
Key function returns key value.
func (IconMarkerValidationError) Reason ¶ added in v0.8.11
func (e IconMarkerValidationError) Reason() string
Reason function returns reason value.
type Marker ¶ added in v0.8.1
type Marker struct { Info *MarkerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Type MarkerType `protobuf:"varint,2,opt,name=type,proto3,enum=resources.livemap.MarkerType" json:"type,omitempty" alias:"markerType"` // @gotags: alias:"markerType" Data *MarkerData `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty" alias:"markerData"` // @gotags: alias:"markerData" CreatorId *int32 `protobuf:"varint,4,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"` Creator *users.UserShort `protobuf:"bytes,5,opt,name=creator,proto3,oneof" json:"creator,omitempty"` // contains filtered or unexported fields }
func (*Marker) Descriptor
deprecated
added in
v0.8.1
func (*Marker) GetCreator ¶ added in v0.8.1
func (*Marker) GetCreatorId ¶ added in v0.8.1
func (*Marker) GetData ¶ added in v0.8.1
func (x *Marker) GetData() *MarkerData
func (*Marker) GetInfo ¶ added in v0.8.1
func (x *Marker) GetInfo() *MarkerInfo
func (*Marker) GetType ¶ added in v0.8.1
func (x *Marker) GetType() MarkerType
func (*Marker) ProtoMessage ¶ added in v0.8.1
func (*Marker) ProtoMessage()
func (*Marker) ProtoReflect ¶ added in v0.8.1
func (x *Marker) ProtoReflect() protoreflect.Message
func (*Marker) Validate ¶ added in v0.8.1
Validate checks the field values on Marker 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 (*Marker) ValidateAll ¶ added in v0.8.1
ValidateAll checks the field values on Marker 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 MarkerMultiError, or nil if none found.
type MarkerData ¶ added in v0.8.1
type MarkerData struct { // Types that are assignable to Data: // // *MarkerData_Circle // *MarkerData_Icon Data isMarkerData_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*MarkerData) Descriptor
deprecated
added in
v0.8.1
func (*MarkerData) Descriptor() ([]byte, []int)
Deprecated: Use MarkerData.ProtoReflect.Descriptor instead.
func (*MarkerData) GetCircle ¶ added in v0.8.1
func (x *MarkerData) GetCircle() *CircleMarker
func (*MarkerData) GetData ¶ added in v0.8.1
func (m *MarkerData) GetData() isMarkerData_Data
func (*MarkerData) GetIcon ¶ added in v0.8.11
func (x *MarkerData) GetIcon() *IconMarker
func (*MarkerData) ProtoMessage ¶ added in v0.8.1
func (*MarkerData) ProtoMessage()
func (*MarkerData) ProtoReflect ¶ added in v0.8.1
func (x *MarkerData) ProtoReflect() protoreflect.Message
func (*MarkerData) Reset ¶ added in v0.8.1
func (x *MarkerData) Reset()
func (*MarkerData) Scan ¶ added in v0.8.1
func (x *MarkerData) Scan(value any) error
func (*MarkerData) String ¶ added in v0.8.1
func (x *MarkerData) String() string
func (*MarkerData) Validate ¶ added in v0.8.1
func (m *MarkerData) Validate() error
Validate checks the field values on MarkerData 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 (*MarkerData) ValidateAll ¶ added in v0.8.1
func (m *MarkerData) ValidateAll() error
ValidateAll checks the field values on MarkerData 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 MarkerDataMultiError, or nil if none found.
type MarkerDataMultiError ¶ added in v0.8.1
type MarkerDataMultiError []error
MarkerDataMultiError is an error wrapping multiple validation errors returned by MarkerData.ValidateAll() if the designated constraints aren't met.
func (MarkerDataMultiError) AllErrors ¶ added in v0.8.1
func (m MarkerDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MarkerDataMultiError) Error ¶ added in v0.8.1
func (m MarkerDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MarkerDataValidationError ¶ added in v0.8.1
type MarkerDataValidationError struct {
// contains filtered or unexported fields
}
MarkerDataValidationError is the validation error returned by MarkerData.Validate if the designated constraints aren't met.
func (MarkerDataValidationError) Cause ¶ added in v0.8.1
func (e MarkerDataValidationError) Cause() error
Cause function returns cause value.
func (MarkerDataValidationError) Error ¶ added in v0.8.1
func (e MarkerDataValidationError) Error() string
Error satisfies the builtin error interface
func (MarkerDataValidationError) ErrorName ¶ added in v0.8.1
func (e MarkerDataValidationError) ErrorName() string
ErrorName returns error name.
func (MarkerDataValidationError) Field ¶ added in v0.8.1
func (e MarkerDataValidationError) Field() string
Field function returns field value.
func (MarkerDataValidationError) Key ¶ added in v0.8.1
func (e MarkerDataValidationError) Key() bool
Key function returns key value.
func (MarkerDataValidationError) Reason ¶ added in v0.8.1
func (e MarkerDataValidationError) Reason() string
Reason function returns reason value.
type MarkerData_Circle ¶ added in v0.8.1
type MarkerData_Circle struct {
Circle *CircleMarker `protobuf:"bytes,3,opt,name=circle,proto3,oneof"`
}
type MarkerData_Icon ¶ added in v0.8.11
type MarkerData_Icon struct {
Icon *IconMarker `protobuf:"bytes,4,opt,name=icon,proto3,oneof"`
}
type MarkerInfo ¶ added in v0.8.1
type MarkerInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 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 Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"` X float64 `protobuf:"fixed64,7,opt,name=x,proto3" json:"x,omitempty"` Y float64 `protobuf:"fixed64,8,opt,name=y,proto3" json:"y,omitempty"` // @sanitize Postal *string `protobuf:"bytes,9,opt,name=postal,proto3,oneof" json:"postal,omitempty"` Color *string `protobuf:"bytes,10,opt,name=color,proto3,oneof" json:"color,omitempty"` Icon *string `protobuf:"bytes,11,opt,name=icon,proto3,oneof" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*MarkerInfo) Descriptor
deprecated
added in
v0.8.1
func (*MarkerInfo) Descriptor() ([]byte, []int)
Deprecated: Use MarkerInfo.ProtoReflect.Descriptor instead.
func (*MarkerInfo) GetColor ¶ added in v0.8.1
func (x *MarkerInfo) GetColor() string
func (*MarkerInfo) GetCreatedAt ¶ added in v0.8.1
func (x *MarkerInfo) GetCreatedAt() *timestamp.Timestamp
func (*MarkerInfo) GetDescription ¶ added in v0.8.1
func (x *MarkerInfo) GetDescription() string
func (*MarkerInfo) GetIcon ¶ added in v0.8.1
func (x *MarkerInfo) GetIcon() string
func (*MarkerInfo) GetId ¶ added in v0.8.1
func (x *MarkerInfo) GetId() uint64
func (*MarkerInfo) GetJob ¶ added in v0.8.1
func (x *MarkerInfo) GetJob() string
func (*MarkerInfo) GetName ¶ added in v0.8.1
func (x *MarkerInfo) GetName() string
func (*MarkerInfo) GetPostal ¶ added in v0.8.1
func (x *MarkerInfo) GetPostal() string
func (*MarkerInfo) GetUpdatedAt ¶ added in v0.8.1
func (x *MarkerInfo) GetUpdatedAt() *timestamp.Timestamp
func (*MarkerInfo) GetX ¶ added in v0.8.1
func (x *MarkerInfo) GetX() float64
func (*MarkerInfo) GetY ¶ added in v0.8.1
func (x *MarkerInfo) GetY() float64
func (*MarkerInfo) ProtoMessage ¶ added in v0.8.1
func (*MarkerInfo) ProtoMessage()
func (*MarkerInfo) ProtoReflect ¶ added in v0.8.1
func (x *MarkerInfo) ProtoReflect() protoreflect.Message
func (*MarkerInfo) Reset ¶ added in v0.8.1
func (x *MarkerInfo) Reset()
func (*MarkerInfo) Sanitize ¶ added in v0.8.1
func (m *MarkerInfo) Sanitize() error
func (*MarkerInfo) String ¶ added in v0.8.1
func (x *MarkerInfo) String() string
func (*MarkerInfo) Validate ¶ added in v0.8.1
func (m *MarkerInfo) Validate() error
Validate checks the field values on MarkerInfo 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 (*MarkerInfo) ValidateAll ¶ added in v0.8.1
func (m *MarkerInfo) ValidateAll() error
ValidateAll checks the field values on MarkerInfo 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 MarkerInfoMultiError, or nil if none found.
type MarkerInfoMultiError ¶ added in v0.8.1
type MarkerInfoMultiError []error
MarkerInfoMultiError is an error wrapping multiple validation errors returned by MarkerInfo.ValidateAll() if the designated constraints aren't met.
func (MarkerInfoMultiError) AllErrors ¶ added in v0.8.1
func (m MarkerInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MarkerInfoMultiError) Error ¶ added in v0.8.1
func (m MarkerInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MarkerInfoValidationError ¶ added in v0.8.1
type MarkerInfoValidationError struct {
// contains filtered or unexported fields
}
MarkerInfoValidationError is the validation error returned by MarkerInfo.Validate if the designated constraints aren't met.
func (MarkerInfoValidationError) Cause ¶ added in v0.8.1
func (e MarkerInfoValidationError) Cause() error
Cause function returns cause value.
func (MarkerInfoValidationError) Error ¶ added in v0.8.1
func (e MarkerInfoValidationError) Error() string
Error satisfies the builtin error interface
func (MarkerInfoValidationError) ErrorName ¶ added in v0.8.1
func (e MarkerInfoValidationError) ErrorName() string
ErrorName returns error name.
func (MarkerInfoValidationError) Field ¶ added in v0.8.1
func (e MarkerInfoValidationError) Field() string
Field function returns field value.
func (MarkerInfoValidationError) Key ¶ added in v0.8.1
func (e MarkerInfoValidationError) Key() bool
Key function returns key value.
func (MarkerInfoValidationError) Reason ¶ added in v0.8.1
func (e MarkerInfoValidationError) Reason() string
Reason function returns reason value.
type MarkerMultiError ¶ added in v0.8.1
type MarkerMultiError []error
MarkerMultiError is an error wrapping multiple validation errors returned by Marker.ValidateAll() if the designated constraints aren't met.
func (MarkerMultiError) AllErrors ¶ added in v0.8.1
func (m MarkerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MarkerMultiError) Error ¶ added in v0.8.1
func (m MarkerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MarkerType ¶ added in v0.8.3
type MarkerType int32
const ( MarkerType_MARKER_TYPE_UNSPECIFIED MarkerType = 0 MarkerType_MARKER_TYPE_DOT MarkerType = 1 MarkerType_MARKER_TYPE_CIRCLE MarkerType = 2 MarkerType_MARKER_TYPE_ICON MarkerType = 3 )
func (MarkerType) Descriptor ¶ added in v0.8.3
func (MarkerType) Descriptor() protoreflect.EnumDescriptor
func (MarkerType) Enum ¶ added in v0.8.3
func (x MarkerType) Enum() *MarkerType
func (MarkerType) EnumDescriptor
deprecated
added in
v0.8.3
func (MarkerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MarkerType.Descriptor instead.
func (MarkerType) Number ¶ added in v0.8.3
func (x MarkerType) Number() protoreflect.EnumNumber
func (MarkerType) String ¶ added in v0.8.3
func (x MarkerType) String() string
func (MarkerType) Type ¶ added in v0.8.3
func (MarkerType) Type() protoreflect.EnumType
type MarkerValidationError ¶ added in v0.8.1
type MarkerValidationError struct {
// contains filtered or unexported fields
}
MarkerValidationError is the validation error returned by Marker.Validate if the designated constraints aren't met.
func (MarkerValidationError) Cause ¶ added in v0.8.1
func (e MarkerValidationError) Cause() error
Cause function returns cause value.
func (MarkerValidationError) Error ¶ added in v0.8.1
func (e MarkerValidationError) Error() string
Error satisfies the builtin error interface
func (MarkerValidationError) ErrorName ¶ added in v0.8.1
func (e MarkerValidationError) ErrorName() string
ErrorName returns error name.
func (MarkerValidationError) Field ¶ added in v0.8.1
func (e MarkerValidationError) Field() string
Field function returns field value.
func (MarkerValidationError) Key ¶ added in v0.8.1
func (e MarkerValidationError) Key() bool
Key function returns key value.
func (MarkerValidationError) Reason ¶ added in v0.8.1
func (e MarkerValidationError) Reason() string
Reason function returns reason value.
type UserMarker ¶
type UserMarker struct { Info *MarkerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` UserId int32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` User *users.UserShort `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" alias:"user"` // @gotags: alias:"user" UnitId *uint64 `protobuf:"varint,4,opt,name=unit_id,json=unitId,proto3,oneof" json:"unit_id,omitempty"` Unit *centrum.Unit `protobuf:"bytes,5,opt,name=unit,proto3,oneof" json:"unit,omitempty"` // contains filtered or unexported fields }
func (*UserMarker) Descriptor
deprecated
func (*UserMarker) Descriptor() ([]byte, []int)
Deprecated: Use UserMarker.ProtoReflect.Descriptor instead.
func (*UserMarker) GetInfo ¶ added in v0.8.1
func (x *UserMarker) GetInfo() *MarkerInfo
func (*UserMarker) GetUnit ¶ added in v0.8.0
func (x *UserMarker) GetUnit() *centrum.Unit
func (*UserMarker) GetUnitId ¶ added in v0.8.0
func (x *UserMarker) GetUnitId() uint64
func (*UserMarker) GetUser ¶
func (x *UserMarker) GetUser() *users.UserShort
func (*UserMarker) GetUserId ¶ added in v0.8.0
func (x *UserMarker) GetUserId() int32
func (*UserMarker) ProtoMessage ¶
func (*UserMarker) ProtoMessage()
func (*UserMarker) ProtoReflect ¶
func (x *UserMarker) ProtoReflect() protoreflect.Message
func (*UserMarker) Reset ¶
func (x *UserMarker) Reset()
func (*UserMarker) String ¶
func (x *UserMarker) String() string
func (*UserMarker) Validate ¶
func (m *UserMarker) Validate() error
Validate checks the field values on UserMarker 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 (*UserMarker) ValidateAll ¶
func (m *UserMarker) ValidateAll() error
ValidateAll checks the field values on UserMarker 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 UserMarkerMultiError, or nil if none found.
type UserMarkerMultiError ¶
type UserMarkerMultiError []error
UserMarkerMultiError is an error wrapping multiple validation errors returned by UserMarker.ValidateAll() if the designated constraints aren't met.
func (UserMarkerMultiError) AllErrors ¶
func (m UserMarkerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMarkerMultiError) Error ¶
func (m UserMarkerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserMarkerValidationError ¶
type UserMarkerValidationError struct {
// contains filtered or unexported fields
}
UserMarkerValidationError is the validation error returned by UserMarker.Validate if the designated constraints aren't met.
func (UserMarkerValidationError) Cause ¶
func (e UserMarkerValidationError) Cause() error
Cause function returns cause value.
func (UserMarkerValidationError) Error ¶
func (e UserMarkerValidationError) Error() string
Error satisfies the builtin error interface
func (UserMarkerValidationError) ErrorName ¶
func (e UserMarkerValidationError) ErrorName() string
ErrorName returns error name.
func (UserMarkerValidationError) Field ¶
func (e UserMarkerValidationError) Field() string
Field function returns field value.
func (UserMarkerValidationError) Key ¶
func (e UserMarkerValidationError) Key() bool
Key function returns key value.
func (UserMarkerValidationError) Reason ¶
func (e UserMarkerValidationError) Reason() string
Reason function returns reason value.