Package com.google.cloud.compute.v1
Class ResourcePolicyInstanceSchedulePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyInstanceSchedulePolicy.Builder>
com.google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy.Builder
- All Implemented Interfaces:
ResourcePolicyInstanceSchedulePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicyInstanceSchedulePolicy
public static final class ResourcePolicyInstanceSchedulePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicyInstanceSchedulePolicy.Builder>
implements ResourcePolicyInstanceSchedulePolicyOrBuilder
An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.Protobuf type
google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The expiration time of the schedule.The start time of the schedule.Specifies the time zone to be used in interpreting Schedule.schedule.Specifies the schedule for starting instances.Specifies the schedule for stopping instances.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe expiration time of the schedule.com.google.protobuf.ByteStringThe expiration time of the schedule.The start time of the schedule.com.google.protobuf.ByteStringThe start time of the schedule.Specifies the time zone to be used in interpreting Schedule.schedule.com.google.protobuf.ByteStringSpecifies the time zone to be used in interpreting Schedule.schedule.Specifies the schedule for starting instances.Specifies the schedule for starting instances.Specifies the schedule for starting instances.Specifies the schedule for stopping instances.Specifies the schedule for stopping instances.Specifies the schedule for stopping instances.booleanThe expiration time of the schedule.booleanThe start time of the schedule.booleanSpecifies the time zone to be used in interpreting Schedule.schedule.booleanSpecifies the schedule for starting instances.booleanSpecifies the schedule for stopping instances.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Specifies the schedule for starting instances.Specifies the schedule for stopping instances.setExpirationTime(String value) The expiration time of the schedule.setExpirationTimeBytes(com.google.protobuf.ByteString value) The expiration time of the schedule.setStartTime(String value) The start time of the schedule.setStartTimeBytes(com.google.protobuf.ByteString value) The start time of the schedule.setTimeZone(String value) Specifies the time zone to be used in interpreting Schedule.schedule.setTimeZoneBytes(com.google.protobuf.ByteString value) Specifies the time zone to be used in interpreting Schedule.schedule.Specifies the schedule for starting instances.setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue) Specifies the schedule for starting instances.Specifies the schedule for stopping instances.setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue) Specifies the schedule for stopping instances.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<ResourcePolicyInstanceSchedulePolicy.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<ResourcePolicyInstanceSchedulePolicy.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<ResourcePolicyInstanceSchedulePolicy.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<ResourcePolicyInstanceSchedulePolicy.Builder>
-
mergeFrom
public ResourcePolicyInstanceSchedulePolicy.Builder mergeFrom(ResourcePolicyInstanceSchedulePolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicyInstanceSchedulePolicy.Builder>
-
mergeFrom
public ResourcePolicyInstanceSchedulePolicy.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<ResourcePolicyInstanceSchedulePolicy.Builder>- Throws:
IOException
-
hasExpirationTime
public boolean hasExpirationTime()The expiration time of the schedule. The timestamp is an RFC3339 string.
optional string expiration_time = 230299229;- Specified by:
hasExpirationTimein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
The expiration time of the schedule. The timestamp is an RFC3339 string.
optional string expiration_time = 230299229;- Specified by:
getExpirationTimein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The expirationTime.
-
getExpirationTimeBytes
public com.google.protobuf.ByteString getExpirationTimeBytes()The expiration time of the schedule. The timestamp is an RFC3339 string.
optional string expiration_time = 230299229;- Specified by:
getExpirationTimeBytesin interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The bytes for expirationTime.
-
setExpirationTime
The expiration time of the schedule. The timestamp is an RFC3339 string.
optional string expiration_time = 230299229;- Parameters:
value- The expirationTime to set.- Returns:
- This builder for chaining.
-
clearExpirationTime
The expiration time of the schedule. The timestamp is an RFC3339 string.
optional string expiration_time = 230299229;- Returns:
- This builder for chaining.
-
setExpirationTimeBytes
public ResourcePolicyInstanceSchedulePolicy.Builder setExpirationTimeBytes(com.google.protobuf.ByteString value) The expiration time of the schedule. The timestamp is an RFC3339 string.
optional string expiration_time = 230299229;- Parameters:
value- The bytes for expirationTime to set.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()The start time of the schedule. The timestamp is an RFC3339 string.
optional string start_time = 37467274;- Specified by:
hasStartTimein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
The start time of the schedule. The timestamp is an RFC3339 string.
optional string start_time = 37467274;- Specified by:
getStartTimein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The startTime.
-
getStartTimeBytes
public com.google.protobuf.ByteString getStartTimeBytes()The start time of the schedule. The timestamp is an RFC3339 string.
optional string start_time = 37467274;- Specified by:
getStartTimeBytesin interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The bytes for startTime.
-
setStartTime
The start time of the schedule. The timestamp is an RFC3339 string.
optional string start_time = 37467274;- Parameters:
value- The startTime to set.- Returns:
- This builder for chaining.
-
clearStartTime
The start time of the schedule. The timestamp is an RFC3339 string.
optional string start_time = 37467274;- Returns:
- This builder for chaining.
-
setStartTimeBytes
public ResourcePolicyInstanceSchedulePolicy.Builder setStartTimeBytes(com.google.protobuf.ByteString value) The start time of the schedule. The timestamp is an RFC3339 string.
optional string start_time = 37467274;- Parameters:
value- The bytes for startTime to set.- Returns:
- This builder for chaining.
-
hasTimeZone
public boolean hasTimeZone()Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;- Specified by:
hasTimeZonein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- Whether the timeZone field is set.
-
getTimeZone
Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;- Specified by:
getTimeZonein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The timeZone.
-
getTimeZoneBytes
public com.google.protobuf.ByteString getTimeZoneBytes()Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;- Specified by:
getTimeZoneBytesin interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The bytes for timeZone.
-
setTimeZone
Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;- Parameters:
value- The timeZone to set.- Returns:
- This builder for chaining.
-
clearTimeZone
Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;- Returns:
- This builder for chaining.
-
setTimeZoneBytes
public ResourcePolicyInstanceSchedulePolicy.Builder setTimeZoneBytes(com.google.protobuf.ByteString value) Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
optional string time_zone = 36848094;- Parameters:
value- The bytes for timeZone to set.- Returns:
- This builder for chaining.
-
hasVmStartSchedule
public boolean hasVmStartSchedule()Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;- Specified by:
hasVmStartSchedulein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- Whether the vmStartSchedule field is set.
-
getVmStartSchedule
Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;- Specified by:
getVmStartSchedulein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The vmStartSchedule.
-
setVmStartSchedule
public ResourcePolicyInstanceSchedulePolicy.Builder setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule value) Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396; -
setVmStartSchedule
public ResourcePolicyInstanceSchedulePolicy.Builder setVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue) Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396; -
mergeVmStartSchedule
public ResourcePolicyInstanceSchedulePolicy.Builder mergeVmStartSchedule(ResourcePolicyInstanceSchedulePolicySchedule value) Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396; -
clearVmStartSchedule
Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396; -
getVmStartScheduleBuilder
Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396; -
getVmStartScheduleOrBuilder
Specifies the schedule for starting instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_start_schedule = 17762396;- Specified by:
getVmStartScheduleOrBuilderin interfaceResourcePolicyInstanceSchedulePolicyOrBuilder
-
hasVmStopSchedule
public boolean hasVmStopSchedule()Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;- Specified by:
hasVmStopSchedulein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- Whether the vmStopSchedule field is set.
-
getVmStopSchedule
Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;- Specified by:
getVmStopSchedulein interfaceResourcePolicyInstanceSchedulePolicyOrBuilder- Returns:
- The vmStopSchedule.
-
setVmStopSchedule
public ResourcePolicyInstanceSchedulePolicy.Builder setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule value) Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732; -
setVmStopSchedule
public ResourcePolicyInstanceSchedulePolicy.Builder setVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule.Builder builderForValue) Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732; -
mergeVmStopSchedule
public ResourcePolicyInstanceSchedulePolicy.Builder mergeVmStopSchedule(ResourcePolicyInstanceSchedulePolicySchedule value) Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732; -
clearVmStopSchedule
Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732; -
getVmStopScheduleBuilder
Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732; -
getVmStopScheduleOrBuilder
Specifies the schedule for stopping instances.
optional .google.cloud.compute.v1.ResourcePolicyInstanceSchedulePolicySchedule vm_stop_schedule = 426242732;- Specified by:
getVmStopScheduleOrBuilderin interfaceResourcePolicyInstanceSchedulePolicyOrBuilder
-