Package com.google.cloud.compute.v1
Class SavedDisk.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
- com.google.cloud.compute.v1.SavedDisk.Builder
-
- All Implemented Interfaces:
SavedDiskOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SavedDisk
public static final class SavedDisk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder> implements SavedDiskOrBuilder
An instance-attached disk resource.
Protobuf typegoogle.cloud.compute.v1.SavedDisk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SavedDisk.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SavedDiskbuild()SavedDiskbuildPartial()SavedDisk.Builderclear()SavedDisk.BuilderclearArchitecture()[Output Only] The architecture of the attached disk.SavedDisk.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SavedDisk.BuilderclearKind()[Output Only] Type of the resource.SavedDisk.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SavedDisk.BuilderclearSourceDisk()Specifies a URL of the disk attached to the source instance.SavedDisk.BuilderclearStorageBytes()[Output Only] Size of the individual disk snapshot used by this machine image.SavedDisk.BuilderclearStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.SavedDisk.Builderclone()StringgetArchitecture()[Output Only] The architecture of the attached disk.com.google.protobuf.ByteStringgetArchitectureBytes()[Output Only] The architecture of the attached disk.SavedDiskgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.StringgetSourceDisk()Specifies a URL of the disk attached to the source instance.com.google.protobuf.ByteStringgetSourceDiskBytes()Specifies a URL of the disk attached to the source instance.longgetStorageBytes()[Output Only] Size of the individual disk snapshot used by this machine image.StringgetStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.com.google.protobuf.ByteStringgetStorageBytesStatusBytes()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.booleanhasArchitecture()[Output Only] The architecture of the attached disk.booleanhasKind()[Output Only] Type of the resource.booleanhasSourceDisk()Specifies a URL of the disk attached to the source instance.booleanhasStorageBytes()[Output Only] Size of the individual disk snapshot used by this machine image.booleanhasStorageBytesStatus()[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SavedDisk.BuildermergeFrom(SavedDisk other)SavedDisk.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SavedDisk.BuildermergeFrom(com.google.protobuf.Message other)SavedDisk.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SavedDisk.BuildersetArchitecture(String value)[Output Only] The architecture of the attached disk.SavedDisk.BuildersetArchitectureBytes(com.google.protobuf.ByteString value)[Output Only] The architecture of the attached disk.SavedDisk.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SavedDisk.BuildersetKind(String value)[Output Only] Type of the resource.SavedDisk.BuildersetKindBytes(com.google.protobuf.ByteString value)[Output Only] Type of the resource.SavedDisk.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SavedDisk.BuildersetSourceDisk(String value)Specifies a URL of the disk attached to the source instance.SavedDisk.BuildersetSourceDiskBytes(com.google.protobuf.ByteString value)Specifies a URL of the disk attached to the source instance.SavedDisk.BuildersetStorageBytes(long value)[Output Only] Size of the individual disk snapshot used by this machine image.SavedDisk.BuildersetStorageBytesStatus(String value)[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.SavedDisk.BuildersetStorageBytesStatusBytes(com.google.protobuf.ByteString value)[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation.SavedDisk.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
clear
public SavedDisk.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.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.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
getDefaultInstanceForType
public SavedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SavedDisk build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SavedDisk buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SavedDisk.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
setField
public SavedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
clearField
public SavedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
clearOneof
public SavedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
setRepeatedField
public SavedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
addRepeatedField
public SavedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
mergeFrom
public SavedDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SavedDisk.Builder>
-
mergeFrom
public SavedDisk.Builder mergeFrom(SavedDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
mergeFrom
public SavedDisk.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<SavedDisk.Builder>- Throws:
IOException
-
hasArchitecture
public boolean hasArchitecture()
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Specified by:
hasArchitecturein interfaceSavedDiskOrBuilder- Returns:
- Whether the architecture field is set.
-
getArchitecture
public String getArchitecture()
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Specified by:
getArchitecturein interfaceSavedDiskOrBuilder- Returns:
- The architecture.
-
getArchitectureBytes
public com.google.protobuf.ByteString getArchitectureBytes()
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Specified by:
getArchitectureBytesin interfaceSavedDiskOrBuilder- Returns:
- The bytes for architecture.
-
setArchitecture
public SavedDisk.Builder setArchitecture(String value)
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Parameters:
value- The architecture to set.- Returns:
- This builder for chaining.
-
clearArchitecture
public SavedDisk.Builder clearArchitecture()
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Returns:
- This builder for chaining.
-
setArchitectureBytes
public SavedDisk.Builder setArchitectureBytes(com.google.protobuf.ByteString value)
[Output Only] The architecture of the attached disk. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;- Parameters:
value- The bytes for architecture to set.- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
optional string kind = 3292052;- Specified by:
hasKindin interfaceSavedDiskOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
public String getKind()
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
optional string kind = 3292052;- Specified by:
getKindin interfaceSavedDiskOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceSavedDiskOrBuilder- Returns:
- The bytes for kind.
-
setKind
public SavedDisk.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public SavedDisk.Builder clearKind()
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
public SavedDisk.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#savedDisk for attached disks.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasSourceDisk
public boolean hasSourceDisk()
Specifies a URL of the disk attached to the source instance.
optional string source_disk = 451753793;- Specified by:
hasSourceDiskin interfaceSavedDiskOrBuilder- Returns:
- Whether the sourceDisk field is set.
-
getSourceDisk
public String getSourceDisk()
Specifies a URL of the disk attached to the source instance.
optional string source_disk = 451753793;- Specified by:
getSourceDiskin interfaceSavedDiskOrBuilder- Returns:
- The sourceDisk.
-
getSourceDiskBytes
public com.google.protobuf.ByteString getSourceDiskBytes()
Specifies a URL of the disk attached to the source instance.
optional string source_disk = 451753793;- Specified by:
getSourceDiskBytesin interfaceSavedDiskOrBuilder- Returns:
- The bytes for sourceDisk.
-
setSourceDisk
public SavedDisk.Builder setSourceDisk(String value)
Specifies a URL of the disk attached to the source instance.
optional string source_disk = 451753793;- Parameters:
value- The sourceDisk to set.- Returns:
- This builder for chaining.
-
clearSourceDisk
public SavedDisk.Builder clearSourceDisk()
Specifies a URL of the disk attached to the source instance.
optional string source_disk = 451753793;- Returns:
- This builder for chaining.
-
setSourceDiskBytes
public SavedDisk.Builder setSourceDiskBytes(com.google.protobuf.ByteString value)
Specifies a URL of the disk attached to the source instance.
optional string source_disk = 451753793;- Parameters:
value- The bytes for sourceDisk to set.- Returns:
- This builder for chaining.
-
hasStorageBytes
public boolean hasStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.
optional int64 storage_bytes = 424631719;- Specified by:
hasStorageBytesin interfaceSavedDiskOrBuilder- Returns:
- Whether the storageBytes field is set.
-
getStorageBytes
public long getStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.
optional int64 storage_bytes = 424631719;- Specified by:
getStorageBytesin interfaceSavedDiskOrBuilder- Returns:
- The storageBytes.
-
setStorageBytes
public SavedDisk.Builder setStorageBytes(long value)
[Output Only] Size of the individual disk snapshot used by this machine image.
optional int64 storage_bytes = 424631719;- Parameters:
value- The storageBytes to set.- Returns:
- This builder for chaining.
-
clearStorageBytes
public SavedDisk.Builder clearStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.
optional int64 storage_bytes = 424631719;- Returns:
- This builder for chaining.
-
hasStorageBytesStatus
public boolean hasStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Specified by:
hasStorageBytesStatusin interfaceSavedDiskOrBuilder- Returns:
- Whether the storageBytesStatus field is set.
-
getStorageBytesStatus
public String getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Specified by:
getStorageBytesStatusin interfaceSavedDiskOrBuilder- Returns:
- The storageBytesStatus.
-
getStorageBytesStatusBytes
public com.google.protobuf.ByteString getStorageBytesStatusBytes()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Specified by:
getStorageBytesStatusBytesin interfaceSavedDiskOrBuilder- Returns:
- The bytes for storageBytesStatus.
-
setStorageBytesStatus
public SavedDisk.Builder setStorageBytesStatus(String value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Parameters:
value- The storageBytesStatus to set.- Returns:
- This builder for chaining.
-
clearStorageBytesStatus
public SavedDisk.Builder clearStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Returns:
- This builder for chaining.
-
setStorageBytesStatusBytes
public SavedDisk.Builder setStorageBytesStatusBytes(com.google.protobuf.ByteString value)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. Check the StorageBytesStatus enum for the list of possible values.
optional string storage_bytes_status = 490739082;- Parameters:
value- The bytes for storageBytesStatus to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SavedDisk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
mergeUnknownFields
public final SavedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
-