Package com.google.cloud.compute.v1
Class FlexibleTimeRange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FlexibleTimeRange.Builder>
com.google.cloud.compute.v1.FlexibleTimeRange.Builder
- All Implemented Interfaces:
FlexibleTimeRangeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FlexibleTimeRange
public static final class FlexibleTimeRange.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FlexibleTimeRange.Builder>
implements FlexibleTimeRangeOrBuilder
Specifies a flexible time range with flexible start time and duration. It is possible to specify a contradictory time range that cannot be matched by any Interval. This causes a validation error.Protobuf type
google.cloud.compute.v1.FlexibleTimeRange-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional string max_duration = 39954959;optional string min_duration = 514381025;optional string start_time_not_earlier_than = 490386497;optional string start_time_not_later_than = 212764853;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional string max_duration = 39954959;com.google.protobuf.ByteStringoptional string max_duration = 39954959;optional string min_duration = 514381025;com.google.protobuf.ByteStringoptional string min_duration = 514381025;optional string start_time_not_earlier_than = 490386497;com.google.protobuf.ByteStringoptional string start_time_not_earlier_than = 490386497;optional string start_time_not_later_than = 212764853;com.google.protobuf.ByteStringoptional string start_time_not_later_than = 212764853;booleanoptional string max_duration = 39954959;booleanoptional string min_duration = 514381025;booleanoptional string start_time_not_earlier_than = 490386497;booleanoptional string start_time_not_later_than = 212764853;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FlexibleTimeRange other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMaxDuration(String value) optional string max_duration = 39954959;setMaxDurationBytes(com.google.protobuf.ByteString value) optional string max_duration = 39954959;setMinDuration(String value) optional string min_duration = 514381025;setMinDurationBytes(com.google.protobuf.ByteString value) optional string min_duration = 514381025;setStartTimeNotEarlierThan(String value) optional string start_time_not_earlier_than = 490386497;setStartTimeNotEarlierThanBytes(com.google.protobuf.ByteString value) optional string start_time_not_earlier_than = 490386497;setStartTimeNotLaterThan(String value) optional string start_time_not_later_than = 212764853;setStartTimeNotLaterThanBytes(com.google.protobuf.ByteString value) optional string start_time_not_later_than = 212764853;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<FlexibleTimeRange.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<FlexibleTimeRange.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<FlexibleTimeRange.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<FlexibleTimeRange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FlexibleTimeRange.Builder>
-
mergeFrom
public FlexibleTimeRange.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<FlexibleTimeRange.Builder>- Throws:
IOException
-
hasMaxDuration
public boolean hasMaxDuration()optional string max_duration = 39954959;- Specified by:
hasMaxDurationin interfaceFlexibleTimeRangeOrBuilder- Returns:
- Whether the maxDuration field is set.
-
getMaxDuration
optional string max_duration = 39954959;- Specified by:
getMaxDurationin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The maxDuration.
-
getMaxDurationBytes
public com.google.protobuf.ByteString getMaxDurationBytes()optional string max_duration = 39954959;- Specified by:
getMaxDurationBytesin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The bytes for maxDuration.
-
setMaxDuration
optional string max_duration = 39954959;- Parameters:
value- The maxDuration to set.- Returns:
- This builder for chaining.
-
clearMaxDuration
optional string max_duration = 39954959;- Returns:
- This builder for chaining.
-
setMaxDurationBytes
optional string max_duration = 39954959;- Parameters:
value- The bytes for maxDuration to set.- Returns:
- This builder for chaining.
-
hasMinDuration
public boolean hasMinDuration()optional string min_duration = 514381025;- Specified by:
hasMinDurationin interfaceFlexibleTimeRangeOrBuilder- Returns:
- Whether the minDuration field is set.
-
getMinDuration
optional string min_duration = 514381025;- Specified by:
getMinDurationin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The minDuration.
-
getMinDurationBytes
public com.google.protobuf.ByteString getMinDurationBytes()optional string min_duration = 514381025;- Specified by:
getMinDurationBytesin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The bytes for minDuration.
-
setMinDuration
optional string min_duration = 514381025;- Parameters:
value- The minDuration to set.- Returns:
- This builder for chaining.
-
clearMinDuration
optional string min_duration = 514381025;- Returns:
- This builder for chaining.
-
setMinDurationBytes
optional string min_duration = 514381025;- Parameters:
value- The bytes for minDuration to set.- Returns:
- This builder for chaining.
-
hasStartTimeNotEarlierThan
public boolean hasStartTimeNotEarlierThan()optional string start_time_not_earlier_than = 490386497;- Specified by:
hasStartTimeNotEarlierThanin interfaceFlexibleTimeRangeOrBuilder- Returns:
- Whether the startTimeNotEarlierThan field is set.
-
getStartTimeNotEarlierThan
optional string start_time_not_earlier_than = 490386497;- Specified by:
getStartTimeNotEarlierThanin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The startTimeNotEarlierThan.
-
getStartTimeNotEarlierThanBytes
public com.google.protobuf.ByteString getStartTimeNotEarlierThanBytes()optional string start_time_not_earlier_than = 490386497;- Specified by:
getStartTimeNotEarlierThanBytesin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The bytes for startTimeNotEarlierThan.
-
setStartTimeNotEarlierThan
optional string start_time_not_earlier_than = 490386497;- Parameters:
value- The startTimeNotEarlierThan to set.- Returns:
- This builder for chaining.
-
clearStartTimeNotEarlierThan
optional string start_time_not_earlier_than = 490386497;- Returns:
- This builder for chaining.
-
setStartTimeNotEarlierThanBytes
public FlexibleTimeRange.Builder setStartTimeNotEarlierThanBytes(com.google.protobuf.ByteString value) optional string start_time_not_earlier_than = 490386497;- Parameters:
value- The bytes for startTimeNotEarlierThan to set.- Returns:
- This builder for chaining.
-
hasStartTimeNotLaterThan
public boolean hasStartTimeNotLaterThan()optional string start_time_not_later_than = 212764853;- Specified by:
hasStartTimeNotLaterThanin interfaceFlexibleTimeRangeOrBuilder- Returns:
- Whether the startTimeNotLaterThan field is set.
-
getStartTimeNotLaterThan
optional string start_time_not_later_than = 212764853;- Specified by:
getStartTimeNotLaterThanin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The startTimeNotLaterThan.
-
getStartTimeNotLaterThanBytes
public com.google.protobuf.ByteString getStartTimeNotLaterThanBytes()optional string start_time_not_later_than = 212764853;- Specified by:
getStartTimeNotLaterThanBytesin interfaceFlexibleTimeRangeOrBuilder- Returns:
- The bytes for startTimeNotLaterThan.
-
setStartTimeNotLaterThan
optional string start_time_not_later_than = 212764853;- Parameters:
value- The startTimeNotLaterThan to set.- Returns:
- This builder for chaining.
-
clearStartTimeNotLaterThan
optional string start_time_not_later_than = 212764853;- Returns:
- This builder for chaining.
-
setStartTimeNotLaterThanBytes
public FlexibleTimeRange.Builder setStartTimeNotLaterThanBytes(com.google.protobuf.ByteString value) optional string start_time_not_later_than = 212764853;- Parameters:
value- The bytes for startTimeNotLaterThan to set.- Returns:
- This builder for chaining.
-