enumdecl

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEnumdecl        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEnumdecl          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEnumdecl = fmt.Errorf("proto: unexpected end of group")
)
View Source
var MyEnum_name = map[int32]string{
	0: "A",
	1: "B",
}
View Source
var MyEnum_value = map[string]int32{
	"A": 0,
	"B": 1,
}

Functions

This section is empty.

Types

type Message

type Message struct {
	EnumeratedField      MyEnum   `` /* 128-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedMessage

func NewPopulatedMessage(r randyEnumdecl, easy bool) *Message

func (*Message) Descriptor

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

func (*Message) Equal

func (this *Message) Equal(that interface{}) bool

func (*Message) GetEnumeratedField

func (m *Message) GetEnumeratedField() MyEnum

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer added in v1.3.0

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) VerboseEqual

func (this *Message) VerboseEqual(that interface{}) error

func (*Message) XXX_DiscardUnknown added in v1.1.0

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal added in v1.1.0

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

func (*Message) XXX_Merge added in v1.1.0

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

func (*Message) XXX_Size added in v1.1.0

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal added in v1.1.0

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

type MyEnum

type MyEnum int32
const (
	A MyEnum = iota
	B MyEnum = iota
)

func (MyEnum) EnumDescriptor

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

func (MyEnum) String

func (x MyEnum) String() string

Jump to

Keyboard shortcuts

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