Documentation
¶
Index ¶
- Variables
- type BannerMessageWrapper
- func (*BannerMessageWrapper) Descriptor() ([]byte, []int)deprecated
- func (x *BannerMessageWrapper) GetBannerMessage() *rector.BannerMessage
- func (*BannerMessageWrapper) ProtoMessage()
- func (x *BannerMessageWrapper) ProtoReflect() protoreflect.Message
- func (x *BannerMessageWrapper) Reset()
- func (m *BannerMessageWrapper) Sanitize() error
- func (x *BannerMessageWrapper) String() string
- func (m *BannerMessageWrapper) Validate() error
- func (m *BannerMessageWrapper) ValidateAll() error
- type BannerMessageWrapperMultiError
- type BannerMessageWrapperValidationError
- func (e BannerMessageWrapperValidationError) Cause() error
- func (e BannerMessageWrapperValidationError) Error() string
- func (e BannerMessageWrapperValidationError) ErrorName() string
- func (e BannerMessageWrapperValidationError) Field() string
- func (e BannerMessageWrapperValidationError) Key() bool
- func (e BannerMessageWrapperValidationError) Reason() string
- type CalendarData
- func (*CalendarData) Descriptor() ([]byte, []int)deprecated
- func (x *CalendarData) GetCalendarEntryId() uint64
- func (x *CalendarData) GetCalendarId() uint64
- func (*CalendarData) ProtoMessage()
- func (x *CalendarData) ProtoReflect() protoreflect.Message
- func (x *CalendarData) Reset()
- func (m *CalendarData) Sanitize() error
- func (x *CalendarData) String() string
- func (m *CalendarData) Validate() error
- func (m *CalendarData) ValidateAll() error
- type CalendarDataMultiError
- type CalendarDataValidationError
- func (e CalendarDataValidationError) Cause() error
- func (e CalendarDataValidationError) Error() string
- func (e CalendarDataValidationError) ErrorName() string
- func (e CalendarDataValidationError) Field() string
- func (e CalendarDataValidationError) Key() bool
- func (e CalendarDataValidationError) Reason() string
- type Data
- func (*Data) Descriptor() ([]byte, []int)deprecated
- func (x *Data) GetCalendar() *CalendarData
- func (x *Data) GetCausedBy() *users.UserShort
- func (x *Data) GetLink() *Link
- func (*Data) ProtoMessage()
- func (x *Data) ProtoReflect() protoreflect.Message
- func (x *Data) Reset()
- func (m *Data) Sanitize() error
- func (x *Data) Scan(value any) error
- func (x *Data) String() string
- func (m *Data) Validate() error
- func (m *Data) ValidateAll() error
- func (x *Data) Value() (driver.Value, error)
- type DataMultiError
- type DataValidationError
- type JobEvent
- func (*JobEvent) Descriptor() ([]byte, []int)deprecated
- func (x *JobEvent) GetData() isJobEvent_Data
- func (x *JobEvent) GetJobProps() *users.JobProps
- func (*JobEvent) ProtoMessage()
- func (x *JobEvent) ProtoReflect() protoreflect.Message
- func (x *JobEvent) Reset()
- func (m *JobEvent) Sanitize() error
- func (x *JobEvent) String() string
- func (m *JobEvent) Validate() error
- func (m *JobEvent) ValidateAll() error
- type JobEventMultiError
- type JobEventValidationError
- type JobEvent_JobProps
- type JobGradeEvent
- func (*JobGradeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *JobGradeEvent) GetData() isJobGradeEvent_Data
- func (x *JobGradeEvent) GetRefreshToken() bool
- func (*JobGradeEvent) ProtoMessage()
- func (x *JobGradeEvent) ProtoReflect() protoreflect.Message
- func (x *JobGradeEvent) Reset()
- func (m *JobGradeEvent) Sanitize() error
- func (x *JobGradeEvent) String() string
- func (m *JobGradeEvent) Validate() error
- func (m *JobGradeEvent) ValidateAll() error
- type JobGradeEventMultiError
- type JobGradeEventValidationError
- func (e JobGradeEventValidationError) Cause() error
- func (e JobGradeEventValidationError) Error() string
- func (e JobGradeEventValidationError) ErrorName() string
- func (e JobGradeEventValidationError) Field() string
- func (e JobGradeEventValidationError) Key() bool
- func (e JobGradeEventValidationError) Reason() string
- type JobGradeEvent_RefreshToken
- type Link
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetExternal() bool
- func (x *Link) GetTitle() string
- func (x *Link) GetTo() string
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (m *Link) Sanitize() error
- func (x *Link) String() string
- func (m *Link) Validate() error
- func (m *Link) ValidateAll() error
- type LinkMultiError
- type LinkValidationError
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetCategory() NotificationCategory
- func (x *Notification) GetContent() *common.TranslateItem
- func (x *Notification) GetCreatedAt() *timestamp.Timestamp
- func (x *Notification) GetData() *Data
- func (x *Notification) GetId() uint64
- func (x *Notification) GetReadAt() *timestamp.Timestamp
- func (x *Notification) GetStarred() bool
- func (x *Notification) GetTitle() *common.TranslateItem
- func (x *Notification) GetType() NotificationType
- func (x *Notification) GetUserId() int32
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (m *Notification) Sanitize() error
- func (x *Notification) String() string
- func (m *Notification) Validate() error
- func (m *Notification) ValidateAll() error
- type NotificationCategory
- func (NotificationCategory) Descriptor() protoreflect.EnumDescriptor
- func (x NotificationCategory) Enum() *NotificationCategory
- func (NotificationCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotificationCategory) Number() protoreflect.EnumNumber
- func (x NotificationCategory) String() string
- func (NotificationCategory) Type() protoreflect.EnumType
- type NotificationMultiError
- type NotificationType
- func (NotificationType) Descriptor() protoreflect.EnumDescriptor
- func (x NotificationType) Enum() *NotificationType
- func (NotificationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotificationType) Number() protoreflect.EnumNumber
- func (x NotificationType) String() string
- func (NotificationType) Type() protoreflect.EnumType
- type NotificationValidationError
- func (e NotificationValidationError) Cause() error
- func (e NotificationValidationError) Error() string
- func (e NotificationValidationError) ErrorName() string
- func (e NotificationValidationError) Field() string
- func (e NotificationValidationError) Key() bool
- func (e NotificationValidationError) Reason() string
- type SystemEvent
- func (*SystemEvent) Descriptor() ([]byte, []int)deprecated
- func (x *SystemEvent) GetBannerMessage() *BannerMessageWrapper
- func (x *SystemEvent) GetData() isSystemEvent_Data
- func (x *SystemEvent) GetPing() bool
- func (*SystemEvent) ProtoMessage()
- func (x *SystemEvent) ProtoReflect() protoreflect.Message
- func (x *SystemEvent) Reset()
- func (m *SystemEvent) Sanitize() error
- func (x *SystemEvent) String() string
- func (m *SystemEvent) Validate() error
- func (m *SystemEvent) ValidateAll() error
- type SystemEventMultiError
- type SystemEventValidationError
- func (e SystemEventValidationError) Cause() error
- func (e SystemEventValidationError) Error() string
- func (e SystemEventValidationError) ErrorName() string
- func (e SystemEventValidationError) Field() string
- func (e SystemEventValidationError) Key() bool
- func (e SystemEventValidationError) Reason() string
- type SystemEvent_BannerMessage
- type SystemEvent_Ping
- type UserEvent
- func (*UserEvent) Descriptor() ([]byte, []int)deprecated
- func (x *UserEvent) GetData() isUserEvent_Data
- func (x *UserEvent) GetNotification() *Notification
- func (x *UserEvent) GetNotificationsReadCount() int32
- func (x *UserEvent) GetRefreshToken() bool
- func (*UserEvent) ProtoMessage()
- func (x *UserEvent) ProtoReflect() protoreflect.Message
- func (x *UserEvent) Reset()
- func (m *UserEvent) Sanitize() error
- func (x *UserEvent) String() string
- func (m *UserEvent) Validate() error
- func (m *UserEvent) ValidateAll() error
- type UserEventMultiError
- type UserEventValidationError
- type UserEvent_Notification
- type UserEvent_NotificationsReadCount
- type UserEvent_RefreshToken
Constants ¶
This section is empty.
Variables ¶
var ( NotificationType_name = map[int32]string{ 0: "NOTIFICATION_TYPE_UNSPECIFIED", 1: "NOTIFICATION_TYPE_ERROR", 2: "NOTIFICATION_TYPE_WARNING", 3: "NOTIFICATION_TYPE_INFO", 4: "NOTIFICATION_TYPE_SUCCESS", } NotificationType_value = map[string]int32{ "NOTIFICATION_TYPE_UNSPECIFIED": 0, "NOTIFICATION_TYPE_ERROR": 1, "NOTIFICATION_TYPE_WARNING": 2, "NOTIFICATION_TYPE_INFO": 3, "NOTIFICATION_TYPE_SUCCESS": 4, } )
Enum value maps for NotificationType.
var ( NotificationCategory_name = map[int32]string{ 0: "NOTIFICATION_CATEGORY_UNSPECIFIED", 1: "NOTIFICATION_CATEGORY_GENERAL", 2: "NOTIFICATION_CATEGORY_DOCUMENT", 3: "NOTIFICATION_CATEGORY_CALENDAR", } NotificationCategory_value = map[string]int32{ "NOTIFICATION_CATEGORY_UNSPECIFIED": 0, "NOTIFICATION_CATEGORY_GENERAL": 1, "NOTIFICATION_CATEGORY_DOCUMENT": 2, "NOTIFICATION_CATEGORY_CALENDAR": 3, } )
Enum value maps for NotificationCategory.
var File_resources_notifications_events_proto protoreflect.FileDescriptor
var File_resources_notifications_notifications_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BannerMessageWrapper ¶ added in v0.9.5
type BannerMessageWrapper struct {
BannerMessage *rector.BannerMessage `protobuf:"bytes,1,opt,name=banner_message,json=bannerMessage,proto3,oneof" json:"banner_message,omitempty"`
// contains filtered or unexported fields
}
func (*BannerMessageWrapper) Descriptor
deprecated
added in
v0.9.5
func (*BannerMessageWrapper) Descriptor() ([]byte, []int)
Deprecated: Use BannerMessageWrapper.ProtoReflect.Descriptor instead.
func (*BannerMessageWrapper) GetBannerMessage ¶ added in v0.9.5
func (x *BannerMessageWrapper) GetBannerMessage() *rector.BannerMessage
func (*BannerMessageWrapper) ProtoMessage ¶ added in v0.9.5
func (*BannerMessageWrapper) ProtoMessage()
func (*BannerMessageWrapper) ProtoReflect ¶ added in v0.9.5
func (x *BannerMessageWrapper) ProtoReflect() protoreflect.Message
func (*BannerMessageWrapper) Reset ¶ added in v0.9.5
func (x *BannerMessageWrapper) Reset()
func (*BannerMessageWrapper) Sanitize ¶ added in v0.9.5
func (m *BannerMessageWrapper) Sanitize() error
func (*BannerMessageWrapper) String ¶ added in v0.9.5
func (x *BannerMessageWrapper) String() string
func (*BannerMessageWrapper) Validate ¶ added in v0.9.5
func (m *BannerMessageWrapper) Validate() error
Validate checks the field values on BannerMessageWrapper 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 (*BannerMessageWrapper) ValidateAll ¶ added in v0.9.5
func (m *BannerMessageWrapper) ValidateAll() error
ValidateAll checks the field values on BannerMessageWrapper 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 BannerMessageWrapperMultiError, or nil if none found.
type BannerMessageWrapperMultiError ¶ added in v0.9.5
type BannerMessageWrapperMultiError []error
BannerMessageWrapperMultiError is an error wrapping multiple validation errors returned by BannerMessageWrapper.ValidateAll() if the designated constraints aren't met.
func (BannerMessageWrapperMultiError) AllErrors ¶ added in v0.9.5
func (m BannerMessageWrapperMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BannerMessageWrapperMultiError) Error ¶ added in v0.9.5
func (m BannerMessageWrapperMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BannerMessageWrapperValidationError ¶ added in v0.9.5
type BannerMessageWrapperValidationError struct {
// contains filtered or unexported fields
}
BannerMessageWrapperValidationError is the validation error returned by BannerMessageWrapper.Validate if the designated constraints aren't met.
func (BannerMessageWrapperValidationError) Cause ¶ added in v0.9.5
func (e BannerMessageWrapperValidationError) Cause() error
Cause function returns cause value.
func (BannerMessageWrapperValidationError) Error ¶ added in v0.9.5
func (e BannerMessageWrapperValidationError) Error() string
Error satisfies the builtin error interface
func (BannerMessageWrapperValidationError) ErrorName ¶ added in v0.9.5
func (e BannerMessageWrapperValidationError) ErrorName() string
ErrorName returns error name.
func (BannerMessageWrapperValidationError) Field ¶ added in v0.9.5
func (e BannerMessageWrapperValidationError) Field() string
Field function returns field value.
func (BannerMessageWrapperValidationError) Key ¶ added in v0.9.5
func (e BannerMessageWrapperValidationError) Key() bool
Key function returns key value.
func (BannerMessageWrapperValidationError) Reason ¶ added in v0.9.5
func (e BannerMessageWrapperValidationError) Reason() string
Reason function returns reason value.
type CalendarData ¶
type CalendarData struct {
CalendarId *uint64 `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3,oneof" json:"calendar_id,omitempty"`
CalendarEntryId *uint64 `protobuf:"varint,2,opt,name=calendar_entry_id,json=calendarEntryId,proto3,oneof" json:"calendar_entry_id,omitempty"`
// contains filtered or unexported fields
}
func (*CalendarData) Descriptor
deprecated
func (*CalendarData) Descriptor() ([]byte, []int)
Deprecated: Use CalendarData.ProtoReflect.Descriptor instead.
func (*CalendarData) GetCalendarEntryId ¶
func (x *CalendarData) GetCalendarEntryId() uint64
func (*CalendarData) GetCalendarId ¶
func (x *CalendarData) GetCalendarId() uint64
func (*CalendarData) ProtoMessage ¶
func (*CalendarData) ProtoMessage()
func (*CalendarData) ProtoReflect ¶
func (x *CalendarData) ProtoReflect() protoreflect.Message
func (*CalendarData) Reset ¶
func (x *CalendarData) Reset()
func (*CalendarData) Sanitize ¶ added in v0.9.4
func (m *CalendarData) Sanitize() error
func (*CalendarData) String ¶
func (x *CalendarData) String() string
func (*CalendarData) Validate ¶
func (m *CalendarData) Validate() error
Validate checks the field values on CalendarData 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 (*CalendarData) ValidateAll ¶
func (m *CalendarData) ValidateAll() error
ValidateAll checks the field values on CalendarData 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 CalendarDataMultiError, or nil if none found.
type CalendarDataMultiError ¶
type CalendarDataMultiError []error
CalendarDataMultiError is an error wrapping multiple validation errors returned by CalendarData.ValidateAll() if the designated constraints aren't met.
func (CalendarDataMultiError) AllErrors ¶
func (m CalendarDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CalendarDataMultiError) Error ¶
func (m CalendarDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CalendarDataValidationError ¶
type CalendarDataValidationError struct {
// contains filtered or unexported fields
}
CalendarDataValidationError is the validation error returned by CalendarData.Validate if the designated constraints aren't met.
func (CalendarDataValidationError) Cause ¶
func (e CalendarDataValidationError) Cause() error
Cause function returns cause value.
func (CalendarDataValidationError) Error ¶
func (e CalendarDataValidationError) Error() string
Error satisfies the builtin error interface
func (CalendarDataValidationError) ErrorName ¶
func (e CalendarDataValidationError) ErrorName() string
ErrorName returns error name.
func (CalendarDataValidationError) Field ¶
func (e CalendarDataValidationError) Field() string
Field function returns field value.
func (CalendarDataValidationError) Key ¶
func (e CalendarDataValidationError) Key() bool
Key function returns key value.
func (CalendarDataValidationError) Reason ¶
func (e CalendarDataValidationError) Reason() string
Reason function returns reason value.
type Data ¶
type Data struct {
Link *Link `protobuf:"bytes,1,opt,name=link,proto3,oneof" json:"link,omitempty"`
CausedBy *users.UserShort `protobuf:"bytes,2,opt,name=caused_by,json=causedBy,proto3,oneof" json:"caused_by,omitempty"`
Calendar *CalendarData `protobuf:"bytes,3,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"`
// contains filtered or unexported fields
}
@dbscanner: json
func (*Data) Descriptor
deprecated
func (*Data) GetCalendar ¶
func (x *Data) GetCalendar() *CalendarData
func (*Data) GetCausedBy ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
func (*Data) Validate ¶
Validate checks the field values on Data 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 (*Data) ValidateAll ¶
ValidateAll checks the field values on Data 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 DataMultiError, or nil if none found.
type DataMultiError ¶
type DataMultiError []error
DataMultiError is an error wrapping multiple validation errors returned by Data.ValidateAll() if the designated constraints aren't met.
func (DataMultiError) AllErrors ¶
func (m DataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DataMultiError) Error ¶
func (m DataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DataValidationError ¶
type DataValidationError struct {
// contains filtered or unexported fields
}
DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.
func (DataValidationError) Cause ¶
func (e DataValidationError) Cause() error
Cause function returns cause value.
func (DataValidationError) Error ¶
func (e DataValidationError) Error() string
Error satisfies the builtin error interface
func (DataValidationError) ErrorName ¶
func (e DataValidationError) ErrorName() string
ErrorName returns error name.
func (DataValidationError) Field ¶
func (e DataValidationError) Field() string
Field function returns field value.
func (DataValidationError) Key ¶
func (e DataValidationError) Key() bool
Key function returns key value.
func (DataValidationError) Reason ¶
func (e DataValidationError) Reason() string
Reason function returns reason value.
type JobEvent ¶
type JobEvent struct {
// Types that are valid to be assigned to Data:
//
// *JobEvent_JobProps
Data isJobEvent_Data `protobuf_oneof:"data"`
// contains filtered or unexported fields
}
func (*JobEvent) Descriptor
deprecated
func (*JobEvent) GetJobProps ¶
func (*JobEvent) ProtoMessage ¶
func (*JobEvent) ProtoMessage()
func (*JobEvent) ProtoReflect ¶
func (x *JobEvent) ProtoReflect() protoreflect.Message
func (*JobEvent) Validate ¶
Validate checks the field values on JobEvent 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 (*JobEvent) ValidateAll ¶
ValidateAll checks the field values on JobEvent 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 JobEventMultiError, or nil if none found.
type JobEventMultiError ¶
type JobEventMultiError []error
JobEventMultiError is an error wrapping multiple validation errors returned by JobEvent.ValidateAll() if the designated constraints aren't met.
func (JobEventMultiError) AllErrors ¶
func (m JobEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobEventMultiError) Error ¶
func (m JobEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobEventValidationError ¶
type JobEventValidationError struct {
// contains filtered or unexported fields
}
JobEventValidationError is the validation error returned by JobEvent.Validate if the designated constraints aren't met.
func (JobEventValidationError) Cause ¶
func (e JobEventValidationError) Cause() error
Cause function returns cause value.
func (JobEventValidationError) Error ¶
func (e JobEventValidationError) Error() string
Error satisfies the builtin error interface
func (JobEventValidationError) ErrorName ¶
func (e JobEventValidationError) ErrorName() string
ErrorName returns error name.
func (JobEventValidationError) Field ¶
func (e JobEventValidationError) Field() string
Field function returns field value.
func (JobEventValidationError) Key ¶
func (e JobEventValidationError) Key() bool
Key function returns key value.
func (JobEventValidationError) Reason ¶
func (e JobEventValidationError) Reason() string
Reason function returns reason value.
type JobEvent_JobProps ¶
type JobGradeEvent ¶ added in v0.9.4
type JobGradeEvent struct {
// Types that are valid to be assigned to Data:
//
// *JobGradeEvent_RefreshToken
Data isJobGradeEvent_Data `protobuf_oneof:"data"`
// contains filtered or unexported fields
}
func (*JobGradeEvent) Descriptor
deprecated
added in
v0.9.4
func (*JobGradeEvent) Descriptor() ([]byte, []int)
Deprecated: Use JobGradeEvent.ProtoReflect.Descriptor instead.
func (*JobGradeEvent) GetData ¶ added in v0.9.4
func (x *JobGradeEvent) GetData() isJobGradeEvent_Data
func (*JobGradeEvent) GetRefreshToken ¶ added in v0.9.4
func (x *JobGradeEvent) GetRefreshToken() bool
func (*JobGradeEvent) ProtoMessage ¶ added in v0.9.4
func (*JobGradeEvent) ProtoMessage()
func (*JobGradeEvent) ProtoReflect ¶ added in v0.9.4
func (x *JobGradeEvent) ProtoReflect() protoreflect.Message
func (*JobGradeEvent) Reset ¶ added in v0.9.4
func (x *JobGradeEvent) Reset()
func (*JobGradeEvent) Sanitize ¶ added in v0.9.4
func (m *JobGradeEvent) Sanitize() error
func (*JobGradeEvent) String ¶ added in v0.9.4
func (x *JobGradeEvent) String() string
func (*JobGradeEvent) Validate ¶ added in v0.9.4
func (m *JobGradeEvent) Validate() error
Validate checks the field values on JobGradeEvent 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 (*JobGradeEvent) ValidateAll ¶ added in v0.9.4
func (m *JobGradeEvent) ValidateAll() error
ValidateAll checks the field values on JobGradeEvent 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 JobGradeEventMultiError, or nil if none found.
type JobGradeEventMultiError ¶ added in v0.9.4
type JobGradeEventMultiError []error
JobGradeEventMultiError is an error wrapping multiple validation errors returned by JobGradeEvent.ValidateAll() if the designated constraints aren't met.
func (JobGradeEventMultiError) AllErrors ¶ added in v0.9.4
func (m JobGradeEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobGradeEventMultiError) Error ¶ added in v0.9.4
func (m JobGradeEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobGradeEventValidationError ¶ added in v0.9.4
type JobGradeEventValidationError struct {
// contains filtered or unexported fields
}
JobGradeEventValidationError is the validation error returned by JobGradeEvent.Validate if the designated constraints aren't met.
func (JobGradeEventValidationError) Cause ¶ added in v0.9.4
func (e JobGradeEventValidationError) Cause() error
Cause function returns cause value.
func (JobGradeEventValidationError) Error ¶ added in v0.9.4
func (e JobGradeEventValidationError) Error() string
Error satisfies the builtin error interface
func (JobGradeEventValidationError) ErrorName ¶ added in v0.9.4
func (e JobGradeEventValidationError) ErrorName() string
ErrorName returns error name.
func (JobGradeEventValidationError) Field ¶ added in v0.9.4
func (e JobGradeEventValidationError) Field() string
Field function returns field value.
func (JobGradeEventValidationError) Key ¶ added in v0.9.4
func (e JobGradeEventValidationError) Key() bool
Key function returns key value.
func (JobGradeEventValidationError) Reason ¶ added in v0.9.4
func (e JobGradeEventValidationError) Reason() string
Reason function returns reason value.
type JobGradeEvent_RefreshToken ¶ added in v0.9.4
type JobGradeEvent_RefreshToken struct {
RefreshToken bool `protobuf:"varint,1,opt,name=refresh_token,json=refreshToken,proto3,oneof"`
}
type Link ¶
type Link struct {
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"`
External *bool `protobuf:"varint,3,opt,name=external,proto3,oneof" json:"external,omitempty"`
// contains filtered or unexported fields
}
func (*Link) Descriptor
deprecated
func (*Link) GetExternal ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
func (*Link) Validate ¶
Validate checks the field values on Link 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 (*Link) ValidateAll ¶
ValidateAll checks the field values on Link 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 LinkMultiError, or nil if none found.
type LinkMultiError ¶
type LinkMultiError []error
LinkMultiError is an error wrapping multiple validation errors returned by Link.ValidateAll() if the designated constraints aren't met.
func (LinkMultiError) AllErrors ¶
func (m LinkMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LinkMultiError) Error ¶
func (m LinkMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LinkValidationError ¶
type LinkValidationError struct {
// contains filtered or unexported fields
}
LinkValidationError is the validation error returned by Link.Validate if the designated constraints aren't met.
func (LinkValidationError) Cause ¶
func (e LinkValidationError) Cause() error
Cause function returns cause value.
func (LinkValidationError) Error ¶
func (e LinkValidationError) Error() string
Error satisfies the builtin error interface
func (LinkValidationError) ErrorName ¶
func (e LinkValidationError) ErrorName() string
ErrorName returns error name.
func (LinkValidationError) Field ¶
func (e LinkValidationError) Field() string
Field function returns field value.
func (LinkValidationError) Key ¶
func (e LinkValidationError) Key() bool
Key function returns key value.
func (LinkValidationError) Reason ¶
func (e LinkValidationError) Reason() string
Reason function returns reason value.
type Notification ¶
type Notification 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" json:"created_at,omitempty"`
ReadAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
UserId int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// @sanitize
Title *common.TranslateItem `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
Type NotificationType `protobuf:"varint,6,opt,name=type,proto3,enum=resources.notifications.NotificationType" json:"type,omitempty"`
// @sanitize
Content *common.TranslateItem `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"`
Category NotificationCategory `protobuf:"varint,8,opt,name=category,proto3,enum=resources.notifications.NotificationCategory" json:"category,omitempty"`
Data *Data `protobuf:"bytes,9,opt,name=data,proto3,oneof" json:"data,omitempty"`
Starred *bool `protobuf:"varint,10,opt,name=starred,proto3,oneof" json:"starred,omitempty"`
// contains filtered or unexported fields
}
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetCategory ¶
func (x *Notification) GetCategory() NotificationCategory
func (*Notification) GetContent ¶
func (x *Notification) GetContent() *common.TranslateItem
func (*Notification) GetCreatedAt ¶
func (x *Notification) GetCreatedAt() *timestamp.Timestamp
func (*Notification) GetData ¶
func (x *Notification) GetData() *Data
func (*Notification) GetId ¶
func (x *Notification) GetId() uint64
func (*Notification) GetReadAt ¶
func (x *Notification) GetReadAt() *timestamp.Timestamp
func (*Notification) GetStarred ¶
func (x *Notification) GetStarred() bool
func (*Notification) GetTitle ¶
func (x *Notification) GetTitle() *common.TranslateItem
func (*Notification) GetType ¶
func (x *Notification) GetType() NotificationType
func (*Notification) GetUserId ¶
func (x *Notification) GetUserId() int32
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) Sanitize ¶ added in v0.9.4
func (m *Notification) Sanitize() error
func (*Notification) String ¶
func (x *Notification) String() string
func (*Notification) Validate ¶
func (m *Notification) Validate() error
Validate checks the field values on Notification 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 (*Notification) ValidateAll ¶
func (m *Notification) ValidateAll() error
ValidateAll checks the field values on Notification 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 NotificationMultiError, or nil if none found.
type NotificationCategory ¶
type NotificationCategory int32
const ( NotificationCategory_NOTIFICATION_CATEGORY_UNSPECIFIED NotificationCategory = 0 NotificationCategory_NOTIFICATION_CATEGORY_GENERAL NotificationCategory = 1 NotificationCategory_NOTIFICATION_CATEGORY_DOCUMENT NotificationCategory = 2 NotificationCategory_NOTIFICATION_CATEGORY_CALENDAR NotificationCategory = 3 )
func (NotificationCategory) Descriptor ¶
func (NotificationCategory) Descriptor() protoreflect.EnumDescriptor
func (NotificationCategory) Enum ¶
func (x NotificationCategory) Enum() *NotificationCategory
func (NotificationCategory) EnumDescriptor
deprecated
func (NotificationCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotificationCategory.Descriptor instead.
func (NotificationCategory) Number ¶
func (x NotificationCategory) Number() protoreflect.EnumNumber
func (NotificationCategory) String ¶
func (x NotificationCategory) String() string
func (NotificationCategory) Type ¶
func (NotificationCategory) Type() protoreflect.EnumType
type NotificationMultiError ¶
type NotificationMultiError []error
NotificationMultiError is an error wrapping multiple validation errors returned by Notification.ValidateAll() if the designated constraints aren't met.
func (NotificationMultiError) AllErrors ¶
func (m NotificationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NotificationMultiError) Error ¶
func (m NotificationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NotificationType ¶
type NotificationType int32
const ( NotificationType_NOTIFICATION_TYPE_UNSPECIFIED NotificationType = 0 NotificationType_NOTIFICATION_TYPE_ERROR NotificationType = 1 NotificationType_NOTIFICATION_TYPE_WARNING NotificationType = 2 NotificationType_NOTIFICATION_TYPE_INFO NotificationType = 3 NotificationType_NOTIFICATION_TYPE_SUCCESS NotificationType = 4 )
func (NotificationType) Descriptor ¶
func (NotificationType) Descriptor() protoreflect.EnumDescriptor
func (NotificationType) Enum ¶
func (x NotificationType) Enum() *NotificationType
func (NotificationType) EnumDescriptor
deprecated
func (NotificationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotificationType.Descriptor instead.
func (NotificationType) Number ¶
func (x NotificationType) Number() protoreflect.EnumNumber
func (NotificationType) String ¶
func (x NotificationType) String() string
func (NotificationType) Type ¶
func (NotificationType) Type() protoreflect.EnumType
type NotificationValidationError ¶
type NotificationValidationError struct {
// contains filtered or unexported fields
}
NotificationValidationError is the validation error returned by Notification.Validate if the designated constraints aren't met.
func (NotificationValidationError) Cause ¶
func (e NotificationValidationError) Cause() error
Cause function returns cause value.
func (NotificationValidationError) Error ¶
func (e NotificationValidationError) Error() string
Error satisfies the builtin error interface
func (NotificationValidationError) ErrorName ¶
func (e NotificationValidationError) ErrorName() string
ErrorName returns error name.
func (NotificationValidationError) Field ¶
func (e NotificationValidationError) Field() string
Field function returns field value.
func (NotificationValidationError) Key ¶
func (e NotificationValidationError) Key() bool
Key function returns key value.
func (NotificationValidationError) Reason ¶
func (e NotificationValidationError) Reason() string
Reason function returns reason value.
type SystemEvent ¶
type SystemEvent struct {
// Types that are valid to be assigned to Data:
//
// *SystemEvent_Ping
// *SystemEvent_BannerMessage
Data isSystemEvent_Data `protobuf_oneof:"data"`
// contains filtered or unexported fields
}
func (*SystemEvent) Descriptor
deprecated
func (*SystemEvent) Descriptor() ([]byte, []int)
Deprecated: Use SystemEvent.ProtoReflect.Descriptor instead.
func (*SystemEvent) GetBannerMessage ¶ added in v0.9.5
func (x *SystemEvent) GetBannerMessage() *BannerMessageWrapper
func (*SystemEvent) GetData ¶ added in v0.9.5
func (x *SystemEvent) GetData() isSystemEvent_Data
func (*SystemEvent) GetPing ¶ added in v0.9.5
func (x *SystemEvent) GetPing() bool
func (*SystemEvent) ProtoMessage ¶
func (*SystemEvent) ProtoMessage()
func (*SystemEvent) ProtoReflect ¶
func (x *SystemEvent) ProtoReflect() protoreflect.Message
func (*SystemEvent) Reset ¶
func (x *SystemEvent) Reset()
func (*SystemEvent) Sanitize ¶ added in v0.9.4
func (m *SystemEvent) Sanitize() error
func (*SystemEvent) String ¶
func (x *SystemEvent) String() string
func (*SystemEvent) Validate ¶
func (m *SystemEvent) Validate() error
Validate checks the field values on SystemEvent 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 (*SystemEvent) ValidateAll ¶
func (m *SystemEvent) ValidateAll() error
ValidateAll checks the field values on SystemEvent 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 SystemEventMultiError, or nil if none found.
type SystemEventMultiError ¶
type SystemEventMultiError []error
SystemEventMultiError is an error wrapping multiple validation errors returned by SystemEvent.ValidateAll() if the designated constraints aren't met.
func (SystemEventMultiError) AllErrors ¶
func (m SystemEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SystemEventMultiError) Error ¶
func (m SystemEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SystemEventValidationError ¶
type SystemEventValidationError struct {
// contains filtered or unexported fields
}
SystemEventValidationError is the validation error returned by SystemEvent.Validate if the designated constraints aren't met.
func (SystemEventValidationError) Cause ¶
func (e SystemEventValidationError) Cause() error
Cause function returns cause value.
func (SystemEventValidationError) Error ¶
func (e SystemEventValidationError) Error() string
Error satisfies the builtin error interface
func (SystemEventValidationError) ErrorName ¶
func (e SystemEventValidationError) ErrorName() string
ErrorName returns error name.
func (SystemEventValidationError) Field ¶
func (e SystemEventValidationError) Field() string
Field function returns field value.
func (SystemEventValidationError) Key ¶
func (e SystemEventValidationError) Key() bool
Key function returns key value.
func (SystemEventValidationError) Reason ¶
func (e SystemEventValidationError) Reason() string
Reason function returns reason value.
type SystemEvent_BannerMessage ¶ added in v0.9.5
type SystemEvent_BannerMessage struct {
BannerMessage *BannerMessageWrapper `protobuf:"bytes,2,opt,name=banner_message,json=bannerMessage,proto3,oneof"`
}
type SystemEvent_Ping ¶ added in v0.9.5
type SystemEvent_Ping struct {
Ping bool `protobuf:"varint,1,opt,name=ping,proto3,oneof"`
}
type UserEvent ¶
type UserEvent struct {
// Types that are valid to be assigned to Data:
//
// *UserEvent_RefreshToken
// *UserEvent_Notification
// *UserEvent_NotificationsReadCount
Data isUserEvent_Data `protobuf_oneof:"data"`
// contains filtered or unexported fields
}
func (*UserEvent) Descriptor
deprecated
func (*UserEvent) GetNotification ¶
func (x *UserEvent) GetNotification() *Notification
func (*UserEvent) GetNotificationsReadCount ¶ added in v0.9.5
func (*UserEvent) GetRefreshToken ¶
func (*UserEvent) ProtoMessage ¶
func (*UserEvent) ProtoMessage()
func (*UserEvent) ProtoReflect ¶
func (x *UserEvent) ProtoReflect() protoreflect.Message
func (*UserEvent) Validate ¶
Validate checks the field values on UserEvent 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 (*UserEvent) ValidateAll ¶
ValidateAll checks the field values on UserEvent 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 UserEventMultiError, or nil if none found.
type UserEventMultiError ¶
type UserEventMultiError []error
UserEventMultiError is an error wrapping multiple validation errors returned by UserEvent.ValidateAll() if the designated constraints aren't met.
func (UserEventMultiError) AllErrors ¶
func (m UserEventMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserEventMultiError) Error ¶
func (m UserEventMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserEventValidationError ¶
type UserEventValidationError struct {
// contains filtered or unexported fields
}
UserEventValidationError is the validation error returned by UserEvent.Validate if the designated constraints aren't met.
func (UserEventValidationError) Cause ¶
func (e UserEventValidationError) Cause() error
Cause function returns cause value.
func (UserEventValidationError) Error ¶
func (e UserEventValidationError) Error() string
Error satisfies the builtin error interface
func (UserEventValidationError) ErrorName ¶
func (e UserEventValidationError) ErrorName() string
ErrorName returns error name.
func (UserEventValidationError) Field ¶
func (e UserEventValidationError) Field() string
Field function returns field value.
func (UserEventValidationError) Key ¶
func (e UserEventValidationError) Key() bool
Key function returns key value.
func (UserEventValidationError) Reason ¶
func (e UserEventValidationError) Reason() string
Reason function returns reason value.
type UserEvent_Notification ¶
type UserEvent_Notification struct {
// Notifications
Notification *Notification `protobuf:"bytes,2,opt,name=notification,proto3,oneof"`
}
type UserEvent_NotificationsReadCount ¶ added in v0.9.5
type UserEvent_NotificationsReadCount struct {
NotificationsReadCount int32 `protobuf:"varint,3,opt,name=notifications_read_count,json=notificationsReadCount,proto3,oneof"`
}
type UserEvent_RefreshToken ¶
type UserEvent_RefreshToken struct {
RefreshToken bool `protobuf:"varint,1,opt,name=refresh_token,json=refreshToken,proto3,oneof"`
}