Package com.google.cloud.optimization.v1
Class BreakRule.BreakRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BreakRule.BreakRequest.Builder>
com.google.cloud.optimization.v1.BreakRule.BreakRequest.Builder
- All Implemented Interfaces:
BreakRule.BreakRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BreakRule.BreakRequest
public static final class BreakRule.BreakRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BreakRule.BreakRequest.Builder>
implements BreakRule.BreakRequestOrBuilder
The sequence of breaks (i.e. their number and order) that apply to each vehicle must be known beforehand. The repeated `BreakRequest`s 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.BreakRule.BreakRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.booleanRequired.booleanRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEarliestStartTime(com.google.protobuf.Timestamp value) Required.mergeFrom(BreakRule.BreakRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLatestStartTime(com.google.protobuf.Timestamp value) Required.mergeMinDuration(com.google.protobuf.Duration value) Required.setEarliestStartTime(com.google.protobuf.Timestamp value) Required.setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setLatestStartTime(com.google.protobuf.Timestamp value) Required.setLatestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setMinDuration(com.google.protobuf.Duration value) Required.setMinDuration(com.google.protobuf.Duration.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<BreakRule.BreakRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BreakRule.BreakRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BreakRule.BreakRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BreakRule.BreakRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BreakRule.BreakRequest.Builder>
-
mergeFrom
public BreakRule.BreakRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BreakRule.BreakRequest.Builder>- Throws:
IOException
-
hasEarliestStartTime
public boolean hasEarliestStartTime()Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasEarliestStartTimein interfaceBreakRule.BreakRequestOrBuilder- Returns:
- Whether the earliestStartTime field is set.
-
getEarliestStartTime
public com.google.protobuf.Timestamp getEarliestStartTime()Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEarliestStartTimein interfaceBreakRule.BreakRequestOrBuilder- Returns:
- The earliestStartTime.
-
setEarliestStartTime
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
setEarliestStartTime
public BreakRule.BreakRequest.Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeEarliestStartTime
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearEarliestStartTime
Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
getEarliestStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder()Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
getEarliestStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder()Required. Lower bound (inclusive) on the start of the break.
.google.protobuf.Timestamp earliest_start_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEarliestStartTimeOrBuilderin interfaceBreakRule.BreakRequestOrBuilder
-
hasLatestStartTime
public boolean hasLatestStartTime()Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasLatestStartTimein interfaceBreakRule.BreakRequestOrBuilder- Returns:
- Whether the latestStartTime field is set.
-
getLatestStartTime
public com.google.protobuf.Timestamp getLatestStartTime()Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLatestStartTimein interfaceBreakRule.BreakRequestOrBuilder- Returns:
- The latestStartTime.
-
setLatestStartTime
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; -
setLatestStartTime
public BreakRule.BreakRequest.Builder setLatestStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeLatestStartTime
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearLatestStartTime
Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; -
getLatestStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getLatestStartTimeBuilder()Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED]; -
getLatestStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLatestStartTimeOrBuilder()Required. Upper bound (inclusive) on the start of the break.
.google.protobuf.Timestamp latest_start_time = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLatestStartTimeOrBuilderin interfaceBreakRule.BreakRequestOrBuilder
-
hasMinDuration
public boolean hasMinDuration()Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasMinDurationin interfaceBreakRule.BreakRequestOrBuilder- Returns:
- Whether the minDuration field is set.
-
getMinDuration
public com.google.protobuf.Duration getMinDuration()Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMinDurationin interfaceBreakRule.BreakRequestOrBuilder- Returns:
- The minDuration.
-
setMinDuration
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; -
setMinDuration
public BreakRule.BreakRequest.Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeMinDuration
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearMinDuration
Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; -
getMinDurationBuilder
public com.google.protobuf.Duration.Builder getMinDurationBuilder()Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED]; -
getMinDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder()Required. Minimum duration of the break. Must be positive.
.google.protobuf.Duration min_duration = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMinDurationOrBuilderin interfaceBreakRule.BreakRequestOrBuilder
-