pb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Test_Type_name = map[int32]string{
		0: "NONE",
		1: "ONE",
		2: "TWO",
	}
	Test_Type_value = map[string]int32{
		"NONE": 0,
		"ONE":  1,
		"TWO":  2,
	}
)

Enum value maps for Test_Type.

View Source
var (
	TestOptional_Type_name = map[int32]string{
		0: "NONE",
		1: "ONE",
		2: "TWO",
	}
	TestOptional_Type_value = map[string]int32{
		"NONE": 0,
		"ONE":  1,
		"TWO":  2,
	}
)

Enum value maps for TestOptional_Type.

View Source
var (
	TestUnexported_Type_name = map[int32]string{
		0: "NONE",
		1: "ONE",
		2: "TWO",
	}
	TestUnexported_Type_value = map[string]int32{
		"NONE": 0,
		"ONE":  1,
		"TWO":  2,
	}
)

Enum value maps for TestUnexported_Type.

View Source
var (
	Types_Enum_name = map[int32]string{
		0: "NONE",
		1: "ONE",
		2: "TWO",
	}
	Types_Enum_value = map[string]int32{
		"NONE": 0,
		"ONE":  1,
		"TWO":  2,
	}
)

Enum value maps for Types_Enum.

View Source
var File_tests_pb_test_proto protoreflect.FileDescriptor
View Source
var File_tests_pb_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Message

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

func (*Message) Default

func (x *Message) Default()

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetField

func (x *Message) GetField() string

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 OneOfOne

type OneOfOne struct {
	StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	// contains filtered or unexported fields
}

func (*OneOfOne) Descriptor deprecated

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

Deprecated: Use OneOfOne.ProtoReflect.Descriptor instead.

func (*OneOfOne) GetStringField

func (x *OneOfOne) GetStringField() string

func (*OneOfOne) ProtoMessage

func (*OneOfOne) ProtoMessage()

func (*OneOfOne) ProtoReflect

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

func (*OneOfOne) Reset

func (x *OneOfOne) Reset()

func (*OneOfOne) String

func (x *OneOfOne) String() string

type OneOfThree

type OneOfThree struct {
	StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	// contains filtered or unexported fields
}

func (*OneOfThree) Default

func (x *OneOfThree) Default()

func (*OneOfThree) Descriptor deprecated

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

Deprecated: Use OneOfThree.ProtoReflect.Descriptor instead.

func (*OneOfThree) GetStringField

func (x *OneOfThree) GetStringField() string

func (*OneOfThree) ProtoMessage

func (*OneOfThree) ProtoMessage()

func (*OneOfThree) ProtoReflect

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

func (*OneOfThree) Reset

func (x *OneOfThree) Reset()

func (*OneOfThree) String

func (x *OneOfThree) String() string

type OneOfTwo

type OneOfTwo struct {
	StringField string `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	// contains filtered or unexported fields
}

func (*OneOfTwo) Default

func (x *OneOfTwo) Default()

func (*OneOfTwo) Descriptor deprecated

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

Deprecated: Use OneOfTwo.ProtoReflect.Descriptor instead.

func (*OneOfTwo) GetStringField

func (x *OneOfTwo) GetStringField() string

func (*OneOfTwo) ProtoMessage

func (*OneOfTwo) ProtoMessage()

func (*OneOfTwo) ProtoReflect

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

func (*OneOfTwo) Reset

func (x *OneOfTwo) Reset()

func (*OneOfTwo) String

func (x *OneOfTwo) String() string

type Test

type Test struct {
	StringField          string                  `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3" json:"string_field,omitempty"`
	NumberField          int64                   `protobuf:"varint,2,opt,name=number_field,json=numberField,proto3" json:"number_field,omitempty"`
	BoolField            bool                    `protobuf:"varint,3,opt,name=bool_field,json=boolField,proto3" json:"bool_field,omitempty"`
	EnumField            Test_Type               `protobuf:"varint,4,opt,name=enum_field,json=enumField,proto3,enum=tests.Test_Type" json:"enum_field,omitempty"`
	MessageField         *Test                   `protobuf:"bytes,5,opt,name=message_field,json=messageField,proto3" json:"message_field,omitempty"`
	RepeatedStringField  []string                `protobuf:"bytes,6,rep,name=repeated_string_field,json=repeatedStringField,proto3" json:"repeated_string_field,omitempty"`
	RepeatedMessageField []Test_Type             `` /* 152-byte string literal not displayed */
	NumberValueField     *wrapperspb.Int64Value  `protobuf:"bytes,8,opt,name=number_value_field,json=numberValueField,proto3" json:"number_value_field,omitempty"`
	StringValueField     *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=string_value_field,json=stringValueField,proto3" json:"string_value_field,omitempty"`
	BoolValueField       *wrapperspb.BoolValue   `protobuf:"bytes,10,opt,name=bool_value_field,json=boolValueField,proto3" json:"bool_value_field,omitempty"`
	TimeValueField       *timestamppb.Timestamp  `protobuf:"bytes,11,opt,name=time_value_field,json=timeValueField,proto3" json:"time_value_field,omitempty"`
	DurationValueField   *durationpb.Duration    `protobuf:"bytes,12,opt,name=duration_value_field,json=durationValueField,proto3" json:"duration_value_field,omitempty"`
	// Types that are assignable to Oneof:
	//	*Test_One
	//	*Test_Two
	//	*Test_Three
	//	*Test_Four
	Oneof                     isTest_Oneof                  `protobuf_oneof:"oneof"`
	Descriptor_               *descriptorpb.DescriptorProto `protobuf:"bytes,17,opt,name=descriptor,proto3" json:"descriptor,omitempty"`
	TimeValueFieldWithDefault *timestamppb.Timestamp        `` /* 143-byte string literal not displayed */
	Bytes                     []byte                        `protobuf:"bytes,19,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*Test) Default

func (x *Test) Default()

func (*Test) Descriptor deprecated

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

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetBoolField

func (x *Test) GetBoolField() bool

func (*Test) GetBoolValueField

func (x *Test) GetBoolValueField() *wrapperspb.BoolValue

func (*Test) GetBytes

func (x *Test) GetBytes() []byte

func (*Test) GetDescriptor_

func (x *Test) GetDescriptor_() *descriptorpb.DescriptorProto

func (*Test) GetDurationValueField

func (x *Test) GetDurationValueField() *durationpb.Duration

func (*Test) GetEnumField

func (x *Test) GetEnumField() Test_Type

func (*Test) GetFour

func (x *Test) GetFour() Test_Type

func (*Test) GetMessageField

func (x *Test) GetMessageField() *Test

func (*Test) GetNumberField

func (x *Test) GetNumberField() int64

func (*Test) GetNumberValueField

func (x *Test) GetNumberValueField() *wrapperspb.Int64Value

func (*Test) GetOne

func (x *Test) GetOne() *OneOfOne

func (*Test) GetOneof

func (m *Test) GetOneof() isTest_Oneof

func (*Test) GetRepeatedMessageField

func (x *Test) GetRepeatedMessageField() []Test_Type

func (*Test) GetRepeatedStringField

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

func (*Test) GetStringField

func (x *Test) GetStringField() string

func (*Test) GetStringValueField

func (x *Test) GetStringValueField() *wrapperspb.StringValue

func (*Test) GetThree

func (x *Test) GetThree() *OneOfThree

func (*Test) GetTimeValueField

func (x *Test) GetTimeValueField() *timestamppb.Timestamp

func (*Test) GetTimeValueFieldWithDefault

func (x *Test) GetTimeValueFieldWithDefault() *timestamppb.Timestamp

func (*Test) GetTwo

func (x *Test) GetTwo() *OneOfTwo

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

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

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() string

type TestOptional

type TestOptional struct {
	StringField *string            `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3,oneof" json:"string_field,omitempty"`
	NumberField *int64             `protobuf:"varint,2,opt,name=number_field,json=numberField,proto3,oneof" json:"number_field,omitempty"`
	BoolField   *bool              `protobuf:"varint,3,opt,name=bool_field,json=boolField,proto3,oneof" json:"bool_field,omitempty"`
	EnumField   *TestOptional_Type `protobuf:"varint,4,opt,name=enum_field,json=enumField,proto3,enum=tests.TestOptional_Type,oneof" json:"enum_field,omitempty"`
	// contains filtered or unexported fields
}

func (*TestOptional) Default

func (x *TestOptional) Default()

func (*TestOptional) Descriptor deprecated

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

Deprecated: Use TestOptional.ProtoReflect.Descriptor instead.

func (*TestOptional) GetBoolField

func (x *TestOptional) GetBoolField() bool

func (*TestOptional) GetEnumField

func (x *TestOptional) GetEnumField() TestOptional_Type

func (*TestOptional) GetNumberField

func (x *TestOptional) GetNumberField() int64

func (*TestOptional) GetStringField

func (x *TestOptional) GetStringField() string

func (*TestOptional) ProtoMessage

func (*TestOptional) ProtoMessage()

func (*TestOptional) ProtoReflect

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

func (*TestOptional) Reset

func (x *TestOptional) Reset()

func (*TestOptional) String

func (x *TestOptional) String() string

type TestOptional_Type

type TestOptional_Type int32
const (
	TestOptional_NONE TestOptional_Type = 0
	TestOptional_ONE  TestOptional_Type = 1
	TestOptional_TWO  TestOptional_Type = 2
)

func (TestOptional_Type) Descriptor

func (TestOptional_Type) Enum

func (TestOptional_Type) EnumDescriptor deprecated

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

Deprecated: Use TestOptional_Type.Descriptor instead.

func (TestOptional_Type) Number

func (TestOptional_Type) String

func (x TestOptional_Type) String() string

func (TestOptional_Type) Type

type TestUnexported

type TestUnexported struct {
	StringField *string              `protobuf:"bytes,1,opt,name=string_field,json=stringField,proto3,oneof" json:"string_field,omitempty"`
	NumberField *int64               `protobuf:"varint,2,opt,name=number_field,json=numberField,proto3,oneof" json:"number_field,omitempty"`
	BoolField   *bool                `protobuf:"varint,3,opt,name=bool_field,json=boolField,proto3,oneof" json:"bool_field,omitempty"`
	EnumField   *TestUnexported_Type `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestUnexported) Default

func (x *TestUnexported) Default()

func (*TestUnexported) Descriptor deprecated

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

Deprecated: Use TestUnexported.ProtoReflect.Descriptor instead.

func (*TestUnexported) GetBoolField

func (x *TestUnexported) GetBoolField() bool

func (*TestUnexported) GetEnumField

func (x *TestUnexported) GetEnumField() TestUnexported_Type

func (*TestUnexported) GetNumberField

func (x *TestUnexported) GetNumberField() int64

func (*TestUnexported) GetStringField

func (x *TestUnexported) GetStringField() string

func (*TestUnexported) ProtoMessage

func (*TestUnexported) ProtoMessage()

func (*TestUnexported) ProtoReflect

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

func (*TestUnexported) Reset

func (x *TestUnexported) Reset()

func (*TestUnexported) String

func (x *TestUnexported) String() string

type TestUnexported_Type

type TestUnexported_Type int32
const (
	TestUnexported_NONE TestUnexported_Type = 0
	TestUnexported_ONE  TestUnexported_Type = 1
	TestUnexported_TWO  TestUnexported_Type = 2
)

func (TestUnexported_Type) Descriptor

func (TestUnexported_Type) Enum

func (TestUnexported_Type) EnumDescriptor deprecated

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

Deprecated: Use TestUnexported_Type.Descriptor instead.

func (TestUnexported_Type) Number

func (TestUnexported_Type) String

func (x TestUnexported_Type) String() string

func (TestUnexported_Type) Type

type Test_Four

type Test_Four struct {
	Four Test_Type `protobuf:"varint,16,opt,name=four,proto3,enum=tests.Test_Type,oneof"`
}

type Test_One

type Test_One struct {
	One *OneOfOne `protobuf:"bytes,13,opt,name=one,proto3,oneof"`
}

type Test_Three

type Test_Three struct {
	Three *OneOfThree `protobuf:"bytes,15,opt,name=three,proto3,oneof"`
}

type Test_Two

type Test_Two struct {
	Two *OneOfTwo `protobuf:"bytes,14,opt,name=two,proto3,oneof"`
}

type Test_Type

type Test_Type int32
const (
	Test_NONE Test_Type = 0
	Test_ONE  Test_Type = 1
	Test_TWO  Test_Type = 2
)

func (Test_Type) Descriptor

func (Test_Type) Descriptor() protoreflect.EnumDescriptor

func (Test_Type) Enum

func (x Test_Type) Enum() *Test_Type

func (Test_Type) EnumDescriptor deprecated

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

Deprecated: Use Test_Type.Descriptor instead.

func (Test_Type) Number

func (x Test_Type) Number() protoreflect.EnumNumber

func (Test_Type) String

func (x Test_Type) String() string

func (Test_Type) Type

type Types

type Types struct {

	// Scalar Field Types
	Float    float32    `protobuf:"fixed32,1,opt,name=float,proto3" json:"float,omitempty"`
	Double   float64    `protobuf:"fixed64,2,opt,name=double,proto3" json:"double,omitempty"`
	Int32    int32      `protobuf:"varint,3,opt,name=int32,proto3" json:"int32,omitempty"`
	Int64    int64      `protobuf:"varint,4,opt,name=int64,proto3" json:"int64,omitempty"`
	Uint32   uint32     `protobuf:"varint,5,opt,name=uint32,proto3" json:"uint32,omitempty"`
	Uint64   uint64     `protobuf:"varint,6,opt,name=uint64,proto3" json:"uint64,omitempty"`
	Sint32   int32      `protobuf:"zigzag32,7,opt,name=sint32,proto3" json:"sint32,omitempty"`
	Sint64   int64      `protobuf:"zigzag64,8,opt,name=sint64,proto3" json:"sint64,omitempty"`
	Fixed32  uint32     `protobuf:"fixed32,9,opt,name=fixed32,proto3" json:"fixed32,omitempty"`
	Fixed64  uint64     `protobuf:"fixed64,10,opt,name=fixed64,proto3" json:"fixed64,omitempty"`
	Sfixed32 int32      `protobuf:"fixed32,11,opt,name=sfixed32,proto3" json:"sfixed32,omitempty"`
	Sfixed64 int64      `protobuf:"fixed64,12,opt,name=sfixed64,proto3" json:"sfixed64,omitempty"`
	Bool     bool       `protobuf:"varint,13,opt,name=bool,proto3" json:"bool,omitempty"`
	String_  string     `protobuf:"bytes,14,opt,name=string,proto3" json:"string,omitempty"`
	Bytes    []byte     `protobuf:"bytes,15,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Enum     Types_Enum `protobuf:"varint,16,opt,name=enum,proto3,enum=tests.Types_Enum" json:"enum,omitempty"`
	Message  *Message   `protobuf:"bytes,17,opt,name=message,proto3" json:"message,omitempty"`
	// Types that are assignable to Oneof:
	//	*Types_One
	//	*Types_Two
	//	*Types_Three
	//	*Types_Four
	Oneof isTypes_Oneof `protobuf_oneof:"oneof"`
	// WellKnow types
	Duration    *durationpb.Duration    `protobuf:"bytes,18,opt,name=duration,proto3" json:"duration,omitempty"`
	Timestamp   *timestamppb.Timestamp  `protobuf:"bytes,19,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	DoubleValue *wrapperspb.DoubleValue `protobuf:"bytes,20,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	FloatValue  *wrapperspb.FloatValue  `protobuf:"bytes,21,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	Int64Value  *wrapperspb.Int64Value  `protobuf:"bytes,22,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint64Value *wrapperspb.UInt64Value `protobuf:"bytes,23,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Int32Value  *wrapperspb.Int32Value  `protobuf:"bytes,24,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Uint32Value *wrapperspb.UInt32Value `protobuf:"bytes,25,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	BoolValue   *wrapperspb.BoolValue   `protobuf:"bytes,26,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	StringValue *wrapperspb.StringValue `protobuf:"bytes,27,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue  *wrapperspb.BytesValue  `protobuf:"bytes,28,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	// contains filtered or unexported fields
}

func (*Types) Default

func (x *Types) Default()

func (*Types) Descriptor deprecated

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

Deprecated: Use Types.ProtoReflect.Descriptor instead.

func (*Types) GetBool

func (x *Types) GetBool() bool

func (*Types) GetBoolValue

func (x *Types) GetBoolValue() *wrapperspb.BoolValue

func (*Types) GetBytes

func (x *Types) GetBytes() []byte

func (*Types) GetBytesValue

func (x *Types) GetBytesValue() *wrapperspb.BytesValue

func (*Types) GetDouble

func (x *Types) GetDouble() float64

func (*Types) GetDoubleValue

func (x *Types) GetDoubleValue() *wrapperspb.DoubleValue

func (*Types) GetDuration

func (x *Types) GetDuration() *durationpb.Duration

func (*Types) GetEnum

func (x *Types) GetEnum() Types_Enum

func (*Types) GetFixed32

func (x *Types) GetFixed32() uint32

func (*Types) GetFixed64

func (x *Types) GetFixed64() uint64

func (*Types) GetFloat

func (x *Types) GetFloat() float32

func (*Types) GetFloatValue

func (x *Types) GetFloatValue() *wrapperspb.FloatValue

func (*Types) GetFour

func (x *Types) GetFour() Types_Enum

func (*Types) GetInt32

func (x *Types) GetInt32() int32

func (*Types) GetInt32Value

func (x *Types) GetInt32Value() *wrapperspb.Int32Value

func (*Types) GetInt64

func (x *Types) GetInt64() int64

func (*Types) GetInt64Value

func (x *Types) GetInt64Value() *wrapperspb.Int64Value

func (*Types) GetMessage

func (x *Types) GetMessage() *Message

func (*Types) GetOne

func (x *Types) GetOne() *OneOfOne

func (*Types) GetOneof

func (m *Types) GetOneof() isTypes_Oneof

func (*Types) GetSfixed32

func (x *Types) GetSfixed32() int32

func (*Types) GetSfixed64

func (x *Types) GetSfixed64() int64

func (*Types) GetSint32

func (x *Types) GetSint32() int32

func (*Types) GetSint64

func (x *Types) GetSint64() int64

func (*Types) GetStringValue

func (x *Types) GetStringValue() *wrapperspb.StringValue

func (*Types) GetString_

func (x *Types) GetString_() string

func (*Types) GetThree

func (x *Types) GetThree() *OneOfThree

func (*Types) GetTimestamp

func (x *Types) GetTimestamp() *timestamppb.Timestamp

func (*Types) GetTwo

func (x *Types) GetTwo() *OneOfTwo

func (*Types) GetUint32

func (x *Types) GetUint32() uint32

func (*Types) GetUint32Value

func (x *Types) GetUint32Value() *wrapperspb.UInt32Value

func (*Types) GetUint64

func (x *Types) GetUint64() uint64

func (*Types) GetUint64Value

func (x *Types) GetUint64Value() *wrapperspb.UInt64Value

func (*Types) ProtoMessage

func (*Types) ProtoMessage()

func (*Types) ProtoReflect

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

func (*Types) Reset

func (x *Types) Reset()

func (*Types) String

func (x *Types) String() string

type Types_Enum

type Types_Enum int32

Complex Field Types

const (
	Types_NONE Types_Enum = 0
	Types_ONE  Types_Enum = 1
	Types_TWO  Types_Enum = 2
)

func (Types_Enum) Descriptor

func (Types_Enum) Descriptor() protoreflect.EnumDescriptor

func (Types_Enum) Enum

func (x Types_Enum) Enum() *Types_Enum

func (Types_Enum) EnumDescriptor deprecated

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

Deprecated: Use Types_Enum.Descriptor instead.

func (Types_Enum) Number

func (x Types_Enum) Number() protoreflect.EnumNumber

func (Types_Enum) String

func (x Types_Enum) String() string

func (Types_Enum) Type

type Types_Four

type Types_Four struct {
	Four Types_Enum `protobuf:"varint,32,opt,name=four,proto3,enum=tests.Types_Enum,oneof"`
}

type Types_One

type Types_One struct {
	One *OneOfOne `protobuf:"bytes,29,opt,name=one,proto3,oneof"`
}

type Types_Three

type Types_Three struct {
	Three *OneOfThree `protobuf:"bytes,31,opt,name=three,proto3,oneof"`
}

type Types_Two

type Types_Two struct {
	Two *OneOfTwo `protobuf:"bytes,30,opt,name=two,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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