Documentation ¶
Index ¶
- Variables
- type Bar
- type EE
- type Field
- type Foo
- func (*Foo) Descriptor() ([]byte, []int)deprecated
- func (x *Foo) GetEe() EE
- func (x *Foo) GetX1() []string
- func (x *Foo) GetX2() string
- func (x *Foo) GetX3() int32
- func (x *Foo) GetX4() map[string]string
- func (x *Foo) GetX5Xyz() string
- func (*Foo) ProtoMessage()
- func (x *Foo) ProtoReflect() protoreflect.Message
- func (x *Foo) Reset()
- func (x *Foo) String() string
- type Option
- type Values
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EE_name = map[int32]string{ 0: "EE_NONE", 1: "EE_FIRST", 2: "EE_SECOND", } EE_value = map[string]int32{ "EE_NONE": 0, "EE_FIRST": 1, "EE_SECOND": 2, } )
Enum value maps for EE.
View Source
var File_flattenproto_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct { X2 string `protobuf:"bytes,2,opt,name=x2,proto3" json:"x2,omitempty"` X3 int32 `protobuf:"varint,3,opt,name=x3,proto3" json:"x3,omitempty"` // contains filtered or unexported fields }
func (*Bar) Descriptor
deprecated
func (*Bar) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) ProtoReflect ¶
func (x *Bar) ProtoReflect() protoreflect.Message
type EE ¶
type EE int32
func (EE) Descriptor ¶
func (EE) Descriptor() protoreflect.EnumDescriptor
func (EE) EnumDescriptor
deprecated
func (EE) Number ¶
func (x EE) Number() protoreflect.EnumNumber
func (EE) Type ¶
func (EE) Type() protoreflect.EnumType
type Foo ¶
type Foo struct { X1 []string `protobuf:"bytes,1,rep,name=x1,proto3" json:"x1,omitempty"` X2 string `protobuf:"bytes,2,opt,name=x2,proto3" json:"x2,omitempty"` X3 int32 `protobuf:"varint,3,opt,name=x3,proto3" json:"x3,omitempty"` X4 map[string]string `` /* 145-byte string literal not displayed */ X5Xyz string `protobuf:"bytes,5,opt,name=x5_xyz,json=x5Xyz,proto3" json:"x5_xyz,omitempty"` Ee EE `protobuf:"varint,6,opt,name=ee,proto3,enum=flattenproto.EE" json:"ee,omitempty"` // contains filtered or unexported fields }
func (*Foo) Descriptor
deprecated
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) ProtoReflect ¶
func (x *Foo) ProtoReflect() protoreflect.Message
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func UseEnumNumbers ¶
func UseEnumNumbers() Option
func UseProtoNames ¶
func UseProtoNames() Option
func WithFieldJoinCharacter ¶
Click to show internal directories.
Click to hide internal directories.