Class SavedDisk.Builder (1.8.1)

public static final class SavedDisk.Builder extends GeneratedMessageV3.Builder<SavedDisk.Builder> implements SavedDiskOrBuilder

An instance-attached disk resource.

Protobuf type google.cloud.compute.v1.SavedDisk

Implements

SavedDiskOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SavedDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SavedDisk.Builder
Overrides

build()

public SavedDisk build()
Returns
TypeDescription
SavedDisk

buildPartial()

public SavedDisk buildPartial()
Returns
TypeDescription
SavedDisk

clear()

public SavedDisk.Builder clear()
Returns
TypeDescription
SavedDisk.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SavedDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SavedDisk.Builder
Overrides

clearKind()

public SavedDisk.Builder clearKind()

[Output Only] Type of the resource. Always compute#savedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SavedDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SavedDisk.Builder
Overrides

clearSourceDisk()

public SavedDisk.Builder clearSourceDisk()

Specifies a URL of the disk attached to the source instance.

optional string source_disk = 451753793;

Returns
TypeDescription
SavedDisk.Builder

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
TypeDescription
SavedDisk.Builder

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
TypeDescription
SavedDisk.Builder

This builder for chaining.

clone()

public SavedDisk.Builder clone()
Returns
TypeDescription
SavedDisk.Builder
Overrides

getDefaultInstanceForType()

public SavedDisk getDefaultInstanceForType()
Returns
TypeDescription
SavedDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#savedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#savedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getSourceDisk()

public String getSourceDisk()

Specifies a URL of the disk attached to the source instance.

optional string source_disk = 451753793;

Returns
TypeDescription
String

The sourceDisk.

getSourceDiskBytes()

public ByteString getSourceDiskBytes()

Specifies a URL of the disk attached to the source instance.

optional string source_disk = 451753793;

Returns
TypeDescription
ByteString

The bytes for sourceDisk.

getStorageBytes()

public long getStorageBytes()

[Output Only] Size of the individual disk snapshot used by this machine image.

optional int64 storage_bytes = 424631719;

Returns
TypeDescription
long

The storageBytes.

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;

Returns
TypeDescription
String

The storageBytesStatus.

getStorageBytesStatusBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for storageBytesStatus.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#savedDisk for attached disks.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasSourceDisk()

public boolean hasSourceDisk()

Specifies a URL of the disk attached to the source instance.

optional string source_disk = 451753793;

Returns
TypeDescription
boolean

Whether the sourceDisk field is set.

hasStorageBytes()

public boolean hasStorageBytes()

[Output Only] Size of the individual disk snapshot used by this machine image.

optional int64 storage_bytes = 424631719;

Returns
TypeDescription
boolean

Whether the storageBytes field is set.

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;

Returns
TypeDescription
boolean

Whether the storageBytesStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SavedDisk other)

public SavedDisk.Builder mergeFrom(SavedDisk other)
Parameter
NameDescription
otherSavedDisk
Returns
TypeDescription
SavedDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SavedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedDisk.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SavedDisk.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SavedDisk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SavedDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SavedDisk.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SavedDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SavedDisk.Builder
Overrides

setKind(String value)

public SavedDisk.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#savedDisk for attached disks.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setKindBytes(ByteString value)

public SavedDisk.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#savedDisk for attached disks.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SavedDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SavedDisk.Builder
Overrides

setSourceDisk(String value)

public SavedDisk.Builder setSourceDisk(String value)

Specifies a URL of the disk attached to the source instance.

optional string source_disk = 451753793;

Parameter
NameDescription
valueString

The sourceDisk to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setSourceDiskBytes(ByteString value)

public SavedDisk.Builder setSourceDiskBytes(ByteString value)

Specifies a URL of the disk attached to the source instance.

optional string source_disk = 451753793;

Parameter
NameDescription
valueByteString

The bytes for sourceDisk to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setStorageBytes(long value)

public SavedDisk.Builder setStorageBytes(long value)

[Output Only] Size of the individual disk snapshot used by this machine image.

optional int64 storage_bytes = 424631719;

Parameter
NameDescription
valuelong

The storageBytes to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setStorageBytesStatus(String value)

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;

Parameter
NameDescription
valueString

The storageBytesStatus to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setStorageBytesStatusBytes(ByteString value)

public SavedDisk.Builder setStorageBytesStatusBytes(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;

Parameter
NameDescription
valueByteString

The bytes for storageBytesStatus to set.

Returns
TypeDescription
SavedDisk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SavedDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SavedDisk.Builder
Overrides