Class DiskResourceStatus.Builder (1.65.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiskResourceStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskResourceStatus.Builder
Overrides

build()

public DiskResourceStatus build()
Returns
Type Description
DiskResourceStatus

buildPartial()

public DiskResourceStatus buildPartial()
Returns
Type Description
DiskResourceStatus

clear()

public DiskResourceStatus.Builder clear()
Returns
Type Description
DiskResourceStatus.Builder
Overrides

clearAsyncPrimaryDisk()

public DiskResourceStatus.Builder clearAsyncPrimaryDisk()

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

Returns
Type Description
DiskResourceStatus.Builder

clearAsyncSecondaryDisks()

public DiskResourceStatus.Builder clearAsyncSecondaryDisks()
Returns
Type Description
DiskResourceStatus.Builder

clearField(Descriptors.FieldDescriptor field)

public DiskResourceStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiskResourceStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DiskResourceStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiskResourceStatus.Builder
Overrides

clone()

public DiskResourceStatus.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getAsyncPrimaryDisk()

public DiskResourceStatusAsyncReplicationStatus getAsyncPrimaryDisk()

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

Returns
Type Description
DiskResourceStatusAsyncReplicationStatus

The asyncPrimaryDisk.

getAsyncPrimaryDiskBuilder()

public DiskResourceStatusAsyncReplicationStatus.Builder getAsyncPrimaryDiskBuilder()

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

Returns
Type Description
DiskResourceStatusAsyncReplicationStatus.Builder

getAsyncPrimaryDiskOrBuilder()

public DiskResourceStatusAsyncReplicationStatusOrBuilder getAsyncPrimaryDiskOrBuilder()

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

Returns
Type Description
DiskResourceStatusAsyncReplicationStatusOrBuilder

getAsyncSecondaryDisks() (deprecated)

public Map<String,DiskResourceStatusAsyncReplicationStatus> getAsyncSecondaryDisks()
Returns
Type Description
Map<String,DiskResourceStatusAsyncReplicationStatus>

getAsyncSecondaryDisksCount()

public int getAsyncSecondaryDisksCount()

Key: disk, value: AsyncReplicationStatus message

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

Returns
Type Description
int

getAsyncSecondaryDisksMap()

public Map<String,DiskResourceStatusAsyncReplicationStatus> getAsyncSecondaryDisksMap()

Key: disk, value: AsyncReplicationStatus message

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

Returns
Type Description
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
Name Description
key String
defaultValue DiskResourceStatusAsyncReplicationStatus
Returns
Type Description
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
Name Description
key String
Returns
Type Description
DiskResourceStatusAsyncReplicationStatus

getDefaultInstanceForType()

public DiskResourceStatus getDefaultInstanceForType()
Returns
Type Description
DiskResourceStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableAsyncSecondaryDisks() (deprecated)

public Map<String,DiskResourceStatusAsyncReplicationStatus> getMutableAsyncSecondaryDisks()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,DiskResourceStatusAsyncReplicationStatus>

hasAsyncPrimaryDisk()

public boolean hasAsyncPrimaryDisk()

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

Returns
Type Description
boolean

Whether the asyncPrimaryDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

public DiskResourceStatus.Builder mergeAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

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

Parameter
Name Description
value DiskResourceStatusAsyncReplicationStatus
Returns
Type Description
DiskResourceStatus.Builder

mergeFrom(DiskResourceStatus other)

public DiskResourceStatus.Builder mergeFrom(DiskResourceStatus other)
Parameter
Name Description
other DiskResourceStatus
Returns
Type Description
DiskResourceStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiskResourceStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskResourceStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiskResourceStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiskResourceStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskResourceStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,DiskResourceStatusAsyncReplicationStatus>
Returns
Type Description
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
Name Description
key String
value DiskResourceStatusAsyncReplicationStatus
Returns
Type Description
DiskResourceStatus.Builder

putAsyncSecondaryDisksBuilderIfAbsent(String key)

public DiskResourceStatusAsyncReplicationStatus.Builder putAsyncSecondaryDisksBuilderIfAbsent(String key)

Key: disk, value: AsyncReplicationStatus message

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

Parameter
Name Description
key String
Returns
Type Description
DiskResourceStatusAsyncReplicationStatus.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
Name Description
key String
Returns
Type Description
DiskResourceStatus.Builder

setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

public DiskResourceStatus.Builder setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus value)

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

Parameter
Name Description
value DiskResourceStatusAsyncReplicationStatus
Returns
Type Description
DiskResourceStatus.Builder

setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus.Builder builderForValue)

public DiskResourceStatus.Builder setAsyncPrimaryDisk(DiskResourceStatusAsyncReplicationStatus.Builder builderForValue)

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

Parameter
Name Description
builderForValue DiskResourceStatusAsyncReplicationStatus.Builder
Returns
Type Description
DiskResourceStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiskResourceStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskResourceStatus.Builder
Overrides

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

public DiskResourceStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiskResourceStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DiskResourceStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskResourceStatus.Builder
Overrides