pb

package
v0.0.0-...-47b5856 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_values_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type List

type List struct {
	Fields []*Value `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*List) Descriptor deprecated

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

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetFields

func (x *List) GetFields() []*Value

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

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

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

type Map

type Map struct {
	Fields map[string]*Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Map) Descriptor deprecated

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

Deprecated: Use Map.ProtoReflect.Descriptor instead.

func (*Map) GetFields

func (x *Map) GetFields() map[string]*Value

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) ProtoReflect

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

func (*Map) Reset

func (x *Map) Reset()

func (*Map) String

func (x *Map) String() string

type Value

type Value struct {

	// Types that are assignable to Value:
	//
	//	*Value_StringValue
	//	*Value_BoolValue
	//	*Value_BytesValue
	//	*Value_MapValue
	//	*Value_ListValue
	//	*Value_DecimalValue
	//	*Value_Int64Value
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func NewBoolValue

func NewBoolValue(b bool) (*Value, error)

func NewBytesValue

func NewBytesValue(b []byte) (*Value, error)

func NewDecimalValue

func NewDecimalValue(d decimal.Decimal) (*Value, error)

func NewInt64Value

func NewInt64Value(i int64) (*Value, error)

func NewListValue

func NewListValue(m []*Value) (*Value, error)

func NewMapValue

func NewMapValue(m map[string]*Value) (*Value, error)

func NewStringValue

func NewStringValue(s string) (*Value, error)

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetBytesValue

func (x *Value) GetBytesValue() string

func (*Value) GetDecimalValue

func (x *Value) GetDecimalValue() string

func (*Value) GetInt64Value

func (x *Value) GetInt64Value() int64

func (*Value) GetListValue

func (x *Value) GetListValue() *List

func (*Value) GetMapValue

func (x *Value) GetMapValue() *Map

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_BoolValue

type Value_BoolValue struct {
	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_BytesValue

type Value_BytesValue struct {
	BytesValue string `protobuf:"bytes,3,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Value_DecimalValue

type Value_DecimalValue struct {
	DecimalValue string `protobuf:"bytes,6,opt,name=decimal_value,json=decimalValue,proto3,oneof"`
}

type Value_Int64Value

type Value_Int64Value struct {
	Int64Value int64 `protobuf:"varint,7,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type Value_ListValue

type Value_ListValue struct {
	ListValue *List `protobuf:"bytes,5,opt,name=list_value,json=listValue,proto3,oneof"`
}

type Value_MapValue

type Value_MapValue struct {
	MapValue *Map `protobuf:"bytes,4,opt,name=map_value,json=mapValue,proto3,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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