Class BackupSource (0.82.0)

public final class BackupSource extends GeneratedMessage implements BackupSourceOrBuilder

Represents the backup source of the restore operation.

Protobuf type google.cloud.netapp.v1.BackupSource

Static Fields

BACKUP_FIELD_NUMBER

public static final int BACKUP_FIELD_NUMBER
Field Value
Type Description
int

FILE_LIST_FIELD_NUMBER

public static final int FILE_LIST_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackupSource getDefaultInstance()
Returns
Type Description
BackupSource

getDescriptor()

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

newBuilder()

public static BackupSource.Builder newBuilder()
Returns
Type Description
BackupSource.Builder

newBuilder(BackupSource prototype)

public static BackupSource.Builder newBuilder(BackupSource prototype)
Parameter
Name Description
prototype BackupSource
Returns
Type Description
BackupSource.Builder

parseDelimitedFrom(InputStream input)

public static BackupSource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupSource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackupSource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupSource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupSource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupSource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackupSource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupSource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackupSource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupSource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupSource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackupSource> parser()
Returns
Type Description
Parser<BackupSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<BackupSource> getParserForType()
Returns
Type Description
Parser<BackupSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackupSource.Builder newBuilderForType()
Returns
Type Description
BackupSource.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BackupSource.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupSource.Builder
Overrides

toBuilder()

public BackupSource.Builder toBuilder()
Returns
Type Description
BackupSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException