public interface DateTimeOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDay()
public abstract int getDay()Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.
optional int32 day = 99228;
| Returns | |
|---|---|
| Type | Description |
int |
The day. |
getHours()
public abstract int getHours()Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time.
optional int32 hours = 99469071;
| Returns | |
|---|---|
| Type | Description |
int |
The hours. |
getMinutes()
public abstract int getMinutes()Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
optional int32 minutes = 528030943;
| Returns | |
|---|---|
| Type | Description |
int |
The minutes. |
getMonth()
public abstract int getMonth()Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.
optional int32 month = 104080000;
| Returns | |
|---|---|
| Type | Description |
int |
The month. |
getNanos()
public abstract int getNanos()Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
optional int32 nanos = 104586303;
| Returns | |
|---|---|
| Type | Description |
int |
The nanos. |
getSeconds()
public abstract int getSeconds()Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.
optional int32 seconds = 359484031;
| Returns | |
|---|---|
| Type | Description |
int |
The seconds. |
getTimeZone()
public abstract TimeZone getTimeZone()Time zone.
optional .google.cloud.compute.v1.TimeZone time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
TimeZone |
The timeZone. |
getTimeZoneOrBuilder()
public abstract TimeZoneOrBuilder getTimeZoneOrBuilder()Time zone.
optional .google.cloud.compute.v1.TimeZone time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
TimeZoneOrBuilder |
|
getUtcOffset()
public abstract String getUtcOffset()UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
optional string utc_offset = 89045902;
| Returns | |
|---|---|
| Type | Description |
String |
The utcOffset. |
getUtcOffsetBytes()
public abstract ByteString getUtcOffsetBytes()UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
optional string utc_offset = 89045902;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for utcOffset. |
getYear()
public abstract int getYear()Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.
optional int32 year = 3704893;
| Returns | |
|---|---|
| Type | Description |
int |
The year. |
hasDay()
public abstract boolean hasDay()Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.
optional int32 day = 99228;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the day field is set. |
hasHours()
public abstract boolean hasHours()Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time.
optional int32 hours = 99469071;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the hours field is set. |
hasMinutes()
public abstract boolean hasMinutes()Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
optional int32 minutes = 528030943;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minutes field is set. |
hasMonth()
public abstract boolean hasMonth()Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.
optional int32 month = 104080000;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the month field is set. |
hasNanos()
public abstract boolean hasNanos()Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
optional int32 nanos = 104586303;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the nanos field is set. |
hasSeconds()
public abstract boolean hasSeconds()Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.
optional int32 seconds = 359484031;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the seconds field is set. |
hasTimeZone()
public abstract boolean hasTimeZone()Time zone.
optional .google.cloud.compute.v1.TimeZone time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeZone field is set. |
hasUtcOffset()
public abstract boolean hasUtcOffset()UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
optional string utc_offset = 89045902;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the utcOffset field is set. |
hasYear()
public abstract boolean hasYear()Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.
optional int32 year = 3704893;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the year field is set. |