Enum value maps for Article_Status.
var ( Article_Status_name = map[int32]string{ 0: "DRAFT", 1: "PUBLISHED", 2: "REVOKED", } Article_Status_value = map[string]int32{ "DRAFT": 0, "PUBLISHED": 1, "REVOKED": 2, } )
var File_internal_testprotos_news_news_proto protoreflect.FileDescriptor
type Article struct { Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` Status Article_Status `protobuf:"varint,8,opt,name=status,proto3,enum=google.golang.org.Article_Status" json:"status,omitempty"` Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"` Attachments []*anypb.Any `protobuf:"bytes,6,rep,name=attachments,proto3" json:"attachments,omitempty"` // contains filtered or unexported fields }
func (*Article) Descriptor() ([]byte, []int)
Deprecated: Use Article.ProtoReflect.Descriptor instead.
func (x *Article) GetAttachments() []*anypb.Any
func (x *Article) GetAuthor() string
func (x *Article) GetContent() string
func (x *Article) GetDate() *timestamppb.Timestamp
func (x *Article) GetStatus() Article_Status
func (x *Article) GetTags() []string
func (x *Article) GetTitle() string
func (*Article) ProtoMessage()
func (x *Article) ProtoReflect() protoreflect.Message
func (x *Article) Reset()
func (x *Article) String() string
type Article_Status int32
const ( Article_DRAFT Article_Status = 0 Article_PUBLISHED Article_Status = 1 Article_REVOKED Article_Status = 2 )
func (Article_Status) Descriptor() protoreflect.EnumDescriptor
func (x Article_Status) Enum() *Article_Status
func (Article_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Article_Status.Descriptor instead.
func (x Article_Status) Number() protoreflect.EnumNumber
func (x Article_Status) String() string
func (Article_Status) Type() protoreflect.EnumType
type BinaryAttachment struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BinaryAttachment) Descriptor() ([]byte, []int)
Deprecated: Use BinaryAttachment.ProtoReflect.Descriptor instead.
func (x *BinaryAttachment) GetData() []byte
func (x *BinaryAttachment) GetName() string
func (*BinaryAttachment) ProtoMessage()
func (x *BinaryAttachment) ProtoReflect() protoreflect.Message
func (x *BinaryAttachment) Reset()
func (x *BinaryAttachment) String() string
type KeyValueAttachment struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*KeyValueAttachment) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueAttachment.ProtoReflect.Descriptor instead.
func (x *KeyValueAttachment) GetData() map[string]string
func (x *KeyValueAttachment) GetName() string
func (*KeyValueAttachment) ProtoMessage()
func (x *KeyValueAttachment) ProtoReflect() protoreflect.Message
func (x *KeyValueAttachment) Reset()
func (x *KeyValueAttachment) String() string