Class Destination
public sealed class Destination : IMessage<Destination>, IEquatable<Destination>, IDeepCloneable<Destination>, IBufferMessage, IMessage
- Inheritance
-
Destination
- Implements
-
IMessage<Destination>IDeepCloneable<Destination>IBufferMessageIMessage
- Inherited Members
Constructors
Destination()
public Destination()
Destination(Destination)
public Destination(Destination other)
Parameters
otherDestination
Fields
CityFieldNumber
Field number for the "city" field.
public const int CityFieldNumber = 1
Field Value
CountryFieldNumber
Field number for the "country" field.
public const int CountryFieldNumber = 2
Field Value
RegionFieldNumber
Field number for the "region" field.
public const int RegionFieldNumber = 3
Field Value
Properties
City
public string City { get; set; }
Property Value
Country
public string Country { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<Destination> Parser { get; }
Property Value
- MessageParser<Destination>
Region
public string Region { 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.
Clone()
Creates a deep clone of this object.
public Destination Clone()
Returns
- Destination
A deep clone of this object.
Equals(Destination)
public bool Equals(Destination other)
Parameters
otherDestination
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(Destination)
Merges the given message into this one.
public void MergeFrom(Destination other)
Parameters
otherDestination
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.