Package com.google.cloud.optimization.v1
Class BreakRule.BreakRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.BreakRule.BreakRequest
-
- All Implemented Interfaces:
BreakRule.BreakRequestOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- BreakRule
public static final class BreakRule.BreakRequest extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.optimization.v1.BreakRule.BreakRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BreakRule.BreakRequest.Builder
The sequence of breaks (i.e.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
EARLIEST_START_TIME_FIELD_NUMBER
static int
LATEST_START_TIME_FIELD_NUMBER
static int
MIN_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static BreakRule.BreakRequest
getDefaultInstance()
BreakRule.BreakRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Timestamp
getEarliestStartTime()
Required.com.google.protobuf.TimestampOrBuilder
getEarliestStartTimeOrBuilder()
Required.com.google.protobuf.Timestamp
getLatestStartTime()
Required.com.google.protobuf.TimestampOrBuilder
getLatestStartTimeOrBuilder()
Required.com.google.protobuf.Duration
getMinDuration()
Required.com.google.protobuf.DurationOrBuilder
getMinDurationOrBuilder()
Required.com.google.protobuf.Parser<BreakRule.BreakRequest>
getParserForType()
int
getSerializedSize()
boolean
hasEarliestStartTime()
Required.int
hashCode()
boolean
hasLatestStartTime()
Required.boolean
hasMinDuration()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static BreakRule.BreakRequest.Builder
newBuilder()
static BreakRule.BreakRequest.Builder
newBuilder(BreakRule.BreakRequest prototype)
BreakRule.BreakRequest.Builder
newBuilderForType()
protected BreakRule.BreakRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static BreakRule.BreakRequest
parseDelimitedFrom(InputStream input)
static BreakRule.BreakRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BreakRule.BreakRequest
parseFrom(byte[] data)
static BreakRule.BreakRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BreakRule.BreakRequest
parseFrom(com.google.protobuf.ByteString data)
static BreakRule.BreakRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BreakRule.BreakRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static BreakRule.BreakRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BreakRule.BreakRequest
parseFrom(InputStream input)
static BreakRule.BreakRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BreakRule.BreakRequest
parseFrom(ByteBuffer data)
static BreakRule.BreakRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<BreakRule.BreakRequest>
parser()
BreakRule.BreakRequest.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
EARLIEST_START_TIME_FIELD_NUMBER
public static final int EARLIEST_START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LATEST_START_TIME_FIELD_NUMBER
public static final int LATEST_START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_DURATION_FIELD_NUMBER
public static final int MIN_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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:
hasEarliestStartTime
in 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:
getEarliestStartTime
in interfaceBreakRule.BreakRequestOrBuilder
- Returns:
- The earliestStartTime.
-
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:
getEarliestStartTimeOrBuilder
in 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:
hasLatestStartTime
in 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:
getLatestStartTime
in interfaceBreakRule.BreakRequestOrBuilder
- Returns:
- The latestStartTime.
-
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:
getLatestStartTimeOrBuilder
in 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:
hasMinDuration
in 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:
getMinDuration
in interfaceBreakRule.BreakRequestOrBuilder
- Returns:
- The minDuration.
-
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:
getMinDurationOrBuilder
in interfaceBreakRule.BreakRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static BreakRule.BreakRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule.BreakRequest 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.BreakRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BreakRule.BreakRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static BreakRule.BreakRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static BreakRule.BreakRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public BreakRule.BreakRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static BreakRule.BreakRequest.Builder newBuilder()
-
newBuilder
public static BreakRule.BreakRequest.Builder newBuilder(BreakRule.BreakRequest prototype)
-
toBuilder
public BreakRule.BreakRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected BreakRule.BreakRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static BreakRule.BreakRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<BreakRule.BreakRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<BreakRule.BreakRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public BreakRule.BreakRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-