Class DiskAsyncReplication (1.55.0)

public final class DiskAsyncReplication extends GeneratedMessageV3 implements DiskAsyncReplicationOrBuilder

Protobuf type google.cloud.compute.v1.DiskAsyncReplication

Static Fields

CONSISTENCY_GROUP_POLICY_FIELD_NUMBER

public static final int CONSISTENCY_GROUP_POLICY_FIELD_NUMBER
Field Value
Type Description
int

CONSISTENCY_GROUP_POLICY_ID_FIELD_NUMBER

public static final int CONSISTENCY_GROUP_POLICY_ID_FIELD_NUMBER
Field Value
Type Description
int

DISK_FIELD_NUMBER

public static final int DISK_FIELD_NUMBER
Field Value
Type Description
int

DISK_ID_FIELD_NUMBER

public static final int DISK_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiskAsyncReplication getDefaultInstance()
Returns
Type Description
DiskAsyncReplication

getDescriptor()

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

newBuilder()

public static DiskAsyncReplication.Builder newBuilder()
Returns
Type Description
DiskAsyncReplication.Builder

newBuilder(DiskAsyncReplication prototype)

public static DiskAsyncReplication.Builder newBuilder(DiskAsyncReplication prototype)
Parameter
Name Description
prototype DiskAsyncReplication
Returns
Type Description
DiskAsyncReplication.Builder

parseDelimitedFrom(InputStream input)

public static DiskAsyncReplication parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DiskAsyncReplication parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiskAsyncReplication parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiskAsyncReplication parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DiskAsyncReplication parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DiskAsyncReplication parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskAsyncReplication
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DiskAsyncReplication> parser()
Returns
Type Description
Parser<DiskAsyncReplication>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<DiskAsyncReplication> getParserForType()
Returns
Type Description
Parser<DiskAsyncReplication>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DiskAsyncReplication.Builder newBuilderForType()
Returns
Type Description
DiskAsyncReplication.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiskAsyncReplication.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DiskAsyncReplication.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DiskAsyncReplication.Builder toBuilder()
Returns
Type Description
DiskAsyncReplication.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException