demov2

package
v1.16.107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Album.ProtoReflect.Descriptor instead.

func (*Album) GetCriticallyAclaimed

func (x *Album) GetCriticallyAclaimed() bool

func (*Album) GetTitle

func (x *Album) GetTitle() string

func (*Album) GetTracks

func (x *Album) GetTracks() []string

func (*Album) GetYearOfRelease

func (x *Album) GetYearOfRelease() int32

func (*Album) MarshalBinary

func (msg *Album) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Album) ProtoMessage

func (*Album) ProtoMessage()

func (*Album) ProtoReflect

func (x *Album) ProtoReflect() protoreflect.Message

func (*Album) Reset

func (x *Album) Reset()

func (*Album) String

func (x *Album) String() string

func (*Album) UnmarshalBinary

func (msg *Album) UnmarshalBinary(b []byte) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Artist.ProtoReflect.Descriptor instead.

func (*Artist) GetGenre

func (x *Artist) GetGenre() Genre

func (*Artist) GetGroupMembers

func (x *Artist) GetGroupMembers() map[string]string

func (*Artist) GetName

func (x *Artist) GetName() string

func (*Artist) MarshalBinary

func (msg *Artist) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) ProtoReflect

func (x *Artist) ProtoReflect() protoreflect.Message

func (*Artist) Reset

func (x *Artist) Reset()

func (*Artist) String

func (x *Artist) String() string

func (*Artist) UnmarshalBinary

func (msg *Artist) UnmarshalBinary(b []byte) error

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) Enum

func (x Genre) Enum() *Genre

func (Genre) EnumDescriptor deprecated

func (Genre) EnumDescriptor() ([]byte, []int)

Deprecated: Use Genre.Descriptor instead.

func (Genre) Number

func (x Genre) Number() protoreflect.EnumNumber

func (Genre) String

func (x Genre) String() string

func (Genre) Type

func (Genre) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL