Class CreateReplicationRequest.Builder (0.24.0)

public static final class CreateReplicationRequest.Builder extends GeneratedMessageV3.Builder<CreateReplicationRequest.Builder> implements CreateReplicationRequestOrBuilder

CreateReplicationRequest creates a replication.

Protobuf type google.cloud.netapp.v1.CreateReplicationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateReplicationRequest build()
Returns
Type Description
CreateReplicationRequest

buildPartial()

public CreateReplicationRequest buildPartial()
Returns
Type Description
CreateReplicationRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateReplicationRequest.Builder clearParent()

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateReplicationRequest.Builder

This builder for chaining.

clearReplication()

public CreateReplicationRequest.Builder clearReplication()

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateReplicationRequest.Builder

clearReplicationId()

public CreateReplicationRequest.Builder clearReplicationId()

Required. ID of the replication to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string replication_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateReplicationRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateReplicationRequest getDefaultInstanceForType()
Returns
Type Description
CreateReplicationRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getReplication()

public Replication getReplication()

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Replication

The replication.

getReplicationBuilder()

public Replication.Builder getReplicationBuilder()

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Replication.Builder

getReplicationId()

public String getReplicationId()

Required. ID of the replication to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string replication_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The replicationId.

getReplicationIdBytes()

public ByteString getReplicationIdBytes()

Required. ID of the replication to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string replication_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for replicationId.

getReplicationOrBuilder()

public ReplicationOrBuilder getReplicationOrBuilder()

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplicationOrBuilder

hasReplication()

public boolean hasReplication()

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the replication field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateReplicationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReplication(Replication value)

public CreateReplicationRequest.Builder mergeReplication(Replication value)

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Replication
Returns
Type Description
CreateReplicationRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateReplicationRequest.Builder setParent(String value)

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateReplicationRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateReplicationRequest.Builder setParentBytes(ByteString value)

Required. The NetApp volume to create the replications of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateReplicationRequest.Builder

This builder for chaining.

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

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

setReplication(Replication value)

public CreateReplicationRequest.Builder setReplication(Replication value)

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Replication
Returns
Type Description
CreateReplicationRequest.Builder

setReplication(Replication.Builder builderForValue)

public CreateReplicationRequest.Builder setReplication(Replication.Builder builderForValue)

Required. A replication resource

.google.cloud.netapp.v1.Replication replication = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Replication.Builder
Returns
Type Description
CreateReplicationRequest.Builder

setReplicationId(String value)

public CreateReplicationRequest.Builder setReplicationId(String value)

Required. ID of the replication to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string replication_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The replicationId to set.

Returns
Type Description
CreateReplicationRequest.Builder

This builder for chaining.

setReplicationIdBytes(ByteString value)

public CreateReplicationRequest.Builder setReplicationIdBytes(ByteString value)

Required. ID of the replication to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

string replication_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for replicationId to set.

Returns
Type Description
CreateReplicationRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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