Class DiskAsyncReplication.Builder (1.55.0)

public static final class DiskAsyncReplication.Builder extends GeneratedMessageV3.Builder<DiskAsyncReplication.Builder> implements DiskAsyncReplicationOrBuilder

Protobuf type google.cloud.compute.v1.DiskAsyncReplication

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskAsyncReplication build()
Returns
Type Description
DiskAsyncReplication

buildPartial()

public DiskAsyncReplication buildPartial()
Returns
Type Description
DiskAsyncReplication

clear()

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

clearConsistencyGroupPolicy()

public DiskAsyncReplication.Builder clearConsistencyGroupPolicy()

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy = 1991097;

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

clearConsistencyGroupPolicyId()

public DiskAsyncReplication.Builder clearConsistencyGroupPolicyId()

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy_id = 261065057;

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

clearDisk()

public DiskAsyncReplication.Builder clearDisk()

The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string disk = 3083677;

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

clearDiskId()

public DiskAsyncReplication.Builder clearDiskId()

[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.

optional string disk_id = 60990205;

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DiskAsyncReplication.Builder clone()
Returns
Type Description
DiskAsyncReplication.Builder
Overrides

getConsistencyGroupPolicy()

public String getConsistencyGroupPolicy()

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy = 1991097;

Returns
Type Description
String

The consistencyGroupPolicy.

getConsistencyGroupPolicyBytes()

public ByteString getConsistencyGroupPolicyBytes()

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy = 1991097;

Returns
Type Description
ByteString

The bytes for consistencyGroupPolicy.

getConsistencyGroupPolicyId()

public String getConsistencyGroupPolicyId()

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy_id = 261065057;

Returns
Type Description
String

The consistencyGroupPolicyId.

getConsistencyGroupPolicyIdBytes()

public ByteString getConsistencyGroupPolicyIdBytes()

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy_id = 261065057;

Returns
Type Description
ByteString

The bytes for consistencyGroupPolicyId.

getDefaultInstanceForType()

public DiskAsyncReplication getDefaultInstanceForType()
Returns
Type Description
DiskAsyncReplication

getDescriptorForType()

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

getDisk()

public String getDisk()

The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string disk = 3083677;

Returns
Type Description
String

The disk.

getDiskBytes()

public ByteString getDiskBytes()

The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string disk = 3083677;

Returns
Type Description
ByteString

The bytes for disk.

getDiskId()

public String getDiskId()

[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.

optional string disk_id = 60990205;

Returns
Type Description
String

The diskId.

getDiskIdBytes()

public ByteString getDiskIdBytes()

[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.

optional string disk_id = 60990205;

Returns
Type Description
ByteString

The bytes for diskId.

hasConsistencyGroupPolicy()

public boolean hasConsistencyGroupPolicy()

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy = 1991097;

Returns
Type Description
boolean

Whether the consistencyGroupPolicy field is set.

hasConsistencyGroupPolicyId()

public boolean hasConsistencyGroupPolicyId()

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy_id = 261065057;

Returns
Type Description
boolean

Whether the consistencyGroupPolicyId field is set.

hasDisk()

public boolean hasDisk()

The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string disk = 3083677;

Returns
Type Description
boolean

Whether the disk field is set.

hasDiskId()

public boolean hasDiskId()

[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.

optional string disk_id = 60990205;

Returns
Type Description
boolean

Whether the diskId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiskAsyncReplication other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskAsyncReplication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskAsyncReplication.Builder
Overrides

setConsistencyGroupPolicy(String value)

public DiskAsyncReplication.Builder setConsistencyGroupPolicy(String value)

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy = 1991097;

Parameter
Name Description
value String

The consistencyGroupPolicy to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setConsistencyGroupPolicyBytes(ByteString value)

public DiskAsyncReplication.Builder setConsistencyGroupPolicyBytes(ByteString value)

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy = 1991097;

Parameter
Name Description
value ByteString

The bytes for consistencyGroupPolicy to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setConsistencyGroupPolicyId(String value)

public DiskAsyncReplication.Builder setConsistencyGroupPolicyId(String value)

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy_id = 261065057;

Parameter
Name Description
value String

The consistencyGroupPolicyId to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setConsistencyGroupPolicyIdBytes(ByteString value)

public DiskAsyncReplication.Builder setConsistencyGroupPolicyIdBytes(ByteString value)

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

optional string consistency_group_policy_id = 261065057;

Parameter
Name Description
value ByteString

The bytes for consistencyGroupPolicyId to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setDisk(String value)

public DiskAsyncReplication.Builder setDisk(String value)

The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string disk = 3083677;

Parameter
Name Description
value String

The disk to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setDiskBytes(ByteString value)

public DiskAsyncReplication.Builder setDiskBytes(ByteString value)

The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk

optional string disk = 3083677;

Parameter
Name Description
value ByteString

The bytes for disk to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setDiskId(String value)

public DiskAsyncReplication.Builder setDiskId(String value)

[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.

optional string disk_id = 60990205;

Parameter
Name Description
value String

The diskId to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setDiskIdBytes(ByteString value)

public DiskAsyncReplication.Builder setDiskIdBytes(ByteString value)

[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.

optional string disk_id = 60990205;

Parameter
Name Description
value ByteString

The bytes for diskId to set.

Returns
Type Description
DiskAsyncReplication.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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