Class RestoreInstanceRequest.Builder (1.24.0)

public static final class RestoreInstanceRequest.Builder extends GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder> implements RestoreInstanceRequestOrBuilder

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

Protobuf type google.cloud.filestore.v1.RestoreInstanceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RestoreInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

build()

public RestoreInstanceRequest build()
Returns
TypeDescription
RestoreInstanceRequest

buildPartial()

public RestoreInstanceRequest buildPartial()
Returns
TypeDescription
RestoreInstanceRequest

clear()

public RestoreInstanceRequest.Builder clear()
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RestoreInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

clearFileShare()

public RestoreInstanceRequest.Builder clearFileShare()

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
RestoreInstanceRequest.Builder

This builder for chaining.

clearName()

public RestoreInstanceRequest.Builder clearName()

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
RestoreInstanceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

clearSource()

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

clearSourceBackup()

public RestoreInstanceRequest.Builder clearSourceBackup()

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
RestoreInstanceRequest.Builder

This builder for chaining.

clone()

public RestoreInstanceRequest.Builder clone()
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

getDefaultInstanceForType()

public RestoreInstanceRequest getDefaultInstanceForType()
Returns
TypeDescription
RestoreInstanceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreInstanceRequest other)

public RestoreInstanceRequest.Builder mergeFrom(RestoreInstanceRequest other)
Parameter
NameDescription
otherRestoreInstanceRequest
Returns
TypeDescription
RestoreInstanceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestoreInstanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RestoreInstanceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

setFileShare(String value)

public RestoreInstanceRequest.Builder setFileShare(String value)

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];

Parameter
NameDescription
valueString

The fileShare to set.

Returns
TypeDescription
RestoreInstanceRequest.Builder

This builder for chaining.

setFileShareBytes(ByteString value)

public RestoreInstanceRequest.Builder setFileShareBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for fileShare to set.

Returns
TypeDescription
RestoreInstanceRequest.Builder

This builder for chaining.

setName(String value)

public RestoreInstanceRequest.Builder setName(String value)

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) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RestoreInstanceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RestoreInstanceRequest.Builder setNameBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RestoreInstanceRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RestoreInstanceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides

setSourceBackup(String value)

public RestoreInstanceRequest.Builder setSourceBackup(String value)

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) = { ... }

Parameter
NameDescription
valueString

The sourceBackup to set.

Returns
TypeDescription
RestoreInstanceRequest.Builder

This builder for chaining.

setSourceBackupBytes(ByteString value)

public RestoreInstanceRequest.Builder setSourceBackupBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for sourceBackup to set.

Returns
TypeDescription
RestoreInstanceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreInstanceRequest.Builder
Overrides