Documentation ¶
Index ¶
- Variables
- type Example
- func (*Example) Descriptor() ([]byte, []int)deprecated
- func (x *Example) GetA() string
- func (x *Example) GetB() *Example_Nested
- func (*Example) ProtoMessage()
- func (x *Example) ProtoReflect() protoreflect.Message
- func (x *Example) Reset()
- func (x *Example) String() string
- func (x *Example) Validate() error
- func (x *Example) ValidateCtx(ctx context.Context) error
- type Example2
- func (*Example2) Descriptor() ([]byte, []int)deprecated
- func (x *Example2) GetA() string
- func (x *Example2) GetB() *Example2_Nested
- func (x *Example2) GetF() []string
- func (x *Example2) GetStatus() Example2_EnumStatus
- func (*Example2) ProtoMessage()
- func (x *Example2) ProtoReflect() protoreflect.Message
- func (x *Example2) Reset()
- func (x *Example2) String() string
- func (x *Example2) Validate() error
- func (x *Example2) ValidateCtx(ctx context.Context) error
- type Example2_EnumStatus
- func (Example2_EnumStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Example2_EnumStatus) Enum() *Example2_EnumStatus
- func (Example2_EnumStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Example2_EnumStatus) Number() protoreflect.EnumNumber
- func (x Example2_EnumStatus) String() string
- func (Example2_EnumStatus) Type() protoreflect.EnumType
- type Example2_Nested
- func (*Example2_Nested) Descriptor() ([]byte, []int)deprecated
- func (x *Example2_Nested) GetD() string
- func (x *Example2_Nested) GetE() int64
- func (*Example2_Nested) ProtoMessage()
- func (x *Example2_Nested) ProtoReflect() protoreflect.Message
- func (x *Example2_Nested) Reset()
- func (x *Example2_Nested) String() string
- func (x *Example2_Nested) Validate() error
- func (x *Example2_Nested) ValidateCtx(ctx context.Context) error
- type Example_Nested
- func (*Example_Nested) Descriptor() ([]byte, []int)deprecated
- func (x *Example_Nested) GetB() string
- func (*Example_Nested) ProtoMessage()
- func (x *Example_Nested) ProtoReflect() protoreflect.Message
- func (x *Example_Nested) Reset()
- func (x *Example_Nested) String() string
- func (x *Example_Nested) Validate() error
- func (x *Example_Nested) ValidateCtx(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Example2_EnumStatus_name = map[int32]string{ 0: "AA", 1: "BB", } Example2_EnumStatus_value = map[string]int32{ "AA": 0, "BB": 1, } )
Enum value maps for Example2_EnumStatus.
View Source
var File_examples_example2_proto protoreflect.FileDescriptor
View Source
var File_examples_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` B *Example_Nested `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*Example) Descriptor
deprecated
func (*Example) GetB ¶
func (x *Example) GetB() *Example_Nested
func (*Example) ProtoMessage ¶
func (*Example) ProtoMessage()
func (*Example) ProtoReflect ¶
func (x *Example) ProtoReflect() protoreflect.Message
type Example2 ¶
type Example2 struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` B *Example2_Nested `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` F []string `protobuf:"bytes,4,rep,name=f,proto3" json:"f,omitempty"` Status Example2_EnumStatus `protobuf:"varint,5,opt,name=status,proto3,enum=example.Example2_EnumStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Example2) Descriptor
deprecated
func (*Example2) GetB ¶
func (x *Example2) GetB() *Example2_Nested
func (*Example2) GetStatus ¶
func (x *Example2) GetStatus() Example2_EnumStatus
func (*Example2) ProtoMessage ¶
func (*Example2) ProtoMessage()
func (*Example2) ProtoReflect ¶
func (x *Example2) ProtoReflect() protoreflect.Message
type Example2_EnumStatus ¶
type Example2_EnumStatus int32
const ( Example2_AA Example2_EnumStatus = 0 Example2_BB Example2_EnumStatus = 1 )
func (Example2_EnumStatus) Descriptor ¶
func (Example2_EnumStatus) Descriptor() protoreflect.EnumDescriptor
func (Example2_EnumStatus) Enum ¶
func (x Example2_EnumStatus) Enum() *Example2_EnumStatus
func (Example2_EnumStatus) EnumDescriptor
deprecated
func (Example2_EnumStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Example2_EnumStatus.Descriptor instead.
func (Example2_EnumStatus) Number ¶
func (x Example2_EnumStatus) Number() protoreflect.EnumNumber
func (Example2_EnumStatus) String ¶
func (x Example2_EnumStatus) String() string
func (Example2_EnumStatus) Type ¶
func (Example2_EnumStatus) Type() protoreflect.EnumType
type Example2_Nested ¶
type Example2_Nested struct { D string `protobuf:"bytes,1,opt,name=d,proto3" json:"d,omitempty"` E int64 `protobuf:"varint,2,opt,name=e,proto3" json:"e,omitempty"` // contains filtered or unexported fields }
func (*Example2_Nested) Descriptor
deprecated
func (*Example2_Nested) Descriptor() ([]byte, []int)
Deprecated: Use Example2_Nested.ProtoReflect.Descriptor instead.
func (*Example2_Nested) GetD ¶
func (x *Example2_Nested) GetD() string
func (*Example2_Nested) GetE ¶
func (x *Example2_Nested) GetE() int64
func (*Example2_Nested) ProtoMessage ¶
func (*Example2_Nested) ProtoMessage()
func (*Example2_Nested) ProtoReflect ¶
func (x *Example2_Nested) ProtoReflect() protoreflect.Message
func (*Example2_Nested) Reset ¶
func (x *Example2_Nested) Reset()
func (*Example2_Nested) String ¶
func (x *Example2_Nested) String() string
func (*Example2_Nested) Validate ¶
func (x *Example2_Nested) Validate() error
func (*Example2_Nested) ValidateCtx ¶
func (x *Example2_Nested) ValidateCtx(ctx context.Context) error
type Example_Nested ¶
type Example_Nested struct { B string `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*Example_Nested) Descriptor
deprecated
func (*Example_Nested) Descriptor() ([]byte, []int)
Deprecated: Use Example_Nested.ProtoReflect.Descriptor instead.
func (*Example_Nested) GetB ¶
func (x *Example_Nested) GetB() string
func (*Example_Nested) ProtoMessage ¶
func (*Example_Nested) ProtoMessage()
func (*Example_Nested) ProtoReflect ¶
func (x *Example_Nested) ProtoReflect() protoreflect.Message
func (*Example_Nested) Reset ¶
func (x *Example_Nested) Reset()
func (*Example_Nested) String ¶
func (x *Example_Nested) String() string
func (*Example_Nested) Validate ¶
func (x *Example_Nested) Validate() error
func (*Example_Nested) ValidateCtx ¶
func (x *Example_Nested) ValidateCtx(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.