Google. Protobuf. WellKnownTypes. Field
A single field of a message type.
Summary
Inheritance
Inherits from: pb::IMessage< Field >
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. |
Properties
Cardinality
global::Google.Protobuf.WellKnownTypes.Field.Types.Cardinality Cardinality
The field cardinality.
DefaultValue
string DefaultValue
The string value of the default value of this field.
Proto2 syntax only.
Descriptor
pbr::MessageDescriptor Descriptor
Descriptor
pbr::MessageDescriptor pb::IMessage. Descriptor
JsonName
string JsonName
The field JSON name.
Kind
global::Google.Protobuf.WellKnownTypes.Field.Types.Kind Kind
The field type.
Name
string Name
The field name.
Number
int Number
The field number.
OneofIndex
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.
Options
pbc::RepeatedField< global::Google.Protobuf.WellKnownTypes.Option > Options
The protocol buffer options.
Packed
bool Packed
Whether to use alternative packed wire representation.
Parser
pb::MessageParser< Field > Parser
TypeUrl
string TypeUrl
The field type URL, without the scheme, for message or enumeration types.
Example: "type.googleapis.com/google.protobuf.Timestamp"
.
Public attributes
CardinalityFieldNumber
const int CardinalityFieldNumber = 2
Field number for the "cardinality" field.
DefaultValueFieldNumber
const int DefaultValueFieldNumber = 11
Field number for the "default_value" field.
Public functions
CalculateSize
int CalculateSize()
Clone
Field Clone()
Equals
override bool Equals( object other )
Equals
bool Equals( Field other )
Field
Field()
Field
Field( Field other )
GetHashCode
override int GetHashCode()
MergeFrom
void MergeFrom( Field other )
MergeFrom
void MergeFrom( pb::CodedInputStream input )
ToString
override string ToString()
WriteTo
void WriteTo( pb::CodedOutputStream output )