testproto

package
v0.0.0-...-831424b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithEnum_Things_name = map[int32]string{
		0: "A",
		1: "b",
		2: "C",
		3: "d",
	}
	WithEnum_Things_value = map[string]int32{
		"A": 0,
		"b": 1,
		"C": 2,
		"d": 3,
	}
)

Enum value maps for WithEnum_Things.

View Source
var File_testproto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Assorted

type Assorted struct {
	TDouble   float64          `protobuf:"fixed64,1,opt,name=t_double,json=tDouble,proto3" json:"t_double,omitempty"`
	TFloat    float32          `protobuf:"fixed32,2,opt,name=t_float,json=tFloat,proto3" json:"t_float,omitempty"`
	TInt32    int32            `protobuf:"varint,3,opt,name=t_int32,json=tInt32,proto3" json:"t_int32,omitempty"`
	TInt64    int64            `protobuf:"varint,4,opt,name=t_int64,json=tInt64,proto3" json:"t_int64,omitempty"`
	TUint32   uint32           `protobuf:"varint,5,opt,name=t_uint32,json=tUint32,proto3" json:"t_uint32,omitempty"`
	TUint64   uint64           `protobuf:"varint,6,opt,name=t_uint64,json=tUint64,proto3" json:"t_uint64,omitempty"`
	TSint32   int32            `protobuf:"zigzag32,7,opt,name=t_sint32,json=tSint32,proto3" json:"t_sint32,omitempty"`
	TSint64   int64            `protobuf:"zigzag64,8,opt,name=t_sint64,json=tSint64,proto3" json:"t_sint64,omitempty"`
	TFixed32  uint32           `protobuf:"fixed32,9,opt,name=t_fixed32,json=tFixed32,proto3" json:"t_fixed32,omitempty"`
	TFixed64  uint64           `protobuf:"fixed64,10,opt,name=t_fixed64,json=tFixed64,proto3" json:"t_fixed64,omitempty"`
	TSfixed32 int32            `protobuf:"fixed32,11,opt,name=t_sfixed32,json=tSfixed32,proto3" json:"t_sfixed32,omitempty"`
	TSfixed64 int64            `protobuf:"fixed64,12,opt,name=t_sfixed64,json=tSfixed64,proto3" json:"t_sfixed64,omitempty"`
	TBool     bool             `protobuf:"varint,13,opt,name=t_bool,json=tBool,proto3" json:"t_bool,omitempty"`
	TString   string           `protobuf:"bytes,14,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"`
	TBytes    []byte           `protobuf:"bytes,15,opt,name=t_bytes,json=tBytes,proto3" json:"t_bytes,omitempty"`
	TMessage  *Assorted_Nested `protobuf:"bytes,16,opt,name=t_message,json=tMessage,proto3" json:"t_message,omitempty"`
	// contains filtered or unexported fields
}

func (*Assorted) Descriptor deprecated

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

Deprecated: Use Assorted.ProtoReflect.Descriptor instead.

func (*Assorted) GetTBool

func (x *Assorted) GetTBool() bool

func (*Assorted) GetTBytes

func (x *Assorted) GetTBytes() []byte

func (*Assorted) GetTDouble

func (x *Assorted) GetTDouble() float64

func (*Assorted) GetTFixed32

func (x *Assorted) GetTFixed32() uint32

func (*Assorted) GetTFixed64

func (x *Assorted) GetTFixed64() uint64

func (*Assorted) GetTFloat

func (x *Assorted) GetTFloat() float32

func (*Assorted) GetTInt32

func (x *Assorted) GetTInt32() int32

func (*Assorted) GetTInt64

func (x *Assorted) GetTInt64() int64

func (*Assorted) GetTMessage

func (x *Assorted) GetTMessage() *Assorted_Nested

func (*Assorted) GetTSfixed32

func (x *Assorted) GetTSfixed32() int32

func (*Assorted) GetTSfixed64

func (x *Assorted) GetTSfixed64() int64

func (*Assorted) GetTSint32

func (x *Assorted) GetTSint32() int32

func (*Assorted) GetTSint64

func (x *Assorted) GetTSint64() int64

func (*Assorted) GetTString

func (x *Assorted) GetTString() string

func (*Assorted) GetTUint32

func (x *Assorted) GetTUint32() uint32

func (*Assorted) GetTUint64

func (x *Assorted) GetTUint64() uint64

func (*Assorted) ProtoMessage

func (*Assorted) ProtoMessage()

func (*Assorted) ProtoReflect

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

func (*Assorted) Reset

func (x *Assorted) Reset()

func (*Assorted) String

func (x *Assorted) String() string

type Assorted_Nested

type Assorted_Nested struct {
	TNestedField string `protobuf:"bytes,1,opt,name=t_nested_field,json=tNestedField,proto3" json:"t_nested_field,omitempty"`
	// contains filtered or unexported fields
}

func (*Assorted_Nested) Descriptor deprecated

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

Deprecated: Use Assorted_Nested.ProtoReflect.Descriptor instead.

func (*Assorted_Nested) GetTNestedField

func (x *Assorted_Nested) GetTNestedField() string

func (*Assorted_Nested) ProtoMessage

func (*Assorted_Nested) ProtoMessage()

func (*Assorted_Nested) ProtoReflect

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

func (*Assorted_Nested) Reset

func (x *Assorted_Nested) Reset()

func (*Assorted_Nested) String

func (x *Assorted_Nested) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Simple

type Simple struct {
	Foo *Empty `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
	// contains filtered or unexported fields
}

func (*Simple) Descriptor deprecated

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

Deprecated: Use Simple.ProtoReflect.Descriptor instead.

func (*Simple) GetFoo

func (x *Simple) GetFoo() *Empty

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) ProtoReflect

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

func (*Simple) Reset

func (x *Simple) Reset()

func (*Simple) String

func (x *Simple) String() string

type WithAny

type WithAny struct {
	TString       string                `protobuf:"bytes,1,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"`
	TAny          *anypb.Any            `protobuf:"bytes,2,opt,name=t_any,json=tAny,proto3" json:"t_any,omitempty"`
	TAnyList      []*anypb.Any          `protobuf:"bytes,3,rep,name=t_any_list,json=tAnyList,proto3" json:"t_any_list,omitempty"`
	TAnyMapString map[string]*anypb.Any `` /* 192-byte string literal not displayed */
	TAnyMapNumber map[int64]*anypb.Any  `` /* 193-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WithAny) Descriptor deprecated

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

Deprecated: Use WithAny.ProtoReflect.Descriptor instead.

func (*WithAny) GetTAny

func (x *WithAny) GetTAny() *anypb.Any

func (*WithAny) GetTAnyList

func (x *WithAny) GetTAnyList() []*anypb.Any

func (*WithAny) GetTAnyMapNumber

func (x *WithAny) GetTAnyMapNumber() map[int64]*anypb.Any

func (*WithAny) GetTAnyMapString

func (x *WithAny) GetTAnyMapString() map[string]*anypb.Any

func (*WithAny) GetTString

func (x *WithAny) GetTString() string

func (*WithAny) ProtoMessage

func (*WithAny) ProtoMessage()

func (*WithAny) ProtoReflect

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

func (*WithAny) Reset

func (x *WithAny) Reset()

func (*WithAny) String

func (x *WithAny) String() string

type WithEnum

type WithEnum struct {
	TString string          `protobuf:"bytes,1,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"`
	TEnum   WithEnum_Things `protobuf:"varint,2,opt,name=t_enum,json=tEnum,proto3,enum=testproto.WithEnum_Things" json:"t_enum,omitempty"`
	// contains filtered or unexported fields
}

func (*WithEnum) Descriptor deprecated

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

Deprecated: Use WithEnum.ProtoReflect.Descriptor instead.

func (*WithEnum) GetTEnum

func (x *WithEnum) GetTEnum() WithEnum_Things

func (*WithEnum) GetTString

func (x *WithEnum) GetTString() string

func (*WithEnum) ProtoMessage

func (*WithEnum) ProtoMessage()

func (*WithEnum) ProtoReflect

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

func (*WithEnum) Reset

func (x *WithEnum) Reset()

func (*WithEnum) String

func (x *WithEnum) String() string

type WithEnum_Things

type WithEnum_Things int32
const (
	WithEnum_A WithEnum_Things = 0
	WithEnum_b WithEnum_Things = 1
	WithEnum_C WithEnum_Things = 2
	WithEnum_d WithEnum_Things = 3
)

func (WithEnum_Things) Descriptor

func (WithEnum_Things) Enum

func (x WithEnum_Things) Enum() *WithEnum_Things

func (WithEnum_Things) EnumDescriptor deprecated

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

Deprecated: Use WithEnum_Things.Descriptor instead.

func (WithEnum_Things) Number

func (WithEnum_Things) String

func (x WithEnum_Things) String() string

func (WithEnum_Things) Type

type WithOneOf

type WithOneOf struct {
	Outside string `protobuf:"bytes,1,opt,name=outside,proto3" json:"outside,omitempty"`
	// Types that are assignable to TOneof:
	//	*WithOneOf_A
	//	*WithOneOf_B
	TOneof isWithOneOf_TOneof `protobuf_oneof:"t_oneof"`
	// contains filtered or unexported fields
}

func (*WithOneOf) Descriptor deprecated

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

Deprecated: Use WithOneOf.ProtoReflect.Descriptor instead.

func (*WithOneOf) GetA

func (x *WithOneOf) GetA() string

func (*WithOneOf) GetB

func (x *WithOneOf) GetB() string

func (*WithOneOf) GetOutside

func (x *WithOneOf) GetOutside() string

func (*WithOneOf) GetTOneof

func (m *WithOneOf) GetTOneof() isWithOneOf_TOneof

func (*WithOneOf) ProtoMessage

func (*WithOneOf) ProtoMessage()

func (*WithOneOf) ProtoReflect

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

func (*WithOneOf) Reset

func (x *WithOneOf) Reset()

func (*WithOneOf) String

func (x *WithOneOf) String() string

type WithOneOf_A

type WithOneOf_A struct {
	A string `protobuf:"bytes,2,opt,name=a,proto3,oneof"`
}

type WithOneOf_B

type WithOneOf_B struct {
	B string `protobuf:"bytes,3,opt,name=b,proto3,oneof"`
}

type WithOptional

type WithOptional struct {
	StringReq  string               `protobuf:"bytes,1,opt,name=string_req,json=stringReq,proto3" json:"string_req,omitempty"`
	StringOpt  *string              `protobuf:"bytes,2,opt,name=string_opt,json=stringOpt,proto3,oneof" json:"string_opt,omitempty"`
	Int32Req   int32                `protobuf:"varint,3,opt,name=int32_req,json=int32Req,proto3" json:"int32_req,omitempty"`
	Int32Opt   *int32               `protobuf:"varint,4,opt,name=int32_opt,json=int32Opt,proto3,oneof" json:"int32_opt,omitempty"`
	MessageReq *WithOptional_Nested `protobuf:"bytes,5,opt,name=message_req,json=messageReq,proto3" json:"message_req,omitempty"` // not actually required; messages are always optional
	MessageOpt *WithOptional_Nested `protobuf:"bytes,6,opt,name=message_opt,json=messageOpt,proto3,oneof" json:"message_opt,omitempty"`
	// contains filtered or unexported fields
}

func (*WithOptional) Descriptor deprecated

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

Deprecated: Use WithOptional.ProtoReflect.Descriptor instead.

func (*WithOptional) GetInt32Opt

func (x *WithOptional) GetInt32Opt() int32

func (*WithOptional) GetInt32Req

func (x *WithOptional) GetInt32Req() int32

func (*WithOptional) GetMessageOpt

func (x *WithOptional) GetMessageOpt() *WithOptional_Nested

func (*WithOptional) GetMessageReq

func (x *WithOptional) GetMessageReq() *WithOptional_Nested

func (*WithOptional) GetStringOpt

func (x *WithOptional) GetStringOpt() string

func (*WithOptional) GetStringReq

func (x *WithOptional) GetStringReq() string

func (*WithOptional) ProtoMessage

func (*WithOptional) ProtoMessage()

func (*WithOptional) ProtoReflect

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

func (*WithOptional) Reset

func (x *WithOptional) Reset()

func (*WithOptional) String

func (x *WithOptional) String() string

type WithOptional_Nested

type WithOptional_Nested struct {
	// contains filtered or unexported fields
}

func (*WithOptional_Nested) Descriptor deprecated

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

Deprecated: Use WithOptional_Nested.ProtoReflect.Descriptor instead.

func (*WithOptional_Nested) ProtoMessage

func (*WithOptional_Nested) ProtoMessage()

func (*WithOptional_Nested) ProtoReflect

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

func (*WithOptional_Nested) Reset

func (x *WithOptional_Nested) Reset()

func (*WithOptional_Nested) String

func (x *WithOptional_Nested) String() string

type WithRepeated

type WithRepeated struct {
	TStrings          []string                        `protobuf:"bytes,1,rep,name=t_strings,json=tStrings,proto3" json:"t_strings,omitempty"`
	TMessage          []*WithRepeated_Nested          `protobuf:"bytes,2,rep,name=t_message,json=tMessage,proto3" json:"t_message,omitempty"`
	TMapStringBool    map[string]bool                 `` /* 196-byte string literal not displayed */
	TMapNumberBool    map[int64]bool                  `` /* 197-byte string literal not displayed */
	TMapStringMessage map[string]*WithRepeated_Nested `` /* 204-byte string literal not displayed */
	TMapNumberMessage map[int64]*WithRepeated_Nested  `` /* 205-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WithRepeated) Descriptor deprecated

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

Deprecated: Use WithRepeated.ProtoReflect.Descriptor instead.

func (*WithRepeated) GetTMapNumberBool

func (x *WithRepeated) GetTMapNumberBool() map[int64]bool

func (*WithRepeated) GetTMapNumberMessage

func (x *WithRepeated) GetTMapNumberMessage() map[int64]*WithRepeated_Nested

func (*WithRepeated) GetTMapStringBool

func (x *WithRepeated) GetTMapStringBool() map[string]bool

func (*WithRepeated) GetTMapStringMessage

func (x *WithRepeated) GetTMapStringMessage() map[string]*WithRepeated_Nested

func (*WithRepeated) GetTMessage

func (x *WithRepeated) GetTMessage() []*WithRepeated_Nested

func (*WithRepeated) GetTStrings

func (x *WithRepeated) GetTStrings() []string

func (*WithRepeated) ProtoMessage

func (*WithRepeated) ProtoMessage()

func (*WithRepeated) ProtoReflect

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

func (*WithRepeated) Reset

func (x *WithRepeated) Reset()

func (*WithRepeated) String

func (x *WithRepeated) String() string

type WithRepeated_Nested

type WithRepeated_Nested struct {
	TNestedField string `protobuf:"bytes,1,opt,name=t_nested_field,json=tNestedField,proto3" json:"t_nested_field,omitempty"`
	// contains filtered or unexported fields
}

func (*WithRepeated_Nested) Descriptor deprecated

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

Deprecated: Use WithRepeated_Nested.ProtoReflect.Descriptor instead.

func (*WithRepeated_Nested) GetTNestedField

func (x *WithRepeated_Nested) GetTNestedField() string

func (*WithRepeated_Nested) ProtoMessage

func (*WithRepeated_Nested) ProtoMessage()

func (*WithRepeated_Nested) ProtoReflect

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

func (*WithRepeated_Nested) Reset

func (x *WithRepeated_Nested) Reset()

func (*WithRepeated_Nested) String

func (x *WithRepeated_Nested) String() string

Jump to

Keyboard shortcuts

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