resources

package
v0.0.0-...-27fe427 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cafes_v1_resources_notice_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Notice.ProtoReflect.Descriptor instead.

func (*Notice) GetContent

func (x *Notice) GetContent() string

func (*Notice) GetCreatedAt

func (x *Notice) GetCreatedAt() string

func (*Notice) GetId

func (x *Notice) GetId() string

func (*Notice) GetTitle

func (x *Notice) GetTitle() string

func (*Notice) GetUpdatedAt

func (x *Notice) GetUpdatedAt() string

func (*Notice) ProtoMessage

func (*Notice) ProtoMessage()

func (*Notice) ProtoReflect

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

func (*Notice) Reset

func (x *Notice) Reset()

func (*Notice) String

func (x *Notice) String() string

func (*Notice) Validate

func (m *Notice) Validate() error

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

func (m *Notice) ValidateAll() error

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 struct {
	Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"`
	// contains filtered or unexported fields
}

func (*SelfLinks) Descriptor deprecated

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

Deprecated: Use SelfLinks.ProtoReflect.Descriptor instead.

func (*SelfLinks) GetSelf

func (x *SelfLinks) GetSelf() string

func (*SelfLinks) ProtoMessage

func (*SelfLinks) ProtoMessage()

func (*SelfLinks) ProtoReflect

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

func (*SelfLinks) Reset

func (x *SelfLinks) Reset()

func (*SelfLinks) String

func (x *SelfLinks) String() string

func (*SelfLinks) Validate

func (m *SelfLinks) Validate() error

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

func (m *SelfLinks) ValidateAll() error

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

Key function returns key value.

func (SelfLinksValidationError) Reason

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