test

package
v0.0.0-...-93d1c13 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestData_EnumType_name = map[int32]string{
		0: "UnknownType",
		1: "Test1Type",
		2: "Test2Type",
	}
	TestData_EnumType_value = map[string]int32{
		"UnknownType": 0,
		"Test1Type":   1,
		"Test2Type":   2,
	}
)

Enum value maps for TestData_EnumType.

Functions

This section is empty.

Types

type TestAnyType

type TestAnyType struct {
	Any *anypb.Any `protobuf:"bytes,1,opt,name=any,proto3,oneof" json:"any,omitempty"`
	// contains filtered or unexported fields
}

func (*TestAnyType) Descriptor deprecated

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

Deprecated: Use TestAnyType.ProtoReflect.Descriptor instead.

func (*TestAnyType) GetAny

func (x *TestAnyType) GetAny() *anypb.Any

func (*TestAnyType) ProtoMessage

func (*TestAnyType) ProtoMessage()

func (*TestAnyType) ProtoReflect

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

func (*TestAnyType) Reset

func (x *TestAnyType) Reset()

func (*TestAnyType) String

func (x *TestAnyType) String() string

type TestData

type TestData struct {
	TString     string               `protobuf:"bytes,1,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"`
	TInt64      int64                `protobuf:"varint,2,opt,name=t_int64,json=tInt64,proto3" json:"t_int64,omitempty"`
	TBool       bool                 `protobuf:"varint,3,opt,name=t_bool,json=tBool,proto3" json:"t_bool,omitempty"`
	TFix64      uint64               `protobuf:"fixed64,4,opt,name=t_fix64,json=tFix64,proto3" json:"t_fix64,omitempty"`
	TListI64    []int64              `protobuf:"varint,5,rep,packed,name=t_list_i64,json=tListI64,proto3" json:"t_list_i64,omitempty"`
	TMap        map[int64]string     `` /* 162-byte string literal not displayed */
	TEnum       TestData_EnumType    `protobuf:"varint,7,opt,name=t_enum,json=tEnum,proto3,enum=TestData_EnumType" json:"t_enum,omitempty"`
	TObj        *TestData_TestObj    `protobuf:"bytes,8,opt,name=t_obj,json=tObj,proto3" json:"t_obj,omitempty"`
	TListObj    []*TestData_TestObj  `protobuf:"bytes,9,rep,name=t_list_obj,json=tListObj,proto3" json:"t_list_obj,omitempty"`
	TMapObj     map[string]*TestData `` /* 173-byte string literal not displayed */
	TListString []string             `protobuf:"bytes,11,rep,name=t_list_string,json=tListString,proto3" json:"t_list_string,omitempty"`
	Any         *anypb.Any           `protobuf:"bytes,12,opt,name=any,proto3,oneof" json:"any,omitempty"`
	// contains filtered or unexported fields
}

func (*TestData) Descriptor deprecated

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

Deprecated: Use TestData.ProtoReflect.Descriptor instead.

func (*TestData) GetAny

func (x *TestData) GetAny() *anypb.Any

func (*TestData) GetTBool

func (x *TestData) GetTBool() bool

func (*TestData) GetTEnum

func (x *TestData) GetTEnum() TestData_EnumType

func (*TestData) GetTFix64

func (x *TestData) GetTFix64() uint64

func (*TestData) GetTInt64

func (x *TestData) GetTInt64() int64

func (*TestData) GetTListI64

func (x *TestData) GetTListI64() []int64

func (*TestData) GetTListObj

func (x *TestData) GetTListObj() []*TestData_TestObj

func (*TestData) GetTListString

func (x *TestData) GetTListString() []string

func (*TestData) GetTMap

func (x *TestData) GetTMap() map[int64]string

func (*TestData) GetTMapObj

func (x *TestData) GetTMapObj() map[string]*TestData

func (*TestData) GetTObj

func (x *TestData) GetTObj() *TestData_TestObj

func (*TestData) GetTString

func (x *TestData) GetTString() string

func (*TestData) ProtoMessage

func (*TestData) ProtoMessage()

func (*TestData) ProtoReflect

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

func (*TestData) Reset

func (x *TestData) Reset()

func (*TestData) String

func (x *TestData) String() string

type TestData_EnumType

type TestData_EnumType int32
const (
	TestData_UnknownType TestData_EnumType = 0 // 必须以0开始!
	TestData_Test1Type   TestData_EnumType = 1
	TestData_Test2Type   TestData_EnumType = 2
)

func (TestData_EnumType) Descriptor

func (TestData_EnumType) Enum

func (TestData_EnumType) EnumDescriptor deprecated

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

Deprecated: Use TestData_EnumType.Descriptor instead.

func (TestData_EnumType) Number

func (TestData_EnumType) String

func (x TestData_EnumType) String() string

func (TestData_EnumType) Type

type TestData_TestObj

type TestData_TestObj struct {
	TInt64 int64 `protobuf:"varint,1,opt,name=t_int64,json=tInt64,proto3" json:"t_int64,omitempty"`
	// contains filtered or unexported fields
}

func (*TestData_TestObj) Descriptor deprecated

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

Deprecated: Use TestData_TestObj.ProtoReflect.Descriptor instead.

func (*TestData_TestObj) GetTInt64

func (x *TestData_TestObj) GetTInt64() int64

func (*TestData_TestObj) ProtoMessage

func (*TestData_TestObj) ProtoMessage()

func (*TestData_TestObj) ProtoReflect

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

func (*TestData_TestObj) Reset

func (x *TestData_TestObj) Reset()

func (*TestData_TestObj) String

func (x *TestData_TestObj) String() string

type Type1

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

func (*Type1) Descriptor deprecated

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

Deprecated: Use Type1.ProtoReflect.Descriptor instead.

func (*Type1) GetValue

func (x *Type1) GetValue() string

func (*Type1) ProtoMessage

func (*Type1) ProtoMessage()

func (*Type1) ProtoReflect

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

func (*Type1) Reset

func (x *Type1) Reset()

func (*Type1) String

func (x *Type1) String() string

type Type2

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

func (*Type2) Descriptor deprecated

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

Deprecated: Use Type2.ProtoReflect.Descriptor instead.

func (*Type2) GetValue

func (x *Type2) GetValue() int64

func (*Type2) ProtoMessage

func (*Type2) ProtoMessage()

func (*Type2) ProtoReflect

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

func (*Type2) Reset

func (x *Type2) Reset()

func (*Type2) String

func (x *Type2) String() string

type Type3

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

func (*Type3) Descriptor deprecated

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

Deprecated: Use Type3.ProtoReflect.Descriptor instead.

func (*Type3) GetValue

func (x *Type3) GetValue() float32

func (*Type3) ProtoMessage

func (*Type3) ProtoMessage()

func (*Type3) ProtoReflect

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

func (*Type3) Reset

func (x *Type3) Reset()

func (*Type3) String

func (x *Type3) String() string

type Type4

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

func (*Type4) Descriptor deprecated

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

Deprecated: Use Type4.ProtoReflect.Descriptor instead.

func (*Type4) GetValue

func (x *Type4) GetValue() []string

func (*Type4) ProtoMessage

func (*Type4) ProtoMessage()

func (*Type4) ProtoReflect

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

func (*Type4) Reset

func (x *Type4) Reset()

func (*Type4) String

func (x *Type4) String() string

Jump to

Keyboard shortcuts

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