Class RestoreInstanceRequest (1.15.0)

public final class RestoreInstanceRequest extends GeneratedMessageV3 implements RestoreInstanceRequestOrBuilder

RestoreInstanceRequest restores an existing instance's file share from a backup.

Protobuf type google.cloud.filestore.v1.RestoreInstanceRequest

Static Fields

FILE_SHARE_FIELD_NUMBER

public static final int FILE_SHARE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_BACKUP_FIELD_NUMBER

public static final int SOURCE_BACKUP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RestoreInstanceRequest getDefaultInstance()
Returns
TypeDescription
RestoreInstanceRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RestoreInstanceRequest.Builder newBuilder()
Returns
TypeDescription
RestoreInstanceRequest.Builder

newBuilder(RestoreInstanceRequest prototype)

public static RestoreInstanceRequest.Builder newBuilder(RestoreInstanceRequest prototype)
Parameter
NameDescription
prototypeRestoreInstanceRequest
Returns
TypeDescription
RestoreInstanceRequest.Builder

parseDelimitedFrom(InputStream input)

public static RestoreInstanceRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreInstanceRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RestoreInstanceRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RestoreInstanceRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RestoreInstanceRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RestoreInstanceRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RestoreInstanceRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreInstanceRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RestoreInstanceRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RestoreInstanceRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RestoreInstanceRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RestoreInstanceRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RestoreInstanceRequest> parser()
Returns
TypeDescription
Parser<RestoreInstanceRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RestoreInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
RestoreInstanceRequest

getFileShare()

public String getFileShare()

Required. Name of the file share in the Filestore instance that the backup is being restored to.

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

Returns
TypeDescription
String

The fileShare.

getFileShareBytes()

public ByteString getFileShareBytes()

Required. Name of the file share in the Filestore instance that the backup is being restored to.

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

Returns
TypeDescription
ByteString

The bytes for fileShare.

getName()

public String getName()

Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<RestoreInstanceRequest> getParserForType()
Returns
TypeDescription
Parser<RestoreInstanceRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceBackup()

public String getSourceBackup()

The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

string source_backup = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The sourceBackup.

getSourceBackupBytes()

public ByteString getSourceBackupBytes()

The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

string source_backup = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for sourceBackup.

getSourceCase()

public RestoreInstanceRequest.SourceCase getSourceCase()
Returns
TypeDescription
RestoreInstanceRequest.SourceCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSourceBackup()

public boolean hasSourceBackup()

The resource name of the backup, in the format projects/{project_number}/locations/{location_id}/backups/{backup_id}.

string source_backup = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the sourceBackup field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RestoreInstanceRequest.Builder newBuilderForType()
Returns
TypeDescription
RestoreInstanceRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RestoreInstanceRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RestoreInstanceRequest.Builder toBuilder()
Returns
TypeDescription
RestoreInstanceRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException