Package com.google.cloud.optimization.v1
Class BreakRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
- com.google.cloud.optimization.v1.BreakRule.Builder
-
- All Implemented Interfaces:
BreakRuleOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BreakRule
public static final class BreakRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder> implements BreakRuleOrBuilder
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 typegoogle.cloud.optimization.v1.BreakRule
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
clear
public BreakRule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
getDefaultInstanceForType
public BreakRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BreakRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BreakRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BreakRule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
setField
public BreakRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
clearField
public BreakRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
clearOneof
public BreakRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
setRepeatedField
public BreakRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
addRepeatedField
public BreakRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
mergeFrom
public BreakRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BreakRule.Builder>
-
mergeFrom
public BreakRule.Builder mergeFrom(BreakRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
mergeFrom
public BreakRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BreakRule.Builder>
- Throws:
IOException
-
getBreakRequestsList
public List<BreakRule.BreakRequest> getBreakRequestsList()
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
- Specified by:
getBreakRequestsList
in interfaceBreakRuleOrBuilder
-
getBreakRequestsCount
public int getBreakRequestsCount()
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
- Specified by:
getBreakRequestsCount
in interfaceBreakRuleOrBuilder
-
getBreakRequests
public BreakRule.BreakRequest getBreakRequests(int index)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
- Specified by:
getBreakRequests
in interfaceBreakRuleOrBuilder
-
setBreakRequests
public BreakRule.Builder setBreakRequests(int index, BreakRule.BreakRequest value)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
setBreakRequests
public BreakRule.Builder setBreakRequests(int index, BreakRule.BreakRequest.Builder builderForValue)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
addBreakRequests
public BreakRule.Builder addBreakRequests(BreakRule.BreakRequest value)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
addBreakRequests
public BreakRule.Builder addBreakRequests(int index, BreakRule.BreakRequest value)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
addBreakRequests
public BreakRule.Builder addBreakRequests(BreakRule.BreakRequest.Builder builderForValue)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
addBreakRequests
public BreakRule.Builder addBreakRequests(int index, BreakRule.BreakRequest.Builder builderForValue)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
addAllBreakRequests
public BreakRule.Builder addAllBreakRequests(Iterable<? extends BreakRule.BreakRequest> values)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
clearBreakRequests
public BreakRule.Builder clearBreakRequests()
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
removeBreakRequests
public BreakRule.Builder removeBreakRequests(int index)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
getBreakRequestsBuilder
public BreakRule.BreakRequest.Builder getBreakRequestsBuilder(int index)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
getBreakRequestsOrBuilder
public BreakRule.BreakRequestOrBuilder getBreakRequestsOrBuilder(int index)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
- Specified by:
getBreakRequestsOrBuilder
in interfaceBreakRuleOrBuilder
-
getBreakRequestsOrBuilderList
public List<? extends BreakRule.BreakRequestOrBuilder> getBreakRequestsOrBuilderList()
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
- Specified by:
getBreakRequestsOrBuilderList
in interfaceBreakRuleOrBuilder
-
addBreakRequestsBuilder
public BreakRule.BreakRequest.Builder addBreakRequestsBuilder()
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
addBreakRequestsBuilder
public BreakRule.BreakRequest.Builder addBreakRequestsBuilder(int index)
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
getBreakRequestsBuilderList
public List<BreakRule.BreakRequest.Builder> getBreakRequestsBuilderList()
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;
-
getFrequencyConstraintsList
public List<BreakRule.FrequencyConstraint> getFrequencyConstraintsList()
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
- Specified by:
getFrequencyConstraintsList
in interfaceBreakRuleOrBuilder
-
getFrequencyConstraintsCount
public int getFrequencyConstraintsCount()
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
- Specified by:
getFrequencyConstraintsCount
in interfaceBreakRuleOrBuilder
-
getFrequencyConstraints
public BreakRule.FrequencyConstraint getFrequencyConstraints(int index)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
- Specified by:
getFrequencyConstraints
in interfaceBreakRuleOrBuilder
-
setFrequencyConstraints
public BreakRule.Builder setFrequencyConstraints(int index, BreakRule.FrequencyConstraint value)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
setFrequencyConstraints
public BreakRule.Builder setFrequencyConstraints(int index, BreakRule.FrequencyConstraint.Builder builderForValue)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
addFrequencyConstraints
public BreakRule.Builder addFrequencyConstraints(BreakRule.FrequencyConstraint value)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
addFrequencyConstraints
public BreakRule.Builder addFrequencyConstraints(int index, BreakRule.FrequencyConstraint value)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
addFrequencyConstraints
public BreakRule.Builder addFrequencyConstraints(BreakRule.FrequencyConstraint.Builder builderForValue)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
addFrequencyConstraints
public BreakRule.Builder addFrequencyConstraints(int index, BreakRule.FrequencyConstraint.Builder builderForValue)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
addAllFrequencyConstraints
public BreakRule.Builder addAllFrequencyConstraints(Iterable<? extends BreakRule.FrequencyConstraint> values)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
clearFrequencyConstraints
public BreakRule.Builder clearFrequencyConstraints()
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
removeFrequencyConstraints
public BreakRule.Builder removeFrequencyConstraints(int index)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
getFrequencyConstraintsBuilder
public BreakRule.FrequencyConstraint.Builder getFrequencyConstraintsBuilder(int index)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
getFrequencyConstraintsOrBuilder
public BreakRule.FrequencyConstraintOrBuilder getFrequencyConstraintsOrBuilder(int index)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
- Specified by:
getFrequencyConstraintsOrBuilder
in interfaceBreakRuleOrBuilder
-
getFrequencyConstraintsOrBuilderList
public List<? extends BreakRule.FrequencyConstraintOrBuilder> getFrequencyConstraintsOrBuilderList()
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
- Specified by:
getFrequencyConstraintsOrBuilderList
in interfaceBreakRuleOrBuilder
-
addFrequencyConstraintsBuilder
public BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder()
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
addFrequencyConstraintsBuilder
public BreakRule.FrequencyConstraint.Builder addFrequencyConstraintsBuilder(int index)
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
getFrequencyConstraintsBuilderList
public List<BreakRule.FrequencyConstraint.Builder> getFrequencyConstraintsBuilderList()
Several `FrequencyConstraint` may apply. They must all be satisfied by the `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.
repeated .google.cloud.optimization.v1.BreakRule.FrequencyConstraint frequency_constraints = 2;
-
setUnknownFields
public final BreakRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
mergeUnknownFields
public final BreakRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BreakRule.Builder>
-
-