public static final class BackupSource.Builder extends GeneratedMessage.Builder<BackupSource.Builder> implements BackupSourceOrBuilderRepresents the backup source of the restore operation.
Protobuf type google.cloud.netapp.v1.BackupSource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BackupSource.BuilderImplements
BackupSourceOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BackupSource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BackupSource.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
intThe index to set the value at. |
value |
StringThe fileList to set. |
| Returns | |
|---|---|
| Type | Description |
BackupSource.Builder |
This builder for chaining. |