public static final class CutoffTime.Builder extends GeneratedMessage.Builder<CutoffTime.Builder> implements CutoffTimeOrBuilderBusiness days cutoff time definition.
Protobuf type google.shopping.merchant.accounts.v1.CutoffTime
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CutoffTime.BuilderImplements
CutoffTimeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CutoffTime build()| Returns | |
|---|---|
| Type | Description |
CutoffTime |
|
buildPartial()
public CutoffTime buildPartial()| Returns | |
|---|---|
| Type | Description |
CutoffTime |
|
clear()
public CutoffTime.Builder clear()| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
|
clearHour()
public CutoffTime.Builder clearHour()Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 hour = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |
clearMinute()
public CutoffTime.Builder clearMinute()Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |
clearTimeZone()
public CutoffTime.Builder clearTimeZone()Required. Timezone identifier For example "Europe/Zurich".
optional string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CutoffTime getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CutoffTime |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHour()
public int getHour()Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 hour = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The hour. |
getMinute()
public int getMinute()Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The minute. |
getTimeZone()
public String getTimeZone()Required. Timezone identifier For example "Europe/Zurich".
optional string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The timeZone. |
getTimeZoneBytes()
public ByteString getTimeZoneBytes()Required. Timezone identifier For example "Europe/Zurich".
optional string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for timeZone. |
hasHour()
public boolean hasHour()Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 hour = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the hour field is set. |
hasMinute()
public boolean hasMinute()Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minute field is set. |
hasTimeZone()
public boolean hasTimeZone()Required. Timezone identifier For example "Europe/Zurich".
optional string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeZone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CutoffTime.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CutoffTime.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
|
mergeFrom(CutoffTime other)
public CutoffTime.Builder mergeFrom(CutoffTime other)| Parameter | |
|---|---|
| Name | Description |
other |
CutoffTime |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
|
setHour(int value)
public CutoffTime.Builder setHour(int value)Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 hour = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe hour to set. |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |
setMinute(int value)
public CutoffTime.Builder setMinute(int value)Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
optional int32 minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe minute to set. |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |
setTimeZone(String value)
public CutoffTime.Builder setTimeZone(String value)Required. Timezone identifier For example "Europe/Zurich".
optional string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |
setTimeZoneBytes(ByteString value)
public CutoffTime.Builder setTimeZoneBytes(ByteString value)Required. Timezone identifier For example "Europe/Zurich".
optional string time_zone = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for timeZone to set. |
| Returns | |
|---|---|
| Type | Description |
CutoffTime.Builder |
This builder for chaining. |