users

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTheme              = "defaultTheme"
	DefaultLivemapMarkerColor = "#5c7aff"

	DefaultEmployeeRoleFormat  = "%s Personal"
	DefaultGradeRoleFormat     = "[%grade%] %grade_label%"
	DefaultUnemployedRoleName  = "Citizen"
	DefaultJobsAbsenceRoleName = "Absent"
)

Variables

View Source
var (
	UserInfoSyncUnemployedMode_name = map[int32]string{
		0: "USER_INFO_SYNC_UNEMPLOYED_MODE_UNSPECIFIED",
		1: "USER_INFO_SYNC_UNEMPLOYED_MODE_GIVE_ROLE",
		2: "USER_INFO_SYNC_UNEMPLOYED_MODE_KICK",
	}
	UserInfoSyncUnemployedMode_value = map[string]int32{
		"USER_INFO_SYNC_UNEMPLOYED_MODE_UNSPECIFIED": 0,
		"USER_INFO_SYNC_UNEMPLOYED_MODE_GIVE_ROLE":   1,
		"USER_INFO_SYNC_UNEMPLOYED_MODE_KICK":        2,
	}
)

Enum value maps for UserInfoSyncUnemployedMode.

View Source
var (
	UserActivityType_name = map[int32]string{
		0: "USER_ACTIVITY_TYPE_UNSPECIFIED",
		1: "USER_ACTIVITY_TYPE_CHANGED",
		2: "USER_ACTIVITY_TYPE_MENTIONED",
		3: "USER_ACTIVITY_TYPE_CREATED",
	}
	UserActivityType_value = map[string]int32{
		"USER_ACTIVITY_TYPE_UNSPECIFIED": 0,
		"USER_ACTIVITY_TYPE_CHANGED":     1,
		"USER_ACTIVITY_TYPE_MENTIONED":   2,
		"USER_ACTIVITY_TYPE_CREATED":     3,
	}
)

Enum value maps for UserActivityType.

View Source
var File_resources_users_jobs_proto protoreflect.FileDescriptor
View Source
var File_resources_users_users_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DiscordSyncSettings added in v0.8.11

type DiscordSyncSettings struct {
	UserInfoSync         bool                  `protobuf:"varint,1,opt,name=user_info_sync,json=userInfoSync,proto3" json:"user_info_sync,omitempty"`
	UserInfoSyncSettings *UserInfoSyncSettings `` /* 131-byte string literal not displayed */
	StatusLog            bool                  `protobuf:"varint,3,opt,name=status_log,json=statusLog,proto3" json:"status_log,omitempty"`
	StatusLogSettings    *StatusLogSettings    `protobuf:"bytes,4,opt,name=status_log_settings,json=statusLogSettings,proto3,oneof" json:"status_log_settings,omitempty"`
	JobsAbsence          bool                  `protobuf:"varint,5,opt,name=jobs_absence,json=jobsAbsence,proto3" json:"jobs_absence,omitempty"`
	JobsAbsenceSettings  *JobsAbsenceSettings  `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DiscordSyncSettings) Descriptor deprecated added in v0.8.11

func (*DiscordSyncSettings) Descriptor() ([]byte, []int)

Deprecated: Use DiscordSyncSettings.ProtoReflect.Descriptor instead.

func (*DiscordSyncSettings) GetJobsAbsence added in v0.8.21

func (x *DiscordSyncSettings) GetJobsAbsence() bool

func (*DiscordSyncSettings) GetJobsAbsenceSettings added in v0.8.21

func (x *DiscordSyncSettings) GetJobsAbsenceSettings() *JobsAbsenceSettings

func (*DiscordSyncSettings) GetStatusLog added in v0.8.20

func (x *DiscordSyncSettings) GetStatusLog() bool

func (*DiscordSyncSettings) GetStatusLogSettings added in v0.8.20

func (x *DiscordSyncSettings) GetStatusLogSettings() *StatusLogSettings

func (*DiscordSyncSettings) GetUserInfoSync added in v0.8.11

func (x *DiscordSyncSettings) GetUserInfoSync() bool

func (*DiscordSyncSettings) GetUserInfoSyncSettings added in v0.8.16

func (x *DiscordSyncSettings) GetUserInfoSyncSettings() *UserInfoSyncSettings

func (*DiscordSyncSettings) IsStatusLogEnabled added in v0.8.20

func (x *DiscordSyncSettings) IsStatusLogEnabled() bool

func (*DiscordSyncSettings) ProtoMessage added in v0.8.11

func (*DiscordSyncSettings) ProtoMessage()

func (*DiscordSyncSettings) ProtoReflect added in v0.8.11

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

func (*DiscordSyncSettings) Reset added in v0.8.11

func (x *DiscordSyncSettings) Reset()

func (*DiscordSyncSettings) Scan added in v0.8.11

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

Scan implements driver.Valuer for protobuf DiscordSyncSettings.

func (*DiscordSyncSettings) String added in v0.8.11

func (x *DiscordSyncSettings) String() string

func (*DiscordSyncSettings) Validate added in v0.8.11

func (m *DiscordSyncSettings) Validate() error

Validate checks the field values on DiscordSyncSettings 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 (*DiscordSyncSettings) ValidateAll added in v0.8.11

func (m *DiscordSyncSettings) ValidateAll() error

ValidateAll checks the field values on DiscordSyncSettings 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 DiscordSyncSettingsMultiError, or nil if none found.

func (*DiscordSyncSettings) Value added in v0.8.11

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

Value marshals the value into driver.Valuer.

type DiscordSyncSettingsMultiError added in v0.8.11

type DiscordSyncSettingsMultiError []error

DiscordSyncSettingsMultiError is an error wrapping multiple validation errors returned by DiscordSyncSettings.ValidateAll() if the designated constraints aren't met.

func (DiscordSyncSettingsMultiError) AllErrors added in v0.8.11

func (m DiscordSyncSettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DiscordSyncSettingsMultiError) Error added in v0.8.11

Error returns a concatenation of all the error messages it wraps.

type DiscordSyncSettingsValidationError added in v0.8.11

type DiscordSyncSettingsValidationError struct {
	// contains filtered or unexported fields
}

DiscordSyncSettingsValidationError is the validation error returned by DiscordSyncSettings.Validate if the designated constraints aren't met.

func (DiscordSyncSettingsValidationError) Cause added in v0.8.11

Cause function returns cause value.

func (DiscordSyncSettingsValidationError) Error added in v0.8.11

Error satisfies the builtin error interface

func (DiscordSyncSettingsValidationError) ErrorName added in v0.8.11

ErrorName returns error name.

func (DiscordSyncSettingsValidationError) Field added in v0.8.11

Field function returns field value.

func (DiscordSyncSettingsValidationError) Key added in v0.8.11

Key function returns key value.

func (DiscordSyncSettingsValidationError) Reason added in v0.8.11

Reason function returns reason value.

type Job added in v0.8.0

type Job struct {
	Name   string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" sql:"primary_key" alias:"name"` // @gotags: sql:"primary_key" alias:"name"
	Label  string      `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Grades []*JobGrade `protobuf:"bytes,3,rep,name=grades,proto3" json:"grades,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated added in v0.8.0

func (*Job) Descriptor() ([]byte, []int)

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetGrades added in v0.8.0

func (x *Job) GetGrades() []*JobGrade

func (*Job) GetJob added in v0.8.0

func (x *Job) GetJob() string

func (*Job) GetLabel added in v0.8.0

func (x *Job) GetLabel() string

func (*Job) GetName added in v0.8.0

func (x *Job) GetName() string

func (*Job) ProtoMessage added in v0.8.0

func (*Job) ProtoMessage()

func (*Job) ProtoReflect added in v0.8.0

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

func (*Job) Reset added in v0.8.0

func (x *Job) Reset()

func (*Job) SetJobLabel added in v0.8.0

func (x *Job) SetJobLabel(label string)

func (*Job) String added in v0.8.0

func (x *Job) String() string

func (*Job) Validate added in v0.8.0

func (m *Job) Validate() error

Validate checks the field values on Job 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 (*Job) ValidateAll added in v0.8.0

func (m *Job) ValidateAll() error

ValidateAll checks the field values on Job 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 JobMultiError, or nil if none found.

type JobGrade added in v0.8.0

type JobGrade struct {
	JobName *string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty"`
	Grade   int32   `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"`
	Label   string  `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*JobGrade) Descriptor deprecated added in v0.8.0

func (*JobGrade) Descriptor() ([]byte, []int)

Deprecated: Use JobGrade.ProtoReflect.Descriptor instead.

func (*JobGrade) GetGrade added in v0.8.0

func (x *JobGrade) GetGrade() int32

func (*JobGrade) GetJobName added in v0.8.0

func (x *JobGrade) GetJobName() string

func (*JobGrade) GetLabel added in v0.8.0

func (x *JobGrade) GetLabel() string

func (*JobGrade) ProtoMessage added in v0.8.0

func (*JobGrade) ProtoMessage()

func (*JobGrade) ProtoReflect added in v0.8.0

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

func (*JobGrade) Reset added in v0.8.0

func (x *JobGrade) Reset()

func (*JobGrade) String added in v0.8.0

func (x *JobGrade) String() string

func (*JobGrade) Validate added in v0.8.0

func (m *JobGrade) Validate() error

Validate checks the field values on JobGrade 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 (*JobGrade) ValidateAll added in v0.8.0

func (m *JobGrade) ValidateAll() error

ValidateAll checks the field values on JobGrade 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 JobGradeMultiError, or nil if none found.

type JobGradeMultiError added in v0.8.0

type JobGradeMultiError []error

JobGradeMultiError is an error wrapping multiple validation errors returned by JobGrade.ValidateAll() if the designated constraints aren't met.

func (JobGradeMultiError) AllErrors added in v0.8.0

func (m JobGradeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobGradeMultiError) Error added in v0.8.0

func (m JobGradeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobGradeValidationError added in v0.8.0

type JobGradeValidationError struct {
	// contains filtered or unexported fields
}

JobGradeValidationError is the validation error returned by JobGrade.Validate if the designated constraints aren't met.

func (JobGradeValidationError) Cause added in v0.8.0

func (e JobGradeValidationError) Cause() error

Cause function returns cause value.

func (JobGradeValidationError) Error added in v0.8.0

func (e JobGradeValidationError) Error() string

Error satisfies the builtin error interface

func (JobGradeValidationError) ErrorName added in v0.8.0

func (e JobGradeValidationError) ErrorName() string

ErrorName returns error name.

func (JobGradeValidationError) Field added in v0.8.0

func (e JobGradeValidationError) Field() string

Field function returns field value.

func (JobGradeValidationError) Key added in v0.8.0

func (e JobGradeValidationError) Key() bool

Key function returns key value.

func (JobGradeValidationError) Reason added in v0.8.0

func (e JobGradeValidationError) Reason() string

Reason function returns reason value.

type JobMultiError added in v0.8.0

type JobMultiError []error

JobMultiError is an error wrapping multiple validation errors returned by Job.ValidateAll() if the designated constraints aren't met.

func (JobMultiError) AllErrors added in v0.8.0

func (m JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobMultiError) Error added in v0.8.0

func (m JobMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobProps added in v0.8.0

type JobProps struct {
	Job                 string               `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"`
	JobLabel            *string              `protobuf:"bytes,2,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"`
	Theme               string               `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"`
	LivemapMarkerColor  string               `protobuf:"bytes,4,opt,name=livemap_marker_color,json=livemapMarkerColor,proto3" json:"livemap_marker_color,omitempty"`
	QuickButtons        *QuickButtons        `protobuf:"bytes,5,opt,name=quick_buttons,json=quickButtons,proto3" json:"quick_buttons,omitempty"`
	RadioFrequency      *string              `protobuf:"bytes,6,opt,name=radio_frequency,json=radioFrequency,proto3,oneof" json:"radio_frequency,omitempty"`
	DiscordGuildId      *uint64              `protobuf:"varint,7,opt,name=discord_guild_id,json=discordGuildId,proto3,oneof" json:"discord_guild_id,omitempty"`
	DiscordLastSync     *timestamp.Timestamp `protobuf:"bytes,8,opt,name=discord_last_sync,json=discordLastSync,proto3,oneof" json:"discord_last_sync,omitempty"`
	DiscordSyncSettings *DiscordSyncSettings `protobuf:"bytes,9,opt,name=discord_sync_settings,json=discordSyncSettings,proto3" json:"discord_sync_settings,omitempty"`
	Motd                *string              `protobuf:"bytes,10,opt,name=motd,proto3,oneof" json:"motd,omitempty"`
	LogoUrl             *filestore.File      `protobuf:"bytes,11,opt,name=logo_url,json=logoUrl,proto3,oneof" json:"logo_url,omitempty"`
	Settings            *JobSettings         `protobuf:"bytes,12,opt,name=settings,proto3" json:"settings,omitempty"`
	// contains filtered or unexported fields
}

func (*JobProps) Default added in v0.8.0

func (x *JobProps) Default(job string)

func (*JobProps) Descriptor deprecated added in v0.8.0

func (*JobProps) Descriptor() ([]byte, []int)

Deprecated: Use JobProps.ProtoReflect.Descriptor instead.

func (*JobProps) GetDiscordGuildId added in v0.8.0

func (x *JobProps) GetDiscordGuildId() uint64

func (*JobProps) GetDiscordLastSync added in v0.8.10

func (x *JobProps) GetDiscordLastSync() *timestamp.Timestamp

func (*JobProps) GetDiscordSyncSettings added in v0.8.11

func (x *JobProps) GetDiscordSyncSettings() *DiscordSyncSettings

func (*JobProps) GetJob added in v0.8.0

func (x *JobProps) GetJob() string

func (*JobProps) GetJobLabel added in v0.8.20

func (x *JobProps) GetJobLabel() string

func (*JobProps) GetLivemapMarkerColor added in v0.8.0

func (x *JobProps) GetLivemapMarkerColor() string

func (*JobProps) GetLogoUrl added in v0.8.20

func (x *JobProps) GetLogoUrl() *filestore.File

func (*JobProps) GetMotd added in v0.8.20

func (x *JobProps) GetMotd() string

func (*JobProps) GetQuickButtons added in v0.8.0

func (x *JobProps) GetQuickButtons() *QuickButtons

func (*JobProps) GetRadioFrequency added in v0.8.16

func (x *JobProps) GetRadioFrequency() string

func (*JobProps) GetSettings added in v0.8.21

func (x *JobProps) GetSettings() *JobSettings

func (*JobProps) GetTheme added in v0.8.0

func (x *JobProps) GetTheme() string

func (*JobProps) ProtoMessage added in v0.8.0

func (*JobProps) ProtoMessage()

func (*JobProps) ProtoReflect added in v0.8.0

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

func (*JobProps) Reset added in v0.8.0

func (x *JobProps) Reset()

func (*JobProps) SetJobLabel added in v0.8.20

func (x *JobProps) SetJobLabel(label string)

func (*JobProps) String added in v0.8.0

func (x *JobProps) String() string

func (*JobProps) Validate added in v0.8.0

func (m *JobProps) Validate() error

Validate checks the field values on JobProps 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 (*JobProps) ValidateAll added in v0.8.0

func (m *JobProps) ValidateAll() error

ValidateAll checks the field values on JobProps 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 JobPropsMultiError, or nil if none found.

type JobPropsMultiError added in v0.8.0

type JobPropsMultiError []error

JobPropsMultiError is an error wrapping multiple validation errors returned by JobProps.ValidateAll() if the designated constraints aren't met.

func (JobPropsMultiError) AllErrors added in v0.8.0

func (m JobPropsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobPropsMultiError) Error added in v0.8.0

func (m JobPropsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobPropsValidationError added in v0.8.0

type JobPropsValidationError struct {
	// contains filtered or unexported fields
}

JobPropsValidationError is the validation error returned by JobProps.Validate if the designated constraints aren't met.

func (JobPropsValidationError) Cause added in v0.8.0

func (e JobPropsValidationError) Cause() error

Cause function returns cause value.

func (JobPropsValidationError) Error added in v0.8.0

func (e JobPropsValidationError) Error() string

Error satisfies the builtin error interface

func (JobPropsValidationError) ErrorName added in v0.8.0

func (e JobPropsValidationError) ErrorName() string

ErrorName returns error name.

func (JobPropsValidationError) Field added in v0.8.0

func (e JobPropsValidationError) Field() string

Field function returns field value.

func (JobPropsValidationError) Key added in v0.8.0

func (e JobPropsValidationError) Key() bool

Key function returns key value.

func (JobPropsValidationError) Reason added in v0.8.0

func (e JobPropsValidationError) Reason() string

Reason function returns reason value.

type JobSettings added in v0.8.21

type JobSettings struct {
	// contains filtered or unexported fields
}

func (*JobSettings) Descriptor deprecated added in v0.8.21

func (*JobSettings) Descriptor() ([]byte, []int)

Deprecated: Use JobSettings.ProtoReflect.Descriptor instead.

func (*JobSettings) ProtoMessage added in v0.8.21

func (*JobSettings) ProtoMessage()

func (*JobSettings) ProtoReflect added in v0.8.21

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

func (*JobSettings) Reset added in v0.8.21

func (x *JobSettings) Reset()

func (*JobSettings) Scan added in v0.8.21

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

Scan implements driver.Valuer for protobuf JobSettings.

func (*JobSettings) String added in v0.8.21

func (x *JobSettings) String() string

func (*JobSettings) Validate added in v0.8.21

func (m *JobSettings) Validate() error

Validate checks the field values on JobSettings 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 (*JobSettings) ValidateAll added in v0.8.21

func (m *JobSettings) ValidateAll() error

ValidateAll checks the field values on JobSettings 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 JobSettingsMultiError, or nil if none found.

func (*JobSettings) Value added in v0.8.21

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

Value marshals the value into driver.Valuer.

type JobSettingsMultiError added in v0.8.21

type JobSettingsMultiError []error

JobSettingsMultiError is an error wrapping multiple validation errors returned by JobSettings.ValidateAll() if the designated constraints aren't met.

func (JobSettingsMultiError) AllErrors added in v0.8.21

func (m JobSettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobSettingsMultiError) Error added in v0.8.21

func (m JobSettingsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobSettingsValidationError added in v0.8.21

type JobSettingsValidationError struct {
	// contains filtered or unexported fields
}

JobSettingsValidationError is the validation error returned by JobSettings.Validate if the designated constraints aren't met.

func (JobSettingsValidationError) Cause added in v0.8.21

Cause function returns cause value.

func (JobSettingsValidationError) Error added in v0.8.21

Error satisfies the builtin error interface

func (JobSettingsValidationError) ErrorName added in v0.8.21

func (e JobSettingsValidationError) ErrorName() string

ErrorName returns error name.

func (JobSettingsValidationError) Field added in v0.8.21

Field function returns field value.

func (JobSettingsValidationError) Key added in v0.8.21

Key function returns key value.

func (JobSettingsValidationError) Reason added in v0.8.21

Reason function returns reason value.

type JobValidationError added in v0.8.0

type JobValidationError struct {
	// contains filtered or unexported fields
}

JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.

func (JobValidationError) Cause added in v0.8.0

func (e JobValidationError) Cause() error

Cause function returns cause value.

func (JobValidationError) Error added in v0.8.0

func (e JobValidationError) Error() string

Error satisfies the builtin error interface

func (JobValidationError) ErrorName added in v0.8.0

func (e JobValidationError) ErrorName() string

ErrorName returns error name.

func (JobValidationError) Field added in v0.8.0

func (e JobValidationError) Field() string

Field function returns field value.

func (JobValidationError) Key added in v0.8.0

func (e JobValidationError) Key() bool

Key function returns key value.

func (JobValidationError) Reason added in v0.8.0

func (e JobValidationError) Reason() string

Reason function returns reason value.

type JobsAbsenceSettings added in v0.8.21

type JobsAbsenceSettings struct {
	AbsenceRole string `protobuf:"bytes,1,opt,name=absence_role,json=absenceRole,proto3" json:"absence_role,omitempty"`
	// contains filtered or unexported fields
}

func (*JobsAbsenceSettings) Descriptor deprecated added in v0.8.21

func (*JobsAbsenceSettings) Descriptor() ([]byte, []int)

Deprecated: Use JobsAbsenceSettings.ProtoReflect.Descriptor instead.

func (*JobsAbsenceSettings) GetAbsenceRole added in v0.8.21

func (x *JobsAbsenceSettings) GetAbsenceRole() string

func (*JobsAbsenceSettings) ProtoMessage added in v0.8.21

func (*JobsAbsenceSettings) ProtoMessage()

func (*JobsAbsenceSettings) ProtoReflect added in v0.8.21

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

func (*JobsAbsenceSettings) Reset added in v0.8.21

func (x *JobsAbsenceSettings) Reset()

func (*JobsAbsenceSettings) String added in v0.8.21

func (x *JobsAbsenceSettings) String() string

func (*JobsAbsenceSettings) Validate added in v0.8.21

func (m *JobsAbsenceSettings) Validate() error

Validate checks the field values on JobsAbsenceSettings 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 (*JobsAbsenceSettings) ValidateAll added in v0.8.21

func (m *JobsAbsenceSettings) ValidateAll() error

ValidateAll checks the field values on JobsAbsenceSettings 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 JobsAbsenceSettingsMultiError, or nil if none found.

type JobsAbsenceSettingsMultiError added in v0.8.21

type JobsAbsenceSettingsMultiError []error

JobsAbsenceSettingsMultiError is an error wrapping multiple validation errors returned by JobsAbsenceSettings.ValidateAll() if the designated constraints aren't met.

func (JobsAbsenceSettingsMultiError) AllErrors added in v0.8.21

func (m JobsAbsenceSettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobsAbsenceSettingsMultiError) Error added in v0.8.21

Error returns a concatenation of all the error messages it wraps.

type JobsAbsenceSettingsValidationError added in v0.8.21

type JobsAbsenceSettingsValidationError struct {
	// contains filtered or unexported fields
}

JobsAbsenceSettingsValidationError is the validation error returned by JobsAbsenceSettings.Validate if the designated constraints aren't met.

func (JobsAbsenceSettingsValidationError) Cause added in v0.8.21

Cause function returns cause value.

func (JobsAbsenceSettingsValidationError) Error added in v0.8.21

Error satisfies the builtin error interface

func (JobsAbsenceSettingsValidationError) ErrorName added in v0.8.21

ErrorName returns error name.

func (JobsAbsenceSettingsValidationError) Field added in v0.8.21

Field function returns field value.

func (JobsAbsenceSettingsValidationError) Key added in v0.8.21

Key function returns key value.

func (JobsAbsenceSettingsValidationError) Reason added in v0.8.21

Reason function returns reason value.

type License

type License struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*License) Descriptor deprecated

func (*License) Descriptor() ([]byte, []int)

Deprecated: Use License.ProtoReflect.Descriptor instead.

func (*License) GetLabel

func (x *License) GetLabel() string

func (*License) GetType

func (x *License) GetType() string

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) ProtoReflect

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

func (*License) Reset

func (x *License) Reset()

func (*License) String

func (x *License) String() string

func (*License) Validate

func (m *License) Validate() error

Validate checks the field values on License 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 (*License) ValidateAll

func (m *License) ValidateAll() error

ValidateAll checks the field values on License 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 LicenseMultiError, or nil if none found.

type LicenseMultiError

type LicenseMultiError []error

LicenseMultiError is an error wrapping multiple validation errors returned by License.ValidateAll() if the designated constraints aren't met.

func (LicenseMultiError) AllErrors

func (m LicenseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LicenseMultiError) Error

func (m LicenseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LicenseValidationError

type LicenseValidationError struct {
	// contains filtered or unexported fields
}

LicenseValidationError is the validation error returned by License.Validate if the designated constraints aren't met.

func (LicenseValidationError) Cause

func (e LicenseValidationError) Cause() error

Cause function returns cause value.

func (LicenseValidationError) Error

func (e LicenseValidationError) Error() string

Error satisfies the builtin error interface

func (LicenseValidationError) ErrorName

func (e LicenseValidationError) ErrorName() string

ErrorName returns error name.

func (LicenseValidationError) Field

func (e LicenseValidationError) Field() string

Field function returns field value.

func (LicenseValidationError) Key

func (e LicenseValidationError) Key() bool

Key function returns key value.

func (LicenseValidationError) Reason

func (e LicenseValidationError) Reason() string

Reason function returns reason value.

type QuickButtons added in v0.8.11

type QuickButtons struct {
	PenaltyCalculator bool `protobuf:"varint,1,opt,name=penalty_calculator,json=penaltyCalculator,proto3" json:"penalty_calculator,omitempty"`
	BodyCheckup       bool `protobuf:"varint,2,opt,name=body_checkup,json=bodyCheckup,proto3" json:"body_checkup,omitempty"`
	// contains filtered or unexported fields
}

func (*QuickButtons) Descriptor deprecated added in v0.8.11

func (*QuickButtons) Descriptor() ([]byte, []int)

Deprecated: Use QuickButtons.ProtoReflect.Descriptor instead.

func (*QuickButtons) GetBodyCheckup added in v0.8.11

func (x *QuickButtons) GetBodyCheckup() bool

func (*QuickButtons) GetPenaltyCalculator added in v0.8.11

func (x *QuickButtons) GetPenaltyCalculator() bool

func (*QuickButtons) ProtoMessage added in v0.8.11

func (*QuickButtons) ProtoMessage()

func (*QuickButtons) ProtoReflect added in v0.8.11

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

func (*QuickButtons) Reset added in v0.8.11

func (x *QuickButtons) Reset()

func (*QuickButtons) Scan added in v0.8.11

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

Scan implements driver.Valuer for protobuf QuickButtons.

func (*QuickButtons) String added in v0.8.11

func (x *QuickButtons) String() string

func (*QuickButtons) Validate added in v0.8.11

func (m *QuickButtons) Validate() error

Validate checks the field values on QuickButtons 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 (*QuickButtons) ValidateAll added in v0.8.11

func (m *QuickButtons) ValidateAll() error

ValidateAll checks the field values on QuickButtons 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 QuickButtonsMultiError, or nil if none found.

func (*QuickButtons) Value added in v0.8.11

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

Value marshals the value into driver.Valuer.

type QuickButtonsMultiError added in v0.8.11

type QuickButtonsMultiError []error

QuickButtonsMultiError is an error wrapping multiple validation errors returned by QuickButtons.ValidateAll() if the designated constraints aren't met.

func (QuickButtonsMultiError) AllErrors added in v0.8.11

func (m QuickButtonsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QuickButtonsMultiError) Error added in v0.8.11

func (m QuickButtonsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type QuickButtonsValidationError added in v0.8.11

type QuickButtonsValidationError struct {
	// contains filtered or unexported fields
}

QuickButtonsValidationError is the validation error returned by QuickButtons.Validate if the designated constraints aren't met.

func (QuickButtonsValidationError) Cause added in v0.8.11

Cause function returns cause value.

func (QuickButtonsValidationError) Error added in v0.8.11

Error satisfies the builtin error interface

func (QuickButtonsValidationError) ErrorName added in v0.8.11

func (e QuickButtonsValidationError) ErrorName() string

ErrorName returns error name.

func (QuickButtonsValidationError) Field added in v0.8.11

Field function returns field value.

func (QuickButtonsValidationError) Key added in v0.8.11

Key function returns key value.

func (QuickButtonsValidationError) Reason added in v0.8.11

Reason function returns reason value.

type StatusLogSettings added in v0.8.20

type StatusLogSettings struct {
	ChannelId *string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3,oneof" json:"channel_id,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusLogSettings) Descriptor deprecated added in v0.8.20

func (*StatusLogSettings) Descriptor() ([]byte, []int)

Deprecated: Use StatusLogSettings.ProtoReflect.Descriptor instead.

func (*StatusLogSettings) GetChannelId added in v0.8.20

func (x *StatusLogSettings) GetChannelId() string

func (*StatusLogSettings) ProtoMessage added in v0.8.20

func (*StatusLogSettings) ProtoMessage()

func (*StatusLogSettings) ProtoReflect added in v0.8.20

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

func (*StatusLogSettings) Reset added in v0.8.20

func (x *StatusLogSettings) Reset()

func (*StatusLogSettings) String added in v0.8.20

func (x *StatusLogSettings) String() string

func (*StatusLogSettings) Validate added in v0.8.20

func (m *StatusLogSettings) Validate() error

Validate checks the field values on StatusLogSettings 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 (*StatusLogSettings) ValidateAll added in v0.8.20

func (m *StatusLogSettings) ValidateAll() error

ValidateAll checks the field values on StatusLogSettings 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 StatusLogSettingsMultiError, or nil if none found.

type StatusLogSettingsMultiError added in v0.8.20

type StatusLogSettingsMultiError []error

StatusLogSettingsMultiError is an error wrapping multiple validation errors returned by StatusLogSettings.ValidateAll() if the designated constraints aren't met.

func (StatusLogSettingsMultiError) AllErrors added in v0.8.20

func (m StatusLogSettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatusLogSettingsMultiError) Error added in v0.8.20

Error returns a concatenation of all the error messages it wraps.

type StatusLogSettingsValidationError added in v0.8.20

type StatusLogSettingsValidationError struct {
	// contains filtered or unexported fields
}

StatusLogSettingsValidationError is the validation error returned by StatusLogSettings.Validate if the designated constraints aren't met.

func (StatusLogSettingsValidationError) Cause added in v0.8.20

Cause function returns cause value.

func (StatusLogSettingsValidationError) Error added in v0.8.20

Error satisfies the builtin error interface

func (StatusLogSettingsValidationError) ErrorName added in v0.8.20

ErrorName returns error name.

func (StatusLogSettingsValidationError) Field added in v0.8.20

Field function returns field value.

func (StatusLogSettingsValidationError) Key added in v0.8.20

Key function returns key value.

func (StatusLogSettingsValidationError) Reason added in v0.8.20

Reason function returns reason value.

type User

type User struct {
	UserId        int32           `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id"
	Identifier    string          `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Job           string          `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"`
	JobLabel      *string         `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"`
	JobGrade      int32           `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"`
	JobGradeLabel *string         `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"`
	Firstname     string          `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname      string          `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Dateofbirth   string          `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"`
	Sex           *string         `protobuf:"bytes,10,opt,name=sex,proto3,oneof" json:"sex,omitempty"`
	Height        *string         `protobuf:"bytes,11,opt,name=height,proto3,oneof" json:"height,omitempty"`
	PhoneNumber   *string         `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"`
	Visum         *int32          `protobuf:"varint,13,opt,name=visum,proto3,oneof" json:"visum,omitempty"`
	Playtime      *int32          `protobuf:"varint,14,opt,name=playtime,proto3,oneof" json:"playtime,omitempty"`
	Props         *UserProps      `protobuf:"bytes,15,opt,name=props,proto3" json:"props,omitempty" alias:"fivenet_user_props"`  // @gotags: alias:"fivenet_user_props"
	Licenses      []*License      `protobuf:"bytes,16,rep,name=licenses,proto3" json:"licenses,omitempty" alias:"user_licenses"` // @gotags: alias:"user_licenses"
	Avatar        *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar added in v0.8.20

func (x *User) GetAvatar() *filestore.File

func (*User) GetDateofbirth

func (x *User) GetDateofbirth() string

func (*User) GetFirstname

func (x *User) GetFirstname() string

func (*User) GetHeight

func (x *User) GetHeight() string

func (*User) GetIdentifier

func (x *User) GetIdentifier() string

func (*User) GetJob

func (x *User) GetJob() string

func (*User) GetJobGrade

func (x *User) GetJobGrade() int32

func (*User) GetJobGradeLabel

func (x *User) GetJobGradeLabel() string

func (*User) GetJobLabel

func (x *User) GetJobLabel() string

func (*User) GetLastname

func (x *User) GetLastname() string

func (*User) GetLicenses

func (x *User) GetLicenses() []*License

func (*User) GetPhoneNumber

func (x *User) GetPhoneNumber() string

func (*User) GetPlaytime

func (x *User) GetPlaytime() int32

func (*User) GetProps

func (x *User) GetProps() *UserProps

func (*User) GetSex

func (x *User) GetSex() string

func (*User) GetUserId

func (x *User) GetUserId() int32

func (*User) GetVisum

func (x *User) GetVisum() int32

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) SetJob added in v0.8.6

func (x *User) SetJob(job string)

func (*User) SetJobGrade added in v0.8.6

func (x *User) SetJobGrade(grade int32)

func (*User) SetJobGradeLabel

func (x *User) SetJobGradeLabel(label string)

func (*User) SetJobLabel

func (x *User) SetJobLabel(label string)

func (*User) String

func (x *User) String() string

func (*User) UserShort

func (x *User) UserShort() *UserShort

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User 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 (*User) ValidateAll

func (m *User) ValidateAll() error

ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.

type UserActivity

type UserActivity struct {
	Id   uint64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" alias:"fivenet_user_activity.id"` // @gotags: alias:"fivenet_user_activity.id"
	Type UserActivityType ``                                                                                            // @gotags: alias:"fivenet_user_activity.type"
	/* 135-byte string literal not displayed */
	CreatedAt *timestamp.Timestamp `` // @gotags: alias:"fivenet_user_activity.created_at"
	/* 129-byte string literal not displayed */
	SourceUser *UserShort `protobuf:"bytes,4,opt,name=source_user,json=sourceUser,proto3" json:"source_user,omitempty" alias:"source_user"` // @gotags: alias:"source_user"
	TargetUser *UserShort `protobuf:"bytes,5,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty" alias:"target_user"` // @gotags: alias:"target_user"
	// @sanitize
	Key      string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty" alias:"fivenet_user_activity.key"`                                 // @gotags: alias:"fivenet_user_activity.key"
	OldValue string `protobuf:"bytes,7,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty" alias:"fivenet_user_activity.old_value"` // @gotags: alias:"fivenet_user_activity.old_value"
	NewValue string `protobuf:"bytes,8,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty" alias:"fivenet_user_activity.new_value"` // @gotags: alias:"fivenet_user_activity.new_value"
	// @sanitize
	Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" alias:"fivenet_user_activity.reason"` // @gotags: alias:"fivenet_user_activity.reason"
	// contains filtered or unexported fields
}

func (*UserActivity) Descriptor deprecated

func (*UserActivity) Descriptor() ([]byte, []int)

Deprecated: Use UserActivity.ProtoReflect.Descriptor instead.

func (*UserActivity) GetCreatedAt

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

func (*UserActivity) GetId

func (x *UserActivity) GetId() uint64

func (*UserActivity) GetKey

func (x *UserActivity) GetKey() string

func (*UserActivity) GetNewValue

func (x *UserActivity) GetNewValue() string

func (*UserActivity) GetOldValue

func (x *UserActivity) GetOldValue() string

func (*UserActivity) GetReason

func (x *UserActivity) GetReason() string

func (*UserActivity) GetSourceUser

func (x *UserActivity) GetSourceUser() *UserShort

func (*UserActivity) GetTargetUser

func (x *UserActivity) GetTargetUser() *UserShort

func (*UserActivity) GetType

func (x *UserActivity) GetType() UserActivityType

func (*UserActivity) ProtoMessage

func (*UserActivity) ProtoMessage()

func (*UserActivity) ProtoReflect

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

func (*UserActivity) Reset

func (x *UserActivity) Reset()

func (*UserActivity) Sanitize added in v0.8.1

func (m *UserActivity) Sanitize() error

func (*UserActivity) String

func (x *UserActivity) String() string

func (*UserActivity) Validate

func (m *UserActivity) Validate() error

Validate checks the field values on UserActivity 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 (*UserActivity) ValidateAll

func (m *UserActivity) ValidateAll() error

ValidateAll checks the field values on UserActivity 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 UserActivityMultiError, or nil if none found.

type UserActivityMultiError

type UserActivityMultiError []error

UserActivityMultiError is an error wrapping multiple validation errors returned by UserActivity.ValidateAll() if the designated constraints aren't met.

func (UserActivityMultiError) AllErrors

func (m UserActivityMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserActivityMultiError) Error

func (m UserActivityMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserActivityType added in v0.8.3

type UserActivityType int32
const (
	UserActivityType_USER_ACTIVITY_TYPE_UNSPECIFIED UserActivityType = 0
	UserActivityType_USER_ACTIVITY_TYPE_CHANGED     UserActivityType = 1
	UserActivityType_USER_ACTIVITY_TYPE_MENTIONED   UserActivityType = 2
	UserActivityType_USER_ACTIVITY_TYPE_CREATED     UserActivityType = 3
)

func (UserActivityType) Descriptor added in v0.8.3

func (UserActivityType) Enum added in v0.8.3

func (UserActivityType) EnumDescriptor deprecated added in v0.8.3

func (UserActivityType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserActivityType.Descriptor instead.

func (UserActivityType) Number added in v0.8.3

func (UserActivityType) String added in v0.8.3

func (x UserActivityType) String() string

func (UserActivityType) Type added in v0.8.3

type UserActivityValidationError

type UserActivityValidationError struct {
	// contains filtered or unexported fields
}

UserActivityValidationError is the validation error returned by UserActivity.Validate if the designated constraints aren't met.

func (UserActivityValidationError) Cause

Cause function returns cause value.

func (UserActivityValidationError) Error

Error satisfies the builtin error interface

func (UserActivityValidationError) ErrorName

func (e UserActivityValidationError) ErrorName() string

ErrorName returns error name.

func (UserActivityValidationError) Field

Field function returns field value.

func (UserActivityValidationError) Key

Key function returns key value.

func (UserActivityValidationError) Reason

Reason function returns reason value.

type UserInfoSyncSettings added in v0.8.16

type UserInfoSyncSettings struct {
	EmployeeRoleEnabled bool                       `protobuf:"varint,1,opt,name=employee_role_enabled,json=employeeRoleEnabled,proto3" json:"employee_role_enabled,omitempty"`
	EmployeeRoleFormat  *string                    `protobuf:"bytes,2,opt,name=employee_role_format,json=employeeRoleFormat,proto3,oneof" json:"employee_role_format,omitempty"`
	GradeRoleFormat     *string                    `protobuf:"bytes,3,opt,name=grade_role_format,json=gradeRoleFormat,proto3,oneof" json:"grade_role_format,omitempty"`
	UnemployedEnabled   bool                       `protobuf:"varint,4,opt,name=unemployed_enabled,json=unemployedEnabled,proto3" json:"unemployed_enabled,omitempty"`
	UnemployedMode      UserInfoSyncUnemployedMode `` /* 152-byte string literal not displayed */
	UnemployedRoleName  *string                    `protobuf:"bytes,6,opt,name=unemployed_role_name,json=unemployedRoleName,proto3,oneof" json:"unemployed_role_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfoSyncSettings) Descriptor deprecated added in v0.8.16

func (*UserInfoSyncSettings) Descriptor() ([]byte, []int)

Deprecated: Use UserInfoSyncSettings.ProtoReflect.Descriptor instead.

func (*UserInfoSyncSettings) GetEmployeeRoleEnabled added in v0.8.16

func (x *UserInfoSyncSettings) GetEmployeeRoleEnabled() bool

func (*UserInfoSyncSettings) GetEmployeeRoleFormat added in v0.8.16

func (x *UserInfoSyncSettings) GetEmployeeRoleFormat() string

func (*UserInfoSyncSettings) GetGradeRoleFormat added in v0.8.20

func (x *UserInfoSyncSettings) GetGradeRoleFormat() string

func (*UserInfoSyncSettings) GetUnemployedEnabled added in v0.8.20

func (x *UserInfoSyncSettings) GetUnemployedEnabled() bool

func (*UserInfoSyncSettings) GetUnemployedMode added in v0.8.20

func (x *UserInfoSyncSettings) GetUnemployedMode() UserInfoSyncUnemployedMode

func (*UserInfoSyncSettings) GetUnemployedRoleName added in v0.8.20

func (x *UserInfoSyncSettings) GetUnemployedRoleName() string

func (*UserInfoSyncSettings) ProtoMessage added in v0.8.16

func (*UserInfoSyncSettings) ProtoMessage()

func (*UserInfoSyncSettings) ProtoReflect added in v0.8.16

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

func (*UserInfoSyncSettings) Reset added in v0.8.16

func (x *UserInfoSyncSettings) Reset()

func (*UserInfoSyncSettings) String added in v0.8.16

func (x *UserInfoSyncSettings) String() string

func (*UserInfoSyncSettings) Validate added in v0.8.16

func (m *UserInfoSyncSettings) Validate() error

Validate checks the field values on UserInfoSyncSettings 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 (*UserInfoSyncSettings) ValidateAll added in v0.8.16

func (m *UserInfoSyncSettings) ValidateAll() error

ValidateAll checks the field values on UserInfoSyncSettings 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 UserInfoSyncSettingsMultiError, or nil if none found.

type UserInfoSyncSettingsMultiError added in v0.8.16

type UserInfoSyncSettingsMultiError []error

UserInfoSyncSettingsMultiError is an error wrapping multiple validation errors returned by UserInfoSyncSettings.ValidateAll() if the designated constraints aren't met.

func (UserInfoSyncSettingsMultiError) AllErrors added in v0.8.16

func (m UserInfoSyncSettingsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserInfoSyncSettingsMultiError) Error added in v0.8.16

Error returns a concatenation of all the error messages it wraps.

type UserInfoSyncSettingsValidationError added in v0.8.16

type UserInfoSyncSettingsValidationError struct {
	// contains filtered or unexported fields
}

UserInfoSyncSettingsValidationError is the validation error returned by UserInfoSyncSettings.Validate if the designated constraints aren't met.

func (UserInfoSyncSettingsValidationError) Cause added in v0.8.16

Cause function returns cause value.

func (UserInfoSyncSettingsValidationError) Error added in v0.8.16

Error satisfies the builtin error interface

func (UserInfoSyncSettingsValidationError) ErrorName added in v0.8.16

ErrorName returns error name.

func (UserInfoSyncSettingsValidationError) Field added in v0.8.16

Field function returns field value.

func (UserInfoSyncSettingsValidationError) Key added in v0.8.16

Key function returns key value.

func (UserInfoSyncSettingsValidationError) Reason added in v0.8.16

Reason function returns reason value.

type UserInfoSyncUnemployedMode added in v0.8.20

type UserInfoSyncUnemployedMode int32
const (
	UserInfoSyncUnemployedMode_USER_INFO_SYNC_UNEMPLOYED_MODE_UNSPECIFIED UserInfoSyncUnemployedMode = 0
	UserInfoSyncUnemployedMode_USER_INFO_SYNC_UNEMPLOYED_MODE_GIVE_ROLE   UserInfoSyncUnemployedMode = 1
	UserInfoSyncUnemployedMode_USER_INFO_SYNC_UNEMPLOYED_MODE_KICK        UserInfoSyncUnemployedMode = 2
)

func (UserInfoSyncUnemployedMode) Descriptor added in v0.8.20

func (UserInfoSyncUnemployedMode) Enum added in v0.8.20

func (UserInfoSyncUnemployedMode) EnumDescriptor deprecated added in v0.8.20

func (UserInfoSyncUnemployedMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserInfoSyncUnemployedMode.Descriptor instead.

func (UserInfoSyncUnemployedMode) Number added in v0.8.20

func (UserInfoSyncUnemployedMode) String added in v0.8.20

func (UserInfoSyncUnemployedMode) Type added in v0.8.20

type UserMultiError

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserProps

type UserProps struct {
	UserId         int32   `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Wanted         *bool   `protobuf:"varint,2,opt,name=wanted,proto3,oneof" json:"wanted,omitempty"`
	JobName        *string `protobuf:"bytes,3,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job"` // @gotags: alias:"job"
	Job            *Job    `protobuf:"bytes,4,opt,name=job,proto3,oneof" json:"job,omitempty"`
	JobGradeNumber *int32  `` // @gotags: alias:"job_grade"
	/* 130-byte string literal not displayed */
	JobGrade                *JobGrade       `protobuf:"bytes,6,opt,name=job_grade,json=jobGrade,proto3,oneof" json:"job_grade,omitempty"`
	TrafficInfractionPoints *uint32         `` /* 139-byte string literal not displayed */
	OpenFines               *int64          `protobuf:"varint,8,opt,name=open_fines,json=openFines,proto3,oneof" json:"open_fines,omitempty"`
	BloodType               *string         `protobuf:"bytes,9,opt,name=blood_type,json=bloodType,proto3,oneof" json:"blood_type,omitempty"`
	MugShot                 *filestore.File `protobuf:"bytes,11,opt,name=mug_shot,json=mugShot,proto3,oneof" json:"mug_shot,omitempty"`
	// contains filtered or unexported fields
}

func (*UserProps) Descriptor deprecated

func (*UserProps) Descriptor() ([]byte, []int)

Deprecated: Use UserProps.ProtoReflect.Descriptor instead.

func (*UserProps) GetBloodType added in v0.8.20

func (x *UserProps) GetBloodType() string

func (*UserProps) GetJob

func (x *UserProps) GetJob() *Job

func (*UserProps) GetJobGrade added in v0.5.1

func (x *UserProps) GetJobGrade() *JobGrade

func (*UserProps) GetJobGradeNumber added in v0.5.1

func (x *UserProps) GetJobGradeNumber() int32

func (*UserProps) GetJobName

func (x *UserProps) GetJobName() string

func (*UserProps) GetMugShot added in v0.8.20

func (x *UserProps) GetMugShot() *filestore.File

func (*UserProps) GetOpenFines added in v0.7.3

func (x *UserProps) GetOpenFines() int64

func (*UserProps) GetTrafficInfractionPoints added in v0.6.5

func (x *UserProps) GetTrafficInfractionPoints() uint32

func (*UserProps) GetUserId

func (x *UserProps) GetUserId() int32

func (*UserProps) GetWanted

func (x *UserProps) GetWanted() bool

func (*UserProps) ProtoMessage

func (*UserProps) ProtoMessage()

func (*UserProps) ProtoReflect

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

func (*UserProps) Reset

func (x *UserProps) Reset()

func (*UserProps) String

func (x *UserProps) String() string

func (*UserProps) Validate

func (m *UserProps) Validate() error

Validate checks the field values on UserProps 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 (*UserProps) ValidateAll

func (m *UserProps) ValidateAll() error

ValidateAll checks the field values on UserProps 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 UserPropsMultiError, or nil if none found.

type UserPropsMultiError

type UserPropsMultiError []error

UserPropsMultiError is an error wrapping multiple validation errors returned by UserProps.ValidateAll() if the designated constraints aren't met.

func (UserPropsMultiError) AllErrors

func (m UserPropsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserPropsMultiError) Error

func (m UserPropsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserPropsValidationError

type UserPropsValidationError struct {
	// contains filtered or unexported fields
}

UserPropsValidationError is the validation error returned by UserProps.Validate if the designated constraints aren't met.

func (UserPropsValidationError) Cause

func (e UserPropsValidationError) Cause() error

Cause function returns cause value.

func (UserPropsValidationError) Error

func (e UserPropsValidationError) Error() string

Error satisfies the builtin error interface

func (UserPropsValidationError) ErrorName

func (e UserPropsValidationError) ErrorName() string

ErrorName returns error name.

func (UserPropsValidationError) Field

func (e UserPropsValidationError) Field() string

Field function returns field value.

func (UserPropsValidationError) Key

Key function returns key value.

func (UserPropsValidationError) Reason

func (e UserPropsValidationError) Reason() string

Reason function returns reason value.

type UserShort

type UserShort struct {
	UserId        int32           `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" alias:"id"` // @gotags: alias:"id"
	Identifier    string          `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Job           string          `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"`
	JobLabel      *string         `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"`
	JobGrade      int32           `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty"`
	JobGradeLabel *string         `protobuf:"bytes,6,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"`
	Firstname     string          `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname      string          `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Dateofbirth   string          `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty"`
	PhoneNumber   *string         `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3,oneof" json:"phone_number,omitempty"`
	Avatar        *filestore.File `protobuf:"bytes,17,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
	// contains filtered or unexported fields
}

func (*UserShort) Descriptor deprecated

func (*UserShort) Descriptor() ([]byte, []int)

Deprecated: Use UserShort.ProtoReflect.Descriptor instead.

func (*UserShort) GetAvatar added in v0.8.20

func (x *UserShort) GetAvatar() *filestore.File

func (*UserShort) GetDateofbirth added in v0.7.3

func (x *UserShort) GetDateofbirth() string

func (*UserShort) GetFirstname

func (x *UserShort) GetFirstname() string

func (*UserShort) GetIdentifier

func (x *UserShort) GetIdentifier() string

func (*UserShort) GetJob

func (x *UserShort) GetJob() string

func (*UserShort) GetJobGrade

func (x *UserShort) GetJobGrade() int32

func (*UserShort) GetJobGradeLabel

func (x *UserShort) GetJobGradeLabel() string

func (*UserShort) GetJobLabel

func (x *UserShort) GetJobLabel() string

func (*UserShort) GetLastname

func (x *UserShort) GetLastname() string

func (*UserShort) GetPhoneNumber added in v0.8.1

func (x *UserShort) GetPhoneNumber() string

func (*UserShort) GetUserId

func (x *UserShort) GetUserId() int32

func (*UserShort) ProtoMessage

func (*UserShort) ProtoMessage()

func (*UserShort) ProtoReflect

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

func (*UserShort) Reset

func (x *UserShort) Reset()

func (*UserShort) SetJob added in v0.8.6

func (x *UserShort) SetJob(job string)

func (*UserShort) SetJobGrade added in v0.8.6

func (x *UserShort) SetJobGrade(grade int32)

func (*UserShort) SetJobGradeLabel

func (x *UserShort) SetJobGradeLabel(label string)

func (*UserShort) SetJobLabel

func (x *UserShort) SetJobLabel(label string)

func (*UserShort) String

func (x *UserShort) String() string

func (*UserShort) Validate

func (m *UserShort) Validate() error

Validate checks the field values on UserShort 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 (*UserShort) ValidateAll

func (m *UserShort) ValidateAll() error

ValidateAll checks the field values on UserShort 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 UserShortMultiError, or nil if none found.

type UserShortMultiError

type UserShortMultiError []error

UserShortMultiError is an error wrapping multiple validation errors returned by UserShort.ValidateAll() if the designated constraints aren't met.

func (UserShortMultiError) AllErrors

func (m UserShortMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserShortMultiError) Error

func (m UserShortMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserShortValidationError

type UserShortValidationError struct {
	// contains filtered or unexported fields
}

UserShortValidationError is the validation error returned by UserShort.Validate if the designated constraints aren't met.

func (UserShortValidationError) Cause

func (e UserShortValidationError) Cause() error

Cause function returns cause value.

func (UserShortValidationError) Error

func (e UserShortValidationError) Error() string

Error satisfies the builtin error interface

func (UserShortValidationError) ErrorName

func (e UserShortValidationError) ErrorName() string

ErrorName returns error name.

func (UserShortValidationError) Field

func (e UserShortValidationError) Field() string

Field function returns field value.

func (UserShortValidationError) Key

Key function returns key value.

func (UserShortValidationError) Reason

func (e UserShortValidationError) Reason() string

Reason function returns reason value.

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) 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