Class CreateReplicationRequest.Builder (0.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateReplicationRequest build()
Returns
TypeDescription
CreateReplicationRequest

buildPartial()

public CreateReplicationRequest buildPartial()
Returns
TypeDescription
CreateReplicationRequest

clear()

public CreateReplicationRequest.Builder clear()
Returns
TypeDescription
CreateReplicationRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateReplicationRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateReplicationRequest.Builder

This builder for chaining.

clone()

public CreateReplicationRequest.Builder clone()
Returns
TypeDescription
CreateReplicationRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateReplicationRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateReplicationRequest

getDescriptorForType()

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

hasReplication()

public boolean hasReplication()

Required. A replication resource

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

Returns
TypeDescription
boolean

Whether the replication field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateReplicationRequest other)

public CreateReplicationRequest.Builder mergeFrom(CreateReplicationRequest other)
Parameter
NameDescription
otherCreateReplicationRequest
Returns
TypeDescription
CreateReplicationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateReplicationRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueReplication
Returns
TypeDescription
CreateReplicationRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateReplicationRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateReplicationRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateReplicationRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueReplication
Returns
TypeDescription
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
NameDescription
builderForValueReplication.Builder
Returns
TypeDescription
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
NameDescription
valueString

The replicationId to set.

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

The bytes for replicationId to set.

Returns
TypeDescription
CreateReplicationRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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