testprotos

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enums_Enums_name = map[int32]string{
		0: "ZERO",
		1: "FIRST",
		2: "SECOND",
	}
	Enums_Enums_value = map[string]int32{
		"ZERO":   0,
		"FIRST":  1,
		"SECOND": 2,
	}
)

Enum value maps for Enums_Enums.

View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Enums

type Enums struct {
	AnEnum Enums_Enums `protobuf:"varint,1,opt,name=anEnum,proto3,enum=testprotos.Enums_Enums" json:"anEnum,omitempty"`
	// contains filtered or unexported fields
}

func (*Enums) Descriptor deprecated

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

Deprecated: Use Enums.ProtoReflect.Descriptor instead.

func (*Enums) GetAnEnum

func (x *Enums) GetAnEnum() Enums_Enums

func (*Enums) ProtoMessage

func (*Enums) ProtoMessage()

func (*Enums) ProtoReflect

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

func (*Enums) Reset

func (x *Enums) Reset()

func (*Enums) String

func (x *Enums) String() string

type Enums_Enums

type Enums_Enums int32
const (
	Enums_ZERO   Enums_Enums = 0
	Enums_FIRST  Enums_Enums = 1
	Enums_SECOND Enums_Enums = 2
)

func (Enums_Enums) Descriptor

func (Enums_Enums) Enum

func (x Enums_Enums) Enum() *Enums_Enums

func (Enums_Enums) EnumDescriptor deprecated

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

Deprecated: Use Enums_Enums.Descriptor instead.

func (Enums_Enums) Number

func (x Enums_Enums) Number() protoreflect.EnumNumber

func (Enums_Enums) String

func (x Enums_Enums) String() string

func (Enums_Enums) Type

type Req

type Req struct {
	Text   string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	Number int32    `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	List   []string `protobuf:"bytes,3,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Req) Descriptor deprecated

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

Deprecated: Use Req.ProtoReflect.Descriptor instead.

func (*Req) GetList

func (x *Req) GetList() []string

func (*Req) GetNumber

func (x *Req) GetNumber() int32

func (*Req) GetText

func (x *Req) GetText() string

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) ProtoReflect

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

func (*Req) Reset

func (x *Req) Reset()

func (*Req) String

func (x *Req) String() string

type Resp

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

func (*Resp) Descriptor deprecated

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

Deprecated: Use Resp.ProtoReflect.Descriptor instead.

func (*Resp) GetText

func (x *Resp) GetText() string

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) ProtoReflect

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

func (*Resp) Reset

func (x *Resp) Reset()

func (*Resp) String

func (x *Resp) String() string

type Resp2

type Resp2 struct {
	Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*Resp2) Descriptor deprecated

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

Deprecated: Use Resp2.ProtoReflect.Descriptor instead.

func (*Resp2) GetNumber

func (x *Resp2) GetNumber() int32

func (*Resp2) ProtoMessage

func (*Resp2) ProtoMessage()

func (*Resp2) ProtoReflect

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

func (*Resp2) Reset

func (x *Resp2) Reset()

func (*Resp2) String

func (x *Resp2) String() string

Jump to

Keyboard shortcuts

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