Class ShipmentModel.BreakRule.BreakRequest.Builder (1.1.14)

publicstaticfinalclass ShipmentModel.BreakRule.BreakRequest.BuilderextendsGeneratedMessageV3.Builder<ShipmentModel.BreakRule.BreakRequest.Builder>implementsShipmentModel.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.ShipmentModel.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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicShipmentModel.BreakRule.BreakRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicShipmentModel.BreakRule.BreakRequestbuild()
Returns
Type Description

buildPartial()

publicShipmentModel.BreakRule.BreakRequestbuildPartial()
Returns
Type Description

clear()

publicShipmentModel.BreakRule.BreakRequest.Builderclear()
Returns
Type Description
Overrides

clearEarliestStartTime()

publicShipmentModel.BreakRule.BreakRequest.BuilderclearEarliestStartTime()

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

clearField(Descriptors.FieldDescriptor field)

publicShipmentModel.BreakRule.BreakRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearLatestStartTime()

publicShipmentModel.BreakRule.BreakRequest.BuilderclearLatestStartTime()

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

clearMinDuration()

publicShipmentModel.BreakRule.BreakRequest.BuilderclearMinDuration()

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

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

Returns
Type Description

clearOneof(Descriptors.OneofDescriptor oneof)

publicShipmentModel.BreakRule.BreakRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clone()

publicShipmentModel.BreakRule.BreakRequest.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicShipmentModel.BreakRule.BreakRequestgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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];

Returns
Type Description

getEarliestStartTimeOrBuilder()

publicTimestampOrBuildergetEarliestStartTimeOrBuilder()

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

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];

Returns
Type Description

getLatestStartTimeOrBuilder()

publicTimestampOrBuildergetLatestStartTimeOrBuilder()

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

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];

Returns
Type Description

getMinDurationOrBuilder()

publicDurationOrBuildergetMinDurationOrBuilder()

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

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

Returns
Type Description

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()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeEarliestStartTime(Timestamp value)

publicShipmentModel.BreakRule.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];

Parameter
Name Description
value Timestamp
Returns
Type Description

mergeFrom(ShipmentModel.BreakRule.BreakRequest other)

publicShipmentModel.BreakRule.BreakRequest.BuildermergeFrom(ShipmentModel.BreakRule.BreakRequestother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicShipmentModel.BreakRule.BreakRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicShipmentModel.BreakRule.BreakRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeLatestStartTime(Timestamp value)

publicShipmentModel.BreakRule.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];

Parameter
Name Description
value Timestamp
Returns
Type Description

mergeMinDuration(Duration value)

publicShipmentModel.BreakRule.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
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalShipmentModel.BreakRule.BreakRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setEarliestStartTime(Timestamp value)

publicShipmentModel.BreakRule.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];

Parameter
Name Description
value Timestamp
Returns
Type Description

setEarliestStartTime(Timestamp.Builder builderForValue)

publicShipmentModel.BreakRule.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
Returns
Type Description

setField(Descriptors.FieldDescriptor field, Object value)

publicShipmentModel.BreakRule.BreakRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setLatestStartTime(Timestamp value)

publicShipmentModel.BreakRule.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];

Parameter
Name Description
value Timestamp
Returns
Type Description

setLatestStartTime(Timestamp.Builder builderForValue)

publicShipmentModel.BreakRule.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
Returns
Type Description

setMinDuration(Duration value)

publicShipmentModel.BreakRule.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
Returns
Type Description

setMinDuration(Duration.Builder builderForValue)

publicShipmentModel.BreakRule.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
Returns
Type Description

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

publicShipmentModel.BreakRule.BreakRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalShipmentModel.BreakRule.BreakRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.