test

package
v0.0.0-...-9c3842d 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

Examples

Constants

This section is empty.

Variables

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

Enum value maps for ScalarType_Enum.

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_example_proto protoreflect.FileDescriptor
View Source
var File_test_list_type_proto protoreflect.FileDescriptor
View Source
var File_test_map_type_proto protoreflect.FileDescriptor
View Source
var File_test_scalar_type_proto protoreflect.FileDescriptor
View Source
var File_test_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ExampleMessage

type ExampleMessage struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Count   int32  `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Secret  string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ExampleMessage) Descriptor deprecated

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

Deprecated: Use ExampleMessage.ProtoReflect.Descriptor instead.

func (*ExampleMessage) GetCount

func (x *ExampleMessage) GetCount() int32

func (*ExampleMessage) GetMessage

func (x *ExampleMessage) GetMessage() string

func (*ExampleMessage) GetSecret

func (x *ExampleMessage) GetSecret() string

func (*ExampleMessage) LogValue

func (x *ExampleMessage) LogValue() slog.Value
Example
package main

import (
	"log/slog"
	"os"
)

var exampleLoggerOptions = &slog.HandlerOptions{
	ReplaceAttr: func(groups []string, attr slog.Attr) slog.Attr {
		// Remove time.
		if attr.Key == slog.TimeKey && len(groups) == 0 {
			return slog.Attr{}
		}
		return attr
	},
}

func main() {
	m := &ExampleMessage{
		Message: "foo",
		Count:   1,
		Secret:  "secret",
	}
	logger := slog.New(slog.NewTextHandler(os.Stdout, exampleLoggerOptions))
	logger.Info("out example message", "message", m)

}
Output:

level=INFO msg="out example message" message.message=foo message.count=1 message.secret=[REDACTED]

func (*ExampleMessage) ProtoMessage

func (*ExampleMessage) ProtoMessage()

func (*ExampleMessage) ProtoReflect

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

func (*ExampleMessage) Reset

func (x *ExampleMessage) Reset()

func (*ExampleMessage) String

func (x *ExampleMessage) String() string

type ListType

type ListType struct {
	StringList []string `protobuf:"bytes,1,rep,name=string_list,json=stringList,proto3" json:"string_list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListType) Descriptor deprecated

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

Deprecated: Use ListType.ProtoReflect.Descriptor instead.

func (*ListType) GetStringList

func (x *ListType) GetStringList() []string

func (*ListType) LogValue

func (x *ListType) LogValue() slog.Value

func (*ListType) ProtoMessage

func (*ListType) ProtoMessage()

func (*ListType) ProtoReflect

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

func (*ListType) Reset

func (x *ListType) Reset()

func (*ListType) String

func (x *ListType) String() string

type MapType

type MapType struct {
	StringMap       map[string]string              `` /* 176-byte string literal not displayed */
	FloatMap        map[string]float32             `` /* 175-byte string literal not displayed */
	IntKeyMap       map[int32]string               `` /* 179-byte string literal not displayed */
	MessageMap      map[string]*MapType_MapMessage `` /* 179-byte string literal not displayed */
	StructMap       map[string]*structpb.Struct    `` /* 176-byte string literal not displayed */
	EmptyStringMap  map[string]string              `` /* 193-byte string literal not displayed */
	EmptyMessageMap map[string]*MapType_MapMessage `` /* 196-byte string literal not displayed */
	NullStringMap   map[string]string              `` /* 190-byte string literal not displayed */
	NullMessageMap  map[string]*MapType_MapMessage `` /* 193-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MapType) Descriptor deprecated

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

Deprecated: Use MapType.ProtoReflect.Descriptor instead.

func (*MapType) GetEmptyMessageMap

func (x *MapType) GetEmptyMessageMap() map[string]*MapType_MapMessage

func (*MapType) GetEmptyStringMap

func (x *MapType) GetEmptyStringMap() map[string]string

func (*MapType) GetFloatMap

func (x *MapType) GetFloatMap() map[string]float32

func (*MapType) GetIntKeyMap

func (x *MapType) GetIntKeyMap() map[int32]string

func (*MapType) GetMessageMap

func (x *MapType) GetMessageMap() map[string]*MapType_MapMessage

func (*MapType) GetNullMessageMap

func (x *MapType) GetNullMessageMap() map[string]*MapType_MapMessage

func (*MapType) GetNullStringMap

func (x *MapType) GetNullStringMap() map[string]string

func (*MapType) GetStringMap

func (x *MapType) GetStringMap() map[string]string

func (*MapType) GetStructMap

func (x *MapType) GetStructMap() map[string]*structpb.Struct

func (*MapType) LogValue

func (x *MapType) LogValue() slog.Value

func (*MapType) ProtoMessage

func (*MapType) ProtoMessage()

func (*MapType) ProtoReflect

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

func (*MapType) Reset

func (x *MapType) Reset()

func (*MapType) String

func (x *MapType) String() string

type MapType_MapMessage

type MapType_MapMessage struct {
	SecretVal string  `protobuf:"bytes,1,opt,name=secret_val,json=secretVal,proto3" json:"secret_val,omitempty"`
	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"`
	// contains filtered or unexported fields
}

func (*MapType_MapMessage) Descriptor deprecated

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

Deprecated: Use MapType_MapMessage.ProtoReflect.Descriptor instead.

func (*MapType_MapMessage) GetDoubleVal

func (x *MapType_MapMessage) GetDoubleVal() float64

func (*MapType_MapMessage) GetFloatVal

func (x *MapType_MapMessage) GetFloatVal() float32

func (*MapType_MapMessage) GetSecretVal

func (x *MapType_MapMessage) GetSecretVal() string

func (*MapType_MapMessage) LogValue

func (x *MapType_MapMessage) LogValue() slog.Value

func (*MapType_MapMessage) ProtoMessage

func (*MapType_MapMessage) ProtoMessage()

func (*MapType_MapMessage) ProtoReflect

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

func (*MapType_MapMessage) Reset

func (x *MapType_MapMessage) Reset()

func (*MapType_MapMessage) String

func (x *MapType_MapMessage) String() string

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) LogValue

func (x *OtherType1) LogValue() slog.Value

func (*OtherType1) ProtoMessage

func (*OtherType1) ProtoMessage()

func (*OtherType1) ProtoReflect

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) LogValue

func (x *OtherType2) LogValue() slog.Value

func (*OtherType2) ProtoMessage

func (*OtherType2) ProtoMessage()

func (*OtherType2) ProtoReflect

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) LogValue

func (x *OtherType2_NestedType) LogValue() slog.Value

func (*OtherType2_NestedType) ProtoMessage

func (*OtherType2_NestedType) ProtoMessage()

func (*OtherType2_NestedType) ProtoReflect

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

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

func (*OtherType3) Descriptor deprecated

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

Deprecated: Use OtherType3.ProtoReflect.Descriptor instead.

func (*OtherType3) GetVal

func (x *OtherType3) GetVal() string

func (*OtherType3) LogValue

func (x *OtherType3) LogValue() slog.Value

func (*OtherType3) ProtoMessage

func (*OtherType3) ProtoMessage()

func (*OtherType3) ProtoReflect

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

func (*OtherType3) Reset

func (x *OtherType3) Reset()

func (*OtherType3) String

func (x *OtherType3) String() string

type ScalarType

type ScalarType struct {
	SecretVal string `protobuf:"bytes,1,opt,name=secret_val,json=secretVal,proto3" json:"secret_val,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     ScalarType_Enum `protobuf:"varint,17,opt,name=enum_val,json=enumVal,proto3,enum=simple.ScalarType_Enum" json:"enum_val,omitempty"`
	// Oneof
	// https://developers.google.com/protocol-buffers/docs/proto#oneof
	//
	// Types that are assignable to OneofVal:
	//
	//	*ScalarType_OneofStringVal
	//	*ScalarType_OneofInt64Val
	//	*ScalarType_OneofBoolVal
	OneofVal isScalarType_OneofVal `protobuf_oneof:"oneof_val"`
	// Camelcasing
	XString string `protobuf:"bytes,21,opt,name=_String,json=String,proto3" json:"_String,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalarType) Descriptor deprecated

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

Deprecated: Use ScalarType.ProtoReflect.Descriptor instead.

func (*ScalarType) GetBoolVal

func (x *ScalarType) GetBoolVal() bool

func (*ScalarType) GetBytesVal

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

func (*ScalarType) GetDoubleVal

func (x *ScalarType) GetDoubleVal() float64

func (*ScalarType) GetEnumVal

func (x *ScalarType) GetEnumVal() ScalarType_Enum

func (*ScalarType) GetFixed32Val

func (x *ScalarType) GetFixed32Val() uint32

func (*ScalarType) GetFixed64Val

func (x *ScalarType) GetFixed64Val() uint64

func (*ScalarType) GetFloatVal

func (x *ScalarType) GetFloatVal() float32

func (*ScalarType) GetInt32Val

func (x *ScalarType) GetInt32Val() int32

func (*ScalarType) GetInt64Val

func (x *ScalarType) GetInt64Val() int64

func (*ScalarType) GetOneofBoolVal

func (x *ScalarType) GetOneofBoolVal() bool

func (*ScalarType) GetOneofInt64Val

func (x *ScalarType) GetOneofInt64Val() int64

func (*ScalarType) GetOneofStringVal

func (x *ScalarType) GetOneofStringVal() string

func (*ScalarType) GetOneofVal

func (m *ScalarType) GetOneofVal() isScalarType_OneofVal

func (*ScalarType) GetSecretVal

func (x *ScalarType) GetSecretVal() string

func (*ScalarType) GetSfixed32Val

func (x *ScalarType) GetSfixed32Val() int32

func (*ScalarType) GetSfixed64Val

func (x *ScalarType) GetSfixed64Val() int64

func (*ScalarType) GetSint32Val

func (x *ScalarType) GetSint32Val() int32

func (*ScalarType) GetSint64Val

func (x *ScalarType) GetSint64Val() int64

func (*ScalarType) GetStringVal

func (x *ScalarType) GetStringVal() string

func (*ScalarType) GetUint32Val

func (x *ScalarType) GetUint32Val() uint32

func (*ScalarType) GetUint64Val

func (x *ScalarType) GetUint64Val() uint64

func (*ScalarType) GetXString

func (x *ScalarType) GetXString() string

func (*ScalarType) LogValue

func (x *ScalarType) LogValue() slog.Value

func (*ScalarType) ProtoMessage

func (*ScalarType) ProtoMessage()

func (*ScalarType) ProtoReflect

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

func (*ScalarType) Reset

func (x *ScalarType) Reset()

func (*ScalarType) String

func (x *ScalarType) String() string

type ScalarType_Enum

type ScalarType_Enum int32

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

const (
	ScalarType_ENUM_0 ScalarType_Enum = 0
	ScalarType_ENUM_1 ScalarType_Enum = 1
	ScalarType_ENUM_2 ScalarType_Enum = 2
)

func (ScalarType_Enum) Descriptor

func (ScalarType_Enum) Enum

func (x ScalarType_Enum) Enum() *ScalarType_Enum

func (ScalarType_Enum) EnumDescriptor deprecated

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

Deprecated: Use ScalarType_Enum.Descriptor instead.

func (ScalarType_Enum) Number

func (ScalarType_Enum) String

func (x ScalarType_Enum) String() string

func (ScalarType_Enum) Type

type ScalarType_OneofBoolVal

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

type ScalarType_OneofInt64Val

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

type ScalarType_OneofStringVal

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

type Types

type Types struct {
	SecretVal string `protobuf:"bytes,1,opt,name=secret_val,json=secretVal,proto3" json:"secret_val,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=simple.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  `` /* 129-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 `` /* 128-byte string literal not displayed */
	OptionalNotPresentEnum    *Types_Enum `` /* 162-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

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

func (x *Types) GetOptionalEnum() Types_Enum

func (*Types) GetOptionalMessage

func (x *Types) GetOptionalMessage() *OtherType3

func (*Types) GetOptionalNotPresentEnum

func (x *Types) GetOptionalNotPresentEnum() Types_Enum

func (*Types) GetOptionalNotPresentMessage

func (x *Types) GetOptionalNotPresentMessage() *OtherType3

func (*Types) GetOptionalNotPresentVal

func (x *Types) GetOptionalNotPresentVal() string

func (*Types) GetOptionalVal

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

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) 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

func (x *Types) GetXString() string

func (*Types) LogValue

func (x *Types) LogValue() slog.Value

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

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

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_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) LogValue

func (x *Types_NestedType) LogValue() slog.Value

func (*Types_NestedType) ProtoMessage

func (*Types_NestedType) ProtoMessage()

func (*Types_NestedType) ProtoReflect

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