testproto

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Count_name = map[int32]string{
		0: "COUNT_UNSPECIFIED",
		1: "COUNT_ONE",
		2: "COUNT_TWO",
	}
	Count_value = map[string]int32{
		"COUNT_UNSPECIFIED": 0,
		"COUNT_ONE":         1,
		"COUNT_TWO":         2,
	}
)

Enum value maps for Count.

View Source
var File_squareup_cash_pranadb_testproto_v1_imports_proto protoreflect.FileDescriptor
View Source
var File_squareup_cash_pranadb_testproto_v1_simple_proto protoreflect.FileDescriptor
View Source
var File_squareup_cash_pranadb_testproto_v1_testproto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Count

type Count int32
const (
	Count_COUNT_UNSPECIFIED Count = 0
	Count_COUNT_ONE         Count = 1
	Count_COUNT_TWO         Count = 2
)

func (Count) Descriptor

func (Count) Descriptor() protoreflect.EnumDescriptor

func (Count) Enum

func (x Count) Enum() *Count

func (Count) EnumDescriptor deprecated

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

Deprecated: Use Count.Descriptor instead.

func (Count) Number

func (x Count) Number() protoreflect.EnumNumber

func (Count) String

func (x Count) String() string

func (Count) Type

func (Count) Type() protoreflect.EnumType

type Imported

type Imported struct {
	StringField string                 `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	TimeField   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time_field,json=timeField,proto3" json:"time_field,omitempty"`
	// contains filtered or unexported fields
}

func (*Imported) Descriptor deprecated

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

Deprecated: Use Imported.ProtoReflect.Descriptor instead.

func (*Imported) GetStringField

func (x *Imported) GetStringField() string

func (*Imported) GetTimeField

func (x *Imported) GetTimeField() *timestamppb.Timestamp

func (*Imported) ProtoMessage

func (*Imported) ProtoMessage()

func (*Imported) ProtoReflect

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

func (*Imported) Reset

func (x *Imported) Reset()

func (*Imported) String

func (x *Imported) String() string

type Recursive

type Recursive struct {
	StringField    string     `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	RecursiveField *Recursive `protobuf:"bytes,2,opt,name=recursive_field,json=recursiveField,proto3" json:"recursive_field,omitempty"`
	// contains filtered or unexported fields
}

func (*Recursive) Descriptor deprecated

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

Deprecated: Use Recursive.ProtoReflect.Descriptor instead.

func (*Recursive) GetRecursiveField

func (x *Recursive) GetRecursiveField() *Recursive

func (*Recursive) GetStringField

func (x *Recursive) GetStringField() string

func (*Recursive) ProtoMessage

func (*Recursive) ProtoMessage()

func (*Recursive) ProtoReflect

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

func (*Recursive) Reset

func (x *Recursive) Reset()

func (*Recursive) String

func (x *Recursive) String() string

type Simple

type Simple struct {
	Key  string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Val1 int64  `protobuf:"varint,2,opt,name=val1,proto3" json:"val1,omitempty"`
	Val2 int64  `protobuf:"varint,3,opt,name=val2,proto3" json:"val2,omitempty"`
	// contains filtered or unexported fields
}

func (*Simple) Descriptor deprecated

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

Deprecated: Use Simple.ProtoReflect.Descriptor instead.

func (*Simple) GetKey

func (x *Simple) GetKey() string

func (*Simple) GetVal1

func (x *Simple) GetVal1() int64

func (*Simple) GetVal2

func (x *Simple) GetVal2() int64

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 SimpleValue

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

func (*SimpleValue) Descriptor deprecated

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

Deprecated: Use SimpleValue.ProtoReflect.Descriptor instead.

func (*SimpleValue) GetValue

func (x *SimpleValue) GetValue() string

func (*SimpleValue) ProtoMessage

func (*SimpleValue) ProtoMessage()

func (*SimpleValue) ProtoReflect

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

func (*SimpleValue) Reset

func (x *SimpleValue) Reset()

func (*SimpleValue) String

func (x *SimpleValue) String() string

type TestTypes

type TestTypes struct {
	DoubleField         float64           `protobuf:"fixed64,1,opt,name=double_field,json=doubleField,proto3" json:"double_field,omitempty"`
	FloatField          float32           `protobuf:"fixed32,2,opt,name=float_field,json=floatField,proto3" json:"float_field,omitempty"`
	Int32Field          int32             `protobuf:"varint,3,opt,name=int32_field,json=int32Field,proto3" json:"int32_field,omitempty"`
	Int64Field          int64             `protobuf:"varint,4,opt,name=int64_field,json=int64Field,proto3" json:"int64_field,omitempty"`
	Uint32Field         uint32            `protobuf:"varint,5,opt,name=uint32_field,json=uint32Field,proto3" json:"uint32_field,omitempty"`
	Uint64Field         uint64            `protobuf:"varint,6,opt,name=uint64_field,json=uint64Field,proto3" json:"uint64_field,omitempty"`
	BoolField           bool              `protobuf:"varint,7,opt,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"`
	StringField         string            `protobuf:"bytes,8,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	EnumField           Count             `` /* 135-byte string literal not displayed */
	BytesField          []byte            `protobuf:"bytes,10,opt,name=bytes_field,json=bytesField,proto3" json:"bytes_field,omitempty"`
	NestedField         *TestTypes_Nested `protobuf:"bytes,11,opt,name=nested_field,json=nestedField,proto3" json:"nested_field,omitempty"`
	RepeatedStringField []string          `protobuf:"bytes,12,rep,name=repeated_string_field,json=repeatedStringField,proto3" json:"repeated_string_field,omitempty"`
	RecursiveField      *Recursive        `protobuf:"bytes,13,opt,name=recursive_field,json=recursiveField,proto3" json:"recursive_field,omitempty"`
	// Types that are assignable to OneofField:
	//	*TestTypes_OneString
	//	*TestTypes_OneInt64
	OneofField      isTestTypes_OneofField  `protobuf_oneof:"oneof_field"`
	StringMapField  map[string]string       `` /* 194-byte string literal not displayed */
	IntMapField     map[int32]string        `` /* 186-byte string literal not displayed */
	MapMessageField map[string]*SimpleValue `` /* 197-byte string literal not displayed */
	ImportField     *Imported               `protobuf:"bytes,19,opt,name=import_field,json=importField,proto3" json:"import_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestTypes) Descriptor deprecated

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

Deprecated: Use TestTypes.ProtoReflect.Descriptor instead.

func (*TestTypes) GetBoolField

func (x *TestTypes) GetBoolField() bool

func (*TestTypes) GetBytesField

func (x *TestTypes) GetBytesField() []byte

func (*TestTypes) GetDoubleField

func (x *TestTypes) GetDoubleField() float64

func (*TestTypes) GetEnumField

func (x *TestTypes) GetEnumField() Count

func (*TestTypes) GetFloatField

func (x *TestTypes) GetFloatField() float32

func (*TestTypes) GetImportField

func (x *TestTypes) GetImportField() *Imported

func (*TestTypes) GetInt32Field

func (x *TestTypes) GetInt32Field() int32

func (*TestTypes) GetInt64Field

func (x *TestTypes) GetInt64Field() int64

func (*TestTypes) GetIntMapField

func (x *TestTypes) GetIntMapField() map[int32]string

func (*TestTypes) GetMapMessageField

func (x *TestTypes) GetMapMessageField() map[string]*SimpleValue

func (*TestTypes) GetNestedField

func (x *TestTypes) GetNestedField() *TestTypes_Nested

func (*TestTypes) GetOneInt64

func (x *TestTypes) GetOneInt64() int64

func (*TestTypes) GetOneString

func (x *TestTypes) GetOneString() string

func (*TestTypes) GetOneofField

func (m *TestTypes) GetOneofField() isTestTypes_OneofField

func (*TestTypes) GetRecursiveField

func (x *TestTypes) GetRecursiveField() *Recursive

func (*TestTypes) GetRepeatedStringField

func (x *TestTypes) GetRepeatedStringField() []string

func (*TestTypes) GetStringField

func (x *TestTypes) GetStringField() string

func (*TestTypes) GetStringMapField

func (x *TestTypes) GetStringMapField() map[string]string

func (*TestTypes) GetUint32Field

func (x *TestTypes) GetUint32Field() uint32

func (*TestTypes) GetUint64Field

func (x *TestTypes) GetUint64Field() uint64

func (*TestTypes) ProtoMessage

func (*TestTypes) ProtoMessage()

func (*TestTypes) ProtoReflect

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

func (*TestTypes) Reset

func (x *TestTypes) Reset()

func (*TestTypes) String

func (x *TestTypes) String() string

type TestTypes_Nested

type TestTypes_Nested struct {
	NestedString         string            `protobuf:"bytes,1,opt,name=nested_string,json=nestedString,proto3" json:"nested_string,omitempty"`
	NestedRepeatedString []string          `protobuf:"bytes,2,rep,name=nested_repeated_string,json=nestedRepeatedString,proto3" json:"nested_repeated_string,omitempty"`
	NestedMap            map[string]string `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestTypes_Nested) Descriptor deprecated

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

Deprecated: Use TestTypes_Nested.ProtoReflect.Descriptor instead.

func (*TestTypes_Nested) GetNestedMap

func (x *TestTypes_Nested) GetNestedMap() map[string]string

func (*TestTypes_Nested) GetNestedRepeatedString

func (x *TestTypes_Nested) GetNestedRepeatedString() []string

func (*TestTypes_Nested) GetNestedString

func (x *TestTypes_Nested) GetNestedString() string

func (*TestTypes_Nested) ProtoMessage

func (*TestTypes_Nested) ProtoMessage()

func (*TestTypes_Nested) ProtoReflect

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

func (*TestTypes_Nested) Reset

func (x *TestTypes_Nested) Reset()

func (*TestTypes_Nested) String

func (x *TestTypes_Nested) String() string

type TestTypes_OneInt64

type TestTypes_OneInt64 struct {
	OneInt64 int64 `protobuf:"varint,15,opt,name=one_int64,json=oneInt64,proto3,oneof"`
}

type TestTypes_OneString

type TestTypes_OneString struct {
	OneString string `protobuf:"bytes,14,opt,name=one_string,json=oneString,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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