Date

com.google.type.date.Date
See theDate companion object
final case class Date(year: Int, month: Int, day: Int, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Date]

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:

  • A full date, with non-zero year, month, and day values
  • A month and day value, with a zero year, such as an anniversary
  • A year on its own, with zero month and day values
  • A year and month value, with a zero day, such as a credit card expiration date

Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and google.protobuf.Timestamp.

Attributes

day

Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.

month

Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.

year

Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

Companion:
object
Source:
Date.scala
Graph
Supertypes
trait Updatable[Date]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def companion: Date.type

Attributes

Source:
Date.scala

Attributes

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

Attributes

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

Attributes

Source:
Date.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source:
Date.scala

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:
Date.scala
def withDay(`__v`: Int): Date

Attributes

Source:
Date.scala
def withMonth(`__v`: Int): Date

Attributes

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

Attributes

Source:
Date.scala
def withYear(`__v`: Int): Date

Attributes

Source:
Date.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:
Date.scala

Inherited methods

Attributes

Inherited from:
Product

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[Date, Date] => () => Date*): 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