enumdeclall - ActiveState ActiveGo 1.8
...

Package enumdeclall

import "github.com/gogo/protobuf/test/enumdecl_all"
Overview
Index

Overview ▾

Package enumdeclall is a generated protocol buffer package.

It is generated from these files:

enumdeclall.proto

It has these top-level messages:

Message

Variables

var (
    ErrInvalidLengthEnumdeclall = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowEnumdeclall   = fmt.Errorf("proto: integer overflow")
)
var MyEnum_name = map[int32]string{
    0: "A",
    1: "B",
}
var MyEnum_value = map[string]int32{
    "A": 0,
    "B": 1,
}
var MyOtherEnum_name = map[int32]string{
    0: "C",
    1: "D",
}
var MyOtherEnum_value = map[string]int32{
    "C": 0,
    "D": 1,
}

type Message

type Message struct {
    EnumeratedField      MyEnum      `protobuf:"varint,1,opt,name=enumerated_field,json=enumeratedField,proto3,enum=enumdeclall.MyEnum" json:"enumerated_field,omitempty"`
    OtherenumeratedField MyOtherEnum `protobuf:"varint,2,opt,name=otherenumerated_field,json=otherenumeratedField,proto3,enum=enumdeclall.MyOtherEnum" json:"otherenumerated_field,omitempty"`
}

func NewPopulatedMessage

func NewPopulatedMessage(r randyEnumdeclall, 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) GetOtherenumeratedField

func (m *Message) GetOtherenumeratedField() MyOtherEnum

func (*Message) Marshal

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

func (*Message) MarshalTo

func (m *Message) MarshalTo(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

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

type MyOtherEnum

type MyOtherEnum int32
const (
    C MyOtherEnum = 0
    D MyOtherEnum = 1
)

func (MyOtherEnum) EnumDescriptor

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

func (MyOtherEnum) String

func (x MyOtherEnum) String() string