Documentation ¶
Index ¶
- Variables
- type KeyValue
- type ListValue
- func (*ListValue) Descriptor() ([]byte, []int)
- func (this *ListValue) Equal(that interface{}) bool
- func (m *ListValue) GetValues() []*Value
- func (*ListValue) ProtoMessage()
- func (m *ListValue) Reset()
- func (m *ListValue) String() string
- func (m *ListValue) XXX_DiscardUnknown()
- func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListValue) XXX_Merge(src proto.Message)
- func (m *ListValue) XXX_Size() int
- func (m *ListValue) XXX_Unmarshal(b []byte) error
- type NullValue
- type Struct
- func (*Struct) Descriptor() ([]byte, []int)
- func (this *Struct) Equal(that interface{}) bool
- func (m *Struct) GetFields() map[string]*Value
- func (m Struct) MarshalAmino() ([]KeyValue, error)
- func (*Struct) ProtoMessage()
- func (m *Struct) Reset()
- func (m *Struct) String() string
- func (m *Struct) UnmarshalAmino(keyValues []KeyValue) error
- func (m *Struct) XXX_DiscardUnknown()
- func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Struct) XXX_Merge(src proto.Message)
- func (m *Struct) XXX_Size() int
- func (m *Struct) XXX_Unmarshal(b []byte) error
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (this *Value) Equal(that interface{}) bool
- func (m *Value) GetBoolValue() bool
- func (m *Value) GetKind() isValue_Kind
- func (m *Value) GetListValue() *ListValue
- func (m *Value) GetNullValue() NullValue
- func (m *Value) GetNumberValue() float64
- func (m *Value) GetStringValue() string
- func (m *Value) GetStructValue() *Struct
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) String() string
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (*Value) XXX_OneofWrappers() []interface{}
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
- type Value_BoolValue
- type Value_ListValue
- type Value_NullValue
- type Value_NumberValue
- type Value_StringValue
- type Value_StructValue
Constants ¶
This section is empty.
Variables ¶
var NullValue_name = map[int32]string{
0: "NULL_VALUE",
}
var NullValue_value = map[string]int32{
"NULL_VALUE": 0,
}
Functions ¶
This section is empty.
Types ¶
type KeyValue ¶ added in v0.17.0
KeyValue is a simple key/value representation of one field of a Struct.
type ListValue ¶ added in v0.14.1
type ListValue struct { // Repeated field of dynamically typed values. Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" hash:"name:1"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
`ListValue` is a wrapper around a repeated field of values.
The JSON representation for `ListValue` is JSON array.
func (*ListValue) Descriptor ¶ added in v0.14.1
func (*ListValue) ProtoMessage ¶ added in v0.14.1
func (*ListValue) ProtoMessage()
func (*ListValue) XXX_DiscardUnknown ¶ added in v0.14.1
func (m *ListValue) XXX_DiscardUnknown()
func (*ListValue) XXX_Marshal ¶ added in v0.14.1
func (*ListValue) XXX_Unmarshal ¶ added in v0.14.1
type NullValue ¶ added in v0.14.1
type NullValue int32
`NullValue` is a singleton enumeration to represent the null value for the `Value` type union.
The JSON representation for `NullValue` is JSON `null`.
const ( // Null value. NullValue_NULL_VALUE NullValue = 0 )
func (NullValue) EnumDescriptor ¶ added in v0.14.1
type Struct ¶ added in v0.14.1
type Struct struct { // Unordered map of dynamically typed values. Fields map[string]*Value `` /* 167-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language.
The JSON representation for `Struct` is JSON object.
func (*Struct) Descriptor ¶ added in v0.14.1
func (Struct) MarshalAmino ¶ added in v0.17.0
MarshalAmino transforms the Struct to an array of key/value.
func (*Struct) ProtoMessage ¶ added in v0.14.1
func (*Struct) ProtoMessage()
func (*Struct) UnmarshalAmino ¶ added in v0.17.0
UnmarshalAmino transforms the key/value array to a Struct.
func (*Struct) XXX_DiscardUnknown ¶ added in v0.14.1
func (m *Struct) XXX_DiscardUnknown()
func (*Struct) XXX_Marshal ¶ added in v0.14.1
func (*Struct) XXX_Unmarshal ¶ added in v0.14.1
type Value ¶ added in v0.14.1
type Value struct { // The kind of value. // // Types that are valid to be assigned to Kind: // *Value_NullValue // *Value_NumberValue // *Value_StringValue // *Value_BoolValue // *Value_StructValue // *Value_ListValue Kind isValue_Kind `protobuf_oneof:"kind"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
`Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error.
The JSON representation for `Value` is JSON value.
func (*Value) Descriptor ¶ added in v0.14.1
func (*Value) GetBoolValue ¶ added in v0.14.1
func (*Value) GetListValue ¶ added in v0.14.1
func (*Value) GetNullValue ¶ added in v0.14.1
func (*Value) GetNumberValue ¶ added in v0.14.1
func (*Value) GetStringValue ¶ added in v0.14.1
func (*Value) GetStructValue ¶ added in v0.14.1
func (*Value) ProtoMessage ¶ added in v0.14.1
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶ added in v0.14.1
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶ added in v0.14.1
func (*Value) XXX_OneofWrappers ¶ added in v0.14.1
func (*Value) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Value) XXX_Unmarshal ¶ added in v0.14.1
type Value_BoolValue ¶ added in v0.14.1
type Value_BoolValue struct {
BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty" hash:"name:4"`
}
func (*Value_BoolValue) Equal ¶ added in v0.14.1
func (this *Value_BoolValue) Equal(that interface{}) bool
type Value_ListValue ¶ added in v0.14.1
type Value_ListValue struct {
ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof" json:"list_value,omitempty" hash:"name:6"`
}
func (*Value_ListValue) Equal ¶ added in v0.14.1
func (this *Value_ListValue) Equal(that interface{}) bool
type Value_NullValue ¶ added in v0.14.1
type Value_NullValue struct {
NullValue NullValue `` /* 138-byte string literal not displayed */
}
func (*Value_NullValue) Equal ¶ added in v0.14.1
func (this *Value_NullValue) Equal(that interface{}) bool
type Value_NumberValue ¶ added in v0.14.1
type Value_NumberValue struct {
NumberValue float64 `` /* 131-byte string literal not displayed */
}
func (*Value_NumberValue) Equal ¶ added in v0.14.1
func (this *Value_NumberValue) Equal(that interface{}) bool
type Value_StringValue ¶ added in v0.14.1
type Value_StringValue struct {
StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty" hash:"name:3"`
}
func (*Value_StringValue) Equal ¶ added in v0.14.1
func (this *Value_StringValue) Equal(that interface{}) bool
type Value_StructValue ¶ added in v0.14.1
type Value_StructValue struct {
StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof" json:"struct_value,omitempty" hash:"name:5"`
}
func (*Value_StructValue) Equal ¶ added in v0.14.1
func (this *Value_StructValue) Equal(that interface{}) bool