Class DiskAsyncReplication (1.34.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
TypeDescription
int

CONSISTENCY_GROUP_POLICY_ID_FIELD_NUMBER

public static final int CONSISTENCY_GROUP_POLICY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_FIELD_NUMBER

public static final int DISK_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_ID_FIELD_NUMBER

public static final int DISK_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DiskAsyncReplication getDefaultInstance()
Returns
TypeDescription
DiskAsyncReplication

getDescriptor()

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

newBuilder()

public static DiskAsyncReplication.Builder newBuilder()
Returns
TypeDescription
DiskAsyncReplication.Builder

newBuilder(DiskAsyncReplication prototype)

public static DiskAsyncReplication.Builder newBuilder(DiskAsyncReplication prototype)
Parameter
NameDescription
prototypeDiskAsyncReplication
Returns
TypeDescription
DiskAsyncReplication.Builder

parseDelimitedFrom(InputStream input)

public static DiskAsyncReplication parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DiskAsyncReplication parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiskAsyncReplication parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiskAsyncReplication parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DiskAsyncReplication parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DiskAsyncReplication parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiskAsyncReplication parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiskAsyncReplication
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DiskAsyncReplication> parser()
Returns
TypeDescription
Parser<DiskAsyncReplication>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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

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.

getParserForType()

public Parser<DiskAsyncReplication> getParserForType()
Returns
TypeDescription
Parser<DiskAsyncReplication>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DiskAsyncReplication.Builder newBuilderForType()
Returns
TypeDescription
DiskAsyncReplication.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiskAsyncReplication.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DiskAsyncReplication.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DiskAsyncReplication.Builder toBuilder()
Returns
TypeDescription
DiskAsyncReplication.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException