Package com.google.type
Interface FractionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Fraction
,Fraction.Builder
public interface FractionOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong
The value by which the numerator is divided, e.g.long
The numerator in the fraction, e.g.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getNumerator
long getNumerator()The numerator in the fraction, e.g. 2 in 2/3.
int64 numerator = 1 [json_name = "numerator"];
- 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 [json_name = "denominator"];
- Returns:
- The denominator.
-