Package com.google.cloud.optimization.v1
Class BreakRule
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.optimization.v1.BreakRule
- All Implemented Interfaces:
BreakRuleOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class BreakRule
extends com.google.protobuf.GeneratedMessage
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 type
google.cloud.optimization.v1.BreakRule- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe sequence of breaks (i.e. their number and order) that apply to each vehicle must be known beforehand.static interfacestatic final classRules to generate time breaks for a vehicle (e.g. lunch breaks).static final classOne may further constrain the frequency and duration of the breaks specified above, by enforcing a minimum break frequency, such as "There must be a break of at least 1 hour every 12 hours".static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBreakRequests(int index) Sequence of breaks.intSequence of breaks.Sequence of breaks.getBreakRequestsOrBuilder(int index) Sequence of breaks.List<? extends BreakRule.BreakRequestOrBuilder>Sequence of breaks.static BreakRulestatic final com.google.protobuf.Descriptors.DescriptorgetFrequencyConstraints(int index) Several `FrequencyConstraint` may apply.intSeveral `FrequencyConstraint` may apply.Several `FrequencyConstraint` may apply.getFrequencyConstraintsOrBuilder(int index) Several `FrequencyConstraint` may apply.List<? extends BreakRule.FrequencyConstraintOrBuilder>Several `FrequencyConstraint` may apply.com.google.protobuf.Parser<BreakRule>intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic BreakRule.Builderstatic BreakRule.BuildernewBuilder(BreakRule prototype) protected BreakRule.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BreakRuleparseDelimitedFrom(InputStream input) static BreakRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BreakRuleparseFrom(byte[] data) static BreakRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BreakRuleparseFrom(com.google.protobuf.ByteString data) static BreakRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BreakRuleparseFrom(com.google.protobuf.CodedInputStream input) static BreakRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BreakRuleparseFrom(InputStream input) static BreakRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BreakRuleparseFrom(ByteBuffer data) static BreakRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BreakRule>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BREAK_REQUESTS_FIELD_NUMBER
public static final int BREAK_REQUESTS_FIELD_NUMBER- See Also:
-
FREQUENCY_CONSTRAINTS_FIELD_NUMBER
public static final int FREQUENCY_CONSTRAINTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getBreakRequestsList
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;- Specified by:
getBreakRequestsListin interfaceBreakRuleOrBuilder
-
getBreakRequestsOrBuilderList
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;- Specified by:
getBreakRequestsOrBuilderListin interfaceBreakRuleOrBuilder
-
getBreakRequestsCount
public int getBreakRequestsCount()Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;- Specified by:
getBreakRequestsCountin interfaceBreakRuleOrBuilder
-
getBreakRequests
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;- Specified by:
getBreakRequestsin interfaceBreakRuleOrBuilder
-
getBreakRequestsOrBuilder
Sequence of breaks. See the `BreakRequest` message.
repeated .google.cloud.optimization.v1.BreakRule.BreakRequest break_requests = 1;- Specified by:
getBreakRequestsOrBuilderin interfaceBreakRuleOrBuilder
-
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:
getFrequencyConstraintsListin 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:
getFrequencyConstraintsOrBuilderListin 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:
getFrequencyConstraintsCountin interfaceBreakRuleOrBuilder
-
getFrequencyConstraints
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:
getFrequencyConstraintsin interfaceBreakRuleOrBuilder
-
getFrequencyConstraintsOrBuilder
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:
getFrequencyConstraintsOrBuilderin interfaceBreakRuleOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BreakRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BreakRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BreakRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BreakRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BreakRule.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-