public static final class RestoreInstanceRequest.Builder extends GeneratedMessageV3.Builder<RestoreInstanceRequest.Builder> implements RestoreInstanceRequestOrBuilderRestoreInstanceRequest restores an existing instances's file share from a snapshot or backup.
Protobuf type google.cloud.filestore.v1beta1.RestoreInstanceRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RestoreInstanceRequest.BuilderImplements
RestoreInstanceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RestoreInstanceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| RestoreInstanceRequest.Builder |
build()
public RestoreInstanceRequest build()| Type | Description |
| RestoreInstanceRequest |
buildPartial()
public RestoreInstanceRequest buildPartial()| Type | Description |
| RestoreInstanceRequest |
clear()
public RestoreInstanceRequest.Builder clear()| Type | Description |
| RestoreInstanceRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public RestoreInstanceRequest.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| RestoreInstanceRequest.Builder |
clearFileShare()
public RestoreInstanceRequest.Builder clearFileShare()Required. Name of the file share in the Cloud Filestore instance that the snapshot is being restored to.
string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
| 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_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| RestoreInstanceRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RestoreInstanceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| RestoreInstanceRequest.Builder |
clearSource()
public RestoreInstanceRequest.Builder clearSource()| Type | Description |
| RestoreInstanceRequest.Builder |
clearSourceBackup()
public RestoreInstanceRequest.Builder clearSourceBackup() The resource name of the backup, in the format
projects/{project_id}/locations/{location_id}/backups/{backup_id}.
string source_backup = 4 [(.google.api.resource_reference) = { ... }
| Type | Description |
| RestoreInstanceRequest.Builder | This builder for chaining. |
clearSourceSnapshot()
public RestoreInstanceRequest.Builder clearSourceSnapshot() The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
string source_snapshot = 3 [(.google.api.resource_reference) = { ... }
| Type | Description |
| RestoreInstanceRequest.Builder | This builder for chaining. |
clone()
public RestoreInstanceRequest.Builder clone()| Type | Description |
| RestoreInstanceRequest.Builder |
getDefaultInstanceForType()
public RestoreInstanceRequest getDefaultInstanceForType()| Type | Description |
| RestoreInstanceRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getFileShare()
public String getFileShare()Required. Name of the file share in the Cloud Filestore instance that the snapshot is being restored to.
string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The fileShare. |
getFileShareBytes()
public ByteString getFileShareBytes()Required. Name of the file share in the Cloud Filestore instance that the snapshot is being restored to.
string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for fileShare. |
getName()
public String getName() Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| String | The name. |
getNameBytes()
public ByteString getNameBytes() Required. The resource name of the instance, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| ByteString | The bytes for name. |
getSourceBackup()
public String getSourceBackup() The resource name of the backup, in the format
projects/{project_id}/locations/{location_id}/backups/{backup_id}.
string source_backup = 4 [(.google.api.resource_reference) = { ... }
| Type | Description |
| String | The sourceBackup. |
getSourceBackupBytes()
public ByteString getSourceBackupBytes() The resource name of the backup, in the format
projects/{project_id}/locations/{location_id}/backups/{backup_id}.
string source_backup = 4 [(.google.api.resource_reference) = { ... }
| Type | Description |
| ByteString | The bytes for sourceBackup. |
getSourceCase()
public RestoreInstanceRequest.SourceCase getSourceCase()| Type | Description |
| RestoreInstanceRequest.SourceCase |
getSourceSnapshot()
public String getSourceSnapshot() The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
string source_snapshot = 3 [(.google.api.resource_reference) = { ... }
| Type | Description |
| String | The sourceSnapshot. |
getSourceSnapshotBytes()
public ByteString getSourceSnapshotBytes() The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
string source_snapshot = 3 [(.google.api.resource_reference) = { ... }
| Type | Description |
| ByteString | The bytes for sourceSnapshot. |
hasSourceBackup()
public boolean hasSourceBackup() The resource name of the backup, in the format
projects/{project_id}/locations/{location_id}/backups/{backup_id}.
string source_backup = 4 [(.google.api.resource_reference) = { ... }
| Type | Description |
| boolean | Whether the sourceBackup field is set. |
hasSourceSnapshot()
public boolean hasSourceSnapshot() The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
string source_snapshot = 3 [(.google.api.resource_reference) = { ... }
| Type | Description |
| boolean | Whether the sourceSnapshot field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(RestoreInstanceRequest other)
public RestoreInstanceRequest.Builder mergeFrom(RestoreInstanceRequest other)| Name | Description |
| other | RestoreInstanceRequest |
| Type | Description |
| RestoreInstanceRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RestoreInstanceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| RestoreInstanceRequest.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public RestoreInstanceRequest.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| RestoreInstanceRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RestoreInstanceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| RestoreInstanceRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public RestoreInstanceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| RestoreInstanceRequest.Builder |
setFileShare(String value)
public RestoreInstanceRequest.Builder setFileShare(String value)Required. Name of the file share in the Cloud Filestore instance that the snapshot is being restored to.
string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe fileShare to set. |
| 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 Cloud Filestore instance that the snapshot is being restored to.
string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes for fileShare to set. |
| 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_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Name | Description |
| value | StringThe name to set. |
| 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_id}/locations/{location_id}/instances/{instance_id}.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| Type | Description |
| 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)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| RestoreInstanceRequest.Builder |
setSourceBackup(String value)
public RestoreInstanceRequest.Builder setSourceBackup(String value) The resource name of the backup, in the format
projects/{project_id}/locations/{location_id}/backups/{backup_id}.
string source_backup = 4 [(.google.api.resource_reference) = { ... }
| Name | Description |
| value | StringThe sourceBackup to set. |
| 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_id}/locations/{location_id}/backups/{backup_id}.
string source_backup = 4 [(.google.api.resource_reference) = { ... }
| Name | Description |
| value | ByteStringThe bytes for sourceBackup to set. |
| Type | Description |
| RestoreInstanceRequest.Builder | This builder for chaining. |
setSourceSnapshot(String value)
public RestoreInstanceRequest.Builder setSourceSnapshot(String value) The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
string source_snapshot = 3 [(.google.api.resource_reference) = { ... }
| Name | Description |
| value | StringThe sourceSnapshot to set. |
| Type | Description |
| RestoreInstanceRequest.Builder | This builder for chaining. |
setSourceSnapshotBytes(ByteString value)
public RestoreInstanceRequest.Builder setSourceSnapshotBytes(ByteString value) The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/snapshots/{snapshot_id}.
string source_snapshot = 3 [(.google.api.resource_reference) = { ... }
| Name | Description |
| value | ByteStringThe bytes for sourceSnapshot to set. |
| Type | Description |
| RestoreInstanceRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RestoreInstanceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| RestoreInstanceRequest.Builder |