Class OntapSource.Builder (0.82.0)

public static final class OntapSource.Builder extends GeneratedMessage.Builder<OntapSource.Builder> implements OntapSourceOrBuilder

Represents ONTAP source details.

Protobuf type google.cloud.netapp.v1.OntapSource

Static Methods

getDescriptor()

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

Methods

build()

public OntapSource build()
Returns
Type Description
OntapSource

buildPartial()

public OntapSource buildPartial()
Returns
Type Description
OntapSource

clear()

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

clearSnapshotUuid()

public OntapSource.Builder clearSnapshotUuid()

Optional. The UUID of the ONTAP source snapshot.

string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OntapSource.Builder

This builder for chaining.

clearStoragePool()

public OntapSource.Builder clearStoragePool()

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}

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

Returns
Type Description
OntapSource.Builder

This builder for chaining.

clearVolumeUuid()

public OntapSource.Builder clearVolumeUuid()

Required. The UUID of the ONTAP source volume.

string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OntapSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public OntapSource getDefaultInstanceForType()
Returns
Type Description
OntapSource

getDescriptorForType()

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

getSnapshotUuid()

public String getSnapshotUuid()

Optional. The UUID of the ONTAP source snapshot.

string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The snapshotUuid.

getSnapshotUuidBytes()

public ByteString getSnapshotUuidBytes()

Optional. The UUID of the ONTAP source snapshot.

string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for snapshotUuid.

getStoragePool()

public String getStoragePool()

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}

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

Returns
Type Description
String

The storagePool.

getStoragePoolBytes()

public ByteString getStoragePoolBytes()

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}

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

Returns
Type Description
ByteString

The bytes for storagePool.

getVolumeUuid()

public String getVolumeUuid()

Required. The UUID of the ONTAP source volume.

string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The volumeUuid.

getVolumeUuidBytes()

public ByteString getVolumeUuidBytes()

Required. The UUID of the ONTAP source volume.

string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for volumeUuid.

hasStoragePool()

public boolean hasStoragePool()

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}

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

Returns
Type Description
boolean

Whether the storagePool field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OntapSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSnapshotUuid(String value)

public OntapSource.Builder setSnapshotUuid(String value)

Optional. The UUID of the ONTAP source snapshot.

string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The snapshotUuid to set.

Returns
Type Description
OntapSource.Builder

This builder for chaining.

setSnapshotUuidBytes(ByteString value)

public OntapSource.Builder setSnapshotUuidBytes(ByteString value)

Optional. The UUID of the ONTAP source snapshot.

string snapshot_uuid = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for snapshotUuid to set.

Returns
Type Description
OntapSource.Builder

This builder for chaining.

setStoragePool(String value)

public OntapSource.Builder setStoragePool(String value)

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}

optional 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
OntapSource.Builder

This builder for chaining.

setStoragePoolBytes(ByteString value)

public OntapSource.Builder setStoragePoolBytes(ByteString value)

Required. Name of the storage pool. This must be specified for creating backups for ONTAP mode volumes. Format: projects/{projects_id}/locations/{location}/storagePools/{storage_pool_id}

optional 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
OntapSource.Builder

This builder for chaining.

setVolumeUuid(String value)

public OntapSource.Builder setVolumeUuid(String value)

Required. The UUID of the ONTAP source volume.

string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The volumeUuid to set.

Returns
Type Description
OntapSource.Builder

This builder for chaining.

setVolumeUuidBytes(ByteString value)

public OntapSource.Builder setVolumeUuidBytes(ByteString value)

Required. The UUID of the ONTAP source volume.

string volume_uuid = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for volumeUuid to set.

Returns
Type Description
OntapSource.Builder

This builder for chaining.