Class BreakRule.Builder (1.1.14)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
publicstaticfinalclass BreakRule.BuilderextendsGeneratedMessageV3.Builder<BreakRule.Builder>implementsBreakRuleOrBuilderRules 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BreakRule.BuilderImplements
BreakRuleOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addAllBreakRequests(Iterable<? extends BreakRule.BreakRequest> values)
publicBreakRule.BuilderaddAllBreakRequests(Iterable<?extendsBreakRule.BreakRequest>values) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addAllFrequencyConstraints(Iterable<? extends BreakRule.FrequencyConstraint> values)
publicBreakRule.BuilderaddAllFrequencyConstraints(Iterable<?extendsBreakRule.FrequencyConstraint>values) 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;
addBreakRequests(BreakRule.BreakRequest value)
publicBreakRule.BuilderaddBreakRequests(BreakRule.BreakRequestvalue) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addBreakRequests(BreakRule.BreakRequest.Builder builderForValue)
publicBreakRule.BuilderaddBreakRequests(BreakRule.BreakRequest.BuilderbuilderForValue) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addBreakRequests(int index, BreakRule.BreakRequest value)
publicBreakRule.BuilderaddBreakRequests(intindex,BreakRule.BreakRequestvalue) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addBreakRequests(int index, BreakRule.BreakRequest.Builder builderForValue)
publicBreakRule.BuilderaddBreakRequests(intindex,BreakRule.BreakRequest.BuilderbuilderForValue) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addBreakRequestsBuilder()
publicBreakRule.BreakRequest.BuilderaddBreakRequestsBuilder() Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addBreakRequestsBuilder(int index)
publicBreakRule.BreakRequest.BuilderaddBreakRequestsBuilder(intindex) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
addFrequencyConstraints(BreakRule.FrequencyConstraint value)
publicBreakRule.BuilderaddFrequencyConstraints(BreakRule.FrequencyConstraintvalue) 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;
addFrequencyConstraints(BreakRule.FrequencyConstraint.Builder builderForValue)
publicBreakRule.BuilderaddFrequencyConstraints(BreakRule.FrequencyConstraint.BuilderbuilderForValue) 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;
addFrequencyConstraints(int index, BreakRule.FrequencyConstraint value)
publicBreakRule.BuilderaddFrequencyConstraints(intindex,BreakRule.FrequencyConstraintvalue) 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;
addFrequencyConstraints(int index, BreakRule.FrequencyConstraint.Builder builderForValue)
publicBreakRule.BuilderaddFrequencyConstraints(intindex,BreakRule.FrequencyConstraint.BuilderbuilderForValue) 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;
addFrequencyConstraintsBuilder()
publicBreakRule.FrequencyConstraint.BuilderaddFrequencyConstraintsBuilder() 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;
addFrequencyConstraintsBuilder(int index)
publicBreakRule.FrequencyConstraint.BuilderaddFrequencyConstraintsBuilder(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;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicBreakRule.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)build()
publicBreakRulebuild()buildPartial()
publicBreakRulebuildPartial()clear()
publicBreakRule.Builderclear()clearBreakRequests()
publicBreakRule.BuilderclearBreakRequests() Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
clearField(Descriptors.FieldDescriptor field)
publicBreakRule.BuilderclearField(Descriptors.FieldDescriptorfield)clearFrequencyConstraints()
publicBreakRule.BuilderclearFrequencyConstraints() 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;
clearOneof(Descriptors.OneofDescriptor oneof)
publicBreakRule.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clone()
publicBreakRule.Builderclone()getBreakRequests(int index)
publicBreakRule.BreakRequestgetBreakRequests(intindex) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
getBreakRequestsBuilder(int index)
publicBreakRule.BreakRequest.BuildergetBreakRequestsBuilder(intindex) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
getBreakRequestsBuilderList()
publicList<BreakRule.BreakRequest.Builder>getBreakRequestsBuilderList() Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
getBreakRequestsCount()
publicintgetBreakRequestsCount() Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
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;
getBreakRequestsOrBuilderList()
publicList<?extendsBreakRule.BreakRequestOrBuilder>getBreakRequestsOrBuilderList() Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
getDefaultInstanceForType()
publicBreakRulegetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()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;
getFrequencyConstraintsBuilder(int index)
publicBreakRule.FrequencyConstraint.BuildergetFrequencyConstraintsBuilder(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;
getFrequencyConstraintsBuilderList()
publicList<BreakRule.FrequencyConstraint.Builder>getFrequencyConstraintsBuilderList() 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;
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;
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;
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;
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()mergeFrom(BreakRule other)
publicBreakRule.BuildermergeFrom(BreakRuleother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicBreakRule.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicBreakRule.BuildermergeFrom(Messageother)mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalBreakRule.BuildermergeUnknownFields(UnknownFieldSetunknownFields)removeBreakRequests(int index)
publicBreakRule.BuilderremoveBreakRequests(intindex) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
removeFrequencyConstraints(int index)
publicBreakRule.BuilderremoveFrequencyConstraints(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;
setBreakRequests(int index, BreakRule.BreakRequest value)
publicBreakRule.BuildersetBreakRequests(intindex,BreakRule.BreakRequestvalue) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
setBreakRequests(int index, BreakRule.BreakRequest.Builder builderForValue)
publicBreakRule.BuildersetBreakRequests(intindex,BreakRule.BreakRequest.BuilderbuilderForValue) Sequence of breaks. See the BreakRequest message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
setField(Descriptors.FieldDescriptor field, Object value)
publicBreakRule.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setFrequencyConstraints(int index, BreakRule.FrequencyConstraint value)
publicBreakRule.BuildersetFrequencyConstraints(intindex,BreakRule.FrequencyConstraintvalue) 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;
setFrequencyConstraints(int index, BreakRule.FrequencyConstraint.Builder builderForValue)
publicBreakRule.BuildersetFrequencyConstraints(intindex,BreakRule.FrequencyConstraint.BuilderbuilderForValue) 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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicBreakRule.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setUnknownFields(UnknownFieldSet unknownFields)
publicfinalBreakRule.BuildersetUnknownFields(UnknownFieldSetunknownFields)