Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (this *Message) Equal(that interface{}) bool
- func (m *Message) GetEnumeratedField() MyEnum
- func (m *Message) GetOtherenumeratedField() MyOtherEnum
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (this *Message) VerboseEqual(that interface{}) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type MyEnum
- type MyOtherEnum
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthEnumdeclall = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEnumdeclall = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEnumdeclall = 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,
}
View Source
var MyOtherEnum_name = map[int32]string{
0: "C",
1: "D",
}
View Source
var MyOtherEnum_value = map[string]int32{
"C": 0,
"D": 1,
}
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { EnumeratedField MyEnum `` /* 131-byte string literal not displayed */ OtherenumeratedField MyOtherEnum `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedMessage ¶
func (*Message) Descriptor ¶
func (*Message) GetEnumeratedField ¶
func (*Message) GetOtherenumeratedField ¶
func (m *Message) GetOtherenumeratedField() MyOtherEnum
func (*Message) MarshalToSizedBuffer ¶ added in v1.3.3
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) VerboseEqual ¶
func (*Message) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶ added in v1.1.0
func (*Message) XXX_Unmarshal ¶ added in v1.1.0
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
Click to show internal directories.
Click to hide internal directories.