com.google.type.fraction.Fraction
See theFraction companion object final case class Fraction(numerator: Long, denominator: Long, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Fraction] Represents a fraction in terms of a numerator divided by a denominator.
Attributes
- denominator
The value by which the numerator is divided, e.g. 3 in 2/3. Must be
positive.
- numerator
The numerator in the fraction, e.g. 2 in 2/3.
- Companion:
- object
- Source:
- Fraction.scala
- Graph
- Supertypes
trait GeneratedMessage
trait Serializable
class Object
trait Matchable
class Any
Members list
Concise view
Value members
Returns a human-readable ASCII format representation of this message.
Returns a human-readable ASCII format representation of this message.
The original message can be decoded from this format by using fromAscii on the companion
object.
Attributes
- Returns:
human-readable representation of this message.
- Source:
- Fraction.scala
Serializes the message into the given coded output stream
Serializes the message into the given coded output stream
Attributes
- Source:
- Fraction.scala
Serializes the message and returns a byte array containing its raw bytes
Serializes the message and returns a ByteString containing its raw bytes
Serializes the message into the given output stream