protobuf: github.com/golang/protobuf/ptypes/struct Index | Files

package structpb

import "github.com/golang/protobuf/ptypes/struct"

Index

Package Files

struct.pb.go

Variables

var NullValue_name = map[int32]string{
    0: "NULL_VALUE",
}
var NullValue_value = map[string]int32{
    "NULL_VALUE": 0,
}

type ListValue Uses

type ListValue struct {
    // Repeated field of dynamically typed values.
    Values               []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
    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 Uses

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

func (*ListValue) GetValues Uses

func (m *ListValue) GetValues() []*Value

func (*ListValue) ProtoMessage Uses

func (*ListValue) ProtoMessage()

func (*ListValue) Reset Uses

func (m *ListValue) Reset()

func (*ListValue) String Uses

func (m *ListValue) String() string

func (*ListValue) XXX_DiscardUnknown Uses

func (m *ListValue) XXX_DiscardUnknown()

func (*ListValue) XXX_Marshal Uses

func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListValue) XXX_Merge Uses

func (dst *ListValue) XXX_Merge(src proto.Message)

func (*ListValue) XXX_Size Uses

func (m *ListValue) XXX_Size() int

func (*ListValue) XXX_Unmarshal Uses

func (m *ListValue) XXX_Unmarshal(b []byte) error

func (*ListValue) XXX_WellKnownType Uses

func (*ListValue) XXX_WellKnownType() string

type NullValue Uses

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 Uses

func (NullValue) EnumDescriptor() ([]byte, []int)

func (NullValue) String Uses

func (x NullValue) String() string

func (NullValue) XXX_WellKnownType Uses

func (NullValue) XXX_WellKnownType() string

type Struct Uses

type Struct struct {
    // Unordered map of dynamically typed values.
    Fields               map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    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 Uses

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

func (*Struct) GetFields Uses

func (m *Struct) GetFields() map[string]*Value

func (*Struct) ProtoMessage Uses

func (*Struct) ProtoMessage()

func (*Struct) Reset Uses

func (m *Struct) Reset()

func (*Struct) String Uses

func (m *Struct) String() string

func (*Struct) XXX_DiscardUnknown Uses

func (m *Struct) XXX_DiscardUnknown()

func (*Struct) XXX_Marshal Uses

func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Struct) XXX_Merge Uses

func (dst *Struct) XXX_Merge(src proto.Message)

func (*Struct) XXX_Size Uses

func (m *Struct) XXX_Size() int

func (*Struct) XXX_Unmarshal Uses

func (m *Struct) XXX_Unmarshal(b []byte) error

func (*Struct) XXX_WellKnownType Uses

func (*Struct) XXX_WellKnownType() string

type Value Uses

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 Uses

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

func (*Value) GetBoolValue Uses

func (m *Value) GetBoolValue() bool

func (*Value) GetKind Uses

func (m *Value) GetKind() isValue_Kind

func (*Value) GetListValue Uses

func (m *Value) GetListValue() *ListValue

func (*Value) GetNullValue Uses

func (m *Value) GetNullValue() NullValue

func (*Value) GetNumberValue Uses

func (m *Value) GetNumberValue() float64

func (*Value) GetStringValue Uses

func (m *Value) GetStringValue() string

func (*Value) GetStructValue Uses

func (m *Value) GetStructValue() *Struct

func (*Value) ProtoMessage Uses

func (*Value) ProtoMessage()

func (*Value) Reset Uses

func (m *Value) Reset()

func (*Value) String Uses

func (m *Value) String() string

func (*Value) XXX_DiscardUnknown Uses

func (m *Value) XXX_DiscardUnknown()

func (*Value) XXX_Marshal Uses

func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Value) XXX_Merge Uses

func (dst *Value) XXX_Merge(src proto.Message)

func (*Value) XXX_OneofFuncs Uses

func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Value) XXX_Size Uses

func (m *Value) XXX_Size() int

func (*Value) XXX_Unmarshal Uses

func (m *Value) XXX_Unmarshal(b []byte) error

func (*Value) XXX_WellKnownType Uses

func (*Value) XXX_WellKnownType() string

type Value_BoolValue Uses

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

type Value_ListValue Uses

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

type Value_NullValue Uses

type Value_NullValue struct {
    NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
}

type Value_NumberValue Uses

type Value_NumberValue struct {
    NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"`
}

type Value_StringValue Uses

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

type Value_StructValue Uses

type Value_StructValue struct {
    StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"`
}

Package structpb imports 3 packages (graph) and is imported by 117 packages. Updated 2018-07-25. Refresh now. Tools for package owners.