Package com.google.type
Interface FractionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Fraction,Fraction.Builder
public interface FractionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDenominator()The value by which the numerator is divided, e.g.longgetNumerator()The numerator in the fraction, e.g.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getNumerator
long getNumerator()
The numerator in the fraction, e.g. 2 in 2/3.
int64 numerator = 1;- Returns:
- The numerator.
-
getDenominator
long getDenominator()
The value by which the numerator is divided, e.g. 3 in 2/3. Must be positive.
int64 denominator = 2;- Returns:
- The denominator.
-
-