Class DisksStartAsyncReplicationRequest.Builder (1.46.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DisksStartAsyncReplicationRequest build()
Returns
TypeDescription
DisksStartAsyncReplicationRequest

buildPartial()

public DisksStartAsyncReplicationRequest buildPartial()
Returns
TypeDescription
DisksStartAsyncReplicationRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The bytes for asyncSecondaryDisk.

getDefaultInstanceForType()

public DisksStartAsyncReplicationRequest getDefaultInstanceForType()
Returns
TypeDescription
DisksStartAsyncReplicationRequest

getDescriptorForType()

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

Whether the asyncSecondaryDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DisksStartAsyncReplicationRequest other)

public DisksStartAsyncReplicationRequest.Builder mergeFrom(DisksStartAsyncReplicationRequest other)
Parameter
NameDescription
otherDisksStartAsyncReplicationRequest
Returns
TypeDescription
DisksStartAsyncReplicationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The asyncSecondaryDisk to set.

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

The bytes for asyncSecondaryDisk to set.

Returns
TypeDescription
DisksStartAsyncReplicationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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