Package com.google.cloud.compute.v1
Interface DateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Date,Date.Builder
@Generated
public interface DateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasDay
boolean hasDay()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.
optional int32 day = 99228;- Returns:
- Whether the day field is set.
-
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.
optional int32 day = 99228;- Returns:
- The day.
-
hasMonth
boolean hasMonth()Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
optional int32 month = 104080000;- Returns:
- Whether the month field is set.
-
getMonth
int getMonth()Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
optional int32 month = 104080000;- Returns:
- The month.
-
hasYear
boolean hasYear()Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
optional int32 year = 3704893;- Returns:
- Whether the year field is set.
-
getYear
int getYear()Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
optional int32 year = 3704893;- Returns:
- The year.
-