Documentation
¶
Index ¶
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetLatLng() *LatLng
- func (x *Address) GetStreetAddress() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- 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
- 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 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
- type LatLng
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetAddress() *Address
- func (x *Person) GetBoop() [][]byte
- func (x *Person) GetMapStringLatlng() map[string]*LatLng
- func (x *Person) GetMapStringString() map[string]string
- func (x *Person) GetMaritalStatus() Person_MaritalStatus
- func (x *Person) GetMaybeLatlng() *LatLng
- func (x *Person) GetMaybeString() string
- func (x *Person) GetMoarAddresses() []*Address
- func (x *Person) GetName() string
- func (m *Person) GetStringOrLatlng() isPerson_StringOrLatlng
- func (x *Person) GetTags() []string
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type Person_MaritalStatus
- func (Person_MaritalStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Person_MaritalStatus) Enum() *Person_MaritalStatus
- func (Person_MaritalStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Person_MaritalStatus) Number() protoreflect.EnumNumber
- func (x Person_MaritalStatus) String() string
- func (Person_MaritalStatus) Type() protoreflect.EnumType
- type Person_MaybeLatlng
- type Person_MaybeString
Constants ¶
This section is empty.
Variables ¶
View Source
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, } )
Enum value maps for Article_Status.
View Source
var ( Person_MaritalStatus_name = map[int32]string{ 0: "PREFER_NOT_TO_SAY", 1: "SINGLE", 2: "DIVORCED", 3: "WIDOWED", 4: "MARRIED", } Person_MaritalStatus_value = map[string]int32{ "PREFER_NOT_TO_SAY": 0, "SINGLE": 1, "DIVORCED": 2, "WIDOWED": 3, "MARRIED": 4, } )
Enum value maps for Person_MaritalStatus.
View Source
var File_internal_testproto_news_proto protoreflect.FileDescriptor
View Source
var File_internal_testproto_proto_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` LatLng *LatLng `protobuf:"bytes,3,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetStreetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
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=testproto.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
deprecated
func (*Article) GetAttachments ¶
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_DRAFT Article_Status = 0 Article_PUBLISHED Article_Status = 1 Article_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 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
type LatLng ¶
type LatLng struct { Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"` // contains filtered or unexported fields }
func (*LatLng) Descriptor
deprecated
func (*LatLng) GetLatitude ¶
func (*LatLng) GetLongitude ¶
func (*LatLng) ProtoMessage ¶
func (*LatLng) ProtoMessage()
func (*LatLng) ProtoReflect ¶
func (x *LatLng) ProtoReflect() protoreflect.Message
type Person ¶
type Person struct { Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"` Address *Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` MoarAddresses []*Address `protobuf:"bytes,3,rep,name=moar_addresses,json=moarAddresses,proto3" json:"moar_addresses,omitempty"` Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"` Boop [][]byte `protobuf:"bytes,5,rep,name=boop,proto3" json:"boop,omitempty"` MapStringLatlng map[string]*LatLng `` /* 196-byte string literal not displayed */ MaritalStatus Person_MaritalStatus `` /* 137-byte string literal not displayed */ // Types that are assignable to StringOrLatlng: // *Person_MaybeString // *Person_MaybeLatlng StringOrLatlng isPerson_StringOrLatlng `protobuf_oneof:"string_or_latlng"` MapStringString map[string]string `` /* 197-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) GetAddress ¶
func (*Person) GetMapStringLatlng ¶
func (*Person) GetMapStringString ¶
func (*Person) GetMaritalStatus ¶
func (x *Person) GetMaritalStatus() Person_MaritalStatus
func (*Person) GetMaybeLatlng ¶
func (*Person) GetMaybeString ¶
func (*Person) GetMoarAddresses ¶
func (*Person) GetStringOrLatlng ¶
func (m *Person) GetStringOrLatlng() isPerson_StringOrLatlng
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type Person_MaritalStatus ¶
type Person_MaritalStatus int32
const ( Person_PREFER_NOT_TO_SAY Person_MaritalStatus = 0 Person_SINGLE Person_MaritalStatus = 1 Person_DIVORCED Person_MaritalStatus = 2 Person_WIDOWED Person_MaritalStatus = 3 Person_MARRIED Person_MaritalStatus = 4 )
func (Person_MaritalStatus) Descriptor ¶
func (Person_MaritalStatus) Descriptor() protoreflect.EnumDescriptor
func (Person_MaritalStatus) Enum ¶
func (x Person_MaritalStatus) Enum() *Person_MaritalStatus
func (Person_MaritalStatus) EnumDescriptor
deprecated
func (Person_MaritalStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Person_MaritalStatus.Descriptor instead.
func (Person_MaritalStatus) Number ¶
func (x Person_MaritalStatus) Number() protoreflect.EnumNumber
func (Person_MaritalStatus) String ¶
func (x Person_MaritalStatus) String() string
func (Person_MaritalStatus) Type ¶
func (Person_MaritalStatus) Type() protoreflect.EnumType
type Person_MaybeLatlng ¶
type Person_MaybeLatlng struct {
MaybeLatlng *LatLng `protobuf:"bytes,9,opt,name=maybe_latlng,json=maybeLatlng,proto3,oneof"`
}
type Person_MaybeString ¶
type Person_MaybeString struct {
MaybeString string `protobuf:"bytes,8,opt,name=maybe_string,json=maybeString,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.