MCPcopy
hub / github.com/gogo/protobuf / Value

Struct Value

types/struct.pb.go:122–136  ·  view source on GitHub ↗

`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 va

Source from the content-addressed store, hash-verified

120//
121// The JSON representation for `Value` is JSON value.
122type Value struct {
123 // The kind of value.
124 //
125 // Types that are valid to be assigned to Kind:
126 // *Value_NullValue
127 // *Value_NumberValue
128 // *Value_StringValue
129 // *Value_BoolValue
130 // *Value_StructValue
131 // *Value_ListValue
132 Kind isValue_Kind `protobuf_oneof:"kind"`
133 XXX_NoUnkeyedLiteral struct{} `json:"-"`
134 XXX_unrecognized []byte `json:"-"`
135 XXX_sizecache int32 `json:"-"`
136}
137
138func (m *Value) Reset() { *m = Value{} }
139func (*Value) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected