idl

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestEnum_name = map[int32]string{
		0: "Zero",
		1: "First",
	}
	TestEnum_value = map[string]int32{
		"Zero":  0,
		"First": 1,
	}
)

Enum value maps for TestEnum.

Functions

This section is empty.

Types

type Elem

type Elem struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*Elem) Descriptor deprecated

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

Deprecated: Use Elem.ProtoReflect.Descriptor instead.

func (*Elem) GetOk

func (x *Elem) GetOk() bool

func (*Elem) ProtoMessage

func (*Elem) ProtoMessage()

func (*Elem) ProtoReflect

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

func (*Elem) Reset

func (x *Elem) Reset()

func (*Elem) String

func (x *Elem) String() string

type Message

type Message struct {
	Tiny  int32            `protobuf:"varint,1,opt,name=tiny,proto3" json:"tiny,omitempty"`
	Large int64            `protobuf:"varint,2,opt,name=large,proto3" json:"large,omitempty"`
	Tenum TestEnum         `protobuf:"varint,3,opt,name=tenum,proto3,enum=idl.TestEnum" json:"tenum,omitempty"`
	Str   string           `protobuf:"bytes,4,opt,name=str,proto3" json:"str,omitempty"`
	Elems map[string]*Elem ``                                                            /* 151-byte string literal not displayed */
	Els   []*Elem          `protobuf:"bytes,6,rep,name=els,proto3" json:"els,omitempty"` // map<int32, Elem> els = 7;
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetElems

func (x *Message) GetElems() map[string]*Elem

func (*Message) GetEls

func (x *Message) GetEls() []*Elem

func (*Message) GetLarge

func (x *Message) GetLarge() int64

func (*Message) GetStr

func (x *Message) GetStr() string

func (*Message) GetTenum

func (x *Message) GetTenum() TestEnum

func (*Message) GetTiny

func (x *Message) GetTiny() int32

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type TestEnum

type TestEnum int32
const (
	TestEnum_Zero  TestEnum = 0
	TestEnum_First TestEnum = 1
)

func (TestEnum) Descriptor

func (TestEnum) Descriptor() protoreflect.EnumDescriptor

func (TestEnum) Enum

func (x TestEnum) Enum() *TestEnum

func (TestEnum) EnumDescriptor deprecated

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

Deprecated: Use TestEnum.Descriptor instead.

func (TestEnum) Number

func (x TestEnum) Number() protoreflect.EnumNumber

func (TestEnum) String

func (x TestEnum) String() string

func (TestEnum) Type

Jump to

Keyboard shortcuts

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