Class DataTrackSchemaEncoding
Encoding for schema definition.
public sealed class DataTrackSchemaEncoding : IMessage<DataTrackSchemaEncoding>, IEquatable<DataTrackSchemaEncoding>, IDeepCloneable<DataTrackSchemaEncoding>, IBufferMessage, IMessage
- Inheritance
-
DataTrackSchemaEncoding
- Implements
-
IMessage<DataTrackSchemaEncoding>IDeepCloneable<DataTrackSchemaEncoding>IBufferMessageIMessage
- Inherited Members
Constructors
DataTrackSchemaEncoding()
public DataTrackSchemaEncoding()
DataTrackSchemaEncoding(DataTrackSchemaEncoding)
public DataTrackSchemaEncoding(DataTrackSchemaEncoding other)
Parameters
otherDataTrackSchemaEncoding
Fields
CustomFieldNumber
Field number for the "custom" field.
public const int CustomFieldNumber = 2
Field Value
WellKnownFieldNumber
Field number for the "well_known" field.
public const int WellKnownFieldNumber = 1
Field Value
Properties
Custom
Identifier of a custom encoding not covered by the well-known cases. This must be non-empty and no longer than 32 characters.
public string Custom { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasCustom
Gets whether the "custom" field is set
public bool HasCustom { get; }
Property Value
HasWellKnown
Gets whether the "well_known" field is set
public bool HasWellKnown { get; }
Property Value
Parser
public static MessageParser<DataTrackSchemaEncoding> Parser { get; }
Property Value
- MessageParser<DataTrackSchemaEncoding>
ValueCase
public DataTrackSchemaEncoding.ValueOneofCase ValueCase { get; }
Property Value
WellKnown
public DataTrackSchemaEncoding.Types.WellKnownSchemaEncoding WellKnown { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearCustom()
Clears the value of the oneof if it's currently set to "custom"
public void ClearCustom()
ClearValue()
public void ClearValue()
ClearWellKnown()
Clears the value of the oneof if it's currently set to "well_known"
public void ClearWellKnown()
Clone()
Creates a deep clone of this object.
public DataTrackSchemaEncoding Clone()
Returns
- DataTrackSchemaEncoding
A deep clone of this object.
Equals(DataTrackSchemaEncoding)
public bool Equals(DataTrackSchemaEncoding other)
Parameters
otherDataTrackSchemaEncoding
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(DataTrackSchemaEncoding)
Merges the given message into this one.
public void MergeFrom(DataTrackSchemaEncoding other)
Parameters
otherDataTrackSchemaEncoding
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.