Documentation
¶
Index ¶
- Variables
- type Enum
- type Enums
- func (*Enums) Descriptor() ([]byte, []int)deprecated
- func (x *Enums) GetSEnum() Enum
- func (x *Enums) GetSNestedEnum() Enums_NestedEnum
- func (*Enums) ProtoMessage()
- func (x *Enums) ProtoReflect() protoreflect.Message
- func (x *Enums) Reset()
- func (x *Enums) String() string
- func (m *Enums) XXX_Methods() *protoiface.Methods
- type Enums_NestedEnum
- type JSONNames
- func (*JSONNames) Descriptor() ([]byte, []int)deprecated
- func (x *JSONNames) GetSString() string
- func (*JSONNames) ProtoMessage()
- func (x *JSONNames) ProtoReflect() protoreflect.Message
- func (x *JSONNames) Reset()
- func (x *JSONNames) String() string
- func (m *JSONNames) XXX_Methods() *protoiface.Methods
- type Maps
- func (*Maps) Descriptor() ([]byte, []int)deprecated
- func (x *Maps) GetBoolToUint32() map[bool]uint32
- func (x *Maps) GetInt32ToStr() map[int32]string
- func (x *Maps) GetStrToNested() map[string]*Nested
- func (x *Maps) GetStrToOneofs() map[string]*Oneofs
- func (x *Maps) GetUint64ToEnum() map[uint64]Enum
- func (*Maps) ProtoMessage()
- func (x *Maps) ProtoReflect() protoreflect.Message
- func (x *Maps) Reset()
- func (x *Maps) String() string
- func (m *Maps) XXX_Methods() *protoiface.Methods
- type Nested
- func (*Nested) Descriptor() ([]byte, []int)deprecated
- func (x *Nested) GetSNested() *Nested
- func (x *Nested) GetSString() string
- func (*Nested) ProtoMessage()
- func (x *Nested) ProtoReflect() protoreflect.Message
- func (x *Nested) Reset()
- func (x *Nested) String() string
- func (m *Nested) XXX_Methods() *protoiface.Methods
- type Nests
- type Oneofs
- func (*Oneofs) Descriptor() ([]byte, []int)deprecated
- func (x *Oneofs) GetOneofEnum() Enum
- func (x *Oneofs) GetOneofNested() *Nested
- func (x *Oneofs) GetOneofString() string
- func (m *Oneofs) GetUnion() isOneofs_Union
- func (*Oneofs) ProtoMessage()
- func (x *Oneofs) ProtoReflect() protoreflect.Message
- func (x *Oneofs) Reset()
- func (x *Oneofs) String() string
- func (m *Oneofs) XXX_Methods() *protoiface.Methods
- func (*Oneofs) XXX_OneofWrappers() []interface{}
- type Oneofs_OneofEnum
- type Oneofs_OneofNested
- type Oneofs_OneofString
- type Scalars
- func (*Scalars) Descriptor() ([]byte, []int)deprecated
- func (x *Scalars) GetSBool() bool
- func (x *Scalars) GetSBytes() []byte
- func (x *Scalars) GetSDouble() float64
- func (x *Scalars) GetSFixed32() uint32
- func (x *Scalars) GetSFixed64() uint64
- func (x *Scalars) GetSFloat() float32
- func (x *Scalars) GetSInt32() int32
- func (x *Scalars) GetSInt64() int64
- func (x *Scalars) GetSSfixed32() int32
- func (x *Scalars) GetSSfixed64() int64
- func (x *Scalars) GetSSint32() int32
- func (x *Scalars) GetSSint64() int64
- func (x *Scalars) GetSString() string
- func (x *Scalars) GetSUint32() uint32
- func (x *Scalars) GetSUint64() uint64
- func (*Scalars) ProtoMessage()
- func (x *Scalars) ProtoReflect() protoreflect.Message
- func (x *Scalars) Reset()
- func (x *Scalars) String() string
- func (m *Scalars) XXX_Methods() *protoiface.Methods
Constants ¶
This section is empty.
Variables ¶
View Source
var Enum_name = map[int32]string{
0: "ZERO",
1: "ONE",
2: "TWO",
10: "TEN",
}
Deprecated: Use Enum.Type.Values instead.
View Source
var Enum_value = map[string]int32{
"ZERO": 0,
"ONE": 1,
"TWO": 2,
"TEN": 10,
}
Deprecated: Use Enum.Type.Values instead.
View Source
var Enums_NestedEnum_name = map[int32]string{
0: "CERO",
1: "UNO",
2: "DOS",
10: "DIEZ",
}
Deprecated: Use Enums_NestedEnum.Type.Values instead.
View Source
var Enums_NestedEnum_value = map[string]int32{
"CERO": 0,
"UNO": 1,
"DOS": 2,
"DIEZ": 10,
}
Deprecated: Use Enums_NestedEnum.Type.Values instead.
View Source
var File_pb3_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum int32
func (Enum) EnumDescriptor
deprecated
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
type Enums ¶
type Enums struct { SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"` SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Message contains enum fields.
func (*Enums) Descriptor
deprecated
func (*Enums) GetSNestedEnum ¶
func (x *Enums) GetSNestedEnum() Enums_NestedEnum
func (*Enums) ProtoMessage ¶
func (*Enums) ProtoMessage()
func (*Enums) ProtoReflect ¶
func (x *Enums) ProtoReflect() protoreflect.Message
func (*Enums) XXX_Methods ¶
func (m *Enums) XXX_Methods() *protoiface.Methods
type Enums_NestedEnum ¶
type Enums_NestedEnum int32
const ( Enums_CERO Enums_NestedEnum = 0 Enums_UNO Enums_NestedEnum = 1 Enums_DOS Enums_NestedEnum = 2 Enums_DIEZ Enums_NestedEnum = 10 )
func (Enums_NestedEnum) EnumDescriptor
deprecated
func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use Enums_NestedEnum.Type instead.
func (Enums_NestedEnum) Number ¶
func (x Enums_NestedEnum) Number() protoreflect.EnumNumber
func (Enums_NestedEnum) String ¶
func (x Enums_NestedEnum) String() string
func (Enums_NestedEnum) Type ¶
func (Enums_NestedEnum) Type() protoreflect.EnumType
type JSONNames ¶
type JSONNames struct { SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Message for testing json_name option.
func (*JSONNames) Descriptor
deprecated
func (*JSONNames) GetSString ¶
func (*JSONNames) ProtoMessage ¶
func (*JSONNames) ProtoMessage()
func (*JSONNames) ProtoReflect ¶
func (x *JSONNames) ProtoReflect() protoreflect.Message
func (*JSONNames) XXX_Methods ¶
func (m *JSONNames) XXX_Methods() *protoiface.Methods
type Maps ¶
type Maps struct { Int32ToStr map[int32]string `` /* 182-byte string literal not displayed */ BoolToUint32 map[bool]uint32 `` /* 189-byte string literal not displayed */ Uint64ToEnum map[uint64]Enum `` /* 203-byte string literal not displayed */ StrToNested map[string]*Nested `` /* 184-byte string literal not displayed */ StrToOneofs map[string]*Oneofs `` /* 184-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Message contains map fields.
func (*Maps) Descriptor
deprecated
func (*Maps) GetBoolToUint32 ¶
func (*Maps) GetInt32ToStr ¶
func (*Maps) GetStrToNested ¶
func (*Maps) GetStrToOneofs ¶
func (*Maps) GetUint64ToEnum ¶
func (*Maps) ProtoMessage ¶
func (*Maps) ProtoMessage()
func (*Maps) ProtoReflect ¶
func (x *Maps) ProtoReflect() protoreflect.Message
func (*Maps) XXX_Methods ¶
func (m *Maps) XXX_Methods() *protoiface.Methods
type Nested ¶
type Nested struct { SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Message type used as submessage.
func (*Nested) Descriptor
deprecated
func (*Nested) GetSNested ¶
func (*Nested) GetSString ¶
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶
func (x *Nested) ProtoReflect() protoreflect.Message
func (*Nested) XXX_Methods ¶
func (m *Nested) XXX_Methods() *protoiface.Methods
type Nests ¶
type Nests struct { SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Message contains nested message field.
func (*Nests) Descriptor
deprecated
func (*Nests) GetSNested ¶
func (*Nests) ProtoMessage ¶
func (*Nests) ProtoMessage()
func (*Nests) ProtoReflect ¶
func (x *Nests) ProtoReflect() protoreflect.Message
func (*Nests) XXX_Methods ¶
func (m *Nests) XXX_Methods() *protoiface.Methods
type Oneofs ¶
type Oneofs struct { // Types that are valid to be assigned to Union: // *Oneofs_OneofEnum // *Oneofs_OneofString // *Oneofs_OneofNested Union isOneofs_Union `protobuf_oneof:"union"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Message contains oneof field.
func (*Oneofs) Descriptor
deprecated
func (*Oneofs) GetOneofEnum ¶
func (*Oneofs) GetOneofNested ¶
func (*Oneofs) GetOneofString ¶
func (*Oneofs) ProtoMessage ¶
func (*Oneofs) ProtoMessage()
func (*Oneofs) ProtoReflect ¶
func (x *Oneofs) ProtoReflect() protoreflect.Message
func (*Oneofs) XXX_Methods ¶
func (m *Oneofs) XXX_Methods() *protoiface.Methods
func (*Oneofs) XXX_OneofWrappers ¶
func (*Oneofs) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
type Oneofs_OneofEnum ¶
type Oneofs_OneofEnum struct {
OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
}
type Oneofs_OneofNested ¶
type Oneofs_OneofNested struct {
OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
}
type Oneofs_OneofString ¶
type Oneofs_OneofString struct {
OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
}
type Scalars ¶
type Scalars struct { SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"` SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"` SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"` SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"` SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"` SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"` SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"` SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"` SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"` SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"` SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"` SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"` SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"` SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"` SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized protoimpl.UnknownFields `json:"-"` XXX_sizecache protoimpl.SizeCache `json:"-"` }
Scalars contains scalar field types.
func (*Scalars) Descriptor
deprecated
func (*Scalars) GetSDouble ¶
func (*Scalars) GetSFixed32 ¶
func (*Scalars) GetSFixed64 ¶
func (*Scalars) GetSSfixed32 ¶
func (*Scalars) GetSSfixed64 ¶
func (*Scalars) GetSSint32 ¶
func (*Scalars) GetSSint64 ¶
func (*Scalars) GetSString ¶
func (*Scalars) GetSUint32 ¶
func (*Scalars) GetSUint64 ¶
func (*Scalars) ProtoMessage ¶
func (*Scalars) ProtoMessage()
func (*Scalars) ProtoReflect ¶
func (x *Scalars) ProtoReflect() protoreflect.Message
func (*Scalars) XXX_Methods ¶
func (m *Scalars) XXX_Methods() *protoiface.Methods
Click to show internal directories.
Click to hide internal directories.