Class FieldDescriptorProto
Inheritance
FieldDescriptorProto
Assembly: Google.Protobuf.dll
Syntax
public sealed class FieldDescriptorProto : IMessage<FieldDescriptorProto>, IEquatable<FieldDescriptorProto>, IDeepCloneable<FieldDescriptorProto>, IBufferMessage, IMessage
Constructors
FieldDescriptorProto()
Declaration
public FieldDescriptorProto()
FieldDescriptorProto(FieldDescriptorProto)
Declaration
public FieldDescriptorProto(FieldDescriptorProto other)
Parameters
Fields
DefaultValueFieldNumber
Declaration
public const int DefaultValueFieldNumber = 7
Field Value
ExtendeeFieldNumber
Declaration
public const int ExtendeeFieldNumber = 2
Field Value
JsonNameFieldNumber
Declaration
public const int JsonNameFieldNumber = 10
Field Value
LabelFieldNumber
Declaration
public const int LabelFieldNumber = 4
Field Value
NameFieldNumber
Declaration
public const int NameFieldNumber = 1
Field Value
NumberFieldNumber
Declaration
public const int NumberFieldNumber = 3
Field Value
OneofIndexFieldNumber
Declaration
public const int OneofIndexFieldNumber = 9
Field Value
OptionsFieldNumber
Declaration
public const int OptionsFieldNumber = 8
Field Value
Proto3OptionalFieldNumber
Declaration
public const int Proto3OptionalFieldNumber = 17
Field Value
TypeFieldNumber
Declaration
public const int TypeFieldNumber = 5
Field Value
TypeNameFieldNumber
Declaration
public const int TypeNameFieldNumber = 6
Field Value
Properties
DefaultValue
Declaration
public string DefaultValue { get; set; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Extendee
Declaration
public string Extendee { get; set; }
Property Value
HasDefaultValue
Declaration
public bool HasDefaultValue { get; }
Property Value
HasExtendee
Declaration
public bool HasExtendee { get; }
Property Value
HasJsonName
Declaration
public bool HasJsonName { get; }
Property Value
HasLabel
Declaration
public bool HasLabel { get; }
Property Value
HasName
Declaration
public bool HasName { get; }
Property Value
HasNumber
Declaration
public bool HasNumber { get; }
Property Value
HasOneofIndex
Declaration
public bool HasOneofIndex { get; }
Property Value
HasProto3Optional
Declaration
public bool HasProto3Optional { get; }
Property Value
HasType
Declaration
public bool HasType { get; }
Property Value
HasTypeName
Declaration
public bool HasTypeName { get; }
Property Value
JsonName
Declaration
public string JsonName { get; set; }
Property Value
Label
Declaration
public FieldDescriptorProto.Types.Label Label { get; set; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
Number
Declaration
public int Number { get; set; }
Property Value
OneofIndex
Declaration
public int OneofIndex { get; set; }
Property Value
Options
Declaration
public FieldOptions Options { get; set; }
Property Value
Parser
Declaration
public static MessageParser<FieldDescriptorProto> Parser { get; }
Property Value
Proto3Optional
Declaration
public bool Proto3Optional { get; set; }
Property Value
Type
Declaration
public FieldDescriptorProto.Types.Type Type { get; set; }
Property Value
TypeName
Declaration
public string TypeName { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
ClearDefaultValue()
Declaration
public void ClearDefaultValue()
ClearExtendee()
Declaration
public void ClearExtendee()
ClearJsonName()
Declaration
public void ClearJsonName()
ClearLabel()
Declaration
ClearName()
Declaration
ClearNumber()
Declaration
public void ClearNumber()
ClearOneofIndex()
Declaration
public void ClearOneofIndex()
ClearProto3Optional()
Declaration
public void ClearProto3Optional()
ClearType()
Declaration
ClearTypeName()
Declaration
public void ClearTypeName()
Clone()
Declaration
public FieldDescriptorProto Clone()
Returns
Equals(FieldDescriptorProto)
Declaration
public bool Equals(FieldDescriptorProto other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
object |
other |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
MergeFrom(FieldDescriptorProto)
Declaration
public void MergeFrom(FieldDescriptorProto other)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Extension Methods