Interface DateOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Date, Date.Builder

public interface DateOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Day of a month.
    int
    Month of a year.
    int
    Year of the date.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getYear

      int getYear()
       Year of the date. Must be from 1 to 9999, or 0 to specify a date without
       a year.
       
      int32 year = 1;
      Returns:
      The year.
    • getMonth

      int getMonth()
       Month of a year. Must be from 1 to 12, or 0 to specify a year without a
       month and day.
       
      int32 month = 2;
      Returns:
      The month.
    • getDay

      int getDay()
       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.
       
      int32 day = 3;
      Returns:
      The day.