pb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_values_pb_values_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BigInt

type BigInt struct {
	AbsVal []byte `protobuf:"bytes,1,opt,name=abs_val,json=absVal,proto3" json:"abs_val,omitempty"`
	Sign   int64  `protobuf:"varint,2,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*BigInt) Descriptor deprecated

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

Deprecated: Use BigInt.ProtoReflect.Descriptor instead.

func (*BigInt) GetAbsVal

func (x *BigInt) GetAbsVal() []byte

func (*BigInt) GetSign

func (x *BigInt) GetSign() int64

func (*BigInt) ProtoMessage

func (*BigInt) ProtoMessage()

func (*BigInt) ProtoReflect

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

func (*BigInt) Reset

func (x *BigInt) Reset()

func (*BigInt) String

func (x *BigInt) String() string

type Decimal added in v0.2.2

type Decimal struct {
	Coefficient *BigInt `protobuf:"bytes,1,opt,name=coefficient,proto3" json:"coefficient,omitempty"`
	Exponent    int32   `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// contains filtered or unexported fields
}

func (*Decimal) Descriptor deprecated added in v0.2.2

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

Deprecated: Use Decimal.ProtoReflect.Descriptor instead.

func (*Decimal) GetCoefficient added in v0.2.2

func (x *Decimal) GetCoefficient() *BigInt

func (*Decimal) GetExponent added in v0.2.2

func (x *Decimal) GetExponent() int32

func (*Decimal) ProtoMessage added in v0.2.2

func (*Decimal) ProtoMessage()

func (*Decimal) ProtoReflect added in v0.2.2

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

func (*Decimal) Reset added in v0.2.2

func (x *Decimal) Reset()

func (*Decimal) String added in v0.2.2

func (x *Decimal) String() string

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_BigintValue
	//	*Value_TimeValue
	//	*Value_Float64Value
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func NewBigIntValue

func NewBigIntValue(sign int, bib []byte) *Value

func NewBoolValue

func NewBoolValue(b bool) *Value

func NewBytesValue

func NewBytesValue(b []byte) *Value

func NewDecimalValue

func NewDecimalValue(d decimal.Decimal) *Value

func NewFloat64 added in v0.3.0

func NewFloat64(f float64) *Value

func NewInt64Value

func NewInt64Value(i int64) *Value

func NewListValue

func NewListValue(m []*Value) *Value

func NewMapValue

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

func NewStringValue

func NewStringValue(s string) *Value

func NewTime added in v0.3.0

func NewTime(t time.Time) *Value

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBigintValue

func (x *Value) GetBigintValue() *BigInt

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetBytesValue

func (x *Value) GetBytesValue() []byte

func (*Value) GetDecimalValue

func (x *Value) GetDecimalValue() *Decimal

func (*Value) GetFloat64Value added in v0.3.0

func (x *Value) GetFloat64Value() float64

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) GetTimeValue added in v0.3.0

func (x *Value) GetTimeValue() *timestamppb.Timestamp

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_BigintValue

type Value_BigintValue struct {
	BigintValue *BigInt `protobuf:"bytes,9,opt,name=bigint_value,json=bigintValue,proto3,oneof"`
}

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 []byte `protobuf:"bytes,3,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Value_DecimalValue

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

type Value_Float64Value added in v0.3.0

type Value_Float64Value struct {
	Float64Value float64 `protobuf:"fixed64,11,opt,name=float64_value,json=float64Value,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"`
}

type Value_TimeValue added in v0.3.0

type Value_TimeValue struct {
	TimeValue *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=time_value,json=timeValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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