reply

package
v0.0.0-...-b9535b4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_protobufs_reply_domain_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RecentReply

type RecentReply 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"`
	LastReplyAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=last_reply_at,json=lastReplyAt,proto3" json:"last_reply_at,omitempty"`
	Author      *shared.UserBase     `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"`
	// contains filtered or unexported fields
}

func (*RecentReply) Descriptor deprecated

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

Deprecated: Use RecentReply.ProtoReflect.Descriptor instead.

func (*RecentReply) GetAuthor

func (x *RecentReply) GetAuthor() *shared.UserBase

func (*RecentReply) GetId

func (x *RecentReply) GetId() string

func (*RecentReply) GetLastReplyAt

func (x *RecentReply) GetLastReplyAt() *timestamp.Timestamp

func (*RecentReply) GetTitle

func (x *RecentReply) GetTitle() string

func (*RecentReply) ProtoMessage

func (*RecentReply) ProtoMessage()

func (*RecentReply) ProtoReflect

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

func (*RecentReply) Reset

func (x *RecentReply) Reset()

func (*RecentReply) String

func (x *RecentReply) String() string

func (*RecentReply) Validate

func (m *RecentReply) Validate() error

Validate checks the field values on RecentReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RecentReplyValidationError

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

RecentReplyValidationError is the validation error returned by RecentReply.Validate if the designated constraints aren't met.

func (RecentReplyValidationError) Cause

Cause function returns cause value.

func (RecentReplyValidationError) Error

Error satisfies the builtin error interface

func (RecentReplyValidationError) ErrorName

func (e RecentReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RecentReplyValidationError) Field

Field function returns field value.

func (RecentReplyValidationError) Key

Key function returns key value.

func (RecentReplyValidationError) Reason

Reason function returns reason value.

type Reply

type Reply struct {
	Id       string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Content  string               `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	CreateAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
	ReplyId  string               `protobuf:"bytes,4,opt,name=reply_id,json=replyId,proto3" json:"reply_id,omitempty"`
	Author   *shared.UserBase     `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"`
	IsUped   bool                 `protobuf:"varint,6,opt,name=is_uped,json=isUped,proto3" json:"is_uped,omitempty"`
	Ups      []string             `protobuf:"bytes,7,rep,name=ups,proto3" json:"ups,omitempty"`
	// contains filtered or unexported fields
}

func (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetAuthor

func (x *Reply) GetAuthor() *shared.UserBase

func (*Reply) GetContent

func (x *Reply) GetContent() string

func (*Reply) GetCreateAt

func (x *Reply) GetCreateAt() *timestamp.Timestamp

func (*Reply) GetId

func (x *Reply) GetId() string

func (*Reply) GetIsUped

func (x *Reply) GetIsUped() bool

func (*Reply) GetReplyId

func (x *Reply) GetReplyId() string

func (*Reply) GetUps

func (x *Reply) GetUps() []string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

func (*Reply) Validate

func (m *Reply) Validate() error

Validate checks the field values on Reply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ReplyValidationError

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

ReplyValidationError is the validation error returned by Reply.Validate if the designated constraints aren't met.

func (ReplyValidationError) Cause

func (e ReplyValidationError) Cause() error

Cause function returns cause value.

func (ReplyValidationError) Error

func (e ReplyValidationError) Error() string

Error satisfies the builtin error interface

func (ReplyValidationError) ErrorName

func (e ReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ReplyValidationError) Field

func (e ReplyValidationError) Field() string

Field function returns field value.

func (ReplyValidationError) Key

func (e ReplyValidationError) Key() bool

Key function returns key value.

func (ReplyValidationError) Reason

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