publicfinalclass BreakRuleextendsGeneratedMessageV3implementsBreakRuleOrBuilder
Rules to generate time breaks for a vehicle (e.g. lunch breaks). A break
is a contiguous period of time during which the vehicle remains idle at its
current position and cannot perform any visit. A break may occur:
- during the travel between two visits (which includes the time right
before or right after a visit, but not in the middle of a visit), in
which case it extends the corresponding transit time between the visits,
- or before the vehicle start (the vehicle may not start in the middle of
a break), in which case it does not affect the vehicle start time.
- or after the vehicle end (ditto, with the vehicle end time).
Protobuf type google.cloud.optimization.v1.BreakRule
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
BREAK_REQUESTS_FIELD_NUMBER
publicstaticfinalintBREAK_REQUESTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
FREQUENCY_CONSTRAINTS_FIELD_NUMBER
publicstaticfinalintFREQUENCY_CONSTRAINTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticBreakRulegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticBreakRule.BuildernewBuilder()
newBuilder(BreakRule prototype)
publicstaticBreakRule.BuildernewBuilder(BreakRuleprototype)
| Parameter |
| Name |
Description |
prototype |
BreakRule
|
publicstaticBreakRuleparseDelimitedFrom(InputStreaminput)
publicstaticBreakRuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticBreakRuleparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticBreakRuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticBreakRuleparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticBreakRuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticBreakRuleparseFrom(CodedInputStreaminput)
publicstaticBreakRuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticBreakRuleparseFrom(InputStreaminput)
publicstaticBreakRuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticBreakRuleparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticBreakRuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<BreakRule>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBreakRequests(int index)
publicBreakRule.BreakRequestgetBreakRequests(intindex)
Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
| Parameter |
| Name |
Description |
index |
int
|
getBreakRequestsCount()
publicintgetBreakRequestsCount()
Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
| Returns |
| Type |
Description |
int |
getBreakRequestsList()
publicList<BreakRule.BreakRequest>getBreakRequestsList()
Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
getBreakRequestsOrBuilder(int index)
publicBreakRule.BreakRequestOrBuildergetBreakRequestsOrBuilder(intindex)
Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
| Parameter |
| Name |
Description |
index |
int
|
getBreakRequestsOrBuilderList()
publicList<?extendsBreakRule.BreakRequestOrBuilder>getBreakRequestsOrBuilderList()
Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.optimization.v1.BreakRule.BreakRequestOrBuilder> |
getDefaultInstanceForType()
publicBreakRulegetDefaultInstanceForType()
getFrequencyConstraints(int index)
publicBreakRule.FrequencyConstraintgetFrequencyConstraints(intindex)
Several FrequencyConstraint may apply. They must all be satisfied by
the BreakRequests of this BreakRule. See FrequencyConstraint.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
| Parameter |
| Name |
Description |
index |
int
|
getFrequencyConstraintsCount()
publicintgetFrequencyConstraintsCount()
Several FrequencyConstraint may apply. They must all be satisfied by
the BreakRequests of this BreakRule. See FrequencyConstraint.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
| Returns |
| Type |
Description |
int |
getFrequencyConstraintsList()
publicList<BreakRule.FrequencyConstraint>getFrequencyConstraintsList()
Several FrequencyConstraint may apply. They must all be satisfied by
the BreakRequests of this BreakRule. See FrequencyConstraint.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
getFrequencyConstraintsOrBuilder(int index)
publicBreakRule.FrequencyConstraintOrBuildergetFrequencyConstraintsOrBuilder(intindex)
Several FrequencyConstraint may apply. They must all be satisfied by
the BreakRequests of this BreakRule. See FrequencyConstraint.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
| Parameter |
| Name |
Description |
index |
int
|
getFrequencyConstraintsOrBuilderList()
publicList<?extendsBreakRule.FrequencyConstraintOrBuilder>getFrequencyConstraintsOrBuilderList()
Several FrequencyConstraint may apply. They must all be satisfied by
the BreakRequests of this BreakRule. See FrequencyConstraint.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.optimization.v1.BreakRule.FrequencyConstraintOrBuilder> |
getParserForType()
publicParser<BreakRule>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicBreakRule.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedBreakRule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicBreakRule.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides