publicstaticfinalclass ShipmentModel.BreakRule.BreakRequestextendsGeneratedMessageV3implementsShipmentModel.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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
EARLIEST_START_TIME_FIELD_NUMBER
publicstaticfinalintEARLIEST_START_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
LATEST_START_TIME_FIELD_NUMBER
publicstaticfinalintLATEST_START_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MIN_DURATION_FIELD_NUMBER
publicstaticfinalintMIN_DURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticShipmentModel.BreakRule.BreakRequestgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticShipmentModel.BreakRule.BreakRequest.BuildernewBuilder()
newBuilder(ShipmentModel.BreakRule.BreakRequest prototype)
publicstaticShipmentModel.BreakRule.BreakRequest.BuildernewBuilder(ShipmentModel.BreakRule.BreakRequestprototype)
publicstaticShipmentModel.BreakRule.BreakRequestparseDelimitedFrom(InputStreaminput)
publicstaticShipmentModel.BreakRule.BreakRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(CodedInputStreaminput)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(InputStreaminput)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ShipmentModel.BreakRule.BreakRequest>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicShipmentModel.BreakRule.BreakRequestgetDefaultInstanceForType()
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.
|
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.
|
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.
|
getMinDurationOrBuilder()
publicDurationOrBuildergetMinDurationOrBuilder()
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];
getParserForType()
publicParser<ShipmentModel.BreakRule.BreakRequest>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicShipmentModel.BreakRule.BreakRequest.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedShipmentModel.BreakRule.BreakRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicShipmentModel.BreakRule.BreakRequest.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides