Documentation ¶
Index ¶
- Variables
- type Album
- func (*Album) Descriptor() ([]byte, []int)deprecated
- func (x *Album) GetCriticallyAclaimed() bool
- func (x *Album) GetTitle() string
- func (x *Album) GetTracks() []string
- func (x *Album) GetYearOfRelease() int32
- func (msg *Album) MarshalBinary() ([]byte, error)
- func (*Album) ProtoMessage()
- func (x *Album) ProtoReflect() protoreflect.Message
- func (x *Album) Reset()
- func (x *Album) String() string
- func (msg *Album) UnmarshalBinary(b []byte) error
- type Artist
- func (*Artist) Descriptor() ([]byte, []int)deprecated
- func (x *Artist) GetGenre() Genre
- func (x *Artist) GetGroupMembers() map[string]string
- func (x *Artist) GetName() string
- func (msg *Artist) MarshalBinary() ([]byte, error)
- func (*Artist) ProtoMessage()
- func (x *Artist) ProtoReflect() protoreflect.Message
- func (x *Artist) Reset()
- func (x *Artist) String() string
- func (msg *Artist) UnmarshalBinary(b []byte) error
- type Genre
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Genre_name = map[int32]string{ 0: "GENRE_UNSPECIFIED", 1: "GENRE_JAZZ", 2: "GENRE_FOLK", 3: "GENRE_POP", 4: "GENRE_METAL", 5: "GENRE_PUNK", 6: "GENRE_BLUES", 7: "GENRE_R_AND_B", 8: "GENRE_COUNTRY", 9: "GENRE_DISCO", 10: "GENRE_SKA", 11: "GENRE_HIP_HOP", 12: "GENRE_INDIE", } Genre_value = map[string]int32{ "GENRE_UNSPECIFIED": 0, "GENRE_JAZZ": 1, "GENRE_FOLK": 2, "GENRE_POP": 3, "GENRE_METAL": 4, "GENRE_PUNK": 5, "GENRE_BLUES": 6, "GENRE_R_AND_B": 7, "GENRE_COUNTRY": 8, "GENRE_DISCO": 9, "GENRE_SKA": 10, "GENRE_HIP_HOP": 11, "GENRE_INDIE": 12, } )
Enum value maps for Genre.
View Source
var File_private_pbdemo_v2_demo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` YearOfRelease int32 `protobuf:"varint,2,opt,name=year_of_release,json=yearOfRelease,proto3" json:"year_of_release,omitempty"` CriticallyAclaimed bool `protobuf:"varint,3,opt,name=critically_aclaimed,json=criticallyAclaimed,proto3" json:"critically_aclaimed,omitempty"` Tracks []string `protobuf:"bytes,4,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*Album) Descriptor
deprecated
func (*Album) GetCriticallyAclaimed ¶
func (*Album) GetYearOfRelease ¶
func (*Album) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Album) ProtoMessage ¶
func (*Album) ProtoMessage()
func (*Album) ProtoReflect ¶
func (x *Album) ProtoReflect() protoreflect.Message
func (*Album) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type Artist ¶
type Artist struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Genre Genre `protobuf:"varint,2,opt,name=genre,proto3,enum=hashicorp.consul.internal.demo.v2.Genre" json:"genre,omitempty"` GroupMembers map[string]string `` /* 185-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Artist) Descriptor
deprecated
func (*Artist) GetGroupMembers ¶
func (*Artist) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler
func (*Artist) ProtoMessage ¶
func (*Artist) ProtoMessage()
func (*Artist) ProtoReflect ¶
func (x *Artist) ProtoReflect() protoreflect.Message
func (*Artist) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler
type Genre ¶
type Genre int32
const ( Genre_GENRE_UNSPECIFIED Genre = 0 Genre_GENRE_JAZZ Genre = 1 Genre_GENRE_FOLK Genre = 2 Genre_GENRE_POP Genre = 3 Genre_GENRE_METAL Genre = 4 Genre_GENRE_PUNK Genre = 5 Genre_GENRE_BLUES Genre = 6 Genre_GENRE_R_AND_B Genre = 7 Genre_GENRE_COUNTRY Genre = 8 Genre_GENRE_DISCO Genre = 9 Genre_GENRE_SKA Genre = 10 Genre_GENRE_HIP_HOP Genre = 11 Genre_GENRE_INDIE Genre = 12 )
func (Genre) Descriptor ¶
func (Genre) Descriptor() protoreflect.EnumDescriptor
func (Genre) EnumDescriptor
deprecated
func (Genre) Number ¶
func (x Genre) Number() protoreflect.EnumNumber
func (Genre) Type ¶
func (Genre) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.