Class DisksStartAsyncReplicationRequest.Builder (1.56.0)

public static final class DisksStartAsyncReplicationRequest.Builder extends GeneratedMessageV3.Builder<DisksStartAsyncReplicationRequest.Builder> implements DisksStartAsyncReplicationRequestOrBuilder

Protobuf type google.cloud.compute.v1.DisksStartAsyncReplicationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DisksStartAsyncReplicationRequest build()
Returns
Type Description
DisksStartAsyncReplicationRequest

buildPartial()

public DisksStartAsyncReplicationRequest buildPartial()
Returns
Type Description
DisksStartAsyncReplicationRequest

clear()

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

clearAsyncSecondaryDisk()

public DisksStartAsyncReplicationRequest.Builder clearAsyncSecondaryDisk()

The secondary disk to start asynchronous replication to. 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 - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string async_secondary_disk = 131645867;

Returns
Type Description
DisksStartAsyncReplicationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAsyncSecondaryDisk()

public String getAsyncSecondaryDisk()

The secondary disk to start asynchronous replication to. 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 - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string async_secondary_disk = 131645867;

Returns
Type Description
String

The asyncSecondaryDisk.

getAsyncSecondaryDiskBytes()

public ByteString getAsyncSecondaryDiskBytes()

The secondary disk to start asynchronous replication to. 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 - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string async_secondary_disk = 131645867;

Returns
Type Description
ByteString

The bytes for asyncSecondaryDisk.

getDefaultInstanceForType()

public DisksStartAsyncReplicationRequest getDefaultInstanceForType()
Returns
Type Description
DisksStartAsyncReplicationRequest

getDescriptorForType()

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

hasAsyncSecondaryDisk()

public boolean hasAsyncSecondaryDisk()

The secondary disk to start asynchronous replication to. 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 - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string async_secondary_disk = 131645867;

Returns
Type Description
boolean

Whether the asyncSecondaryDisk field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DisksStartAsyncReplicationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAsyncSecondaryDisk(String value)

public DisksStartAsyncReplicationRequest.Builder setAsyncSecondaryDisk(String value)

The secondary disk to start asynchronous replication to. 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 - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string async_secondary_disk = 131645867;

Parameter
Name Description
value String

The asyncSecondaryDisk to set.

Returns
Type Description
DisksStartAsyncReplicationRequest.Builder

This builder for chaining.

setAsyncSecondaryDiskBytes(ByteString value)

public DisksStartAsyncReplicationRequest.Builder setAsyncSecondaryDiskBytes(ByteString value)

The secondary disk to start asynchronous replication to. 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 - https://www.googleapis.com/compute/v1/projects/project/regions/region /disks/disk - projects/project/zones/zone/disks/disk - projects/project/regions/region/disks/disk - zones/zone/disks/disk - regions/region/disks/disk

optional string async_secondary_disk = 131645867;

Parameter
Name Description
value ByteString

The bytes for asyncSecondaryDisk to set.

Returns
Type Description
DisksStartAsyncReplicationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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