Package com.google.cloud.compute.v1
Class PreservedStatePreservedDisk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PreservedStatePreservedDisk.Builder>
com.google.cloud.compute.v1.PreservedStatePreservedDisk.Builder
- All Implemented Interfaces:
PreservedStatePreservedDiskOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PreservedStatePreservedDisk
public static final class PreservedStatePreservedDisk.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PreservedStatePreservedDisk.Builder>
implements PreservedStatePreservedDiskOrBuilder
Protobuf type
google.cloud.compute.v1.PreservedStatePreservedDisk-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()These stateful disks will never be deleted during autohealing, update, instance recreate operations.The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.The URL of the disk resource that is stateful and should be attached to the VM instance.These stateful disks will never be deleted during autohealing, update, instance recreate operations.com.google.protobuf.ByteStringThese stateful disks will never be deleted during autohealing, update, instance recreate operations.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMode()The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.com.google.protobuf.ByteStringThe mode in which to attach this disk, either READ_WRITE orREAD_ONLY.The URL of the disk resource that is stateful and should be attached to the VM instance.com.google.protobuf.ByteStringThe URL of the disk resource that is stateful and should be attached to the VM instance.booleanThese stateful disks will never be deleted during autohealing, update, instance recreate operations.booleanhasMode()The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.booleanThe URL of the disk resource that is stateful and should be attached to the VM instance.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAutoDelete(String value) These stateful disks will never be deleted during autohealing, update, instance recreate operations.setAutoDeleteBytes(com.google.protobuf.ByteString value) These stateful disks will never be deleted during autohealing, update, instance recreate operations.The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.setModeBytes(com.google.protobuf.ByteString value) The mode in which to attach this disk, either READ_WRITE orREAD_ONLY.The URL of the disk resource that is stateful and should be attached to the VM instance.setSourceBytes(com.google.protobuf.ByteString value) The URL of the disk resource that is stateful and should be attached to the VM instance.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<PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PreservedStatePreservedDisk.Builder>
-
mergeFrom
public PreservedStatePreservedDisk.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<PreservedStatePreservedDisk.Builder>- Throws:
IOException
-
hasAutoDelete
public boolean hasAutoDelete()These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;- Specified by:
hasAutoDeletein interfacePreservedStatePreservedDiskOrBuilder- Returns:
- Whether the autoDelete field is set.
-
getAutoDelete
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;- Specified by:
getAutoDeletein interfacePreservedStatePreservedDiskOrBuilder- Returns:
- The autoDelete.
-
getAutoDeleteBytes
public com.google.protobuf.ByteString getAutoDeleteBytes()These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;- Specified by:
getAutoDeleteBytesin interfacePreservedStatePreservedDiskOrBuilder- Returns:
- The bytes for autoDelete.
-
setAutoDelete
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;- Parameters:
value- The autoDelete to set.- Returns:
- This builder for chaining.
-
clearAutoDelete
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;- Returns:
- This builder for chaining.
-
setAutoDeleteBytes
These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted. Check the AutoDelete enum for the list of possible values.
optional string auto_delete = 464761403;- Parameters:
value- The bytes for autoDelete to set.- Returns:
- This builder for chaining.
-
hasMode
public boolean hasMode()The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
hasModein interfacePreservedStatePreservedDiskOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModein interfacePreservedStatePreservedDiskOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModeBytesin interfacePreservedStatePreservedDiskOrBuilder- Returns:
- The bytes for mode.
-
setMode
The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Returns:
- This builder for chaining.
-
setModeBytes
The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasSource
public boolean hasSource()The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;- Specified by:
hasSourcein interfacePreservedStatePreservedDiskOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;- Specified by:
getSourcein interfacePreservedStatePreservedDiskOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;- Specified by:
getSourceBytesin interfacePreservedStatePreservedDiskOrBuilder- Returns:
- The bytes for source.
-
setSource
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;- Returns:
- This builder for chaining.
-
setSourceBytes
The URL of the disk resource that is stateful and should be attached to the VM instance.
optional string source = 177235995;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-