Documentation
¶
Index ¶
- Variables
- type Enum
- type MessageWithMap
- func (*MessageWithMap) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithMap) GetMapField() map[int32]string
- func (x *MessageWithMap) GetStringField() string
- func (*MessageWithMap) ProtoMessage()
- func (x *MessageWithMap) ProtoReflect() protoreflect.Message
- func (x *MessageWithMap) Reset()
- func (x *MessageWithMap) String() string
- type MessageWithOneof
- func (*MessageWithOneof) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithOneof) GetInt32OneofField() int32
- func (x *MessageWithOneof) GetInt64OneofField() int64
- func (m *MessageWithOneof) GetOneofField() isMessageWithOneof_OneofField
- func (x *MessageWithOneof) GetStringField() string
- func (*MessageWithOneof) ProtoMessage()
- func (x *MessageWithOneof) ProtoReflect() protoreflect.Message
- func (x *MessageWithOneof) Reset()
- func (x *MessageWithOneof) String() string
- type MessageWithOneof_Int32OneofField
- type MessageWithOneof_Int64OneofField
- type MessageWithRepeatedSubMessage
- func (*MessageWithRepeatedSubMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithRepeatedSubMessage) GetSimpleMessage() []*SimpleMessage
- func (x *MessageWithRepeatedSubMessage) GetStringField() string
- func (*MessageWithRepeatedSubMessage) ProtoMessage()
- func (x *MessageWithRepeatedSubMessage) ProtoReflect() protoreflect.Message
- func (x *MessageWithRepeatedSubMessage) Reset()
- func (x *MessageWithRepeatedSubMessage) String() string
- type MessageWithSubMessage
- func (*MessageWithSubMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithSubMessage) GetSimpleMessage() *SimpleMessage
- func (x *MessageWithSubMessage) GetStringField() string
- func (*MessageWithSubMessage) ProtoMessage()
- func (x *MessageWithSubMessage) ProtoReflect() protoreflect.Message
- func (x *MessageWithSubMessage) Reset()
- func (x *MessageWithSubMessage) String() string
- type MessageWithSubMessageMap
- func (*MessageWithSubMessageMap) Descriptor() ([]byte, []int)deprecated
- func (x *MessageWithSubMessageMap) GetMapField() map[int32]*SimpleMessage
- func (x *MessageWithSubMessageMap) GetStringField() string
- func (*MessageWithSubMessageMap) ProtoMessage()
- func (x *MessageWithSubMessageMap) ProtoReflect() protoreflect.Message
- func (x *MessageWithSubMessageMap) Reset()
- func (x *MessageWithSubMessageMap) String() string
- type RepeatedFieldMessage
- func (*RepeatedFieldMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RepeatedFieldMessage) GetBoolField() []bool
- func (x *RepeatedFieldMessage) GetDoubleField() []float64
- func (x *RepeatedFieldMessage) GetEnumField() []Enum
- func (x *RepeatedFieldMessage) GetFloatField() []float32
- func (x *RepeatedFieldMessage) GetInt32Field() []int32
- func (x *RepeatedFieldMessage) GetInt64Field() []int64
- func (x *RepeatedFieldMessage) GetStringField() []string
- func (*RepeatedFieldMessage) ProtoMessage()
- func (x *RepeatedFieldMessage) ProtoReflect() protoreflect.Message
- func (x *RepeatedFieldMessage) Reset()
- func (x *RepeatedFieldMessage) String() string
- type SimpleMessage
- func (*SimpleMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleMessage) GetBoolField() bool
- func (x *SimpleMessage) GetDoubleField() float64
- func (x *SimpleMessage) GetEnumField() Enum
- func (x *SimpleMessage) GetFloatField() float32
- func (x *SimpleMessage) GetInt32Field() int32
- func (x *SimpleMessage) GetInt64Field() int64
- func (x *SimpleMessage) GetStringField() string
- func (*SimpleMessage) ProtoMessage()
- func (x *SimpleMessage) ProtoReflect() protoreflect.Message
- func (x *SimpleMessage) Reset()
- func (x *SimpleMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Enum_name = map[int32]string{ 0: "VAL_0", 17: "VAL_1", 364: "VAL_2", } Enum_value = map[string]int32{ "VAL_0": 0, "VAL_1": 17, "VAL_2": 364, } )
Enum value maps for Enum.
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum int32
func (Enum) Descriptor ¶
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (Enum) EnumDescriptor
deprecated
func (Enum) Number ¶
func (x Enum) Number() protoreflect.EnumNumber
func (Enum) Type ¶
func (Enum) Type() protoreflect.EnumType
type MessageWithMap ¶
type MessageWithMap struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` MapField map[int32]string `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MessageWithMap) Descriptor
deprecated
func (*MessageWithMap) Descriptor() ([]byte, []int)
Deprecated: Use MessageWithMap.ProtoReflect.Descriptor instead.
func (*MessageWithMap) GetMapField ¶
func (x *MessageWithMap) GetMapField() map[int32]string
func (*MessageWithMap) GetStringField ¶
func (x *MessageWithMap) GetStringField() string
func (*MessageWithMap) ProtoMessage ¶
func (*MessageWithMap) ProtoMessage()
func (*MessageWithMap) ProtoReflect ¶
func (x *MessageWithMap) ProtoReflect() protoreflect.Message
func (*MessageWithMap) Reset ¶
func (x *MessageWithMap) Reset()
func (*MessageWithMap) String ¶
func (x *MessageWithMap) String() string
type MessageWithOneof ¶
type MessageWithOneof struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` // Types that are assignable to OneofField: // *MessageWithOneof_Int32OneofField // *MessageWithOneof_Int64OneofField OneofField isMessageWithOneof_OneofField `protobuf_oneof:"oneof_field"` // contains filtered or unexported fields }
func (*MessageWithOneof) Descriptor
deprecated
func (*MessageWithOneof) Descriptor() ([]byte, []int)
Deprecated: Use MessageWithOneof.ProtoReflect.Descriptor instead.
func (*MessageWithOneof) GetInt32OneofField ¶
func (x *MessageWithOneof) GetInt32OneofField() int32
func (*MessageWithOneof) GetInt64OneofField ¶
func (x *MessageWithOneof) GetInt64OneofField() int64
func (*MessageWithOneof) GetOneofField ¶
func (m *MessageWithOneof) GetOneofField() isMessageWithOneof_OneofField
func (*MessageWithOneof) GetStringField ¶
func (x *MessageWithOneof) GetStringField() string
func (*MessageWithOneof) ProtoMessage ¶
func (*MessageWithOneof) ProtoMessage()
func (*MessageWithOneof) ProtoReflect ¶
func (x *MessageWithOneof) ProtoReflect() protoreflect.Message
func (*MessageWithOneof) Reset ¶
func (x *MessageWithOneof) Reset()
func (*MessageWithOneof) String ¶
func (x *MessageWithOneof) String() string
type MessageWithOneof_Int32OneofField ¶
type MessageWithOneof_Int32OneofField struct {
Int32OneofField int32 `protobuf:"varint,2,opt,name=int32_oneof_field,json=int32OneofField,proto3,oneof"`
}
type MessageWithOneof_Int64OneofField ¶
type MessageWithOneof_Int64OneofField struct {
Int64OneofField int64 `protobuf:"varint,3,opt,name=int64_oneof_field,json=int64OneofField,proto3,oneof"`
}
type MessageWithRepeatedSubMessage ¶
type MessageWithRepeatedSubMessage struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` SimpleMessage []*SimpleMessage `protobuf:"bytes,2,rep,name=simple_message,json=simpleMessage,proto3" json:"simple_message,omitempty"` // contains filtered or unexported fields }
func (*MessageWithRepeatedSubMessage) Descriptor
deprecated
func (*MessageWithRepeatedSubMessage) Descriptor() ([]byte, []int)
Deprecated: Use MessageWithRepeatedSubMessage.ProtoReflect.Descriptor instead.
func (*MessageWithRepeatedSubMessage) GetSimpleMessage ¶
func (x *MessageWithRepeatedSubMessage) GetSimpleMessage() []*SimpleMessage
func (*MessageWithRepeatedSubMessage) GetStringField ¶
func (x *MessageWithRepeatedSubMessage) GetStringField() string
func (*MessageWithRepeatedSubMessage) ProtoMessage ¶
func (*MessageWithRepeatedSubMessage) ProtoMessage()
func (*MessageWithRepeatedSubMessage) ProtoReflect ¶
func (x *MessageWithRepeatedSubMessage) ProtoReflect() protoreflect.Message
func (*MessageWithRepeatedSubMessage) Reset ¶
func (x *MessageWithRepeatedSubMessage) Reset()
func (*MessageWithRepeatedSubMessage) String ¶
func (x *MessageWithRepeatedSubMessage) String() string
type MessageWithSubMessage ¶
type MessageWithSubMessage struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` SimpleMessage *SimpleMessage `protobuf:"bytes,2,opt,name=simple_message,json=simpleMessage,proto3" json:"simple_message,omitempty"` // contains filtered or unexported fields }
func (*MessageWithSubMessage) Descriptor
deprecated
func (*MessageWithSubMessage) Descriptor() ([]byte, []int)
Deprecated: Use MessageWithSubMessage.ProtoReflect.Descriptor instead.
func (*MessageWithSubMessage) GetSimpleMessage ¶
func (x *MessageWithSubMessage) GetSimpleMessage() *SimpleMessage
func (*MessageWithSubMessage) GetStringField ¶
func (x *MessageWithSubMessage) GetStringField() string
func (*MessageWithSubMessage) ProtoMessage ¶
func (*MessageWithSubMessage) ProtoMessage()
func (*MessageWithSubMessage) ProtoReflect ¶
func (x *MessageWithSubMessage) ProtoReflect() protoreflect.Message
func (*MessageWithSubMessage) Reset ¶
func (x *MessageWithSubMessage) Reset()
func (*MessageWithSubMessage) String ¶
func (x *MessageWithSubMessage) String() string
type MessageWithSubMessageMap ¶
type MessageWithSubMessageMap struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` MapField map[int32]*SimpleMessage `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MessageWithSubMessageMap) Descriptor
deprecated
func (*MessageWithSubMessageMap) Descriptor() ([]byte, []int)
Deprecated: Use MessageWithSubMessageMap.ProtoReflect.Descriptor instead.
func (*MessageWithSubMessageMap) GetMapField ¶
func (x *MessageWithSubMessageMap) GetMapField() map[int32]*SimpleMessage
func (*MessageWithSubMessageMap) GetStringField ¶
func (x *MessageWithSubMessageMap) GetStringField() string
func (*MessageWithSubMessageMap) ProtoMessage ¶
func (*MessageWithSubMessageMap) ProtoMessage()
func (*MessageWithSubMessageMap) ProtoReflect ¶
func (x *MessageWithSubMessageMap) ProtoReflect() protoreflect.Message
func (*MessageWithSubMessageMap) Reset ¶
func (x *MessageWithSubMessageMap) Reset()
func (*MessageWithSubMessageMap) String ¶
func (x *MessageWithSubMessageMap) String() string
type RepeatedFieldMessage ¶
type RepeatedFieldMessage struct { StringField []string `protobuf:"bytes,1,rep,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` Int32Field []int32 `protobuf:"varint,2,rep,packed,name=int32_field,json=int32Field,proto3" json:"int32_field,omitempty"` Int64Field []int64 `protobuf:"varint,3,rep,packed,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"` FloatField []float32 `protobuf:"fixed32,4,rep,packed,name=float_field,json=floatField,proto3" json:"float_field,omitempty"` DoubleField []float64 `protobuf:"fixed64,5,rep,packed,name=double_field,json=doubleField,proto3" json:"double_field,omitempty"` BoolField []bool `protobuf:"varint,6,rep,packed,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"` EnumField []Enum `protobuf:"varint,7,rep,packed,name=enum_field,json=enumField,proto3,enum=protobson.test.Enum" json:"enum_field,omitempty"` // contains filtered or unexported fields }
func (*RepeatedFieldMessage) Descriptor
deprecated
func (*RepeatedFieldMessage) Descriptor() ([]byte, []int)
Deprecated: Use RepeatedFieldMessage.ProtoReflect.Descriptor instead.
func (*RepeatedFieldMessage) GetBoolField ¶
func (x *RepeatedFieldMessage) GetBoolField() []bool
func (*RepeatedFieldMessage) GetDoubleField ¶
func (x *RepeatedFieldMessage) GetDoubleField() []float64
func (*RepeatedFieldMessage) GetEnumField ¶
func (x *RepeatedFieldMessage) GetEnumField() []Enum
func (*RepeatedFieldMessage) GetFloatField ¶
func (x *RepeatedFieldMessage) GetFloatField() []float32
func (*RepeatedFieldMessage) GetInt32Field ¶
func (x *RepeatedFieldMessage) GetInt32Field() []int32
func (*RepeatedFieldMessage) GetInt64Field ¶
func (x *RepeatedFieldMessage) GetInt64Field() []int64
func (*RepeatedFieldMessage) GetStringField ¶
func (x *RepeatedFieldMessage) GetStringField() []string
func (*RepeatedFieldMessage) ProtoMessage ¶
func (*RepeatedFieldMessage) ProtoMessage()
func (*RepeatedFieldMessage) ProtoReflect ¶
func (x *RepeatedFieldMessage) ProtoReflect() protoreflect.Message
func (*RepeatedFieldMessage) Reset ¶
func (x *RepeatedFieldMessage) Reset()
func (*RepeatedFieldMessage) String ¶
func (x *RepeatedFieldMessage) String() string
type SimpleMessage ¶
type SimpleMessage struct { StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"` Int32Field int32 `protobuf:"varint,2,opt,name=int32_field,json=int32Field,proto3" json:"int32_field,omitempty"` Int64Field int64 `protobuf:"varint,3,opt,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"` FloatField float32 `protobuf:"fixed32,4,opt,name=float_field,json=floatField,proto3" json:"float_field,omitempty"` DoubleField float64 `protobuf:"fixed64,5,opt,name=double_field,json=doubleField,proto3" json:"double_field,omitempty"` BoolField bool `protobuf:"varint,6,opt,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"` EnumField Enum `protobuf:"varint,7,opt,name=enum_field,json=enumField,proto3,enum=protobson.test.Enum" json:"enum_field,omitempty"` // contains filtered or unexported fields }
func (*SimpleMessage) Descriptor
deprecated
func (*SimpleMessage) Descriptor() ([]byte, []int)
Deprecated: Use SimpleMessage.ProtoReflect.Descriptor instead.
func (*SimpleMessage) GetBoolField ¶
func (x *SimpleMessage) GetBoolField() bool
func (*SimpleMessage) GetDoubleField ¶
func (x *SimpleMessage) GetDoubleField() float64
func (*SimpleMessage) GetEnumField ¶
func (x *SimpleMessage) GetEnumField() Enum
func (*SimpleMessage) GetFloatField ¶
func (x *SimpleMessage) GetFloatField() float32
func (*SimpleMessage) GetInt32Field ¶
func (x *SimpleMessage) GetInt32Field() int32
func (*SimpleMessage) GetInt64Field ¶
func (x *SimpleMessage) GetInt64Field() int64
func (*SimpleMessage) GetStringField ¶
func (x *SimpleMessage) GetStringField() string
func (*SimpleMessage) ProtoMessage ¶
func (*SimpleMessage) ProtoMessage()
func (*SimpleMessage) ProtoReflect ¶
func (x *SimpleMessage) ProtoReflect() protoreflect.Message
func (*SimpleMessage) Reset ¶
func (x *SimpleMessage) Reset()
func (*SimpleMessage) String ¶
func (x *SimpleMessage) String() string
Click to show internal directories.
Click to hide internal directories.