Class DiskResourceStatus.Builder (1.39.0)

public static final class DiskResourceStatus.Builder extends GeneratedMessageV3.Builder<DiskResourceStatus.Builder> implements DiskResourceStatusOrBuilder

Protobuf type google.cloud.compute.v1.DiskResourceStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskResourceStatus build()
Returns
TypeDescription
DiskResourceStatus

buildPartial()

public DiskResourceStatus buildPartial()
Returns
TypeDescription
DiskResourceStatus

clear()

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

clearAsyncPrimaryDisk()

public DiskResourceStatus.Builder clearAsyncPrimaryDisk()

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Returns
TypeDescription
DiskResourceStatus.Builder

clearAsyncSecondaryDisks()

public DiskResourceStatus.Builder clearAsyncSecondaryDisks()
Returns
TypeDescription
DiskResourceStatus.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsAsyncSecondaryDisks(String key)

public boolean containsAsyncSecondaryDisks(String key)

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAsyncPrimaryDisk()

public DiskResourceStatusAsyncReplicationStatus getAsyncPrimaryDisk()

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Returns
TypeDescription
DiskResourceStatusAsyncReplicationStatus

The asyncPrimaryDisk.

getAsyncPrimaryDiskBuilder()

public DiskResourceStatusAsyncReplicationStatus.Builder getAsyncPrimaryDiskBuilder()

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Returns
TypeDescription
DiskResourceStatusAsyncReplicationStatus.Builder

getAsyncPrimaryDiskOrBuilder()

public DiskResourceStatusAsyncReplicationStatusOrBuilder getAsyncPrimaryDiskOrBuilder()

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Returns
TypeDescription
DiskResourceStatusAsyncReplicationStatusOrBuilder

getAsyncSecondaryDisks()

public Map<String,DiskResourceStatusAsyncReplicationStatus> getAsyncSecondaryDisks()
Returns
TypeDescription
Map<String,DiskResourceStatusAsyncReplicationStatus>

getAsyncSecondaryDisksCount()

public int getAsyncSecondaryDisksCount()

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Returns
TypeDescription
int

getAsyncSecondaryDisksMap()

public Map<String,DiskResourceStatusAsyncReplicationStatus> getAsyncSecondaryDisksMap()

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Returns
TypeDescription
Map<String,DiskResourceStatusAsyncReplicationStatus>

getAsyncSecondaryDisksOrDefault(String key, DiskResourceStatusAsyncReplicationStatus defaultValue)

public DiskResourceStatusAsyncReplicationStatus getAsyncSecondaryDisksOrDefault(String key, DiskResourceStatusAsyncReplicationStatus defaultValue)

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Parameters
NameDescription
keyString
defaultValueDiskResourceStatusAsyncReplicationStatus
Returns
TypeDescription
DiskResourceStatusAsyncReplicationStatus

getAsyncSecondaryDisksOrThrow(String key)

public DiskResourceStatusAsyncReplicationStatus getAsyncSecondaryDisksOrThrow(String key)

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Parameter
NameDescription
keyString
Returns
TypeDescription
DiskResourceStatusAsyncReplicationStatus

getDefaultInstanceForType()

public DiskResourceStatus getDefaultInstanceForType()
Returns
TypeDescription
DiskResourceStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableAsyncSecondaryDisks()

public Map<String,DiskResourceStatusAsyncReplicationStatus> getMutableAsyncSecondaryDisks()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,DiskResourceStatusAsyncReplicationStatus>

hasAsyncPrimaryDisk()

public boolean hasAsyncPrimaryDisk()

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Returns
TypeDescription
boolean

Whether the asyncPrimaryDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

public DiskResourceStatus.Builder mergeAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Parameter
NameDescription
valueDiskResourceStatusAsyncReplicationStatus
Returns
TypeDescription
DiskResourceStatus.Builder

mergeFrom(DiskResourceStatus other)

public DiskResourceStatus.Builder mergeFrom(DiskResourceStatus other)
Parameter
NameDescription
otherDiskResourceStatus
Returns
TypeDescription
DiskResourceStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllAsyncSecondaryDisks(Map<String,DiskResourceStatusAsyncReplicationStatus> values)

public DiskResourceStatus.Builder putAllAsyncSecondaryDisks(Map<String,DiskResourceStatusAsyncReplicationStatus> values)

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Parameter
NameDescription
valuesMap<String,DiskResourceStatusAsyncReplicationStatus>
Returns
TypeDescription
DiskResourceStatus.Builder

putAsyncSecondaryDisks(String key, DiskResourceStatusAsyncReplicationStatus value)

public DiskResourceStatus.Builder putAsyncSecondaryDisks(String key, DiskResourceStatusAsyncReplicationStatus value)

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Parameters
NameDescription
keyString
valueDiskResourceStatusAsyncReplicationStatus
Returns
TypeDescription
DiskResourceStatus.Builder

removeAsyncSecondaryDisks(String key)

public DiskResourceStatus.Builder removeAsyncSecondaryDisks(String key)

Key: disk, value: AsyncReplicationStatus message

map<string, .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus> async_secondary_disks = 322925608;

Parameter
NameDescription
keyString
Returns
TypeDescription
DiskResourceStatus.Builder

setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

public DiskResourceStatus.Builder setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Parameter
NameDescription
valueDiskResourceStatusAsyncReplicationStatus
Returns
TypeDescription
DiskResourceStatus.Builder

setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus.Builder builderForValue)

public DiskResourceStatus.Builder setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus.Builder builderForValue)

optional .google.cloud.compute.v1.DiskResourceStatusAsyncReplicationStatus async_primary_disk = 180517533;

Parameter
NameDescription
builderForValueDiskResourceStatusAsyncReplicationStatus.Builder
Returns
TypeDescription
DiskResourceStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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