pkg

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Foo_name = map[int32]string{
		0: "ABC",
		1: "DEF",
		2: "GHI",
		3: "JKL",
		4: "MNO",
		5: "PQR",
		6: "STU",
		7: "VWX",
		8: "Y_Z",
	}
	Foo_value = map[string]int32{
		"ABC": 0,
		"DEF": 1,
		"GHI": 2,
		"JKL": 3,
		"MNO": 4,
		"PQR": 5,
		"STU": 6,
		"VWX": 7,
		"Y_Z": 8,
	}
)

Enum value maps for Foo.

View Source
var File_pkg_desc_test_pkg_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Baz []Foo `protobuf:"varint,1,rep,name=baz,enum=jhump.protoreflect.desc.Foo" json:"baz,omitempty"`
	// contains filtered or unexported fields
}

func (*Bar) Descriptor deprecated

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

Deprecated: Use Bar.ProtoReflect.Descriptor instead.

func (*Bar) GetBaz

func (x *Bar) GetBaz() []Foo

func (*Bar) ProtoMessage

func (*Bar) ProtoMessage()

func (*Bar) ProtoReflect added in v1.8.0

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

func (*Bar) Reset

func (x *Bar) Reset()

func (*Bar) String

func (x *Bar) String() string

type Foo

type Foo int32
const (
	Foo_ABC Foo = 0
	Foo_DEF Foo = 1
	Foo_GHI Foo = 2
	Foo_JKL Foo = 3
	Foo_MNO Foo = 4
	Foo_PQR Foo = 5
	Foo_STU Foo = 6
	Foo_VWX Foo = 7
	Foo_Y_Z Foo = 8
)

func (Foo) Descriptor added in v1.8.0

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) Number added in v1.8.0

func (x Foo) Number() protoreflect.EnumNumber

func (Foo) String

func (x Foo) String() string

func (Foo) Type added in v1.8.0

func (Foo) Type() protoreflect.EnumType

func (*Foo) UnmarshalJSON deprecated

func (x *Foo) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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