public final class InstancesRestoreBackupRequest extends GeneratedMessage implements InstancesRestoreBackupRequestOrBuilder
Database instance restore backup request.
Protobuf type google.cloud.sql.v1beta4.InstancesRestoreBackupRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
BACKUPDR_BACKUP_FIELD_NUMBER
public static final int BACKUPDR_BACKUP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
BACKUP_FIELD_NUMBER
public static final int BACKUP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESTORE_BACKUP_CONTEXT_FIELD_NUMBER
public static final int RESTORE_BACKUP_CONTEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESTORE_INSTANCE_CLEAR_OVERRIDES_FIELD_NAMES_FIELD_NUMBER
public static final int RESTORE_INSTANCE_CLEAR_OVERRIDES_FIELD_NAMES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RESTORE_INSTANCE_SETTINGS_FIELD_NUMBER
public static final int RESTORE_INSTANCE_SETTINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static InstancesRestoreBackupRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static InstancesRestoreBackupRequest.Builder newBuilder()
newBuilder(InstancesRestoreBackupRequest prototype)
public static InstancesRestoreBackupRequest.Builder newBuilder(InstancesRestoreBackupRequest prototype)
public static InstancesRestoreBackupRequest parseDelimitedFrom(InputStream input)
public static InstancesRestoreBackupRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static InstancesRestoreBackupRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static InstancesRestoreBackupRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static InstancesRestoreBackupRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstancesRestoreBackupRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static InstancesRestoreBackupRequest parseFrom(CodedInputStream input)
public static InstancesRestoreBackupRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static InstancesRestoreBackupRequest parseFrom(InputStream input)
public static InstancesRestoreBackupRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static InstancesRestoreBackupRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static InstancesRestoreBackupRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<InstancesRestoreBackupRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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()
getParserForType()
public Parser<InstancesRestoreBackupRequest> getParserForType()
Overrides
getRestoreBackupContext()
public RestoreBackupContext getRestoreBackupContext()
Parameters required to perform the restore backup operation.
.google.cloud.sql.v1beta4.RestoreBackupContext restore_backup_context = 1;
getRestoreBackupContextOrBuilder()
public RestoreBackupContextOrBuilder getRestoreBackupContextOrBuilder()
Parameters required to perform the restore backup operation.
.google.cloud.sql.v1beta4.RestoreBackupContext restore_backup_context = 1;
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.v1beta4.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta4.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hasRestoreBackupContext()
public boolean hasRestoreBackupContext()
Parameters required to perform the restore backup operation.
.google.cloud.sql.v1beta4.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.v1beta4.DatabaseInstance restore_instance_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the restoreInstanceSettings field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public InstancesRestoreBackupRequest.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected InstancesRestoreBackupRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public InstancesRestoreBackupRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides