Class DestinationVolumeParameters.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DestinationVolumeParameters build()
Returns
TypeDescription
DestinationVolumeParameters

buildPartial()

public DestinationVolumeParameters buildPartial()
Returns
TypeDescription
DestinationVolumeParameters

clear()

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

clearDescription()

public DestinationVolumeParameters.Builder clearDescription()

Description for the destination volume.

optional string description = 4;

Returns
TypeDescription
DestinationVolumeParameters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DestinationVolumeParameters getDefaultInstanceForType()
Returns
TypeDescription
DestinationVolumeParameters

getDescription()

public String getDescription()

Description for the destination volume.

optional string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description for the destination volume.

optional string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

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

The bytes for volumeId.

hasDescription()

public boolean hasDescription()

Description for the destination volume.

optional string description = 4;

Returns
TypeDescription
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DestinationVolumeParameters other)

public DestinationVolumeParameters.Builder mergeFrom(DestinationVolumeParameters other)
Parameter
NameDescription
otherDestinationVolumeParameters
Returns
TypeDescription
DestinationVolumeParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public DestinationVolumeParameters.Builder setDescription(String value)

Description for the destination volume.

optional string description = 4;

Parameter
NameDescription
valueString

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
DestinationVolumeParameters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DestinationVolumeParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The shareName to set.

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

The bytes for shareName to set.

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

The storagePool to set.

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

The bytes for storagePool to set.

Returns
TypeDescription
DestinationVolumeParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

The volumeId to set.

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

The bytes for volumeId to set.

Returns
TypeDescription
DestinationVolumeParameters.Builder

This builder for chaining.