example

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Example.ProtoReflect.Descriptor instead.

func (*Example) GetA

func (x *Example) GetA() string

func (*Example) GetB

func (x *Example) GetB() *Example_Nested

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) ProtoReflect

func (x *Example) ProtoReflect() protoreflect.Message

func (*Example) Reset

func (x *Example) Reset()

func (*Example) String

func (x *Example) String() string

func (*Example) Validate

func (x *Example) Validate() error

func (*Example) ValidateCtx

func (x *Example) ValidateCtx(ctx context.Context) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Example2.ProtoReflect.Descriptor instead.

func (*Example2) GetA

func (x *Example2) GetA() string

func (*Example2) GetB

func (x *Example2) GetB() *Example2_Nested

func (*Example2) GetF

func (x *Example2) GetF() []string

func (*Example2) GetStatus

func (x *Example2) GetStatus() Example2_EnumStatus

func (*Example2) ProtoMessage

func (*Example2) ProtoMessage()

func (*Example2) ProtoReflect

func (x *Example2) ProtoReflect() protoreflect.Message

func (*Example2) Reset

func (x *Example2) Reset()

func (*Example2) String

func (x *Example2) String() string

func (*Example2) Validate

func (x *Example2) Validate() error

func (*Example2) ValidateCtx

func (x *Example2) ValidateCtx(ctx context.Context) error

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) Enum

func (Example2_EnumStatus) EnumDescriptor deprecated

func (Example2_EnumStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Example2_EnumStatus.Descriptor instead.

func (Example2_EnumStatus) Number

func (Example2_EnumStatus) String

func (x Example2_EnumStatus) String() string

func (Example2_EnumStatus) Type

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL