Class CutoffTime.Builder (0.2.0)

public static final class CutoffTime.Builder extends GeneratedMessageV3.Builder<CutoffTime.Builder> implements CutoffTimeOrBuilder

Business days cutoff time definition.

Protobuf type google.shopping.merchant.accounts.v1beta.CutoffTime

Implements

CutoffTimeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CutoffTime.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CutoffTime.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public CutoffTime.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CutoffTime.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public CutoffTime.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CutoffTime.Builder
Overrides

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.

clone()

public CutoffTime.Builder clone()
Returns
Type Description
CutoffTime.Builder
Overrides

getDefaultInstanceForType()

public CutoffTime getDefaultInstanceForType()
Returns
Type Description
CutoffTime

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CutoffTime.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CutoffTime.Builder
Overrides

mergeFrom(CutoffTime other)

public CutoffTime.Builder mergeFrom(CutoffTime other)
Parameter
Name Description
other CutoffTime
Returns
Type Description
CutoffTime.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CutoffTime.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CutoffTime.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CutoffTime.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CutoffTime.Builder
Overrides

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 int

The 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 int

The minute to set.

Returns
Type Description
CutoffTime.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CutoffTime.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CutoffTime.Builder
Overrides

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 String

The 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 ByteString

The bytes for timeZone to set.

Returns
Type Description
CutoffTime.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CutoffTime.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CutoffTime.Builder
Overrides