testpbv1

package
v0.2.10-1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestCode_name = map[int32]string{
		0:      "OK",
		100000: "NotFound",
		100001: "Unknown",
	}
	TestCode_value = map[string]int32{
		"OK":       0,
		"NotFound": 100000,
		"Unknown":  100001,
	}
)

Enum value maps for TestCode.

View Source
var File_proto_test_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type TestCode

type TestCode int32
const (
	TestCode_OK TestCode = 0
	// NotFound 找不到
	TestCode_NotFound TestCode = 100000
	// Unknown 未知
	TestCode_Unknown TestCode = 100001
)

func (TestCode) Descriptor

func (TestCode) Descriptor() protoreflect.EnumDescriptor

func (TestCode) Enum

func (x TestCode) Enum() *TestCode

func (TestCode) EnumDescriptor deprecated

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

Deprecated: Use TestCode.Descriptor instead.

func (TestCode) Number

func (x TestCode) Number() protoreflect.EnumNumber

func (TestCode) String

func (x TestCode) String() string

func (TestCode) Type

Jump to

Keyboard shortcuts

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