publicstaticfinalclass BreakRule.BreakRequest.BuilderextendsGeneratedMessageV3.Builder<BreakRule.BreakRequest.Builder>implementsBreakRule.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicBreakRule.BreakRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
publicBreakRule.BreakRequestbuild()
buildPartial()
publicBreakRule.BreakRequestbuildPartial()
clear()
publicBreakRule.BreakRequest.Builderclear()
Overrides
clearEarliestStartTime()
publicBreakRule.BreakRequest.BuilderclearEarliestStartTime()
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
publicBreakRule.BreakRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearLatestStartTime()
publicBreakRule.BreakRequest.BuilderclearLatestStartTime()
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
clearMinDuration()
publicBreakRule.BreakRequest.BuilderclearMinDuration()
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
publicBreakRule.BreakRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clone()
publicBreakRule.BreakRequest.Builderclone()
Overrides
getDefaultInstanceForType()
publicBreakRule.BreakRequestgetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getEarliestStartTime()
publicTimestampgetEarliestStartTime()
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()
publicTimestamp.BuildergetEarliestStartTimeBuilder()
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];
getEarliestStartTimeOrBuilder()
publicTimestampOrBuildergetEarliestStartTimeOrBuilder()
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];
getLatestStartTime()
publicTimestampgetLatestStartTime()
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()
publicTimestamp.BuildergetLatestStartTimeBuilder()
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
getLatestStartTimeOrBuilder()
publicTimestampOrBuildergetLatestStartTimeOrBuilder()
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
getMinDuration()
publicDurationgetMinDuration()
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()
publicDuration.BuildergetMinDurationBuilder()
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];
getMinDurationOrBuilder()
publicDurationOrBuildergetMinDurationOrBuilder()
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];
hasEarliestStartTime()
publicbooleanhasEarliestStartTime()
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()
publicbooleanhasLatestStartTime()
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()
publicbooleanhasMinDuration()
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()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeEarliestStartTime(Timestamp value)
publicBreakRule.BreakRequest.BuildermergeEarliestStartTime(Timestampvalue)
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(BreakRule.BreakRequest other)
publicBreakRule.BreakRequest.BuildermergeFrom(BreakRule.BreakRequestother)
publicBreakRule.BreakRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicBreakRule.BreakRequest.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeLatestStartTime(Timestamp value)
publicBreakRule.BreakRequest.BuildermergeLatestStartTime(Timestampvalue)
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
mergeMinDuration(Duration value)
publicBreakRule.BreakRequest.BuildermergeMinDuration(Durationvalue)
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalBreakRule.BreakRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
setEarliestStartTime(Timestamp value)
publicBreakRule.BreakRequest.BuildersetEarliestStartTime(Timestampvalue)
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];
setEarliestStartTime(Timestamp.Builder builderForValue)
publicBreakRule.BreakRequest.BuildersetEarliestStartTime(Timestamp.BuilderbuilderForValue)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
publicBreakRule.BreakRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setLatestStartTime(Timestamp value)
publicBreakRule.BreakRequest.BuildersetLatestStartTime(Timestampvalue)
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];
setLatestStartTime(Timestamp.Builder builderForValue)
publicBreakRule.BreakRequest.BuildersetLatestStartTime(Timestamp.BuilderbuilderForValue)
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
|
setMinDuration(Duration value)
publicBreakRule.BreakRequest.BuildersetMinDuration(Durationvalue)
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
|
setMinDuration(Duration.Builder builderForValue)
publicBreakRule.BreakRequest.BuildersetMinDuration(Duration.BuilderbuilderForValue)
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
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicBreakRule.BreakRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalBreakRule.BreakRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides