pb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_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

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

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

Deprecated: Use Decimal.ProtoReflect.Descriptor instead.

func (*Decimal) GetCoefficient

func (x *Decimal) GetCoefficient() *BigInt

func (*Decimal) GetExponent

func (x *Decimal) GetExponent() int32

func (*Decimal) ProtoMessage

func (*Decimal) ProtoMessage()

func (*Decimal) ProtoReflect

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

func (*Decimal) Reset

func (x *Decimal) Reset()

func (*Decimal) String

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 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 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 (*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) 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_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_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