Class InstancesRestoreBackupRequest.Builder (0.1.0)

public static final class InstancesRestoreBackupRequest.Builder extends GeneratedMessage.Builder<InstancesRestoreBackupRequest.Builder> implements InstancesRestoreBackupRequestOrBuilder

Database instance restore backup request.

Protobuf type google.cloud.sql.v1.InstancesRestoreBackupRequest

Static Methods

getDescriptor()

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

Methods

addAllRestoreInstanceClearOverridesFieldNames(Iterable<String> values)

public InstancesRestoreBackupRequest.Builder addAllRestoreInstanceClearOverridesFieldNames(Iterable<String> values)

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The restoreInstanceClearOverridesFieldNames to add.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

addRestoreInstanceClearOverridesFieldNames(String value)

public InstancesRestoreBackupRequest.Builder addRestoreInstanceClearOverridesFieldNames(String value)

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The restoreInstanceClearOverridesFieldNames to add.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

addRestoreInstanceClearOverridesFieldNamesBytes(ByteString value)

public InstancesRestoreBackupRequest.Builder addRestoreInstanceClearOverridesFieldNamesBytes(ByteString value)

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the restoreInstanceClearOverridesFieldNames to add.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

build()

public InstancesRestoreBackupRequest build()
Returns
Type Description
InstancesRestoreBackupRequest

buildPartial()

public InstancesRestoreBackupRequest buildPartial()
Returns
Type Description
InstancesRestoreBackupRequest

clear()

public InstancesRestoreBackupRequest.Builder clear()
Returns
Type Description
InstancesRestoreBackupRequest.Builder
Overrides

clearBackup()

public InstancesRestoreBackupRequest.Builder clearBackup()

The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backup = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

clearBackupdrBackup()

public InstancesRestoreBackupRequest.Builder clearBackupdrBackup()

The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backupdr_backup = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

clearRestoreBackupContext()

public InstancesRestoreBackupRequest.Builder clearRestoreBackupContext()

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Returns
Type Description
InstancesRestoreBackupRequest.Builder

clearRestoreInstanceClearOverridesFieldNames()

public InstancesRestoreBackupRequest.Builder clearRestoreInstanceClearOverridesFieldNames()

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

clearRestoreInstanceSettings()

public InstancesRestoreBackupRequest.Builder clearRestoreInstanceSettings()

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InstancesRestoreBackupRequest.Builder

getBackup()

public String getBackup()

The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backup = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backup = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backup.

getBackupdrBackup()

public String getBackupdrBackup()

The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backupdr_backup = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backupdrBackup.

getBackupdrBackupBytes()

public ByteString getBackupdrBackupBytes()

The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backupdr_backup = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backupdrBackup.

getDefaultInstanceForType()

public InstancesRestoreBackupRequest getDefaultInstanceForType()
Returns
Type Description
InstancesRestoreBackupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRestoreBackupContext()

public RestoreBackupContext getRestoreBackupContext()

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Returns
Type Description
RestoreBackupContext

The restoreBackupContext.

getRestoreBackupContextBuilder()

public RestoreBackupContext.Builder getRestoreBackupContextBuilder()

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Returns
Type Description
RestoreBackupContext.Builder

getRestoreBackupContextOrBuilder()

public RestoreBackupContextOrBuilder getRestoreBackupContextOrBuilder()

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Returns
Type Description
RestoreBackupContextOrBuilder

getRestoreInstanceClearOverridesFieldNames(int index)

public String getRestoreInstanceClearOverridesFieldNames(int index)

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The restoreInstanceClearOverridesFieldNames at the given index.

getRestoreInstanceClearOverridesFieldNamesBytes(int index)

public ByteString getRestoreInstanceClearOverridesFieldNamesBytes(int index)

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.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 restoreInstanceClearOverridesFieldNames at the given index.

getRestoreInstanceClearOverridesFieldNamesCount()

public int getRestoreInstanceClearOverridesFieldNamesCount()

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of restoreInstanceClearOverridesFieldNames.

getRestoreInstanceClearOverridesFieldNamesList()

public ProtocolStringList getRestoreInstanceClearOverridesFieldNamesList()

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the restoreInstanceClearOverridesFieldNames.

getRestoreInstanceSettings()

public DatabaseInstance getRestoreInstanceSettings()

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatabaseInstance

The restoreInstanceSettings.

getRestoreInstanceSettingsBuilder()

public DatabaseInstance.Builder getRestoreInstanceSettingsBuilder()

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatabaseInstance.Builder

getRestoreInstanceSettingsOrBuilder()

public DatabaseInstanceOrBuilder getRestoreInstanceSettingsOrBuilder()

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DatabaseInstanceOrBuilder

hasRestoreBackupContext()

public boolean hasRestoreBackupContext()

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Returns
Type Description
boolean

Whether the restoreBackupContext field is set.

hasRestoreInstanceSettings()

public boolean hasRestoreInstanceSettings()

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the restoreInstanceSettings field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstancesRestoreBackupRequest other)

public InstancesRestoreBackupRequest.Builder mergeFrom(InstancesRestoreBackupRequest other)
Parameter
Name Description
other InstancesRestoreBackupRequest
Returns
Type Description
InstancesRestoreBackupRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstancesRestoreBackupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstancesRestoreBackupRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstancesRestoreBackupRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstancesRestoreBackupRequest.Builder
Overrides

mergeRestoreBackupContext(RestoreBackupContext value)

public InstancesRestoreBackupRequest.Builder mergeRestoreBackupContext(RestoreBackupContext value)

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Parameter
Name Description
value RestoreBackupContext
Returns
Type Description
InstancesRestoreBackupRequest.Builder

mergeRestoreInstanceSettings(DatabaseInstance value)

public InstancesRestoreBackupRequest.Builder mergeRestoreInstanceSettings(DatabaseInstance value)

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DatabaseInstance
Returns
Type Description
InstancesRestoreBackupRequest.Builder

setBackup(String value)

public InstancesRestoreBackupRequest.Builder setBackup(String value)

The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backup = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backup to set.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

setBackupBytes(ByteString value)

public InstancesRestoreBackupRequest.Builder setBackupBytes(ByteString value)

The name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backup = 2 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backup to set.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

setBackupdrBackup(String value)

public InstancesRestoreBackupRequest.Builder setBackupdrBackup(String value)

The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backupdr_backup = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backupdrBackup to set.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

setBackupdrBackupBytes(ByteString value)

public InstancesRestoreBackupRequest.Builder setBackupdrBackupBytes(ByteString value)

The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.

string backupdr_backup = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backupdrBackup to set.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

setRestoreBackupContext(RestoreBackupContext value)

public InstancesRestoreBackupRequest.Builder setRestoreBackupContext(RestoreBackupContext value)

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Parameter
Name Description
value RestoreBackupContext
Returns
Type Description
InstancesRestoreBackupRequest.Builder

setRestoreBackupContext(RestoreBackupContext.Builder builderForValue)

public InstancesRestoreBackupRequest.Builder setRestoreBackupContext(RestoreBackupContext.Builder builderForValue)

Parameters required to perform the restore backup operation.

.google.cloud.sql.v1.RestoreBackupContext restore_backup_context = 1;

Parameter
Name Description
builderForValue RestoreBackupContext.Builder
Returns
Type Description
InstancesRestoreBackupRequest.Builder

setRestoreInstanceClearOverridesFieldNames(int index, String value)

public InstancesRestoreBackupRequest.Builder setRestoreInstanceClearOverridesFieldNames(int index, String value)

Optional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.

repeated string restore_instance_clear_overrides_field_names = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The restoreInstanceClearOverridesFieldNames to set.

Returns
Type Description
InstancesRestoreBackupRequest.Builder

This builder for chaining.

setRestoreInstanceSettings(DatabaseInstance value)

public InstancesRestoreBackupRequest.Builder setRestoreInstanceSettings(DatabaseInstance value)

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DatabaseInstance
Returns
Type Description
InstancesRestoreBackupRequest.Builder

setRestoreInstanceSettings(DatabaseInstance.Builder builderForValue)

public InstancesRestoreBackupRequest.Builder setRestoreInstanceSettings(DatabaseInstance.Builder builderForValue)

Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.

.google.cloud.sql.v1.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DatabaseInstance.Builder
Returns
Type Description
InstancesRestoreBackupRequest.Builder