types

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Types_Enum_name = map[int32]string{
		0: "ENUM_0",
		1: "ENUM_1",
		2: "ENUM_2",
	}
	Types_Enum_value = map[string]int32{
		"ENUM_0": 0,
		"ENUM_1": 1,
		"ENUM_2": 2,
	}
)

Enum value maps for Types_Enum.

View Source
var File_test_types_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OtherType1

type OtherType1 struct {
	OtherStringVal string `protobuf:"bytes,1,opt,name=other_string_val,json=otherStringVal,proto3" json:"other_string_val,omitempty"`
	OtherSecretVal string `protobuf:"bytes,2,opt,name=other_secret_val,json=otherSecretVal,proto3" json:"other_secret_val,omitempty"`
	// contains filtered or unexported fields
}

func (*OtherType1) Descriptor deprecated

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

Deprecated: Use OtherType1.ProtoReflect.Descriptor instead.

func (*OtherType1) GetOtherSecretVal

func (x *OtherType1) GetOtherSecretVal() string

func (*OtherType1) GetOtherStringVal

func (x *OtherType1) GetOtherStringVal() string

func (*OtherType1) MarshalLogObject

func (x *OtherType1) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*OtherType1) ProtoMessage

func (*OtherType1) ProtoMessage()

func (*OtherType1) ProtoReflect added in v0.0.3

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

func (*OtherType1) Reset

func (x *OtherType1) Reset()

func (*OtherType1) String

func (x *OtherType1) String() string

type OtherType2

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

func (*OtherType2) Descriptor deprecated

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

Deprecated: Use OtherType2.ProtoReflect.Descriptor instead.

func (*OtherType2) MarshalLogObject

func (x *OtherType2) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*OtherType2) ProtoMessage

func (*OtherType2) ProtoMessage()

func (*OtherType2) ProtoReflect added in v0.0.3

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

func (*OtherType2) Reset

func (x *OtherType2) Reset()

func (*OtherType2) String

func (x *OtherType2) String() string

type OtherType2_NestedType

type OtherType2_NestedType struct {
	NestedStringVal string `protobuf:"bytes,1,opt,name=nested_string_val,json=nestedStringVal,proto3" json:"nested_string_val,omitempty"`
	NestedSecretVal string `protobuf:"bytes,2,opt,name=nested_secret_val,json=nestedSecretVal,proto3" json:"nested_secret_val,omitempty"`
	// contains filtered or unexported fields
}

func (*OtherType2_NestedType) Descriptor deprecated

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

Deprecated: Use OtherType2_NestedType.ProtoReflect.Descriptor instead.

func (*OtherType2_NestedType) GetNestedSecretVal

func (x *OtherType2_NestedType) GetNestedSecretVal() string

func (*OtherType2_NestedType) GetNestedStringVal

func (x *OtherType2_NestedType) GetNestedStringVal() string

func (*OtherType2_NestedType) MarshalLogObject

func (x *OtherType2_NestedType) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*OtherType2_NestedType) ProtoMessage

func (*OtherType2_NestedType) ProtoMessage()

func (*OtherType2_NestedType) ProtoReflect added in v0.0.3

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

func (*OtherType2_NestedType) Reset

func (x *OtherType2_NestedType) Reset()

func (*OtherType2_NestedType) String

func (x *OtherType2_NestedType) String() string

type OtherType3 added in v0.2.0

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

func (*OtherType3) Descriptor deprecated added in v0.2.0

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

Deprecated: Use OtherType3.ProtoReflect.Descriptor instead.

func (*OtherType3) GetVal added in v0.2.0

func (x *OtherType3) GetVal() string

func (*OtherType3) MarshalLogObject added in v0.2.0

func (x *OtherType3) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*OtherType3) ProtoMessage added in v0.2.0

func (*OtherType3) ProtoMessage()

func (*OtherType3) ProtoReflect added in v0.2.0

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

func (*OtherType3) Reset added in v0.2.0

func (x *OtherType3) Reset()

func (*OtherType3) String added in v0.2.0

func (x *OtherType3) String() string

type Types

type Types struct {
	SecretVal  string `protobuf:"bytes,1,opt,name=secret_val,json=secretVal,proto3" json:"secret_val,omitempty"`
	SecretVal2 string `protobuf:"bytes,41,opt,name=secret_val2,json=secretVal2,proto3" json:"secret_val2,omitempty"`
	// Scalar Value Types
	// https://developers.google.com/protocol-buffers/docs/proto#scalar
	DoubleVal   float64    `protobuf:"fixed64,2,opt,name=double_val,json=doubleVal,proto3" json:"double_val,omitempty"`
	FloatVal    float32    `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3" json:"float_val,omitempty"`
	Int32Val    int32      `protobuf:"varint,4,opt,name=int32_val,json=int32Val,proto3" json:"int32_val,omitempty"`
	Int64Val    int64      `protobuf:"varint,5,opt,name=int64_val,json=int64Val,proto3" json:"int64_val,omitempty"`
	Uint32Val   uint32     `protobuf:"varint,6,opt,name=uint32_val,json=uint32Val,proto3" json:"uint32_val,omitempty"`
	Uint64Val   uint64     `protobuf:"varint,7,opt,name=uint64_val,json=uint64Val,proto3" json:"uint64_val,omitempty"`
	Sint32Val   int32      `protobuf:"zigzag32,8,opt,name=sint32_val,json=sint32Val,proto3" json:"sint32_val,omitempty"`
	Sint64Val   int64      `protobuf:"zigzag64,9,opt,name=sint64_val,json=sint64Val,proto3" json:"sint64_val,omitempty"`
	Fixed32Val  uint32     `protobuf:"fixed32,10,opt,name=fixed32_val,json=fixed32Val,proto3" json:"fixed32_val,omitempty"`
	Fixed64Val  uint64     `protobuf:"fixed64,11,opt,name=fixed64_val,json=fixed64Val,proto3" json:"fixed64_val,omitempty"`
	Sfixed32Val int32      `protobuf:"fixed32,12,opt,name=sfixed32_val,json=sfixed32Val,proto3" json:"sfixed32_val,omitempty"`
	Sfixed64Val int64      `protobuf:"fixed64,13,opt,name=sfixed64_val,json=sfixed64Val,proto3" json:"sfixed64_val,omitempty"`
	BoolVal     bool       `protobuf:"varint,14,opt,name=bool_val,json=boolVal,proto3" json:"bool_val,omitempty"`
	StringVal   string     `protobuf:"bytes,15,opt,name=string_val,json=stringVal,proto3" json:"string_val,omitempty"`
	BytesVal    []byte     `protobuf:"bytes,16,opt,name=bytes_val,json=bytesVal,proto3" json:"bytes_val,omitempty"`
	EnumVal     Types_Enum `protobuf:"varint,17,opt,name=enum_val,json=enumVal,proto3,enum=types.Types_Enum" json:"enum_val,omitempty"`
	// Other Message Types
	// https://developers.google.com/protocol-buffers/docs/proto#other
	OtherTypeVal           *OtherType1            `protobuf:"bytes,18,opt,name=other_type_val,json=otherTypeVal,proto3" json:"other_type_val,omitempty"`
	NestedTypeVal          *Types_NestedType      `protobuf:"bytes,19,opt,name=nested_type_val,json=nestedTypeVal,proto3" json:"nested_type_val,omitempty"`
	OtherTypeNestedTypeVal *OtherType2_NestedType `` /* 134-byte string literal not displayed */
	// Oneof
	// https://developers.google.com/protocol-buffers/docs/proto#oneof
	//
	// Types that are assignable to OneofVal:
	//
	//	*Types_OneofStringVal
	//	*Types_OneofInt64Val
	//	*Types_OneofBoolVal
	OneofVal isTypes_OneofVal `protobuf_oneof:"oneof_val"`
	// Maps
	// https://developers.google.com/protocol-buffers/docs/proto#updating
	MapVal1     map[string]string      `` /* 171-byte string literal not displayed */
	MapVal2     map[string]*OtherType1 `` /* 171-byte string literal not displayed */
	MapEmptyVal map[string]string      `` /* 185-byte string literal not displayed */
	// Repeated
	// * Repeated Scalar Values
	// * Repeated Enumerations
	// * Repeated MessageTypes
	// * (Repeated Maps -> NOT supported)
	// * (Repeated Repeated -> NOT supported)
	RepeatedVal1     []string      `protobuf:"bytes,27,rep,name=repeated_val1,json=repeatedVal1,proto3" json:"repeated_val1,omitempty"`
	RepeatedVal2     []Types_Enum  `` /* 128-byte string literal not displayed */
	RepeatedVal3     []*OtherType1 `protobuf:"bytes,29,rep,name=repeated_val3,json=repeatedVal3,proto3" json:"repeated_val3,omitempty"`
	RepeatedEmptyVal []string      `protobuf:"bytes,30,rep,name=repeated_empty_val,json=repeatedEmptyVal,proto3" json:"repeated_empty_val,omitempty"`
	// TODO wellknown types
	// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf
	StructVal *structpb.Struct `protobuf:"bytes,31,opt,name=struct_val,json=structVal,proto3" json:"struct_val,omitempty"`
	// Camelcasing
	XString string `protobuf:"bytes,32,opt,name=_String,json=String,proto3" json:"_String,omitempty"`
	// Handle Explicit Presence
	// https://protobuf.dev/programming-guides/field_presence/#presence-in-proto3-apis
	OptionalVal               *string     `protobuf:"bytes,33,opt,name=optional_val,json=optionalVal,proto3,oneof" json:"optional_val,omitempty"`
	OptionalNotPresentVal     *string     `` /* 135-byte string literal not displayed */
	OptionalEnum              *Types_Enum `` /* 127-byte string literal not displayed */
	OptionalNotPresentEnum    *Types_Enum `` /* 161-byte string literal not displayed */
	OptionalMessage           *OtherType3 `protobuf:"bytes,37,opt,name=optional_message,json=optionalMessage,proto3,oneof" json:"optional_message,omitempty"`
	OptionalNotPresentMessage *OtherType3 `` /* 147-byte string literal not displayed */
	PresentMessage            *OtherType3 `protobuf:"bytes,39,opt,name=present_message,json=presentMessage,proto3" json:"present_message,omitempty"`
	NotPresentMessage         *OtherType3 `protobuf:"bytes,40,opt,name=not_present_message,json=notPresentMessage,proto3" json:"not_present_message,omitempty"`
	// contains filtered or unexported fields
}

func (*Types) Descriptor deprecated

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

Deprecated: Use Types.ProtoReflect.Descriptor instead.

func (*Types) GetBoolVal

func (x *Types) GetBoolVal() bool

func (*Types) GetBytesVal

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

func (*Types) GetDoubleVal

func (x *Types) GetDoubleVal() float64

func (*Types) GetEnumVal

func (x *Types) GetEnumVal() Types_Enum

func (*Types) GetFixed32Val

func (x *Types) GetFixed32Val() uint32

func (*Types) GetFixed64Val

func (x *Types) GetFixed64Val() uint64

func (*Types) GetFloatVal

func (x *Types) GetFloatVal() float32

func (*Types) GetInt32Val

func (x *Types) GetInt32Val() int32

func (*Types) GetInt64Val

func (x *Types) GetInt64Val() int64

func (*Types) GetMapEmptyVal

func (x *Types) GetMapEmptyVal() map[string]string

func (*Types) GetMapVal1

func (x *Types) GetMapVal1() map[string]string

func (*Types) GetMapVal2

func (x *Types) GetMapVal2() map[string]*OtherType1

func (*Types) GetNestedTypeVal

func (x *Types) GetNestedTypeVal() *Types_NestedType

func (*Types) GetNotPresentMessage added in v0.2.0

func (x *Types) GetNotPresentMessage() *OtherType3

func (*Types) GetOneofBoolVal

func (x *Types) GetOneofBoolVal() bool

func (*Types) GetOneofInt64Val

func (x *Types) GetOneofInt64Val() int64

func (*Types) GetOneofStringVal

func (x *Types) GetOneofStringVal() string

func (*Types) GetOneofVal

func (m *Types) GetOneofVal() isTypes_OneofVal

func (*Types) GetOptionalEnum added in v0.2.0

func (x *Types) GetOptionalEnum() Types_Enum

func (*Types) GetOptionalMessage added in v0.2.0

func (x *Types) GetOptionalMessage() *OtherType3

func (*Types) GetOptionalNotPresentEnum added in v0.2.0

func (x *Types) GetOptionalNotPresentEnum() Types_Enum

func (*Types) GetOptionalNotPresentMessage added in v0.2.0

func (x *Types) GetOptionalNotPresentMessage() *OtherType3

func (*Types) GetOptionalNotPresentVal added in v0.2.0

func (x *Types) GetOptionalNotPresentVal() string

func (*Types) GetOptionalVal added in v0.2.0

func (x *Types) GetOptionalVal() string

func (*Types) GetOtherTypeNestedTypeVal

func (x *Types) GetOtherTypeNestedTypeVal() *OtherType2_NestedType

func (*Types) GetOtherTypeVal

func (x *Types) GetOtherTypeVal() *OtherType1

func (*Types) GetPresentMessage added in v0.2.0

func (x *Types) GetPresentMessage() *OtherType3

func (*Types) GetRepeatedEmptyVal

func (x *Types) GetRepeatedEmptyVal() []string

func (*Types) GetRepeatedVal1

func (x *Types) GetRepeatedVal1() []string

func (*Types) GetRepeatedVal2

func (x *Types) GetRepeatedVal2() []Types_Enum

func (*Types) GetRepeatedVal3

func (x *Types) GetRepeatedVal3() []*OtherType1

func (*Types) GetSecretVal

func (x *Types) GetSecretVal() string

func (*Types) GetSecretVal2 added in v0.4.0

func (x *Types) GetSecretVal2() string

func (*Types) GetSfixed32Val

func (x *Types) GetSfixed32Val() int32

func (*Types) GetSfixed64Val

func (x *Types) GetSfixed64Val() int64

func (*Types) GetSint32Val

func (x *Types) GetSint32Val() int32

func (*Types) GetSint64Val

func (x *Types) GetSint64Val() int64

func (*Types) GetStringVal

func (x *Types) GetStringVal() string

func (*Types) GetStructVal

func (x *Types) GetStructVal() *structpb.Struct

func (*Types) GetUint32Val

func (x *Types) GetUint32Val() uint32

func (*Types) GetUint64Val

func (x *Types) GetUint64Val() uint64

func (*Types) GetXString added in v0.0.4

func (x *Types) GetXString() string

func (*Types) MarshalLogObject

func (x *Types) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*Types) ProtoMessage

func (*Types) ProtoMessage()

func (*Types) ProtoReflect added in v0.0.3

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

Enumerations https://developers.google.com/protocol-buffers/docs/proto#enum

const (
	Types_ENUM_0 Types_Enum = 0
	Types_ENUM_1 Types_Enum = 1
	Types_ENUM_2 Types_Enum = 2
)

func (Types_Enum) Descriptor added in v0.0.3

func (Types_Enum) Descriptor() protoreflect.EnumDescriptor

func (Types_Enum) Enum added in v0.0.3

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 added in v0.0.3

func (x Types_Enum) Number() protoreflect.EnumNumber

func (Types_Enum) String

func (x Types_Enum) String() string

func (Types_Enum) Type added in v0.0.3

type Types_NestedType

type Types_NestedType struct {
	NestedStringVal string `protobuf:"bytes,1,opt,name=nested_string_val,json=nestedStringVal,proto3" json:"nested_string_val,omitempty"`
	NestedSecretVal string `protobuf:"bytes,2,opt,name=nested_secret_val,json=nestedSecretVal,proto3" json:"nested_secret_val,omitempty"`
	// contains filtered or unexported fields
}

Nested Types https://developers.google.com/protocol-buffers/docs/proto#nested

func (*Types_NestedType) Descriptor deprecated

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

Deprecated: Use Types_NestedType.ProtoReflect.Descriptor instead.

func (*Types_NestedType) GetNestedSecretVal

func (x *Types_NestedType) GetNestedSecretVal() string

func (*Types_NestedType) GetNestedStringVal

func (x *Types_NestedType) GetNestedStringVal() string

func (*Types_NestedType) MarshalLogObject

func (x *Types_NestedType) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*Types_NestedType) ProtoMessage

func (*Types_NestedType) ProtoMessage()

func (*Types_NestedType) ProtoReflect added in v0.0.3

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

func (*Types_NestedType) Reset

func (x *Types_NestedType) Reset()

func (*Types_NestedType) String

func (x *Types_NestedType) String() string

type Types_OneofBoolVal

type Types_OneofBoolVal struct {
	OneofBoolVal bool `protobuf:"varint,23,opt,name=oneof_bool_val,json=oneofBoolVal,proto3,oneof"`
}

type Types_OneofInt64Val

type Types_OneofInt64Val struct {
	OneofInt64Val int64 `protobuf:"varint,22,opt,name=oneof_int64_val,json=oneofInt64Val,proto3,oneof"`
}

type Types_OneofStringVal

type Types_OneofStringVal struct {
	OneofStringVal string `protobuf:"bytes,21,opt,name=oneof_string_val,json=oneofStringVal,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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