Fraction

com.google.`type`.fraction.Fraction
See theFraction companion object
final case class Fraction(numerator: Long, denominator: Long, unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Fraction]

Represents a fraction in terms of a numerator divided by a denominator.

Value parameters

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.

Attributes

Companion
object
Source
Fraction.scala
Graph
Supertypes
trait Updatable[Fraction]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def companion: Fraction.type

Attributes

Source
Fraction.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source
Fraction.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source
Fraction.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source
Fraction.scala
def toProtoString: String

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
def withDenominator(`__v`: Long): Fraction

Attributes

Source
Fraction.scala
def withNumerator(`__v`: Long): Fraction

Attributes

Source
Fraction.scala
def withUnknownFields(`__v`: UnknownFieldSet): Fraction

Attributes

Source
Fraction.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source
Fraction.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

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

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

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
def update(ms: Lens[Fraction, Fraction] => () => Fraction*): A

Attributes

Inherited from:
Updatable
Source
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source
GeneratedMessageCompanion.scala