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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedDisk
build()
SavedDisk
buildPartial()
SavedDisk.Builder
clear()
SavedDisk.Builder
clearArchitecture()
[Output Only] The architecture of the attached disk.SavedDisk.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SavedDisk.Builder
clearKind()
[Output Only] Type of the resource.SavedDisk.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SavedDisk.Builder
clearSourceDisk()
Specifies a URL of the disk attached to the source instance.SavedDisk.Builder
clearStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.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.SavedDisk.Builder
clone()
String
getArchitecture()
[Output Only] The architecture of the attached disk.com.google.protobuf.ByteString
getArchitectureBytes()
[Output Only] The architecture of the attached disk.SavedDisk
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getKind()
[Output Only] Type of the resource.com.google.protobuf.ByteString
getKindBytes()
[Output Only] Type of the resource.String
getSourceDisk()
Specifies a URL of the disk attached to the source instance.com.google.protobuf.ByteString
getSourceDiskBytes()
Specifies a URL of the disk attached to the source instance.long
getStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.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.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.boolean
hasArchitecture()
[Output Only] The architecture of the attached disk.boolean
hasKind()
[Output Only] Type of the resource.boolean
hasSourceDisk()
Specifies a URL of the disk attached to the source instance.boolean
hasStorageBytes()
[Output Only] Size of the individual disk snapshot used by this machine image.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SavedDisk.Builder
mergeFrom(SavedDisk other)
SavedDisk.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SavedDisk.Builder
mergeFrom(com.google.protobuf.Message other)
SavedDisk.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SavedDisk.Builder
setArchitecture(String value)
[Output Only] The architecture of the attached disk.SavedDisk.Builder
setArchitectureBytes(com.google.protobuf.ByteString value)
[Output Only] The architecture of the attached disk.SavedDisk.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedDisk.Builder
setKind(String value)
[Output Only] Type of the resource.SavedDisk.Builder
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.SavedDisk.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SavedDisk.Builder
setSourceDisk(String value)
Specifies a URL of the disk attached to the source instance.SavedDisk.Builder
setSourceDiskBytes(com.google.protobuf.ByteString value)
Specifies a URL of the disk attached to the source instance.SavedDisk.Builder
setStorageBytes(long value)
[Output Only] Size of the individual disk snapshot used by this machine image.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.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.SavedDisk.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
clear
public SavedDisk.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
getDefaultInstanceForType
public SavedDisk getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SavedDisk build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SavedDisk buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SavedDisk.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
setField
public SavedDisk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
clearField
public SavedDisk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
clearOneof
public SavedDisk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
setRepeatedField
public SavedDisk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
addRepeatedField
public SavedDisk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
mergeFrom
public SavedDisk.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedDisk.Builder>
-
mergeFrom
public SavedDisk.Builder mergeFrom(SavedDisk other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasArchitecture
in 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:
getArchitecture
in 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:
getArchitectureBytes
in 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:
hasKind
in 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:
getKind
in 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:
getKindBytes
in 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:
hasSourceDisk
in 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:
getSourceDisk
in 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:
getSourceDiskBytes
in 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:
hasStorageBytes
in 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:
getStorageBytes
in 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:
hasStorageBytesStatus
in 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:
getStorageBytesStatus
in 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:
getStorageBytesStatusBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
mergeUnknownFields
public final SavedDisk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedDisk.Builder>
-
-