Package com.google.cloud.compute.v1
Class ResourcePolicyDailyCycle.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyDailyCycle.Builder>
com.google.cloud.compute.v1.ResourcePolicyDailyCycle.Builder
- All Implemented Interfaces:
ResourcePolicyDailyCycleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicyDailyCycle
public static final class ResourcePolicyDailyCycle.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyDailyCycle.Builder>
implements ResourcePolicyDailyCycleOrBuilder
Time window specified for daily operations.Protobuf type
google.cloud.compute.v1.ResourcePolicyDailyCycle-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Defines a schedule with units measured in days.Output only.Start time of the window.intDefines a schedule with units measured in days.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Start time of the window.com.google.protobuf.ByteStringStart time of the window.booleanDefines a schedule with units measured in days.booleanOutput only.booleanStart time of the window.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDaysInCycle(int value) Defines a schedule with units measured in days.setDuration(String value) Output only.setDurationBytes(com.google.protobuf.ByteString value) Output only.setStartTime(String value) Start time of the window.setStartTimeBytes(com.google.protobuf.ByteString value) Start time of the window.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<ResourcePolicyDailyCycle.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<ResourcePolicyDailyCycle.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<ResourcePolicyDailyCycle.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<ResourcePolicyDailyCycle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyDailyCycle.Builder>
-
mergeFrom
public ResourcePolicyDailyCycle.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<ResourcePolicyDailyCycle.Builder>- Throws:
IOException
-
hasDaysInCycle
public boolean hasDaysInCycle()Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
optional int32 days_in_cycle = 369790004;- Specified by:
hasDaysInCyclein interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- Whether the daysInCycle field is set.
-
getDaysInCycle
public int getDaysInCycle()Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
optional int32 days_in_cycle = 369790004;- Specified by:
getDaysInCyclein interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- The daysInCycle.
-
setDaysInCycle
Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
optional int32 days_in_cycle = 369790004;- Parameters:
value- The daysInCycle to set.- Returns:
- This builder for chaining.
-
clearDaysInCycle
Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
optional int32 days_in_cycle = 369790004;- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
hasDurationin interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
getDurationin interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- The duration.
-
getDurationBytes
public com.google.protobuf.ByteString getDurationBytes()Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
optional string duration = 155471252;- Specified by:
getDurationBytesin interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- The bytes for duration.
-
setDuration
Output only. [Output only] A predetermined duration for the window, automatically chosen to be the 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] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
optional string duration = 155471252;- Returns:
- This builder for chaining.
-
setDurationBytes
Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
optional string duration = 155471252;- Parameters:
value- The bytes for duration to set.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
optional string start_time = 37467274;- Specified by:
hasStartTimein interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
optional string start_time = 37467274;- Specified by:
getStartTimein interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- The startTime.
-
getStartTimeBytes
public com.google.protobuf.ByteString getStartTimeBytes()Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
optional string start_time = 37467274;- Specified by:
getStartTimeBytesin interfaceResourcePolicyDailyCycleOrBuilder- Returns:
- The bytes for startTime.
-
setStartTime
Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
optional string start_time = 37467274;- Parameters:
value- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
optional string start_time = 37467274;- Returns:
- This builder for chaining.
-
setStartTimeBytes
Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
optional string start_time = 37467274;- Parameters:
value- The bytes for startTime to set.- Returns:
- This builder for chaining.
-