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
Modifier and TypeMethodDescriptionlongThe value by which the numerator is divided, e.g. 3 in 2/3.longThe numerator in the fraction, e.g. 2 in 2/3.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.
-