Class DiskAsyncReplication.Builder (1.51.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DiskAsyncReplication build()
Returns
TypeDescription
DiskAsyncReplication

buildPartial()

public DiskAsyncReplication buildPartial()
Returns
TypeDescription
DiskAsyncReplication

clear()

public DiskAsyncReplication.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DiskAsyncReplication.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DiskAsyncReplication.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for consistencyGroupPolicyId.

getDefaultInstanceForType()

public DiskAsyncReplication getDefaultInstanceForType()
Returns
TypeDescription
DiskAsyncReplication

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the diskId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiskAsyncReplication other)

public DiskAsyncReplication.Builder mergeFrom(DiskAsyncReplication other)
Parameter
NameDescription
otherDiskAsyncReplication
Returns
TypeDescription
DiskAsyncReplication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskAsyncReplication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The consistencyGroupPolicy to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for consistencyGroupPolicy to set.

Returns
TypeDescription
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
NameDescription
valueString

The consistencyGroupPolicyId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for consistencyGroupPolicyId to set.

Returns
TypeDescription
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
NameDescription
valueString

The disk to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for disk to set.

Returns
TypeDescription
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
NameDescription
valueString

The diskId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for diskId to set.

Returns
TypeDescription
DiskAsyncReplication.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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