Class BreakRule.BreakRequest.Builder (1.83.0)

public static final class BreakRule.BreakRequest.Builder extends GeneratedMessage.Builder<BreakRule.BreakRequest.Builder> implements BreakRule.BreakRequestOrBuilder

The sequence of breaks (i.e. their number and order) that apply to each vehicle must be known beforehand. The repeated BreakRequests define that sequence, in the order in which they must occur. Their time windows (earliest_start_time / latest_start_time) may overlap, but they must be compatible with the order (this is checked).

Protobuf type google.cloud.optimization.v1.BreakRule.BreakRequest

Static Methods

getDescriptor()

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

Methods

build()

public BreakRule.BreakRequest build()
Returns
Type Description
BreakRule.BreakRequest

buildPartial()

public BreakRule.BreakRequest buildPartial()
Returns
Type Description
BreakRule.BreakRequest

clear()

public BreakRule.BreakRequest.Builder clear()
Returns
Type Description
BreakRule.BreakRequest.Builder
Overrides

clearEarliestStartTime()

public BreakRule.BreakRequest.Builder clearEarliestStartTime()

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BreakRule.BreakRequest.Builder

clearLatestStartTime()

public BreakRule.BreakRequest.Builder clearLatestStartTime()

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BreakRule.BreakRequest.Builder

clearMinDuration()

public BreakRule.BreakRequest.Builder clearMinDuration()

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BreakRule.BreakRequest.Builder

getDefaultInstanceForType()

public BreakRule.BreakRequest getDefaultInstanceForType()
Returns
Type Description
BreakRule.BreakRequest

getDescriptorForType()

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

getEarliestStartTime()

public Timestamp getEarliestStartTime()

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The earliestStartTime.

getEarliestStartTimeBuilder()

public Timestamp.Builder getEarliestStartTimeBuilder()

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEarliestStartTimeOrBuilder()

public TimestampOrBuilder getEarliestStartTimeOrBuilder()

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getLatestStartTime()

public Timestamp getLatestStartTime()

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The latestStartTime.

getLatestStartTimeBuilder()

public Timestamp.Builder getLatestStartTimeBuilder()

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getLatestStartTimeOrBuilder()

public TimestampOrBuilder getLatestStartTimeOrBuilder()

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getMinDuration()

public Duration getMinDuration()

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The minDuration.

getMinDurationBuilder()

public Duration.Builder getMinDurationBuilder()

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getMinDurationOrBuilder()

public DurationOrBuilder getMinDurationOrBuilder()

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

hasEarliestStartTime()

public boolean hasEarliestStartTime()

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the earliestStartTime field is set.

hasLatestStartTime()

public boolean hasLatestStartTime()

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the latestStartTime field is set.

hasMinDuration()

public boolean hasMinDuration()

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the minDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEarliestStartTime(Timestamp value)

public BreakRule.BreakRequest.Builder mergeEarliestStartTime(Timestamp value)

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
BreakRule.BreakRequest.Builder

mergeFrom(BreakRule.BreakRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BreakRule.BreakRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BreakRule.BreakRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeLatestStartTime(Timestamp value)

public BreakRule.BreakRequest.Builder mergeLatestStartTime(Timestamp value)

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
BreakRule.BreakRequest.Builder

mergeMinDuration(Duration value)

public BreakRule.BreakRequest.Builder mergeMinDuration(Duration value)

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
BreakRule.BreakRequest.Builder

setEarliestStartTime(Timestamp value)

public BreakRule.BreakRequest.Builder setEarliestStartTime(Timestamp value)

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
BreakRule.BreakRequest.Builder

setEarliestStartTime(Timestamp.Builder builderForValue)

public BreakRule.BreakRequest.Builder setEarliestStartTime(Timestamp.Builder builderForValue)

Required. Lower bound (inclusive) on the start of the break.

.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BreakRule.BreakRequest.Builder

setLatestStartTime(Timestamp value)

public BreakRule.BreakRequest.Builder setLatestStartTime(Timestamp value)

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
BreakRule.BreakRequest.Builder

setLatestStartTime(Timestamp.Builder builderForValue)

public BreakRule.BreakRequest.Builder setLatestStartTime(Timestamp.Builder builderForValue)

Required. Upper bound (inclusive) on the start of the break.

.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BreakRule.BreakRequest.Builder

setMinDuration(Duration value)

public BreakRule.BreakRequest.Builder setMinDuration(Duration value)

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
BreakRule.BreakRequest.Builder

setMinDuration(Duration.Builder builderForValue)

public BreakRule.BreakRequest.Builder setMinDuration(Duration.Builder builderForValue)

Required. Minimum duration of the break. Must be positive.

.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BreakRule.BreakRequest.Builder