Class DestinationVolumeParameters.Builder (0.33.0)

public static final class DestinationVolumeParameters.Builder extends GeneratedMessageV3.Builder<DestinationVolumeParameters.Builder> implements DestinationVolumeParametersOrBuilder

DestinationVolumeParameters specify input parameters used for creating destination volume.

Protobuf type google.cloud.netapp.v1.DestinationVolumeParameters

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DestinationVolumeParameters build()
Returns
Type Description
DestinationVolumeParameters

buildPartial()

public DestinationVolumeParameters buildPartial()
Returns
Type Description
DestinationVolumeParameters

clear()

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

clearDescription()

public DestinationVolumeParameters.Builder clearDescription()

Description for the destination volume.

optional string description = 4;

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearShareName()

public DestinationVolumeParameters.Builder clearShareName()

Destination volume's share name. If not specified, source volume's share name will be used.

string share_name = 3;

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

clearStoragePool()

public DestinationVolumeParameters.Builder clearStoragePool()

Required. Existing destination StoragePool name.

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

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

clearVolumeId()

public DestinationVolumeParameters.Builder clearVolumeId()

Desired destination volume resource id. If not specified, source volume's resource id will be used. 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 volume_id = 2;

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DestinationVolumeParameters getDefaultInstanceForType()
Returns
Type Description
DestinationVolumeParameters

getDescription()

public String getDescription()

Description for the destination volume.

optional string description = 4;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description for the destination volume.

optional string description = 4;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getShareName()

public String getShareName()

Destination volume's share name. If not specified, source volume's share name will be used.

string share_name = 3;

Returns
Type Description
String

The shareName.

getShareNameBytes()

public ByteString getShareNameBytes()

Destination volume's share name. If not specified, source volume's share name will be used.

string share_name = 3;

Returns
Type Description
ByteString

The bytes for shareName.

getStoragePool()

public String getStoragePool()

Required. Existing destination StoragePool name.

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

Returns
Type Description
String

The storagePool.

getStoragePoolBytes()

public ByteString getStoragePoolBytes()

Required. Existing destination StoragePool name.

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

Returns
Type Description
ByteString

The bytes for storagePool.

getVolumeId()

public String getVolumeId()

Desired destination volume resource id. If not specified, source volume's resource id will be used. 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 volume_id = 2;

Returns
Type Description
String

The volumeId.

getVolumeIdBytes()

public ByteString getVolumeIdBytes()

Desired destination volume resource id. If not specified, source volume's resource id will be used. 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 volume_id = 2;

Returns
Type Description
ByteString

The bytes for volumeId.

hasDescription()

public boolean hasDescription()

Description for the destination volume.

optional string description = 4;

Returns
Type Description
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DestinationVolumeParameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public DestinationVolumeParameters.Builder setDescription(String value)

Description for the destination volume.

optional string description = 4;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DestinationVolumeParameters.Builder setDescriptionBytes(ByteString value)

Description for the destination volume.

optional string description = 4;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setShareName(String value)

public DestinationVolumeParameters.Builder setShareName(String value)

Destination volume's share name. If not specified, source volume's share name will be used.

string share_name = 3;

Parameter
Name Description
value String

The shareName to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setShareNameBytes(ByteString value)

public DestinationVolumeParameters.Builder setShareNameBytes(ByteString value)

Destination volume's share name. If not specified, source volume's share name will be used.

string share_name = 3;

Parameter
Name Description
value ByteString

The bytes for shareName to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setStoragePool(String value)

public DestinationVolumeParameters.Builder setStoragePool(String value)

Required. Existing destination StoragePool name.

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

Parameter
Name Description
value String

The storagePool to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setStoragePoolBytes(ByteString value)

public DestinationVolumeParameters.Builder setStoragePoolBytes(ByteString value)

Required. Existing destination StoragePool name.

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

Parameter
Name Description
value ByteString

The bytes for storagePool to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumeId(String value)

public DestinationVolumeParameters.Builder setVolumeId(String value)

Desired destination volume resource id. If not specified, source volume's resource id will be used. 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 volume_id = 2;

Parameter
Name Description
value String

The volumeId to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.

setVolumeIdBytes(ByteString value)

public DestinationVolumeParameters.Builder setVolumeIdBytes(ByteString value)

Desired destination volume resource id. If not specified, source volume's resource id will be used. 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 volume_id = 2;

Parameter
Name Description
value ByteString

The bytes for volumeId to set.

Returns
Type Description
DestinationVolumeParameters.Builder

This builder for chaining.