users

package
v0.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	USER_ACTIVITY_TYPE_name = map[int32]string{
		0: "CHANGED",
		1: "MENTIONED",
		2: "CREATED",
	}
	USER_ACTIVITY_TYPE_value = map[string]int32{
		"CHANGED":   0,
		"MENTIONED": 1,
		"CREATED":   2,
	}
)

Enum value maps for USER_ACTIVITY_TYPE.

View Source
var File_resources_users_users_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type License

type License struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" alias:"type"`    // @gotags: alias:"type"
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty" alias:"label"` // @gotags: alias:"label"
	// 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 USER_ACTIVITY_TYPE

type USER_ACTIVITY_TYPE int32
const (
	USER_ACTIVITY_TYPE_CHANGED   USER_ACTIVITY_TYPE = 0
	USER_ACTIVITY_TYPE_MENTIONED USER_ACTIVITY_TYPE = 1
	USER_ACTIVITY_TYPE_CREATED   USER_ACTIVITY_TYPE = 2
)

func (USER_ACTIVITY_TYPE) Descriptor

func (USER_ACTIVITY_TYPE) Enum

func (USER_ACTIVITY_TYPE) EnumDescriptor deprecated

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

Deprecated: Use USER_ACTIVITY_TYPE.Descriptor instead.

func (USER_ACTIVITY_TYPE) Number

func (USER_ACTIVITY_TYPE) String

func (x USER_ACTIVITY_TYPE) String() string

func (USER_ACTIVITY_TYPE) Type

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" alias:"identifier"`             // @gotags: alias:"identifier"
	Job           string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty" alias:"job"`                                  // @gotags: alias:"job"
	JobLabel      string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3" json:"job_label,omitempty" alias:"job_label"`  // @gotags: alias:"job_label"
	JobGrade      int32  `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty" alias:"job_grade"` // @gotags: alias:"job_grade"
	JobGradeLabel string ``                                                                                                         // @gotags: alias:"job_grade_label"
	/* 126-byte string literal not displayed */
	Firstname   string     `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty" alias:"firstname"`                            // @gotags: alias:"firstname"
	Lastname    string     `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty" alias:"lastname"`                               // @gotags: alias:"lastname"
	Dateofbirth string     `protobuf:"bytes,9,opt,name=dateofbirth,proto3" json:"dateofbirth,omitempty" alias:"dateofbirth"`                      // @gotags: alias:"dateofbirth"
	Sex         string     `protobuf:"bytes,10,opt,name=sex,proto3" json:"sex,omitempty" alias:"sex"`                                             // @gotags: alias:"sex"
	Height      string     `protobuf:"bytes,11,opt,name=height,proto3" json:"height,omitempty" alias:"height"`                                    // @gotags: alias:"height"
	PhoneNumber string     `protobuf:"bytes,12,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty" alias:"phone_number"` // @gotags: alias:"phone_number"
	Visum       *int32     `protobuf:"varint,13,opt,name=visum,proto3,oneof" json:"visum,omitempty" alias:"visum"`                                // @gotags: alias:"visum"
	Playtime    *int32     `protobuf:"varint,14,opt,name=playtime,proto3,oneof" json:"playtime,omitempty" alias:"playtime"`                       // @gotags: alias:"playtime"
	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"
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

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) 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 USER_ACTIVITY_TYPE ``                                                                                            // @gotags: alias:"fivenet_user_activity.type"
	/* 137-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"
	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"
	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() USER_ACTIVITY_TYPE

func (*UserActivity) ProtoMessage

func (*UserActivity) ProtoMessage()

func (*UserActivity) ProtoReflect

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

func (*UserActivity) Reset

func (x *UserActivity) Reset()

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 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 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" alias:"user_id"`     // @gotags: alias:"user_id"
	Wanted  *bool     `protobuf:"varint,2,opt,name=wanted,proto3,oneof" json:"wanted,omitempty" alias:"wanted"`              // @gotags: alias:"wanted"
	JobName *string   `protobuf:"bytes,3,opt,name=job_name,json=jobName,proto3,oneof" json:"job_name,omitempty" alias:"job"` // @gotags: alias:"job"
	Job     *jobs.Job `protobuf:"bytes,4,opt,name=job,proto3,oneof" json:"job,omitempty"`
	// contains filtered or unexported fields
}

func (*UserProps) Descriptor deprecated

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

Deprecated: Use UserProps.ProtoReflect.Descriptor instead.

func (*UserProps) GetJob

func (x *UserProps) GetJob() *jobs.Job

func (*UserProps) GetJobName

func (x *UserProps) GetJobName() string

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" alias:"identifier"`             // @gotags: alias:"identifier"
	Job           string `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty" alias:"job"`                                  // @gotags: alias:"job"
	JobLabel      string `protobuf:"bytes,4,opt,name=job_label,json=jobLabel,proto3" json:"job_label,omitempty" alias:"job_label"`  // @gotags: alias:"job_label"
	JobGrade      int32  `protobuf:"varint,5,opt,name=job_grade,json=jobGrade,proto3" json:"job_grade,omitempty" alias:"job_grade"` // @gotags: alias:"job_grade"
	JobGradeLabel string ``                                                                                                         // @gotags: alias:"job_grade_label"
	/* 126-byte string literal not displayed */
	Firstname string `protobuf:"bytes,7,opt,name=firstname,proto3" json:"firstname,omitempty" alias:"firstname"` // @gotags: alias:"firstname"
	Lastname  string `protobuf:"bytes,8,opt,name=lastname,proto3" json:"lastname,omitempty" alias:"lastname"`    // @gotags: alias:"lastname"
	// contains filtered or unexported fields
}

func (*UserShort) Descriptor deprecated

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

Deprecated: Use UserShort.ProtoReflect.Descriptor instead.

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