enumcustomname

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Default_OnlyEnums_YetAnotherTestEnumDefaultAa test.YetAnotherTestEnum = test.AA
View Source
const Default_OnlyEnums_YetAnotherTestEnumDefaultBb test.YetAnotherTestEnum = test.BetterYetBB
View Source
const Default_OnlyEnums_YetYetAnotherTestEnumDefaultCc test.YetYetAnotherTestEnum = test.YetYetAnotherTestEnum_CC
View Source
const Default_OnlyEnums_YetYetAnotherTestEnumDefaultDd test.YetYetAnotherTestEnum = test.YetYetAnotherTestEnum_BetterYetDD

Variables

View Source
var MyCustomEnum_name = map[int32]string{
	0: "A",
	1: "B",
}
View Source
var MyCustomEnum_value = map[string]int32{
	"A": 0,
	"B": 1,
}
View Source
var MyCustomUnprefixedEnum_name = map[int32]string{
	0: "UNPREFIXED_A",
	1: "UNPREFIXED_B",
}
View Source
var MyCustomUnprefixedEnum_value = map[string]int32{
	"UNPREFIXED_A": 0,
	"UNPREFIXED_B": 1,
}
View Source
var MyEnumWithEnumStringer_name = map[int32]string{
	0: "STRINGER_A",
	1: "STRINGER_B",
}
View Source
var MyEnumWithEnumStringer_value = map[string]int32{
	"STRINGER_A": 0,
	"STRINGER_B": 1,
}

Functions

This section is empty.

Types

type MyCustomEnum

type MyCustomEnum int32
const (
	// The following field will take on the custom name and the prefix, joined
	// by an underscore.
	MyCustomEnum_MyBetterNameA MyCustomEnum = 0
	MyCustomEnum_B             MyCustomEnum = 1
)
const Default_OnlyEnums_MyEnumDefaultA MyCustomEnum = MyCustomEnum_MyBetterNameA
const Default_OnlyEnums_MyEnumDefaultB MyCustomEnum = MyCustomEnum_B

func (MyCustomEnum) Enum

func (x MyCustomEnum) Enum() *MyCustomEnum

func (MyCustomEnum) EnumDescriptor

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

func (MyCustomEnum) String

func (x MyCustomEnum) String() string

func (*MyCustomEnum) UnmarshalJSON

func (x *MyCustomEnum) UnmarshalJSON(data []byte) error

type MyCustomUnprefixedEnum

type MyCustomUnprefixedEnum int32
const (
	MyBetterNameUnprefixedA MyCustomUnprefixedEnum = 0
	UNPREFIXED_B            MyCustomUnprefixedEnum = 1
)
const Default_OnlyEnums_MyUnprefixedEnumDefaultA MyCustomUnprefixedEnum = MyBetterNameUnprefixedA
const Default_OnlyEnums_MyUnprefixedEnumDefaultB MyCustomUnprefixedEnum = UNPREFIXED_B

func (MyCustomUnprefixedEnum) Enum

func (MyCustomUnprefixedEnum) EnumDescriptor

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

func (MyCustomUnprefixedEnum) MarshalJSON

func (x MyCustomUnprefixedEnum) MarshalJSON() ([]byte, error)

func (*MyCustomUnprefixedEnum) UnmarshalJSON

func (x *MyCustomUnprefixedEnum) UnmarshalJSON(data []byte) error

type MyEnumWithEnumStringer

type MyEnumWithEnumStringer int32
const (
	MyEnumWithEnumStringer_EnumValueStringerA MyEnumWithEnumStringer = 0
	MyEnumWithEnumStringer_STRINGER_B         MyEnumWithEnumStringer = 1
)

func (MyEnumWithEnumStringer) Enum

func (MyEnumWithEnumStringer) EnumDescriptor

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

func (MyEnumWithEnumStringer) MarshalJSON

func (x MyEnumWithEnumStringer) MarshalJSON() ([]byte, error)

func (MyEnumWithEnumStringer) String

func (x MyEnumWithEnumStringer) String() string

func (*MyEnumWithEnumStringer) UnmarshalJSON

func (x *MyEnumWithEnumStringer) UnmarshalJSON(data []byte) error

type OnlyEnums

type OnlyEnums struct {
	MyEnum                         *MyCustomEnum               `protobuf:"varint,1,opt,name=my_enum,json=myEnum,enum=enumcustomname.MyCustomEnum" json:"my_enum,omitempty"`
	MyEnumDefaultA                 *MyCustomEnum               `` /* 140-byte string literal not displayed */
	MyEnumDefaultB                 *MyCustomEnum               `` /* 140-byte string literal not displayed */
	MyUnprefixedEnum               *MyCustomUnprefixedEnum     `` /* 148-byte string literal not displayed */
	MyUnprefixedEnumDefaultA       *MyCustomUnprefixedEnum     `` /* 182-byte string literal not displayed */
	MyUnprefixedEnumDefaultB       *MyCustomUnprefixedEnum     `` /* 182-byte string literal not displayed */
	YetAnotherTestEnum             *test.YetAnotherTestEnum    `` /* 142-byte string literal not displayed */
	YetAnotherTestEnumDefaultAa    *test.YetAnotherTestEnum    `` /* 179-byte string literal not displayed */
	YetAnotherTestEnumDefaultBb    *test.YetAnotherTestEnum    `` /* 179-byte string literal not displayed */
	YetYetAnotherTestEnum          *test.YetYetAnotherTestEnum `` /* 157-byte string literal not displayed */
	YetYetAnotherTestEnumDefaultCc *test.YetYetAnotherTestEnum `` /* 194-byte string literal not displayed */
	YetYetAnotherTestEnumDefaultDd *test.YetYetAnotherTestEnum `` /* 194-byte string literal not displayed */
	XXX_NoUnkeyedLiteral           struct{}                    `json:"-"`
	XXX_unrecognized               []byte                      `json:"-"`
	XXX_sizecache                  int32                       `json:"-"`
}

func (*OnlyEnums) Descriptor

func (*OnlyEnums) Descriptor() ([]byte, []int)

func (*OnlyEnums) GetMyEnum

func (m *OnlyEnums) GetMyEnum() MyCustomEnum

func (*OnlyEnums) GetMyEnumDefaultA

func (m *OnlyEnums) GetMyEnumDefaultA() MyCustomEnum

func (*OnlyEnums) GetMyEnumDefaultB

func (m *OnlyEnums) GetMyEnumDefaultB() MyCustomEnum

func (*OnlyEnums) GetMyUnprefixedEnum

func (m *OnlyEnums) GetMyUnprefixedEnum() MyCustomUnprefixedEnum

func (*OnlyEnums) GetMyUnprefixedEnumDefaultA

func (m *OnlyEnums) GetMyUnprefixedEnumDefaultA() MyCustomUnprefixedEnum

func (*OnlyEnums) GetMyUnprefixedEnumDefaultB

func (m *OnlyEnums) GetMyUnprefixedEnumDefaultB() MyCustomUnprefixedEnum

func (*OnlyEnums) GetYetAnotherTestEnum

func (m *OnlyEnums) GetYetAnotherTestEnum() test.YetAnotherTestEnum

func (*OnlyEnums) GetYetAnotherTestEnumDefaultAa

func (m *OnlyEnums) GetYetAnotherTestEnumDefaultAa() test.YetAnotherTestEnum

func (*OnlyEnums) GetYetAnotherTestEnumDefaultBb

func (m *OnlyEnums) GetYetAnotherTestEnumDefaultBb() test.YetAnotherTestEnum

func (*OnlyEnums) GetYetYetAnotherTestEnum

func (m *OnlyEnums) GetYetYetAnotherTestEnum() test.YetYetAnotherTestEnum

func (*OnlyEnums) GetYetYetAnotherTestEnumDefaultCc

func (m *OnlyEnums) GetYetYetAnotherTestEnumDefaultCc() test.YetYetAnotherTestEnum

func (*OnlyEnums) GetYetYetAnotherTestEnumDefaultDd

func (m *OnlyEnums) GetYetYetAnotherTestEnumDefaultDd() test.YetYetAnotherTestEnum

func (*OnlyEnums) ProtoMessage

func (*OnlyEnums) ProtoMessage()

func (*OnlyEnums) Reset

func (m *OnlyEnums) Reset()

func (*OnlyEnums) String

func (m *OnlyEnums) String() string

func (*OnlyEnums) XXX_DiscardUnknown added in v1.1.0

func (m *OnlyEnums) XXX_DiscardUnknown()

func (*OnlyEnums) XXX_Marshal added in v1.1.0

func (m *OnlyEnums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OnlyEnums) XXX_Merge added in v1.1.0

func (m *OnlyEnums) XXX_Merge(src proto.Message)

func (*OnlyEnums) XXX_Size added in v1.1.0

func (m *OnlyEnums) XXX_Size() int

func (*OnlyEnums) XXX_Unmarshal added in v1.1.0

func (m *OnlyEnums) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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