Documentation ¶
Index ¶
- Variables
- type Blog
- func (*Blog) Descriptor() ([]byte, []int)deprecated
- func (x *Blog) GetCount() int64
- func (x *Blog) GetIsPublished() bool
- func (x *Blog) GetTag() map[string]string
- func (x *Blog) GetTitle() string
- func (*Blog) ProtoMessage()
- func (x *Blog) ProtoReflect() protoreflect.Message
- func (x *Blog) Reset()
- func (x *Blog) String() string
- type BlogSet
- type STATUS
- type String
Constants ¶
This section is empty.
Variables ¶
View Source
var ( STATUS_name = map[int32]string{ 0: "DRAFT", 1: "AUDIT", 2: "PUBLISHED", } STATUS_value = map[string]int32{ "DRAFT": 0, "AUDIT": 1, "PUBLISHED": 2, } )
Enum value maps for STATUS.
View Source
var File_protobuf_hello_hello_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` IsPublished bool `protobuf:"varint,3,opt,name=is_published,json=isPublished,proto3" json:"is_published,omitempty"` Tag map[string]string `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Blog) Descriptor
deprecated
func (*Blog) GetIsPublished ¶
func (*Blog) ProtoMessage ¶
func (*Blog) ProtoMessage()
func (*Blog) ProtoReflect ¶
func (x *Blog) ProtoReflect() protoreflect.Message
type BlogSet ¶
type BlogSet struct { Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` Items []*Blog `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
[]*Blog repeated Blog
func (*BlogSet) Descriptor
deprecated
func (*BlogSet) ProtoMessage ¶
func (*BlogSet) ProtoMessage()
func (*BlogSet) ProtoReflect ¶
func (x *BlogSet) ProtoReflect() protoreflect.Message
type STATUS ¶
type STATUS int32
func (STATUS) Descriptor ¶
func (STATUS) Descriptor() protoreflect.EnumDescriptor
func (STATUS) EnumDescriptor
deprecated
func (STATUS) Number ¶
func (x STATUS) Number() protoreflect.EnumNumber
func (STATUS) Type ¶
func (STATUS) Type() protoreflect.EnumType
type String ¶
type String struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*String) Descriptor
deprecated
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) ProtoReflect ¶
func (x *String) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.