Documentation ¶
Index ¶
- type Basic
- func (*Basic) Descriptor() ([]byte, []int)
- func (m *Basic) GetA() string
- func (m *Basic) GetB() isBasic_B
- func (m *Basic) GetInt() int32
- func (m *Basic) GetMap() map[string]string
- func (m *Basic) GetStr() string
- func (msg *Basic) MarshalJSON() ([]byte, error)
- func (*Basic) ProtoMessage()
- func (m *Basic) Reset()
- func (m *Basic) String() string
- func (msg *Basic) UnmarshalJSON(b []byte) error
- func (m *Basic) XXX_DiscardUnknown()
- func (m *Basic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Basic) XXX_Merge(src proto.Message)
- func (*Basic) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Basic) XXX_Size() int
- func (m *Basic) XXX_Unmarshal(b []byte) error
- type Basic_Int
- type Basic_Str
- type Nested
- func (*Nested) Descriptor() ([]byte, []int)
- func (msg *Nested) MarshalJSON() ([]byte, error)
- func (*Nested) ProtoMessage()
- func (m *Nested) Reset()
- func (m *Nested) String() string
- func (msg *Nested) UnmarshalJSON(b []byte) error
- func (m *Nested) XXX_DiscardUnknown()
- func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Nested) XXX_Merge(src proto.Message)
- func (m *Nested) XXX_Size() int
- func (m *Nested) XXX_Unmarshal(b []byte) error
- type Nested_Message
- func (*Nested_Message) Descriptor() ([]byte, []int)
- func (m *Nested_Message) GetBasic() *Basic
- func (msg *Nested_Message) MarshalJSON() ([]byte, error)
- func (*Nested_Message) ProtoMessage()
- func (m *Nested_Message) Reset()
- func (m *Nested_Message) String() string
- func (msg *Nested_Message) UnmarshalJSON(b []byte) error
- func (m *Nested_Message) XXX_DiscardUnknown()
- func (m *Nested_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Nested_Message) XXX_Merge(src proto.Message)
- func (m *Nested_Message) XXX_Size() int
- func (m *Nested_Message) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // Types that are valid to be assigned to B: // *Basic_Int // *Basic_Str B isBasic_B `protobuf_oneof:"b"` Map map[string]string `` /* 147-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Basic just tests basic fields, including oneofs and so on that don't generally work automatically with encoding/json.
func (*Basic) Descriptor ¶
func (*Basic) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Basic) ProtoMessage ¶
func (*Basic) ProtoMessage()
func (*Basic) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*Basic) XXX_DiscardUnknown ¶
func (m *Basic) XXX_DiscardUnknown()
func (*Basic) XXX_Marshal ¶
func (*Basic) XXX_OneofFuncs ¶
func (*Basic) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Basic) XXX_Unmarshal ¶
type Basic_Int ¶
type Basic_Int struct {
Int int32 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
}
type Basic_Str ¶
type Basic_Str struct {
Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"`
}
type Nested ¶
type Nested struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Test nested types
func (*Nested) Descriptor ¶
func (*Nested) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*Nested) XXX_DiscardUnknown ¶
func (m *Nested) XXX_DiscardUnknown()
func (*Nested) XXX_Marshal ¶
func (*Nested) XXX_Unmarshal ¶
type Nested_Message ¶
type Nested_Message struct { Basic *Basic `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Nested_Message) Descriptor ¶
func (*Nested_Message) Descriptor() ([]byte, []int)
func (*Nested_Message) GetBasic ¶
func (m *Nested_Message) GetBasic() *Basic
func (*Nested_Message) MarshalJSON ¶
func (msg *Nested_Message) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*Nested_Message) ProtoMessage ¶
func (*Nested_Message) ProtoMessage()
func (*Nested_Message) Reset ¶
func (m *Nested_Message) Reset()
func (*Nested_Message) String ¶
func (m *Nested_Message) String() string
func (*Nested_Message) UnmarshalJSON ¶
func (msg *Nested_Message) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*Nested_Message) XXX_DiscardUnknown ¶
func (m *Nested_Message) XXX_DiscardUnknown()
func (*Nested_Message) XXX_Marshal ¶
func (m *Nested_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Nested_Message) XXX_Merge ¶
func (dst *Nested_Message) XXX_Merge(src proto.Message)
func (*Nested_Message) XXX_Size ¶
func (m *Nested_Message) XXX_Size() int
func (*Nested_Message) XXX_Unmarshal ¶
func (m *Nested_Message) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.