wrapperspb

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type BoolValue

type BoolValue struct {

	// The bool value.
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `bool`.

The JSON representation for `BoolValue` is JSON `true` and `false`.

func Bool

func Bool(v bool) *BoolValue

Bool stores v in a new BoolValue and returns a pointer to it.

func (*BoolValue) GetValue

func (x *BoolValue) GetValue() bool

func (*BoolValue) MarshalToSizedBufferVT

func (m *BoolValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BoolValue) MarshalToVT

func (m *BoolValue) MarshalToVT(dAtA []byte) (int, error)

func (*BoolValue) MarshalVT

func (m *BoolValue) MarshalVT() (dAtA []byte, err error)

func (*BoolValue) ProtoReflect

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

func (*BoolValue) SizeVT

func (m *BoolValue) SizeVT() (n int)

func (*BoolValue) UnmarshalVT

func (m *BoolValue) UnmarshalVT(dAtA []byte) error

type BytesValue

type BytesValue struct {

	// The bytes value.
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `bytes`.

The JSON representation for `BytesValue` is JSON string.

func Bytes

func Bytes(v []byte) *BytesValue

Bytes stores v in a new BytesValue and returns a pointer to it.

func (*BytesValue) GetValue

func (x *BytesValue) GetValue() []byte

func (*BytesValue) MarshalToSizedBufferVT

func (m *BytesValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*BytesValue) MarshalToVT

func (m *BytesValue) MarshalToVT(dAtA []byte) (int, error)

func (*BytesValue) MarshalVT

func (m *BytesValue) MarshalVT() (dAtA []byte, err error)

func (*BytesValue) ProtoReflect

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

func (*BytesValue) SizeVT

func (m *BytesValue) SizeVT() (n int)

func (*BytesValue) UnmarshalVT

func (m *BytesValue) UnmarshalVT(dAtA []byte) error

type DoubleValue

type DoubleValue struct {

	// The double value.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `double`.

The JSON representation for `DoubleValue` is JSON number.

func Double

func Double(v float64) *DoubleValue

Double stores v in a new DoubleValue and returns a pointer to it.

func (*DoubleValue) GetValue

func (x *DoubleValue) GetValue() float64

func (*DoubleValue) MarshalToSizedBufferVT

func (m *DoubleValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DoubleValue) MarshalToVT

func (m *DoubleValue) MarshalToVT(dAtA []byte) (int, error)

func (*DoubleValue) MarshalVT

func (m *DoubleValue) MarshalVT() (dAtA []byte, err error)

func (*DoubleValue) ProtoReflect

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

func (*DoubleValue) SizeVT

func (m *DoubleValue) SizeVT() (n int)

func (*DoubleValue) UnmarshalVT

func (m *DoubleValue) UnmarshalVT(dAtA []byte) error

type FloatValue

type FloatValue struct {

	// The float value.
	Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `float`.

The JSON representation for `FloatValue` is JSON number.

func Float

func Float(v float32) *FloatValue

Float stores v in a new FloatValue and returns a pointer to it.

func (*FloatValue) GetValue

func (x *FloatValue) GetValue() float32

func (*FloatValue) MarshalToSizedBufferVT

func (m *FloatValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FloatValue) MarshalToVT

func (m *FloatValue) MarshalToVT(dAtA []byte) (int, error)

func (*FloatValue) MarshalVT

func (m *FloatValue) MarshalVT() (dAtA []byte, err error)

func (*FloatValue) ProtoReflect

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

func (*FloatValue) SizeVT

func (m *FloatValue) SizeVT() (n int)

func (*FloatValue) UnmarshalVT

func (m *FloatValue) UnmarshalVT(dAtA []byte) error

type Int32Value

type Int32Value struct {

	// The int32 value.
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `int32`.

The JSON representation for `Int32Value` is JSON number.

func Int32

func Int32(v int32) *Int32Value

Int32 stores v in a new Int32Value and returns a pointer to it.

func (*Int32Value) GetValue

func (x *Int32Value) GetValue() int32

func (*Int32Value) MarshalToSizedBufferVT

func (m *Int32Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Int32Value) MarshalToVT

func (m *Int32Value) MarshalToVT(dAtA []byte) (int, error)

func (*Int32Value) MarshalVT

func (m *Int32Value) MarshalVT() (dAtA []byte, err error)

func (*Int32Value) ProtoReflect

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

func (*Int32Value) SizeVT

func (m *Int32Value) SizeVT() (n int)

func (*Int32Value) UnmarshalVT

func (m *Int32Value) UnmarshalVT(dAtA []byte) error

type Int64Value

type Int64Value struct {

	// The int64 value.
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `int64`.

The JSON representation for `Int64Value` is JSON string.

func Int64

func Int64(v int64) *Int64Value

Int64 stores v in a new Int64Value and returns a pointer to it.

func (*Int64Value) GetValue

func (x *Int64Value) GetValue() int64

func (*Int64Value) MarshalToSizedBufferVT

func (m *Int64Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Int64Value) MarshalToVT

func (m *Int64Value) MarshalToVT(dAtA []byte) (int, error)

func (*Int64Value) MarshalVT

func (m *Int64Value) MarshalVT() (dAtA []byte, err error)

func (*Int64Value) ProtoReflect

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

func (*Int64Value) SizeVT

func (m *Int64Value) SizeVT() (n int)

func (*Int64Value) UnmarshalVT

func (m *Int64Value) UnmarshalVT(dAtA []byte) error

type StringValue

type StringValue struct {

	// The string value.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `string`.

The JSON representation for `StringValue` is JSON string.

func String

func String(v string) *StringValue

String stores v in a new StringValue and returns a pointer to it.

func (*StringValue) GetValue

func (x *StringValue) GetValue() string

func (*StringValue) MarshalToSizedBufferVT

func (m *StringValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*StringValue) MarshalToVT

func (m *StringValue) MarshalToVT(dAtA []byte) (int, error)

func (*StringValue) MarshalVT

func (m *StringValue) MarshalVT() (dAtA []byte, err error)

func (*StringValue) ProtoReflect

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

func (*StringValue) SizeVT

func (m *StringValue) SizeVT() (n int)

func (*StringValue) UnmarshalVT

func (m *StringValue) UnmarshalVT(dAtA []byte) error

type UInt32Value

type UInt32Value struct {

	// The uint32 value.
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `uint32`.

The JSON representation for `UInt32Value` is JSON number.

func UInt32

func UInt32(v uint32) *UInt32Value

UInt32 stores v in a new UInt32Value and returns a pointer to it.

func (*UInt32Value) GetValue

func (x *UInt32Value) GetValue() uint32

func (*UInt32Value) MarshalToSizedBufferVT

func (m *UInt32Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UInt32Value) MarshalToVT

func (m *UInt32Value) MarshalToVT(dAtA []byte) (int, error)

func (*UInt32Value) MarshalVT

func (m *UInt32Value) MarshalVT() (dAtA []byte, err error)

func (*UInt32Value) ProtoReflect

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

func (*UInt32Value) SizeVT

func (m *UInt32Value) SizeVT() (n int)

func (*UInt32Value) UnmarshalVT

func (m *UInt32Value) UnmarshalVT(dAtA []byte) error

type UInt64Value

type UInt64Value struct {

	// The uint64 value.
	Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Wrapper message for `uint64`.

The JSON representation for `UInt64Value` is JSON string.

func UInt64

func UInt64(v uint64) *UInt64Value

UInt64 stores v in a new UInt64Value and returns a pointer to it.

func (*UInt64Value) GetValue

func (x *UInt64Value) GetValue() uint64

func (*UInt64Value) MarshalToSizedBufferVT

func (m *UInt64Value) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UInt64Value) MarshalToVT

func (m *UInt64Value) MarshalToVT(dAtA []byte) (int, error)

func (*UInt64Value) MarshalVT

func (m *UInt64Value) MarshalVT() (dAtA []byte, err error)

func (*UInt64Value) ProtoReflect

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

func (*UInt64Value) SizeVT

func (m *UInt64Value) SizeVT() (n int)

func (*UInt64Value) UnmarshalVT

func (m *UInt64Value) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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