Package com.google.cloud.compute.v1
Class ResourcePolicyHourlyCycle.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyHourlyCycle.Builder>
com.google.cloud.compute.v1.ResourcePolicyHourlyCycle.Builder
- All Implemented Interfaces:
ResourcePolicyHourlyCycleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicyHourlyCycle
public static final class ResourcePolicyHourlyCycle.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyHourlyCycle.Builder>
implements ResourcePolicyHourlyCycleOrBuilder
Time window specified for hourly operations.Protobuf type
google.cloud.compute.v1.ResourcePolicyHourlyCycle-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Defines a schedule with units measured in hours.Time within the window to start the operations.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.intDefines a schedule with units measured in hours.Time within the window to start the operations.com.google.protobuf.ByteStringTime within the window to start the operations.booleanOutput only.booleanDefines a schedule with units measured in hours.booleanTime within the window to start the operations.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDuration(String value) Output only.setDurationBytes(com.google.protobuf.ByteString value) Output only.setHoursInCycle(int value) Defines a schedule with units measured in hours.setStartTime(String value) Time within the window to start the operations.setStartTimeBytes(com.google.protobuf.ByteString value) Time within the window to start the operations.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<ResourcePolicyHourlyCycle.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<ResourcePolicyHourlyCycle.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<ResourcePolicyHourlyCycle.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<ResourcePolicyHourlyCycle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyHourlyCycle.Builder>
-
mergeFrom
public ResourcePolicyHourlyCycle.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<ResourcePolicyHourlyCycle.Builder>- Throws:
IOException
-
hasDuration
public boolean hasDuration()Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
hasDurationin interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
getDurationin interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- The duration.
-
getDurationBytes
public com.google.protobuf.ByteString getDurationBytes()Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
getDurationBytesin interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- The bytes for duration.
-
setDuration
Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Parameters:
value- The duration to set.- Returns:
- This builder for chaining.
-
clearDuration
Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Returns:
- This builder for chaining.
-
setDurationBytes
Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
optional string duration = 155471252;- Parameters:
value- The bytes for duration to set.- Returns:
- This builder for chaining.
-
hasHoursInCycle
public boolean hasHoursInCycle()Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
optional int32 hours_in_cycle = 526763132;- Specified by:
hasHoursInCyclein interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- Whether the hoursInCycle field is set.
-
getHoursInCycle
public int getHoursInCycle()Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
optional int32 hours_in_cycle = 526763132;- Specified by:
getHoursInCyclein interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- The hoursInCycle.
-
setHoursInCycle
Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
optional int32 hours_in_cycle = 526763132;- Parameters:
value- The hoursInCycle to set.- Returns:
- This builder for chaining.
-
clearHoursInCycle
Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
optional int32 hours_in_cycle = 526763132;- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Specified by:
hasStartTimein interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Specified by:
getStartTimein interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- The startTime.
-
getStartTimeBytes
public com.google.protobuf.ByteString getStartTimeBytes()Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Specified by:
getStartTimeBytesin interfaceResourcePolicyHourlyCycleOrBuilder- Returns:
- The bytes for startTime.
-
setStartTime
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Parameters:
value- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Returns:
- This builder for chaining.
-
setStartTimeBytes
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
optional string start_time = 37467274;- Parameters:
value- The bytes for startTime to set.- Returns:
- This builder for chaining.
-