proto_test

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_PENDING",
		2: "STATE_ACTIVE",
		3: "STATE_TERMINATED",
	}
	State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_PENDING":     1,
		"STATE_ACTIVE":      2,
		"STATE_TERMINATED":  3,
	}
)

Enum value maps for State.

View Source
var File_pkg_genericcli_printers_proto_test_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Foo

type Foo struct {
	Text     string                `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	State    State                 `protobuf:"varint,2,opt,name=state,proto3,enum=printers_test.State" json:"state,omitempty"`
	ListFoos []*NestedFoo          `protobuf:"bytes,3,rep,name=list_foos,json=listFoos,proto3" json:"list_foos,omitempty"`
	MapFoos  map[string]*NestedFoo `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Foo) Descriptor deprecated

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

Deprecated: Use Foo.ProtoReflect.Descriptor instead.

func (*Foo) GetListFoos added in v0.26.0

func (x *Foo) GetListFoos() []*NestedFoo

func (*Foo) GetMapFoos added in v0.26.0

func (x *Foo) GetMapFoos() map[string]*NestedFoo

func (*Foo) GetState added in v0.26.0

func (x *Foo) GetState() State

func (*Foo) GetText

func (x *Foo) GetText() string

func (*Foo) ProtoMessage

func (*Foo) ProtoMessage()

func (*Foo) ProtoReflect

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

func (*Foo) Reset

func (x *Foo) Reset()

func (*Foo) String

func (x *Foo) String() string

type NestedFoo added in v0.26.0

type NestedFoo struct {
	Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*NestedFoo) Descriptor deprecated added in v0.26.0

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

Deprecated: Use NestedFoo.ProtoReflect.Descriptor instead.

func (*NestedFoo) GetText added in v0.26.0

func (x *NestedFoo) GetText() []string

func (*NestedFoo) ProtoMessage added in v0.26.0

func (*NestedFoo) ProtoMessage()

func (*NestedFoo) ProtoReflect added in v0.26.0

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

func (*NestedFoo) Reset added in v0.26.0

func (x *NestedFoo) Reset()

func (*NestedFoo) String added in v0.26.0

func (x *NestedFoo) String() string

type State added in v0.26.0

type State int32
const (
	State_STATE_UNSPECIFIED State = 0
	State_STATE_PENDING     State = 1
	State_STATE_ACTIVE      State = 2
	State_STATE_TERMINATED  State = 3
)

func (State) Descriptor added in v0.26.0

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum added in v0.26.0

func (x State) Enum() *State

func (State) EnumDescriptor deprecated added in v0.26.0

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

Deprecated: Use State.Descriptor instead.

func (State) Number added in v0.26.0

func (x State) Number() protoreflect.EnumNumber

func (State) String added in v0.26.0

func (x State) String() string

func (State) Type added in v0.26.0

func (State) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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