Class ShipmentModel.BreakRule.BreakRequest (1.47.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > 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()
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticShipmentModel.BreakRule.BreakRequest.BuildernewBuilder()
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest.Builder

newBuilder(ShipmentModel.BreakRule.BreakRequest prototype)

publicstaticShipmentModel.BreakRule.BreakRequest.BuildernewBuilder(ShipmentModel.BreakRule.BreakRequestprototype)
Parameter
Name Description
prototype ShipmentModel.BreakRule.BreakRequest
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticShipmentModel.BreakRule.BreakRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentModel.BreakRule.BreakRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticShipmentModel.BreakRule.BreakRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<ShipmentModel.BreakRule.BreakRequest>parser()
Returns
Type Description
Parser<BreakRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicShipmentModel.BreakRule.BreakRequestgetDefaultInstanceForType()
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest

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

Returns
Type Description
TimestampOrBuilder

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

Returns
Type Description
TimestampOrBuilder

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

Returns
Type Description
DurationOrBuilder

getParserForType()

publicParser<ShipmentModel.BreakRule.BreakRequest>getParserForType()
Returns
Type Description
Parser<BreakRequest>
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()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicShipmentModel.BreakRule.BreakRequest.BuildernewBuilderForType()
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedShipmentModel.BreakRule.BreakRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicShipmentModel.BreakRule.BreakRequest.BuildertoBuilder()
Returns
Type Description
ShipmentModel.BreakRule.BreakRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.