calendar

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessLevel_name = map[int32]string{
		0: "ACCESS_LEVEL_UNSPECIFIED",
		1: "ACCESS_LEVEL_BLOCKED",
		2: "ACCESS_LEVEL_VIEW",
		3: "ACCESS_LEVEL_SHARE",
		4: "ACCESS_LEVEL_EDIT",
		5: "ACCESS_LEVEL_MANAGE",
	}
	AccessLevel_value = map[string]int32{
		"ACCESS_LEVEL_UNSPECIFIED": 0,
		"ACCESS_LEVEL_BLOCKED":     1,
		"ACCESS_LEVEL_VIEW":        2,
		"ACCESS_LEVEL_SHARE":       3,
		"ACCESS_LEVEL_EDIT":        4,
		"ACCESS_LEVEL_MANAGE":      5,
	}
)

Enum value maps for AccessLevel.

View Source
var (
	RsvpResponses_name = map[int32]string{
		0: "RSVP_RESPONSES_UNSPECIFIED",
		1: "RSVP_RESPONSES_HIDDEN",
		2: "RSVP_RESPONSES_INVITED",
		3: "RSVP_RESPONSES_NO",
		4: "RSVP_RESPONSES_MAYBE",
		5: "RSVP_RESPONSES_YES",
	}
	RsvpResponses_value = map[string]int32{
		"RSVP_RESPONSES_UNSPECIFIED": 0,
		"RSVP_RESPONSES_HIDDEN":      1,
		"RSVP_RESPONSES_INVITED":     2,
		"RSVP_RESPONSES_NO":          3,
		"RSVP_RESPONSES_MAYBE":       4,
		"RSVP_RESPONSES_YES":         5,
	}
)

Enum value maps for RsvpResponses.

View Source
var File_resources_calendar_access_proto protoreflect.FileDescriptor
View Source
var File_resources_calendar_calendar_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessLevel

type AccessLevel int32
const (
	AccessLevel_ACCESS_LEVEL_UNSPECIFIED AccessLevel = 0
	AccessLevel_ACCESS_LEVEL_BLOCKED     AccessLevel = 1
	AccessLevel_ACCESS_LEVEL_VIEW        AccessLevel = 2
	AccessLevel_ACCESS_LEVEL_SHARE       AccessLevel = 3
	AccessLevel_ACCESS_LEVEL_EDIT        AccessLevel = 4
	AccessLevel_ACCESS_LEVEL_MANAGE      AccessLevel = 5
)

func (AccessLevel) Descriptor

func (AccessLevel) Enum

func (x AccessLevel) Enum() *AccessLevel

func (AccessLevel) EnumDescriptor deprecated

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

Deprecated: Use AccessLevel.Descriptor instead.

func (AccessLevel) Number

func (x AccessLevel) Number() protoreflect.EnumNumber

func (AccessLevel) String

func (x AccessLevel) String() string

func (AccessLevel) Type

type Calendar

type Calendar struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id"
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"`
	Job       *string              `protobuf:"bytes,5,opt,name=job,proto3,oneof" json:"job,omitempty"`
	// @sanitize: method=StripTags
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// @sanitize: method=StripTags
	Description *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Public      bool    `protobuf:"varint,8,opt,name=public,proto3" json:"public,omitempty"`
	Closed      bool    `protobuf:"varint,9,opt,name=closed,proto3" json:"closed,omitempty"`
	// @sanitize: method=StripTags
	Color        string           `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"`
	CreatorId    *int32           `protobuf:"varint,11,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"`
	Creator      *users.UserShort `protobuf:"bytes,12,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator"
	CreatorJob   string           `protobuf:"bytes,13,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"`
	Subscription *CalendarSub     `protobuf:"bytes,14,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"`
	Access       *CalendarAccess  `protobuf:"bytes,15,opt,name=access,proto3" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*Calendar) Descriptor deprecated

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

Deprecated: Use Calendar.ProtoReflect.Descriptor instead.

func (*Calendar) GetAccess

func (x *Calendar) GetAccess() *CalendarAccess

func (*Calendar) GetClosed

func (x *Calendar) GetClosed() bool

func (*Calendar) GetColor

func (x *Calendar) GetColor() string

func (*Calendar) GetCreatedAt

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

func (*Calendar) GetCreator

func (x *Calendar) GetCreator() *users.UserShort

func (*Calendar) GetCreatorId

func (x *Calendar) GetCreatorId() int32

func (*Calendar) GetCreatorJob

func (x *Calendar) GetCreatorJob() string

func (*Calendar) GetDeletedAt

func (x *Calendar) GetDeletedAt() *timestamp.Timestamp

func (*Calendar) GetDescription

func (x *Calendar) GetDescription() string

func (*Calendar) GetId

func (x *Calendar) GetId() uint64

func (*Calendar) GetJob

func (x *Calendar) GetJob() string

func (*Calendar) GetName

func (x *Calendar) GetName() string

func (*Calendar) GetPublic

func (x *Calendar) GetPublic() bool

func (*Calendar) GetSubscription

func (x *Calendar) GetSubscription() *CalendarSub

func (*Calendar) GetUpdatedAt

func (x *Calendar) GetUpdatedAt() *timestamp.Timestamp

func (*Calendar) ProtoMessage

func (*Calendar) ProtoMessage()

func (*Calendar) ProtoReflect

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

func (*Calendar) Reset

func (x *Calendar) Reset()

func (*Calendar) Sanitize

func (m *Calendar) Sanitize() error

func (*Calendar) String

func (x *Calendar) String() string

func (*Calendar) Validate

func (m *Calendar) Validate() error

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

func (m *Calendar) ValidateAll() error

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

type CalendarAccess

type CalendarAccess struct {
	Jobs  []*CalendarJobAccess  `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty" alias:"job_access"`    // @gotags: alias:"job_access"
	Users []*CalendarUserAccess `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" alias:"user_access"` // @gotags: alias:"user_access"
	// contains filtered or unexported fields
}

func (*CalendarAccess) Descriptor deprecated

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

Deprecated: Use CalendarAccess.ProtoReflect.Descriptor instead.

func (*CalendarAccess) GetJobs

func (x *CalendarAccess) GetJobs() []*CalendarJobAccess

func (*CalendarAccess) GetUsers

func (x *CalendarAccess) GetUsers() []*CalendarUserAccess

func (*CalendarAccess) ProtoMessage

func (*CalendarAccess) ProtoMessage()

func (*CalendarAccess) ProtoReflect

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

func (*CalendarAccess) Reset

func (x *CalendarAccess) Reset()

func (*CalendarAccess) Sanitize added in v0.9.4

func (m *CalendarAccess) Sanitize() error

func (*CalendarAccess) String

func (x *CalendarAccess) String() string

func (*CalendarAccess) Validate

func (m *CalendarAccess) Validate() error

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

func (m *CalendarAccess) ValidateAll() error

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

type CalendarAccessMultiError

type CalendarAccessMultiError []error

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

func (CalendarAccessMultiError) AllErrors

func (m CalendarAccessMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarAccessMultiError) Error

func (m CalendarAccessMultiError) Error() string

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

type CalendarAccessValidationError

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

CalendarAccessValidationError is the validation error returned by CalendarAccess.Validate if the designated constraints aren't met.

func (CalendarAccessValidationError) Cause

Cause function returns cause value.

func (CalendarAccessValidationError) Error

Error satisfies the builtin error interface

func (CalendarAccessValidationError) ErrorName

func (e CalendarAccessValidationError) ErrorName() string

ErrorName returns error name.

func (CalendarAccessValidationError) Field

Field function returns field value.

func (CalendarAccessValidationError) Key

Key function returns key value.

func (CalendarAccessValidationError) Reason

Reason function returns reason value.

type CalendarEntry

type CalendarEntry struct {
	Id         uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id"
	CreatedAt  *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UpdatedAt  *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	DeletedAt  *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"`
	CalendarId uint64               `protobuf:"varint,5,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"`
	Calendar   *Calendar            `protobuf:"bytes,6,opt,name=calendar,proto3,oneof" json:"calendar,omitempty"`
	Job        *string              `protobuf:"bytes,7,opt,name=job,proto3,oneof" json:"job,omitempty"`
	StartTime  *timestamp.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime    *timestamp.Timestamp `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"`
	// @sanitize: method=StripTags
	Title      string                  `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"`
	Content    *content.Content        `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"`
	Closed     bool                    `protobuf:"varint,12,opt,name=closed,proto3" json:"closed,omitempty"`
	RsvpOpen   *bool                   `protobuf:"varint,13,opt,name=rsvp_open,json=rsvpOpen,proto3,oneof" json:"rsvp_open,omitempty"`
	CreatorId  *int32                  `protobuf:"varint,14,opt,name=creator_id,json=creatorId,proto3,oneof" json:"creator_id,omitempty"`
	Creator    *users.UserShort        `protobuf:"bytes,15,opt,name=creator,proto3,oneof" json:"creator,omitempty" alias:"creator"` // @gotags: alias:"creator"
	CreatorJob string                  `protobuf:"bytes,16,opt,name=creator_job,json=creatorJob,proto3" json:"creator_job,omitempty"`
	Recurring  *CalendarEntryRecurring `protobuf:"bytes,17,opt,name=recurring,proto3,oneof" json:"recurring,omitempty"`
	Rsvp       *CalendarEntryRSVP      `protobuf:"bytes,18,opt,name=rsvp,proto3,oneof" json:"rsvp,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarEntry) Descriptor deprecated

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

Deprecated: Use CalendarEntry.ProtoReflect.Descriptor instead.

func (*CalendarEntry) GetCalendar

func (x *CalendarEntry) GetCalendar() *Calendar

func (*CalendarEntry) GetCalendarId

func (x *CalendarEntry) GetCalendarId() uint64

func (*CalendarEntry) GetClosed

func (x *CalendarEntry) GetClosed() bool

func (*CalendarEntry) GetContent

func (x *CalendarEntry) GetContent() *content.Content

func (*CalendarEntry) GetCreatedAt

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

func (*CalendarEntry) GetCreator

func (x *CalendarEntry) GetCreator() *users.UserShort

func (*CalendarEntry) GetCreatorId

func (x *CalendarEntry) GetCreatorId() int32

func (*CalendarEntry) GetCreatorJob

func (x *CalendarEntry) GetCreatorJob() string

func (*CalendarEntry) GetDeletedAt

func (x *CalendarEntry) GetDeletedAt() *timestamp.Timestamp

func (*CalendarEntry) GetEndTime

func (x *CalendarEntry) GetEndTime() *timestamp.Timestamp

func (*CalendarEntry) GetId

func (x *CalendarEntry) GetId() uint64

func (*CalendarEntry) GetJob

func (x *CalendarEntry) GetJob() string

func (*CalendarEntry) GetRecurring

func (x *CalendarEntry) GetRecurring() *CalendarEntryRecurring

func (*CalendarEntry) GetRsvp

func (x *CalendarEntry) GetRsvp() *CalendarEntryRSVP

func (*CalendarEntry) GetRsvpOpen

func (x *CalendarEntry) GetRsvpOpen() bool

func (*CalendarEntry) GetStartTime

func (x *CalendarEntry) GetStartTime() *timestamp.Timestamp

func (*CalendarEntry) GetTitle

func (x *CalendarEntry) GetTitle() string

func (*CalendarEntry) GetUpdatedAt

func (x *CalendarEntry) GetUpdatedAt() *timestamp.Timestamp

func (*CalendarEntry) ProtoMessage

func (*CalendarEntry) ProtoMessage()

func (*CalendarEntry) ProtoReflect

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

func (*CalendarEntry) Reset

func (x *CalendarEntry) Reset()

func (*CalendarEntry) Sanitize

func (m *CalendarEntry) Sanitize() error

func (*CalendarEntry) String

func (x *CalendarEntry) String() string

func (*CalendarEntry) Validate

func (m *CalendarEntry) Validate() error

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

func (m *CalendarEntry) ValidateAll() error

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

type CalendarEntryMultiError

type CalendarEntryMultiError []error

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

func (CalendarEntryMultiError) AllErrors

func (m CalendarEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarEntryMultiError) Error

func (m CalendarEntryMultiError) Error() string

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

type CalendarEntryRSVP

type CalendarEntryRSVP struct {
	EntryId   uint64               `protobuf:"varint,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	UserId    int32                `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	User      *users.UserShort     `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"`
	Response  RsvpResponses        `protobuf:"varint,5,opt,name=response,proto3,enum=resources.calendar.RsvpResponses" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarEntryRSVP) Descriptor deprecated

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

Deprecated: Use CalendarEntryRSVP.ProtoReflect.Descriptor instead.

func (*CalendarEntryRSVP) GetCreatedAt

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

func (*CalendarEntryRSVP) GetEntryId

func (x *CalendarEntryRSVP) GetEntryId() uint64

func (*CalendarEntryRSVP) GetResponse

func (x *CalendarEntryRSVP) GetResponse() RsvpResponses

func (*CalendarEntryRSVP) GetUser

func (x *CalendarEntryRSVP) GetUser() *users.UserShort

func (*CalendarEntryRSVP) GetUserId

func (x *CalendarEntryRSVP) GetUserId() int32

func (*CalendarEntryRSVP) ProtoMessage

func (*CalendarEntryRSVP) ProtoMessage()

func (*CalendarEntryRSVP) ProtoReflect

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

func (*CalendarEntryRSVP) Reset

func (x *CalendarEntryRSVP) Reset()

func (*CalendarEntryRSVP) Sanitize added in v0.9.4

func (m *CalendarEntryRSVP) Sanitize() error

func (*CalendarEntryRSVP) String

func (x *CalendarEntryRSVP) String() string

func (*CalendarEntryRSVP) Validate

func (m *CalendarEntryRSVP) Validate() error

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

func (m *CalendarEntryRSVP) ValidateAll() error

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

type CalendarEntryRSVPMultiError

type CalendarEntryRSVPMultiError []error

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

func (CalendarEntryRSVPMultiError) AllErrors

func (m CalendarEntryRSVPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarEntryRSVPMultiError) Error

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

type CalendarEntryRSVPValidationError

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

CalendarEntryRSVPValidationError is the validation error returned by CalendarEntryRSVP.Validate if the designated constraints aren't met.

func (CalendarEntryRSVPValidationError) Cause

Cause function returns cause value.

func (CalendarEntryRSVPValidationError) Error

Error satisfies the builtin error interface

func (CalendarEntryRSVPValidationError) ErrorName

ErrorName returns error name.

func (CalendarEntryRSVPValidationError) Field

Field function returns field value.

func (CalendarEntryRSVPValidationError) Key

Key function returns key value.

func (CalendarEntryRSVPValidationError) Reason

Reason function returns reason value.

type CalendarEntryRecurring

type CalendarEntryRecurring struct {
	Every string               `protobuf:"bytes,1,opt,name=every,proto3" json:"every,omitempty"`
	Count int32                `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Until *timestamp.Timestamp `protobuf:"bytes,3,opt,name=until,proto3,oneof" json:"until,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarEntryRecurring) Descriptor deprecated

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

Deprecated: Use CalendarEntryRecurring.ProtoReflect.Descriptor instead.

func (*CalendarEntryRecurring) GetCount

func (x *CalendarEntryRecurring) GetCount() int32

func (*CalendarEntryRecurring) GetEvery

func (x *CalendarEntryRecurring) GetEvery() string

func (*CalendarEntryRecurring) GetUntil

func (*CalendarEntryRecurring) ProtoMessage

func (*CalendarEntryRecurring) ProtoMessage()

func (*CalendarEntryRecurring) ProtoReflect

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

func (*CalendarEntryRecurring) Reset

func (x *CalendarEntryRecurring) Reset()

func (*CalendarEntryRecurring) Sanitize added in v0.9.4

func (m *CalendarEntryRecurring) Sanitize() error

func (*CalendarEntryRecurring) Scan

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

Scan implements driver.Valuer for protobuf CalendarEntryRecurring.

func (*CalendarEntryRecurring) String

func (x *CalendarEntryRecurring) String() string

func (*CalendarEntryRecurring) Validate

func (m *CalendarEntryRecurring) Validate() error

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

func (m *CalendarEntryRecurring) ValidateAll() error

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

func (*CalendarEntryRecurring) Value

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

Value marshals the value into driver.Valuer.

type CalendarEntryRecurringMultiError

type CalendarEntryRecurringMultiError []error

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

func (CalendarEntryRecurringMultiError) AllErrors

func (m CalendarEntryRecurringMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarEntryRecurringMultiError) Error

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

type CalendarEntryRecurringValidationError

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

CalendarEntryRecurringValidationError is the validation error returned by CalendarEntryRecurring.Validate if the designated constraints aren't met.

func (CalendarEntryRecurringValidationError) Cause

Cause function returns cause value.

func (CalendarEntryRecurringValidationError) Error

Error satisfies the builtin error interface

func (CalendarEntryRecurringValidationError) ErrorName

ErrorName returns error name.

func (CalendarEntryRecurringValidationError) Field

Field function returns field value.

func (CalendarEntryRecurringValidationError) Key

Key function returns key value.

func (CalendarEntryRecurringValidationError) Reason

Reason function returns reason value.

type CalendarEntryValidationError

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

CalendarEntryValidationError is the validation error returned by CalendarEntry.Validate if the designated constraints aren't met.

func (CalendarEntryValidationError) Cause

Cause function returns cause value.

func (CalendarEntryValidationError) Error

Error satisfies the builtin error interface

func (CalendarEntryValidationError) ErrorName

func (e CalendarEntryValidationError) ErrorName() string

ErrorName returns error name.

func (CalendarEntryValidationError) Field

Field function returns field value.

func (CalendarEntryValidationError) Key

Key function returns key value.

func (CalendarEntryValidationError) Reason

Reason function returns reason value.

type CalendarJobAccess

type CalendarJobAccess struct {
	Id            uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt     *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	TargetId      uint64               `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id"
	Job           string               `protobuf:"bytes,4,opt,name=job,proto3" json:"job,omitempty"`
	JobLabel      *string              `protobuf:"bytes,5,opt,name=job_label,json=jobLabel,proto3,oneof" json:"job_label,omitempty"`
	MinimumGrade  int32                `protobuf:"varint,6,opt,name=minimum_grade,json=minimumGrade,proto3" json:"minimum_grade,omitempty"`
	JobGradeLabel *string              `protobuf:"bytes,7,opt,name=job_grade_label,json=jobGradeLabel,proto3,oneof" json:"job_grade_label,omitempty"`
	Access        AccessLevel          `protobuf:"varint,8,opt,name=access,proto3,enum=resources.calendar.AccessLevel" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarJobAccess) Descriptor deprecated

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

Deprecated: Use CalendarJobAccess.ProtoReflect.Descriptor instead.

func (*CalendarJobAccess) GetAccess

func (x *CalendarJobAccess) GetAccess() AccessLevel

func (*CalendarJobAccess) GetCreatedAt

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

func (*CalendarJobAccess) GetId

func (x *CalendarJobAccess) GetId() uint64

func (*CalendarJobAccess) GetJob

func (x *CalendarJobAccess) GetJob() string

func (*CalendarJobAccess) GetJobGrade

func (x *CalendarJobAccess) GetJobGrade() int32

func (*CalendarJobAccess) GetJobGradeLabel

func (x *CalendarJobAccess) GetJobGradeLabel() string

func (*CalendarJobAccess) GetJobLabel

func (x *CalendarJobAccess) GetJobLabel() string

func (*CalendarJobAccess) GetMinimumGrade

func (x *CalendarJobAccess) GetMinimumGrade() int32

func (*CalendarJobAccess) GetTargetId added in v0.9.4

func (x *CalendarJobAccess) GetTargetId() uint64

func (*CalendarJobAccess) ProtoMessage

func (*CalendarJobAccess) ProtoMessage()

func (*CalendarJobAccess) ProtoReflect

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

func (*CalendarJobAccess) Reset

func (x *CalendarJobAccess) Reset()

func (*CalendarJobAccess) Sanitize added in v0.9.4

func (m *CalendarJobAccess) Sanitize() error

func (*CalendarJobAccess) SetAccess added in v0.9.4

func (x *CalendarJobAccess) SetAccess(access AccessLevel)

func (*CalendarJobAccess) SetJob

func (x *CalendarJobAccess) SetJob(job string)

func (*CalendarJobAccess) SetJobGrade

func (x *CalendarJobAccess) SetJobGrade(grade int32)

func (*CalendarJobAccess) SetJobGradeLabel

func (x *CalendarJobAccess) SetJobGradeLabel(label string)

func (*CalendarJobAccess) SetJobLabel

func (x *CalendarJobAccess) SetJobLabel(label string)

func (*CalendarJobAccess) SetMinimumGrade added in v0.9.4

func (x *CalendarJobAccess) SetMinimumGrade(grade int32)

func (*CalendarJobAccess) String

func (x *CalendarJobAccess) String() string

func (*CalendarJobAccess) Validate

func (m *CalendarJobAccess) Validate() error

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

func (m *CalendarJobAccess) ValidateAll() error

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

type CalendarJobAccessMultiError

type CalendarJobAccessMultiError []error

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

func (CalendarJobAccessMultiError) AllErrors

func (m CalendarJobAccessMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarJobAccessMultiError) Error

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

type CalendarJobAccessValidationError

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

CalendarJobAccessValidationError is the validation error returned by CalendarJobAccess.Validate if the designated constraints aren't met.

func (CalendarJobAccessValidationError) Cause

Cause function returns cause value.

func (CalendarJobAccessValidationError) Error

Error satisfies the builtin error interface

func (CalendarJobAccessValidationError) ErrorName

ErrorName returns error name.

func (CalendarJobAccessValidationError) Field

Field function returns field value.

func (CalendarJobAccessValidationError) Key

Key function returns key value.

func (CalendarJobAccessValidationError) Reason

Reason function returns reason value.

type CalendarMultiError

type CalendarMultiError []error

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

func (CalendarMultiError) AllErrors

func (m CalendarMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarMultiError) Error

func (m CalendarMultiError) Error() string

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

type CalendarShort

type CalendarShort struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" sql:"primary_key" alias:"id"` // @gotags: sql:"primary_key" alias:"id"
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	// @sanitize: method=StripTags
	Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	// @sanitize: method=StripTags
	Description *string `protobuf:"bytes,7,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Public      bool    `protobuf:"varint,8,opt,name=public,proto3" json:"public,omitempty"`
	Closed      bool    `protobuf:"varint,9,opt,name=closed,proto3" json:"closed,omitempty"`
	// @sanitize: method=StripTags
	Color        string       `protobuf:"bytes,10,opt,name=color,proto3" json:"color,omitempty"`
	Subscription *CalendarSub `protobuf:"bytes,14,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarShort) Descriptor deprecated

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

Deprecated: Use CalendarShort.ProtoReflect.Descriptor instead.

func (*CalendarShort) GetClosed

func (x *CalendarShort) GetClosed() bool

func (*CalendarShort) GetColor

func (x *CalendarShort) GetColor() string

func (*CalendarShort) GetCreatedAt

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

func (*CalendarShort) GetDescription

func (x *CalendarShort) GetDescription() string

func (*CalendarShort) GetId

func (x *CalendarShort) GetId() uint64

func (*CalendarShort) GetName

func (x *CalendarShort) GetName() string

func (*CalendarShort) GetPublic

func (x *CalendarShort) GetPublic() bool

func (*CalendarShort) GetSubscription

func (x *CalendarShort) GetSubscription() *CalendarSub

func (*CalendarShort) ProtoMessage

func (*CalendarShort) ProtoMessage()

func (*CalendarShort) ProtoReflect

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

func (*CalendarShort) Reset

func (x *CalendarShort) Reset()

func (*CalendarShort) Sanitize

func (m *CalendarShort) Sanitize() error

func (*CalendarShort) String

func (x *CalendarShort) String() string

func (*CalendarShort) Validate

func (m *CalendarShort) Validate() error

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

func (m *CalendarShort) ValidateAll() error

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

type CalendarShortMultiError

type CalendarShortMultiError []error

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

func (CalendarShortMultiError) AllErrors

func (m CalendarShortMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarShortMultiError) Error

func (m CalendarShortMultiError) Error() string

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

type CalendarShortValidationError

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

CalendarShortValidationError is the validation error returned by CalendarShort.Validate if the designated constraints aren't met.

func (CalendarShortValidationError) Cause

Cause function returns cause value.

func (CalendarShortValidationError) Error

Error satisfies the builtin error interface

func (CalendarShortValidationError) ErrorName

func (e CalendarShortValidationError) ErrorName() string

ErrorName returns error name.

func (CalendarShortValidationError) Field

Field function returns field value.

func (CalendarShortValidationError) Key

Key function returns key value.

func (CalendarShortValidationError) Reason

Reason function returns reason value.

type CalendarSub

type CalendarSub struct {
	CalendarId uint64               `protobuf:"varint,1,opt,name=calendar_id,json=calendarId,proto3" json:"calendar_id,omitempty"`
	UserId     int32                `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	User       *users.UserShort     `protobuf:"bytes,3,opt,name=user,proto3,oneof" json:"user,omitempty"`
	CreatedAt  *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	Confirmed  bool                 `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
	Muted      bool                 `protobuf:"varint,6,opt,name=muted,proto3" json:"muted,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarSub) Descriptor deprecated

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

Deprecated: Use CalendarSub.ProtoReflect.Descriptor instead.

func (*CalendarSub) GetCalendarId

func (x *CalendarSub) GetCalendarId() uint64

func (*CalendarSub) GetConfirmed

func (x *CalendarSub) GetConfirmed() bool

func (*CalendarSub) GetCreatedAt

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

func (*CalendarSub) GetMuted

func (x *CalendarSub) GetMuted() bool

func (*CalendarSub) GetUser

func (x *CalendarSub) GetUser() *users.UserShort

func (*CalendarSub) GetUserId

func (x *CalendarSub) GetUserId() int32

func (*CalendarSub) ProtoMessage

func (*CalendarSub) ProtoMessage()

func (*CalendarSub) ProtoReflect

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

func (*CalendarSub) Reset

func (x *CalendarSub) Reset()

func (*CalendarSub) Sanitize added in v0.9.4

func (m *CalendarSub) Sanitize() error

func (*CalendarSub) String

func (x *CalendarSub) String() string

func (*CalendarSub) Validate

func (m *CalendarSub) Validate() error

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

func (m *CalendarSub) ValidateAll() error

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

type CalendarSubMultiError

type CalendarSubMultiError []error

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

func (CalendarSubMultiError) AllErrors

func (m CalendarSubMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarSubMultiError) Error

func (m CalendarSubMultiError) Error() string

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

type CalendarSubValidationError

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

CalendarSubValidationError is the validation error returned by CalendarSub.Validate if the designated constraints aren't met.

func (CalendarSubValidationError) Cause

Cause function returns cause value.

func (CalendarSubValidationError) Error

Error satisfies the builtin error interface

func (CalendarSubValidationError) ErrorName

func (e CalendarSubValidationError) ErrorName() string

ErrorName returns error name.

func (CalendarSubValidationError) Field

Field function returns field value.

func (CalendarSubValidationError) Key

Key function returns key value.

func (CalendarSubValidationError) Reason

Reason function returns reason value.

type CalendarUserAccess

type CalendarUserAccess struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"`
	TargetId  uint64               `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty" alias:"calendar_id"` // @gotags: alias:"calendar_id"
	UserId    int32                `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	User      *users.UserShort     `protobuf:"bytes,5,opt,name=user,proto3,oneof" json:"user,omitempty"`
	Access    AccessLevel          `protobuf:"varint,6,opt,name=access,proto3,enum=resources.calendar.AccessLevel" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*CalendarUserAccess) Descriptor deprecated

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

Deprecated: Use CalendarUserAccess.ProtoReflect.Descriptor instead.

func (*CalendarUserAccess) GetAccess

func (x *CalendarUserAccess) GetAccess() AccessLevel

func (*CalendarUserAccess) GetCreatedAt

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

func (*CalendarUserAccess) GetId

func (x *CalendarUserAccess) GetId() uint64

func (*CalendarUserAccess) GetTargetId added in v0.9.4

func (x *CalendarUserAccess) GetTargetId() uint64

func (*CalendarUserAccess) GetUser

func (x *CalendarUserAccess) GetUser() *users.UserShort

func (*CalendarUserAccess) GetUserId

func (x *CalendarUserAccess) GetUserId() int32

func (*CalendarUserAccess) ProtoMessage

func (*CalendarUserAccess) ProtoMessage()

func (*CalendarUserAccess) ProtoReflect

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

func (*CalendarUserAccess) Reset

func (x *CalendarUserAccess) Reset()

func (*CalendarUserAccess) Sanitize added in v0.9.4

func (m *CalendarUserAccess) Sanitize() error

func (*CalendarUserAccess) SetAccess added in v0.9.4

func (x *CalendarUserAccess) SetAccess(access AccessLevel)

func (*CalendarUserAccess) SetUserId added in v0.9.4

func (x *CalendarUserAccess) SetUserId(id int32)

func (*CalendarUserAccess) String

func (x *CalendarUserAccess) String() string

func (*CalendarUserAccess) Validate

func (m *CalendarUserAccess) Validate() error

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

func (m *CalendarUserAccess) ValidateAll() error

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

type CalendarUserAccessMultiError

type CalendarUserAccessMultiError []error

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

func (CalendarUserAccessMultiError) AllErrors

func (m CalendarUserAccessMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CalendarUserAccessMultiError) Error

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

type CalendarUserAccessValidationError

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

CalendarUserAccessValidationError is the validation error returned by CalendarUserAccess.Validate if the designated constraints aren't met.

func (CalendarUserAccessValidationError) Cause

Cause function returns cause value.

func (CalendarUserAccessValidationError) Error

Error satisfies the builtin error interface

func (CalendarUserAccessValidationError) ErrorName

ErrorName returns error name.

func (CalendarUserAccessValidationError) Field

Field function returns field value.

func (CalendarUserAccessValidationError) Key

Key function returns key value.

func (CalendarUserAccessValidationError) Reason

Reason function returns reason value.

type CalendarValidationError

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

CalendarValidationError is the validation error returned by Calendar.Validate if the designated constraints aren't met.

func (CalendarValidationError) Cause

func (e CalendarValidationError) Cause() error

Cause function returns cause value.

func (CalendarValidationError) Error

func (e CalendarValidationError) Error() string

Error satisfies the builtin error interface

func (CalendarValidationError) ErrorName

func (e CalendarValidationError) ErrorName() string

ErrorName returns error name.

func (CalendarValidationError) Field

func (e CalendarValidationError) Field() string

Field function returns field value.

func (CalendarValidationError) Key

func (e CalendarValidationError) Key() bool

Key function returns key value.

func (CalendarValidationError) Reason

func (e CalendarValidationError) Reason() string

Reason function returns reason value.

type RsvpResponses

type RsvpResponses int32
const (
	RsvpResponses_RSVP_RESPONSES_UNSPECIFIED RsvpResponses = 0
	RsvpResponses_RSVP_RESPONSES_HIDDEN      RsvpResponses = 1
	RsvpResponses_RSVP_RESPONSES_INVITED     RsvpResponses = 2
	RsvpResponses_RSVP_RESPONSES_NO          RsvpResponses = 3
	RsvpResponses_RSVP_RESPONSES_MAYBE       RsvpResponses = 4
	RsvpResponses_RSVP_RESPONSES_YES         RsvpResponses = 5
)

func (RsvpResponses) Descriptor

func (RsvpResponses) Enum

func (x RsvpResponses) Enum() *RsvpResponses

func (RsvpResponses) EnumDescriptor deprecated

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

Deprecated: Use RsvpResponses.Descriptor instead.

func (RsvpResponses) Number

func (RsvpResponses) String

func (x RsvpResponses) String() string

func (RsvpResponses) Type

Jump to

Keyboard shortcuts

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