public sealed class FieldOptions.Types.FeatureSupport : IMessage<FieldOptions.Types.FeatureSupport>, IEquatable<FieldOptions.Types.FeatureSupport>, IDeepCloneable<FieldOptions.Types.FeatureSupport>, IBufferMessage, IMessage
Information about the support window of a feature.
Implements
IMessageFieldOptionsTypesFeatureSupport, IEquatableFieldOptionsTypesFeatureSupport, IDeepCloneableFieldOptionsTypesFeatureSupport, IBufferMessage, IMessageNamespace
Google.Protobuf.ReflectionAssembly
Google.Protobuf.dll
Constructors
FeatureSupport()
public FeatureSupport()
FeatureSupport(FeatureSupport)
public FeatureSupport(FieldOptions.Types.FeatureSupport other)
Parameter | |
---|---|
Name | Description |
other |
FieldOptionsTypesFeatureSupport |
Fields
DeprecationWarningFieldNumber
public const int DeprecationWarningFieldNumber = 3
Field number for the "deprecation_warning" field.
Field Value | |
---|---|
Type | Description |
int |
EditionDeprecatedFieldNumber
public const int EditionDeprecatedFieldNumber = 2
Field number for the "edition_deprecated" field.
Field Value | |
---|---|
Type | Description |
int |
EditionIntroducedFieldNumber
public const int EditionIntroducedFieldNumber = 1
Field number for the "edition_introduced" field.
Field Value | |
---|---|
Type | Description |
int |
EditionRemovedFieldNumber
public const int EditionRemovedFieldNumber = 4
Field number for the "edition_removed" field.
Field Value | |
---|---|
Type | Description |
int |
Properties
DeprecationWarning
public string DeprecationWarning { get; set; }
The deprecation warning text if this feature is used after the edition it was marked deprecated in.
Property Value | |
---|---|
Type | Description |
string |
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value | |
---|---|
Type | Description |
MessageDescriptor |
EditionDeprecated
public Edition EditionDeprecated { get; set; }
The edition this feature becomes deprecated in. Using this after this edition may trigger warnings.
Property Value | |
---|---|
Type | Description |
Edition |
EditionIntroduced
public Edition EditionIntroduced { get; set; }
The edition that this feature was first available in. In editions earlier than this one, the default assigned to EDITION_LEGACY will be used, and proto files will not be able to override it.
Property Value | |
---|---|
Type | Description |
Edition |
EditionRemoved
public Edition EditionRemoved { get; set; }
The edition this feature is no longer available in. In editions after this one, the last default assigned will be used, and proto files will not be able to override it.
Property Value | |
---|---|
Type | Description |
Edition |
HasDeprecationWarning
public bool HasDeprecationWarning { get; }
Gets whether the "deprecation_warning" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasEditionDeprecated
public bool HasEditionDeprecated { get; }
Gets whether the "edition_deprecated" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasEditionIntroduced
public bool HasEditionIntroduced { get; }
Gets whether the "edition_introduced" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasEditionRemoved
public bool HasEditionRemoved { get; }
Gets whether the "edition_removed" field is set
Property Value | |
---|---|
Type | Description |
bool |
Parser
public static MessageParser<FieldOptions.Types.FeatureSupport> Parser { get; }
Property Value | |
---|---|
Type | Description |
MessageParserFieldOptionsTypesFeatureSupport |
Methods
CalculateSize()
public int CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Returns | |
---|---|
Type | Description |
int |
The number of bytes required to write this message to a coded output stream. |
ClearDeprecationWarning()
public void ClearDeprecationWarning()
Clears the value of the "deprecation_warning" field
ClearEditionDeprecated()
public void ClearEditionDeprecated()
Clears the value of the "edition_deprecated" field
ClearEditionIntroduced()
public void ClearEditionIntroduced()
Clears the value of the "edition_introduced" field
ClearEditionRemoved()
public void ClearEditionRemoved()
Clears the value of the "edition_removed" field
Clone()
public FieldOptions.Types.FeatureSupport Clone()
Creates a deep clone of this object.
Returns | |
---|---|
Type | Description |
FieldOptionsTypesFeatureSupport |
A deep clone of this object. |
Equals(FeatureSupport)
public bool Equals(FieldOptions.Types.FeatureSupport other)
Parameter | |
---|---|
Name | Description |
other |
FieldOptionsTypesFeatureSupport |
Returns | |
---|---|
Type | Description |
bool |
Equals(object)
public override bool Equals(object other)
Parameter | |
---|---|
Name | Description |
other |
object |
Returns | |
---|---|
Type | Description |
bool |
GetHashCode()
public override int GetHashCode()
Returns | |
---|---|
Type | Description |
int |
MergeFrom(CodedInputStream)
public void MergeFrom(CodedInputStream input)
Merges the data from the specified coded input stream with the current message.
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
See the user guide for precise merge semantics.
MergeFrom(FeatureSupport)
public void MergeFrom(FieldOptions.Types.FeatureSupport other)
Merges the given message into this one.
Parameter | |
---|---|
Name | Description |
other |
FieldOptionsTypesFeatureSupport |
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns | |
---|---|
Type | Description |
string |
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Writes the data to the given coded output stream.
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream Coded output stream to write the data to. Must not be null. |