kubernetes/vendor/google.golang.org/protobuf/internal/impl/convert.go

type unwrapper

type Converter

// NewConverter matches a Go type with a protobuf field and returns a Converter
// that converts between the two. Enums must be a named int32 kind that
// implements protoreflect.Enum, and messages must be pointer to a named
// struct type that implements protoreflect.ProtoMessage.
//
// This matcher deliberately supports a wider range of Go types than what
// protoc-gen-go historically generated to be able to automatically wrap some
// v1 messages generated by other forks of protoc-gen-go.
func NewConverter(t reflect.Type, fd protoreflect.FieldDescriptor) Converter {}

var boolType

var int32Type

var int64Type

var uint32Type

var uint64Type

var float32Type

var float64Type

var stringType

var bytesType

var byteType

var boolZero

var int32Zero

var int64Zero

var uint32Zero

var uint64Zero

var float32Zero

var float64Zero

var stringZero

var bytesZero

func newSingularConverter(t reflect.Type, fd protoreflect.FieldDescriptor) Converter {}

type boolConverter

func (c *boolConverter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *boolConverter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *boolConverter) IsValidPB(v protoreflect.Value) bool {}

func (c *boolConverter) IsValidGo(v reflect.Value) bool {}

func (c *boolConverter) New() protoreflect.Value  {}

func (c *boolConverter) Zero() protoreflect.Value {}

type int32Converter

func (c *int32Converter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *int32Converter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *int32Converter) IsValidPB(v protoreflect.Value) bool {}

func (c *int32Converter) IsValidGo(v reflect.Value) bool {}

func (c *int32Converter) New() protoreflect.Value  {}

func (c *int32Converter) Zero() protoreflect.Value {}

type int64Converter

func (c *int64Converter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *int64Converter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *int64Converter) IsValidPB(v protoreflect.Value) bool {}

func (c *int64Converter) IsValidGo(v reflect.Value) bool {}

func (c *int64Converter) New() protoreflect.Value  {}

func (c *int64Converter) Zero() protoreflect.Value {}

type uint32Converter

func (c *uint32Converter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *uint32Converter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *uint32Converter) IsValidPB(v protoreflect.Value) bool {}

func (c *uint32Converter) IsValidGo(v reflect.Value) bool {}

func (c *uint32Converter) New() protoreflect.Value  {}

func (c *uint32Converter) Zero() protoreflect.Value {}

type uint64Converter

func (c *uint64Converter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *uint64Converter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *uint64Converter) IsValidPB(v protoreflect.Value) bool {}

func (c *uint64Converter) IsValidGo(v reflect.Value) bool {}

func (c *uint64Converter) New() protoreflect.Value  {}

func (c *uint64Converter) Zero() protoreflect.Value {}

type float32Converter

func (c *float32Converter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *float32Converter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *float32Converter) IsValidPB(v protoreflect.Value) bool {}

func (c *float32Converter) IsValidGo(v reflect.Value) bool {}

func (c *float32Converter) New() protoreflect.Value  {}

func (c *float32Converter) Zero() protoreflect.Value {}

type float64Converter

func (c *float64Converter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *float64Converter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *float64Converter) IsValidPB(v protoreflect.Value) bool {}

func (c *float64Converter) IsValidGo(v reflect.Value) bool {}

func (c *float64Converter) New() protoreflect.Value  {}

func (c *float64Converter) Zero() protoreflect.Value {}

type stringConverter

func (c *stringConverter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *stringConverter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *stringConverter) IsValidPB(v protoreflect.Value) bool {}

func (c *stringConverter) IsValidGo(v reflect.Value) bool {}

func (c *stringConverter) New() protoreflect.Value  {}

func (c *stringConverter) Zero() protoreflect.Value {}

type bytesConverter

func (c *bytesConverter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *bytesConverter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *bytesConverter) IsValidPB(v protoreflect.Value) bool {}

func (c *bytesConverter) IsValidGo(v reflect.Value) bool {}

func (c *bytesConverter) New() protoreflect.Value  {}

func (c *bytesConverter) Zero() protoreflect.Value {}

type enumConverter

func newEnumConverter(goType reflect.Type, fd protoreflect.FieldDescriptor) Converter {}

func (c *enumConverter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *enumConverter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *enumConverter) IsValidPB(v protoreflect.Value) bool {}

func (c *enumConverter) IsValidGo(v reflect.Value) bool {}

func (c *enumConverter) New() protoreflect.Value {}

func (c *enumConverter) Zero() protoreflect.Value {}

type messageConverter

func newMessageConverter(goType reflect.Type) Converter {}

func (c *messageConverter) PBValueOf(v reflect.Value) protoreflect.Value {}

func (c *messageConverter) GoValueOf(v protoreflect.Value) reflect.Value {}

func (c *messageConverter) IsValidPB(v protoreflect.Value) bool {}

func (c *messageConverter) IsValidGo(v reflect.Value) bool {}

func (c *messageConverter) New() protoreflect.Value {}

func (c *messageConverter) Zero() protoreflect.Value {}

// isNonPointer reports whether the type is a non-pointer type.
// This never occurs for generated message types.
func (c *messageConverter) isNonPointer() bool {}