Documentation ¶
Index ¶
- Variables
- type Notice
- func (*Notice) Descriptor() ([]byte, []int)deprecated
- func (x *Notice) GetContent() string
- func (x *Notice) GetCreatedAt() string
- func (x *Notice) GetId() string
- func (x *Notice) GetTitle() string
- func (x *Notice) GetUpdatedAt() string
- func (*Notice) ProtoMessage()
- func (x *Notice) ProtoReflect() protoreflect.Message
- func (x *Notice) Reset()
- func (x *Notice) String() string
- func (m *Notice) Validate() error
- func (m *Notice) ValidateAll() error
- type NoticeMultiError
- type NoticeValidationError
- type SelfLinks
- func (*SelfLinks) Descriptor() ([]byte, []int)deprecated
- func (x *SelfLinks) GetSelf() string
- func (*SelfLinks) ProtoMessage()
- func (x *SelfLinks) ProtoReflect() protoreflect.Message
- func (x *SelfLinks) Reset()
- func (x *SelfLinks) String() string
- func (m *SelfLinks) Validate() error
- func (m *SelfLinks) ValidateAll() error
- type SelfLinksMultiError
- type SelfLinksValidationError
Constants ¶
This section is empty.
Variables ¶
var File_cafes_v1_resources_notice_proto protoreflect.FileDescriptor
var File_cafes_v1_resources_selflinks_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Notice ¶
type Notice struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Notice) Descriptor
deprecated
func (*Notice) GetContent ¶
func (*Notice) GetCreatedAt ¶
func (*Notice) GetUpdatedAt ¶
func (*Notice) ProtoMessage ¶
func (*Notice) ProtoMessage()
func (*Notice) ProtoReflect ¶
func (x *Notice) ProtoReflect() protoreflect.Message
func (*Notice) Validate ¶
Validate checks the field values on Notice 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 (*Notice) ValidateAll ¶
ValidateAll checks the field values on Notice 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 NoticeMultiError, or nil if none found.
type NoticeMultiError ¶
type NoticeMultiError []error
NoticeMultiError is an error wrapping multiple validation errors returned by Notice.ValidateAll() if the designated constraints aren't met.
func (NoticeMultiError) AllErrors ¶
func (m NoticeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NoticeMultiError) Error ¶
func (m NoticeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NoticeValidationError ¶
type NoticeValidationError struct {
// contains filtered or unexported fields
}
NoticeValidationError is the validation error returned by Notice.Validate if the designated constraints aren't met.
func (NoticeValidationError) Cause ¶
func (e NoticeValidationError) Cause() error
Cause function returns cause value.
func (NoticeValidationError) Error ¶
func (e NoticeValidationError) Error() string
Error satisfies the builtin error interface
func (NoticeValidationError) ErrorName ¶
func (e NoticeValidationError) ErrorName() string
ErrorName returns error name.
func (NoticeValidationError) Field ¶
func (e NoticeValidationError) Field() string
Field function returns field value.
func (NoticeValidationError) Key ¶
func (e NoticeValidationError) Key() bool
Key function returns key value.
func (NoticeValidationError) Reason ¶
func (e NoticeValidationError) Reason() string
Reason function returns reason value.
type SelfLinks ¶
type SelfLinks struct { Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"` // contains filtered or unexported fields }
func (*SelfLinks) Descriptor
deprecated
func (*SelfLinks) ProtoMessage ¶
func (*SelfLinks) ProtoMessage()
func (*SelfLinks) ProtoReflect ¶
func (x *SelfLinks) ProtoReflect() protoreflect.Message
func (*SelfLinks) Validate ¶
Validate checks the field values on SelfLinks 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 (*SelfLinks) ValidateAll ¶
ValidateAll checks the field values on SelfLinks 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 SelfLinksMultiError, or nil if none found.
type SelfLinksMultiError ¶
type SelfLinksMultiError []error
SelfLinksMultiError is an error wrapping multiple validation errors returned by SelfLinks.ValidateAll() if the designated constraints aren't met.
func (SelfLinksMultiError) AllErrors ¶
func (m SelfLinksMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SelfLinksMultiError) Error ¶
func (m SelfLinksMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SelfLinksValidationError ¶
type SelfLinksValidationError struct {
// contains filtered or unexported fields
}
SelfLinksValidationError is the validation error returned by SelfLinks.Validate if the designated constraints aren't met.
func (SelfLinksValidationError) Cause ¶
func (e SelfLinksValidationError) Cause() error
Cause function returns cause value.
func (SelfLinksValidationError) Error ¶
func (e SelfLinksValidationError) Error() string
Error satisfies the builtin error interface
func (SelfLinksValidationError) ErrorName ¶
func (e SelfLinksValidationError) ErrorName() string
ErrorName returns error name.
func (SelfLinksValidationError) Field ¶
func (e SelfLinksValidationError) Field() string
Field function returns field value.
func (SelfLinksValidationError) Key ¶
func (e SelfLinksValidationError) Key() bool
Key function returns key value.
func (SelfLinksValidationError) Reason ¶
func (e SelfLinksValidationError) Reason() string
Reason function returns reason value.