public static final class BreakRule.BreakRequest.Builder extends GeneratedMessageV3.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 BreakRequest
s 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BreakRule.BreakRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public BreakRule.BreakRequest build()
Returns
buildPartial()
public BreakRule.BreakRequest buildPartial()
Returns
clear()
public BreakRule.BreakRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public BreakRule.BreakRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public BreakRule.BreakRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public BreakRule.BreakRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BreakRule.BreakRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(BreakRule.BreakRequest other)
public BreakRule.BreakRequest.Builder mergeFrom(BreakRule.BreakRequest other)
Parameter
Returns
public BreakRule.BreakRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BreakRule.BreakRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BreakRule.BreakRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public BreakRule.BreakRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BreakRule.BreakRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BreakRule.BreakRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides