A single field of a message type.
Constructors and Destructors |
|
---|---|
Field()
|
|
Field(Field other)
|
Properties |
|
---|---|
Cardinality
|
global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality
The field cardinality.
|
DefaultValue
|
string
The string value of the default value of this field.
|
Descriptor
|
pbr::MessageDescriptor
|
Descriptor
|
pbr::MessageDescriptor pb::IMessage.
|
JsonName
|
string
The field JSON name.
|
Kind
|
global::Google.Protobuf.WellKnownTypes.Field.Types.Kind
The field type.
|
Name
|
string
The field name.
|
Number
|
int
The field number.
|
OneofIndex
|
int
The index of the field type in
Type.oneofs , for message or enumeration types. |
Options
|
pbc::RepeatedField< global::Google.Protobuf.WellKnownTypes.Option >
The protocol buffer options.
|
Packed
|
bool
Whether to use alternative packed wire representation.
|
Parser
|
pb::MessageParser< Field >
|
TypeUrl
|
string
The field type URL, without the scheme, for message or enumeration types.
|
Public attributes |
|
---|---|
CardinalityFieldNumber = 2
|
const int
Field number for the "cardinality" field.
|
DefaultValueFieldNumber = 11
|
const int
Field number for the "default_value" field.
|
JsonNameFieldNumber = 10
|
const int
Field number for the "json_name" field.
|
KindFieldNumber = 1
|
const int
Field number for the "kind" field.
|
NameFieldNumber = 4
|
const int
Field number for the "name" field.
|
NumberFieldNumber = 3
|
const int
Field number for the "number" field.
|
OneofIndexFieldNumber = 7
|
const int
Field number for the "oneof_index" field.
|
OptionsFieldNumber = 9
|
const int
Field number for the "options" field.
|
PackedFieldNumber = 8
|
const int
Field number for the "packed" field.
|
TypeUrlFieldNumber = 6
|
const int
Field number for the "type_url" field.
|
Public functions |
|
---|---|
CalculateSize()
|
int
|
Clone()
|
|
Equals(object other)
|
override bool
|
Equals(Field other)
|
bool
|
GetHashCode()
|
override int
|
MergeFrom(Field other)
|
void
|
MergeFrom(pb::CodedInputStream input)
|
void
|
ToString()
|
override string
|
WriteTo(pb::CodedOutputStream output)
|
void
|
Classes |
|
---|---|
Google. |
Container for nested types declared in the Field message type. |
global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality Cardinality
The field cardinality.
string DefaultValue
The string value of the default value of this field.
Proto2 syntax only.
pbr::MessageDescriptor Descriptor
pbr::MessageDescriptor pb::IMessage. Descriptor
string JsonName
The field JSON name.
global::Google.Protobuf.WellKnownTypes.Field.Types.Kind Kind
The field type.
string Name
The field name.
int Number
The field number.
int OneofIndex
The index of the field type in Type.oneofs
, for message or enumeration types.
The first type has index 1; zero means the type is not in the list.
pbc::RepeatedField< global::Google.Protobuf.WellKnownTypes.Option > Options
The protocol buffer options.
bool Packed
Whether to use alternative packed wire representation.
pb::MessageParser< Field > Parser
string TypeUrl
The field type URL, without the scheme, for message or enumeration types.
Example: "type.googleapis.com/google.protobuf.Timestamp"
.
const int CardinalityFieldNumber = 2
Field number for the "cardinality" field.
const int DefaultValueFieldNumber = 11
Field number for the "default_value" field.
int CalculateSize()
Field Clone()
override bool Equals( object other )
bool Equals( Field other )
Field()
Field( Field other )
override int GetHashCode()
void MergeFrom( Field other )
void MergeFrom( pb::CodedInputStream input )
override string ToString()
void WriteTo( pb::CodedOutputStream output )