example

package
v1.9.24 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FOO_name = map[int32]string{
		0: "X",
	}
	FOO_value = map[string]int32{
		"X": 0,
	}
)

Enum value maps for FOO.

View Source
var File_mcube_pb_example_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FOO

type FOO int32
const (
	FOO_X FOO = 0
)

func ParseFOOFromString

func ParseFOOFromString(str string) (FOO, error)

ParseFOOFromString Parse FOO from string

func (FOO) Descriptor

func (FOO) Descriptor() protoreflect.EnumDescriptor

func (FOO) Enum

func (x FOO) Enum() *FOO

func (FOO) EnumDescriptor deprecated

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

Deprecated: Use FOO.Descriptor instead.

func (FOO) Equal

func (t FOO) Equal(target FOO) bool

Equal type compare

func (FOO) IsIn

func (t FOO) IsIn(targets ...FOO) bool

IsIn todo

func (FOO) MarshalJSON

func (t FOO) MarshalJSON() ([]byte, error)

MarshalJSON todo

func (FOO) Number

func (x FOO) Number() protoreflect.EnumNumber

func (FOO) String

func (x FOO) String() string

func (FOO) Type

func (FOO) Type() protoreflect.EnumType

func (*FOO) UnmarshalJSON

func (t *FOO) UnmarshalJSON(b []byte) error

UnmarshalJSON todo

type Test

type Test struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	Type  int32  `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	Reps  int64  `protobuf:"varint,3,opt,name=reps,proto3" json:"reps,omitempty"`
	// contains filtered or unexported fields
}

func (*Test) Descriptor deprecated

func (*Test) Descriptor() ([]byte, []int)

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetLabel

func (x *Test) GetLabel() string

func (*Test) GetReps

func (x *Test) GetReps() int64

func (*Test) GetType

func (x *Test) GetType() int32

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

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

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() string

Jump to

Keyboard shortcuts

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