public static final class RestoreInstanceRequest.Builder extends GeneratedMessage.Builder<RestoreInstanceRequest.Builder> implements RestoreInstanceRequestOrBuilderRestoreInstanceRequest restores an existing instance's file share from a backup.
Protobuf type google.cloud.filestore.v1.RestoreInstanceRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RestoreInstanceRequest.BuilderImplements
RestoreInstanceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RestoreInstanceRequest build()| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest |
|
buildPartial()
public RestoreInstanceRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest |
|
clear()
public RestoreInstanceRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
This builder for chaining. |
clearSource()
public RestoreInstanceRequest.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RestoreInstanceRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceBackup. |
getSourceCase()
public RestoreInstanceRequest.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
boolean |
Whether the sourceBackup field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RestoreInstanceRequest other)
public RestoreInstanceRequest.Builder mergeFrom(RestoreInstanceRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
RestoreInstanceRequest |
| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestoreInstanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RestoreInstanceRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe fileShare to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fileShare to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
value |
StringThe sourceBackup to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceBackup to set. |
| Returns | |
|---|---|
| Type | Description |
RestoreInstanceRequest.Builder |
This builder for chaining. |