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.
Constructors and Destructors |
|
---|---|
Struct()
|
|
Struct(Struct other)
|
Properties |
|
---|---|
Descriptor
|
pbr::MessageDescriptor
|
Descriptor
|
pbr::MessageDescriptor pb::IMessage.
|
Fields
|
pbc::MapField< string, global::Google.Protobuf.WellKnownTypes.Value >
Unordered map of dynamically typed values.
|
Parser
|
pb::MessageParser< Struct >
|
Public attributes |
|
---|---|
FieldsFieldNumber = 1
|
const int
Field number for the "fields" field.
|
Public functions |
|
---|---|
CalculateSize()
|
int
|
Clone()
|
|
Equals(object other)
|
override bool
|
Equals(Struct other)
|
bool
|
GetHashCode()
|
override int
|
MergeFrom(Struct other)
|
void
|
MergeFrom(pb::CodedInputStream input)
|
void
|
ToString()
|
override string
|
WriteTo(pb::CodedOutputStream output)
|
void
|
pbr::MessageDescriptor Descriptor
pbr::MessageDescriptor pb::IMessage. Descriptor
pbc::MapField< string, global::Google.Protobuf.WellKnownTypes.Value > Fields
Unordered map of dynamically typed values.