public sealed class Fraction : Protobuf.IMessage<Fraction>, Protobuf.IBufferMessage
Represents a fraction in terms of a numerator divided by a denominator.
Implements
Protobuf.IBufferMessageNamespace
Google.TypeAssembly
Google.Api.CommonProtos.dll
Constructors
Fraction()
public Fraction()
Fraction(Fraction)
public Fraction(Fraction other)
Fields
DenominatorFieldNumber
public
const
int
DenominatorFieldNumber
=
2
Field number for the "denominator" field.
NumeratorFieldNumber
public
const
int
NumeratorFieldNumber
=
1
Field number for the "numerator" field.
Properties
Denominator
public long Denominator { get; set; }
The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.
Descriptor
public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Numerator
public long Numerator { get; set; }
The portion of the denominator in the faction, e.g. 2 in 2/3.
Parser
public static Protobuf.MessageParser<Fraction> Parser { get; }
Methods
CalculateSize()
public int CalculateSize()
Clone()
public Fraction Clone()
Equals(Fraction)
public bool Equals(Fraction other)
Equals(Object)
public override bool Equals(object other)
GetHashCode()
public override int GetHashCode()
MergeFrom(Protobuf.CodedInputStream)
public void MergeFrom(Protobuf.CodedInputStream input)
MergeFrom(Fraction)
public void MergeFrom(Fraction other)
ToString()
public override string ToString()
WriteTo(Protobuf.CodedOutputStream)
public void WriteTo(Protobuf.CodedOutputStream output)

