Fraction

@SerialVersionUID(0L) 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.

Value Params
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
trait Updatable[Fraction]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
override
Definition Classes
GeneratedMessage
def toProtoString: String
def withDenominator(`__v`: Long): Fraction
def withNumerator(`__v`: Long): Fraction
def withUnknownFields(`__v`: UnknownFieldSet): Fraction
def writeTo(`_output__`: CodedOutputStream): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final
def toByteArray: Array[Byte]

Serializes the messgae and returns a byte array containing its raw bytes

Serializes the messgae and returns a byte array containing its raw bytes

Inherited from
GeneratedMessage
final
def toByteString: ByteString

Serializes the messgae and returns a ByteString containing its raw bytes

Serializes the messgae and returns a ByteString containing its raw bytes

Inherited from
GeneratedMessage
final
def toPMessage: PMessage
Inherited from
GeneratedMessage
def update(ms: Lens[Fraction, Fraction] => () => Fraction*): Fraction
Inherited from
Updatable
final
def writeDelimitedTo(output: OutputStream): Unit
Inherited from
GeneratedMessage
final
def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Inherited from
GeneratedMessage