Documentation ¶
Index ¶
- Variables
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetAttachments() []*Attachment
- 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) GetTitle() string
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type Article_Status
- func (Article_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Article_Status) Enum() *Article_Status
- func (Article_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Article_Status) Number() protoreflect.EnumNumber
- func (x Article_Status) String() string
- func (Article_Status) Type() protoreflect.EnumType
- type Attachment
- func (*Attachment) Descriptor() ([]byte, []int)deprecated
- func (x *Attachment) GetBinaryAttachment() *BinaryAttachment
- func (m *Attachment) GetContents() isAttachment_Contents
- func (x *Attachment) GetKeyValueAttachment() *KeyValueAttachment
- func (*Attachment) ProtoMessage()
- func (x *Attachment) ProtoReflect() protoreflect.Message
- func (x *Attachment) Reset()
- func (x *Attachment) String() string
- type Attachment_BinaryAttachment
- type Attachment_KeyValueAttachment
- type BinaryAttachment
- func (*BinaryAttachment) Descriptor() ([]byte, []int)deprecated
- 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
- func (*KeyValueAttachment) Descriptor() ([]byte, []int)deprecated
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Article_Status_name = map[int32]string{ 0: "STATUS_DRAFT_UNSPECIFIED", 1: "STATUS_PUBLISHED", 2: "STATUS_REVOKED", } Article_Status_value = map[string]int32{ "STATUS_DRAFT_UNSPECIFIED": 0, "STATUS_PUBLISHED": 1, "STATUS_REVOKED": 2, } )
Enum value maps for Article_Status.
View Source
var File_news_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Article ¶
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=grpc.testprotos.news.v1.Article_Status" json:"status,omitempty"` Attachments []*Attachment `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty"` // contains filtered or unexported fields }
func (*Article) Descriptor
deprecated
func (*Article) GetAttachments ¶
func (x *Article) GetAttachments() []*Attachment
func (*Article) GetContent ¶
func (*Article) GetDate ¶
func (x *Article) GetDate() *timestamppb.Timestamp
func (*Article) GetStatus ¶
func (x *Article) GetStatus() Article_Status
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type Article_Status ¶
type Article_Status int32
const ( Article_STATUS_DRAFT_UNSPECIFIED Article_Status = 0 Article_STATUS_PUBLISHED Article_Status = 1 Article_STATUS_REVOKED Article_Status = 2 )
func (Article_Status) Descriptor ¶
func (Article_Status) Descriptor() protoreflect.EnumDescriptor
func (Article_Status) Enum ¶
func (x Article_Status) Enum() *Article_Status
func (Article_Status) EnumDescriptor
deprecated
func (Article_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Article_Status.Descriptor instead.
func (Article_Status) Number ¶
func (x Article_Status) Number() protoreflect.EnumNumber
func (Article_Status) String ¶
func (x Article_Status) String() string
func (Article_Status) Type ¶
func (Article_Status) Type() protoreflect.EnumType
type Attachment ¶
type Attachment struct { // Types that are assignable to Contents: // // *Attachment_BinaryAttachment // *Attachment_KeyValueAttachment Contents isAttachment_Contents `protobuf_oneof:"contents"` // contains filtered or unexported fields }
func (*Attachment) Descriptor
deprecated
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetBinaryAttachment ¶
func (x *Attachment) GetBinaryAttachment() *BinaryAttachment
func (*Attachment) GetContents ¶
func (m *Attachment) GetContents() isAttachment_Contents
func (*Attachment) GetKeyValueAttachment ¶
func (x *Attachment) GetKeyValueAttachment() *KeyValueAttachment
func (*Attachment) ProtoMessage ¶
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect ¶
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset ¶
func (x *Attachment) Reset()
func (*Attachment) String ¶
func (x *Attachment) String() string
type Attachment_BinaryAttachment ¶
type Attachment_BinaryAttachment struct {
BinaryAttachment *BinaryAttachment `protobuf:"bytes,1,opt,name=binary_attachment,json=binaryAttachment,proto3,oneof"`
}
type Attachment_KeyValueAttachment ¶
type Attachment_KeyValueAttachment struct {
KeyValueAttachment *KeyValueAttachment `protobuf:"bytes,2,opt,name=key_value_attachment,json=keyValueAttachment,proto3,oneof"`
}
type BinaryAttachment ¶
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
deprecated
func (*BinaryAttachment) Descriptor() ([]byte, []int)
Deprecated: Use BinaryAttachment.ProtoReflect.Descriptor instead.
func (*BinaryAttachment) GetData ¶
func (x *BinaryAttachment) GetData() []byte
func (*BinaryAttachment) GetName ¶
func (x *BinaryAttachment) GetName() string
func (*BinaryAttachment) ProtoMessage ¶
func (*BinaryAttachment) ProtoMessage()
func (*BinaryAttachment) ProtoReflect ¶
func (x *BinaryAttachment) ProtoReflect() protoreflect.Message
func (*BinaryAttachment) Reset ¶
func (x *BinaryAttachment) Reset()
func (*BinaryAttachment) String ¶
func (x *BinaryAttachment) String() string
type KeyValueAttachment ¶
type KeyValueAttachment struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Data map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*KeyValueAttachment) Descriptor
deprecated
func (*KeyValueAttachment) Descriptor() ([]byte, []int)
Deprecated: Use KeyValueAttachment.ProtoReflect.Descriptor instead.
func (*KeyValueAttachment) GetData ¶
func (x *KeyValueAttachment) GetData() map[string]string
func (*KeyValueAttachment) GetName ¶
func (x *KeyValueAttachment) GetName() string
func (*KeyValueAttachment) ProtoMessage ¶
func (*KeyValueAttachment) ProtoMessage()
func (*KeyValueAttachment) ProtoReflect ¶
func (x *KeyValueAttachment) ProtoReflect() protoreflect.Message
func (*KeyValueAttachment) Reset ¶
func (x *KeyValueAttachment) Reset()
func (*KeyValueAttachment) String ¶
func (x *KeyValueAttachment) String() string
Click to show internal directories.
Click to hide internal directories.