Documentation ¶
Overview ¶
Package simple is a generated protocol buffer package.
It is generated from these files:
simple.proto
It has these top-level messages:
Simple Test Nested
Index ¶
- Variables
- type Nested
- func (*Nested) Descriptor() ([]byte, []int)
- func (m *Nested) GetNestedMessage() *Test
- func (m *Nested) Marshal() (dAtA []byte, err error)
- func (m *Nested) MarshalTo(dAtA []byte) (int, error)
- func (*Nested) ProtoMessage()
- func (m *Nested) Reset()
- func (m *Nested) Size() (n int)
- func (m *Nested) String() string
- func (m *Nested) Unmarshal(dAtA []byte) error
- type Simple
- func (*Simple) Descriptor() ([]byte, []int)
- func (m *Simple) GetBool() bool
- func (m *Simple) GetBytes() []byte
- func (m *Simple) GetDouble() float64
- func (m *Simple) GetFixed32() uint32
- func (m *Simple) GetFixed64() uint64
- func (m *Simple) GetFloat() float32
- func (m *Simple) GetInt32() int32
- func (m *Simple) GetInt64() int64
- func (m *Simple) GetRepeatedInt64Packed() []int64
- func (m *Simple) GetSfixed32() int32
- func (m *Simple) GetSfixed64() int64
- func (m *Simple) GetSint32() int32
- func (m *Simple) GetSint64() int64
- func (m *Simple) GetString_() string
- func (m *Simple) GetUint32() uint32
- func (m *Simple) GetUint64() uint64
- func (m *Simple) Marshal() (dAtA []byte, err error)
- func (m *Simple) MarshalTo(dAtA []byte) (int, error)
- func (*Simple) ProtoMessage()
- func (m *Simple) Reset()
- func (m *Simple) Size() (n int)
- func (m *Simple) String() string
- func (m *Simple) Unmarshal(dAtA []byte) error
- type Test
- func (*Test) Descriptor() ([]byte, []int)
- func (m *Test) GetInt64Field() int64
- func (m *Test) GetRepeatedInt64Field() []int64
- func (m *Test) GetStringField() string
- func (m *Test) Marshal() (dAtA []byte, err error)
- func (m *Test) MarshalTo(dAtA []byte) (int, error)
- func (*Test) ProtoMessage()
- func (m *Test) Reset()
- func (m *Test) Size() (n int)
- func (m *Test) String() string
- func (m *Test) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSimple = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSimple = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Nested ¶
type Nested struct {
NestedMessage *Test `protobuf:"bytes,1,opt,name=nested_message,json=nestedMessage" json:"nested_message,omitempty"`
}
func (*Nested) Descriptor ¶
func (*Nested) GetNestedMessage ¶
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
type Simple ¶
type Simple struct { Double float64 `protobuf:"fixed64,1,opt,name=double,proto3" json:"double,omitempty"` Float float32 `protobuf:"fixed32,2,opt,name=float,proto3" json:"float,omitempty"` Int32 int32 `protobuf:"varint,3,opt,name=int32,proto3" json:"int32,omitempty"` Int64 int64 `protobuf:"varint,4,opt,name=int64,proto3" json:"int64,omitempty"` Uint32 uint32 `protobuf:"varint,5,opt,name=uint32,proto3" json:"uint32,omitempty"` Uint64 uint64 `protobuf:"varint,6,opt,name=uint64,proto3" json:"uint64,omitempty"` Sint32 int32 `protobuf:"zigzag32,7,opt,name=sint32,proto3" json:"sint32,omitempty"` Sint64 int64 `protobuf:"zigzag64,8,opt,name=sint64,proto3" json:"sint64,omitempty"` Fixed32 uint32 `protobuf:"fixed32,9,opt,name=fixed32,proto3" json:"fixed32,omitempty"` Fixed64 uint64 `protobuf:"fixed64,10,opt,name=fixed64,proto3" json:"fixed64,omitempty"` Sfixed32 int32 `protobuf:"fixed32,11,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"` Sfixed64 int64 `protobuf:"fixed64,12,opt,name=sfixed64,proto3" json:"sfixed64,omitempty"` Bool bool `protobuf:"varint,13,opt,name=bool,proto3" json:"bool,omitempty"` String_ string `protobuf:"bytes,14,opt,name=string,proto3" json:"string,omitempty"` Bytes []byte `protobuf:"bytes,15,opt,name=bytes,proto3" json:"bytes,omitempty"` RepeatedInt64Packed []int64 `protobuf:"varint,16,rep,packed,name=repeated_int64_packed,json=repeatedInt64Packed" json:"repeated_int64_packed,omitempty"` }
func (*Simple) Descriptor ¶
func (*Simple) GetFixed32 ¶
func (*Simple) GetFixed64 ¶
func (*Simple) GetRepeatedInt64Packed ¶
func (*Simple) GetSfixed32 ¶
func (*Simple) GetSfixed64 ¶
func (*Simple) GetString_ ¶
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
type Test ¶
type Test struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` Int64Field int64 `protobuf:"varint,2,opt,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"` RepeatedInt64Field []int64 `protobuf:"varint,3,rep,packed,name=repeated_int64_field,json=repeatedInt64Field" json:"repeated_int64_field,omitempty"` }
func (*Test) Descriptor ¶
func (*Test) GetInt64Field ¶
func (*Test) GetRepeatedInt64Field ¶
func (*Test) GetStringField ¶
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.