Documentation ¶
Index ¶
- Variables
- type Basic
- func (*Basic) Descriptor() ([]byte, []int)deprecated
- func (x *Basic) GetA() string
- func (m *Basic) GetB() isBasic_B
- func (x *Basic) GetInt() int32
- func (x *Basic) GetMap() map[string]string
- func (x *Basic) GetO() string
- func (x *Basic) GetStr() string
- func (msg *Basic) MarshalJSON() ([]byte, error)
- func (*Basic) ProtoMessage()
- func (x *Basic) ProtoReflect() protoreflect.Message
- func (x *Basic) Reset()
- func (x *Basic) String() string
- func (msg *Basic) UnmarshalJSON(b []byte) error
- type Basic_Int
- type Basic_Str
- type Enum
- func (Enum) Descriptor() protoreflect.EnumDescriptor
- func (x Enum) Enum() *Enum
- func (Enum) EnumDescriptor() ([]byte, []int)deprecated
- func (enum Enum) MarshalJSON() ([]byte, error)
- func (x Enum) Number() protoreflect.EnumNumber
- func (x Enum) String() string
- func (Enum) Type() protoreflect.EnumType
- func (enum *Enum) UnmarshalJSON(b []byte) error
- type EnumParent
- func (*EnumParent) Descriptor() ([]byte, []int)deprecated
- func (x *EnumParent) GetEnum() EnumParent_EnumChild
- func (msg *EnumParent) MarshalJSON() ([]byte, error)
- func (*EnumParent) ProtoMessage()
- func (x *EnumParent) ProtoReflect() protoreflect.Message
- func (x *EnumParent) Reset()
- func (x *EnumParent) String() string
- func (msg *EnumParent) UnmarshalJSON(b []byte) error
- type EnumParent_EnumChild
- func (EnumParent_EnumChild) Descriptor() protoreflect.EnumDescriptor
- func (x EnumParent_EnumChild) Enum() *EnumParent_EnumChild
- func (EnumParent_EnumChild) EnumDescriptor() ([]byte, []int)deprecated
- func (enum EnumParent_EnumChild) MarshalJSON() ([]byte, error)
- func (x EnumParent_EnumChild) Number() protoreflect.EnumNumber
- func (x EnumParent_EnumChild) String() string
- func (EnumParent_EnumChild) Type() protoreflect.EnumType
- func (enum *EnumParent_EnumChild) UnmarshalJSON(b []byte) error
- type Nested
- type Nested_Message
- func (*Nested_Message) Descriptor() ([]byte, []int)deprecated
- func (x *Nested_Message) GetBasic() *Basic
- func (msg *Nested_Message) MarshalJSON() ([]byte, error)
- func (*Nested_Message) ProtoMessage()
- func (x *Nested_Message) ProtoReflect() protoreflect.Message
- func (x *Nested_Message) Reset()
- func (x *Nested_Message) String() string
- func (msg *Nested_Message) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( Enum_name = map[int32]string{ 0: "A", 1: "B", 2: "C", } Enum_value = map[string]int32{ "A": 0, "B": 1, "C": 2, } )
Enum value maps for Enum.
var ( EnumParent_EnumChild_name = map[int32]string{ 0: "D", 1: "E", 2: "F", } EnumParent_EnumChild_value = map[string]int32{ "D": 0, "E": 1, "F": 2, } )
Enum value maps for EnumParent_EnumChild.
var File_e2e_enum_proto protoreflect.FileDescriptor
var File_e2e_proto protoreflect.FileDescriptor
var File_e2e_service_proto protoreflect.FileDescriptor
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 assignable to B: // // *Basic_Int // *Basic_Str B isBasic_B `protobuf_oneof:"b"` Map map[string]string `` /* 147-byte string literal not displayed */ O *string `protobuf:"bytes,5,opt,name=o,proto3,oneof" json:"o,omitempty"` // contains filtered or unexported fields }
Basic just tests basic fields, including oneofs and so on that don't generally work automatically with encoding/json.
func (*Basic) Descriptor
deprecated
func (*Basic) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Basic) ProtoMessage ¶
func (*Basic) ProtoMessage()
func (*Basic) ProtoReflect ¶
func (x *Basic) ProtoReflect() protoreflect.Message
func (*Basic) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
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 Enum ¶
type Enum int32
func (Enum) Descriptor ¶
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
func (Enum) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
func (*Enum) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type EnumParent ¶
type EnumParent struct { Enum EnumParent_EnumChild `protobuf:"varint,1,opt,name=enum,proto3,enum=e2e.EnumParent_EnumChild" json:"enum,omitempty"` // contains filtered or unexported fields }
func (*EnumParent) Descriptor
deprecated
func (*EnumParent) Descriptor() ([]byte, []int)
Deprecated: Use EnumParent.ProtoReflect.Descriptor instead.
func (*EnumParent) GetEnum ¶
func (x *EnumParent) GetEnum() EnumParent_EnumChild
func (*EnumParent) MarshalJSON ¶
func (msg *EnumParent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*EnumParent) ProtoMessage ¶
func (*EnumParent) ProtoMessage()
func (*EnumParent) ProtoReflect ¶
func (x *EnumParent) ProtoReflect() protoreflect.Message
func (*EnumParent) Reset ¶
func (x *EnumParent) Reset()
func (*EnumParent) String ¶
func (x *EnumParent) String() string
func (*EnumParent) UnmarshalJSON ¶
func (msg *EnumParent) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type EnumParent_EnumChild ¶
type EnumParent_EnumChild int32
const ( EnumParent_D EnumParent_EnumChild = 0 EnumParent_E EnumParent_EnumChild = 1 EnumParent_F EnumParent_EnumChild = 2 )
func (EnumParent_EnumChild) Descriptor ¶
func (EnumParent_EnumChild) Descriptor() protoreflect.EnumDescriptor
func (EnumParent_EnumChild) Enum ¶
func (x EnumParent_EnumChild) Enum() *EnumParent_EnumChild
func (EnumParent_EnumChild) EnumDescriptor
deprecated
func (EnumParent_EnumChild) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumParent_EnumChild.Descriptor instead.
func (EnumParent_EnumChild) MarshalJSON ¶
func (enum EnumParent_EnumChild) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (EnumParent_EnumChild) Number ¶
func (x EnumParent_EnumChild) Number() protoreflect.EnumNumber
func (EnumParent_EnumChild) String ¶
func (x EnumParent_EnumChild) String() string
func (EnumParent_EnumChild) Type ¶
func (EnumParent_EnumChild) Type() protoreflect.EnumType
func (*EnumParent_EnumChild) UnmarshalJSON ¶
func (enum *EnumParent_EnumChild) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type Nested ¶
type Nested struct {
// contains filtered or unexported fields
}
Test nested types
func (*Nested) Descriptor
deprecated
func (*Nested) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶
func (x *Nested) ProtoReflect() protoreflect.Message
func (*Nested) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type Nested_Message ¶
type Nested_Message struct { Basic *Basic `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"` // contains filtered or unexported fields }
func (*Nested_Message) Descriptor
deprecated
func (*Nested_Message) Descriptor() ([]byte, []int)
Deprecated: Use Nested_Message.ProtoReflect.Descriptor instead.
func (*Nested_Message) GetBasic ¶
func (x *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) ProtoReflect ¶
func (x *Nested_Message) ProtoReflect() protoreflect.Message
func (*Nested_Message) Reset ¶
func (x *Nested_Message) Reset()
func (*Nested_Message) String ¶
func (x *Nested_Message) String() string
func (*Nested_Message) UnmarshalJSON ¶
func (msg *Nested_Message) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler