Class BackupSource.Builder (0.82.0)

public static final class BackupSource.Builder extends GeneratedMessage.Builder<BackupSource.Builder> implements BackupSourceOrBuilder

Represents the backup source of the restore operation.

Protobuf type google.cloud.netapp.v1.BackupSource

Static Methods

getDescriptor()

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

Methods

addAllFileList(Iterable<String> values)

public BackupSource.Builder addAllFileList(Iterable<String> values)

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The fileList to add.

Returns
Type Description
BackupSource.Builder

This builder for chaining.

addFileList(String value)

public BackupSource.Builder addFileList(String value)

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The fileList to add.

Returns
Type Description
BackupSource.Builder

This builder for chaining.

addFileListBytes(ByteString value)

public BackupSource.Builder addFileListBytes(ByteString value)

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the fileList to add.

Returns
Type Description
BackupSource.Builder

This builder for chaining.

build()

public BackupSource build()
Returns
Type Description
BackupSource

buildPartial()

public BackupSource buildPartial()
Returns
Type Description
BackupSource

clear()

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

clearBackup()

public BackupSource.Builder clearBackup()

Required. The backup resource name.

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

Returns
Type Description
BackupSource.Builder

This builder for chaining.

clearFileList()

public BackupSource.Builder clearFileList()

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupSource.Builder

This builder for chaining.

getBackup()

public String getBackup()

Required. The backup resource name.

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

Returns
Type Description
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

Required. The backup resource name.

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

Returns
Type Description
ByteString

The bytes for backup.

getDefaultInstanceForType()

public BackupSource getDefaultInstanceForType()
Returns
Type Description
BackupSource

getDescriptorForType()

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

getFileList(int index)

public String getFileList(int index)

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The fileList at the given index.

getFileListBytes(int index)

public ByteString getFileListBytes(int index)

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the fileList at the given index.

getFileListCount()

public int getFileListCount()

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of fileList.

getFileListList()

public ProtocolStringList getFileListList()

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the fileList.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBackup(String value)

public BackupSource.Builder setBackup(String value)

Required. The backup resource name.

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

Parameter
Name Description
value String

The backup to set.

Returns
Type Description
BackupSource.Builder

This builder for chaining.

setBackupBytes(ByteString value)

public BackupSource.Builder setBackupBytes(ByteString value)

Required. The backup resource name.

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

Parameter
Name Description
value ByteString

The bytes for backup to set.

Returns
Type Description
BackupSource.Builder

This builder for chaining.

setFileList(int index, String value)

public BackupSource.Builder setFileList(int index, String value)

Optional. List of files to be restored in the form of their absolute path as in source volume. If provided, only these files will be restored. If not provided, the entire backup will be restored (Full Backup Restore)

repeated string file_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The fileList to set.

Returns
Type Description
BackupSource.Builder

This builder for chaining.