A protocol buffer option, which can be attached to a message, field, enumeration, etc.
Constructors and Destructors |
|
---|---|
Option()
|
|
Option(Option other)
|
Properties |
|
---|---|
Descriptor
|
pbr::MessageDescriptor
|
Descriptor
|
pbr::MessageDescriptor pb::IMessage.
|
Name
|
string
The option's name.
|
Parser
|
pb::MessageParser< Option >
|
Value
|
global::Google.Protobuf.WellKnownTypes.Any
The option's value.
|
Public attributes |
|
---|---|
NameFieldNumber = 1
|
const int
Field number for the "name" field.
|
ValueFieldNumber = 2
|
const int
Field number for the "value" field.
|
Public functions |
|
---|---|
CalculateSize()
|
int
|
Clone()
|
|
Equals(object other)
|
override bool
|
Equals(Option other)
|
bool
|
GetHashCode()
|
override int
|
MergeFrom(Option other)
|
void
|
MergeFrom(pb::CodedInputStream input)
|
void
|
ToString()
|
override string
|
WriteTo(pb::CodedOutputStream output)
|
void
|
pbr::MessageDescriptor Descriptor
pbr::MessageDescriptor pb::IMessage. Descriptor
string Name
The option's name.
For example, "java_package"
.
pb::MessageParser< Option > Parser
global::Google.Protobuf.WellKnownTypes.Any Value
The option's value.
For example, "com.google.protobuf"
.
int CalculateSize()
Option Clone()
override bool Equals( object other )
bool Equals( Option other )
override int GetHashCode()
void MergeFrom( Option other )
void MergeFrom( pb::CodedInputStream input )
Option()
Option( Option other )
override string ToString()
void WriteTo( pb::CodedOutputStream output )