    public static final class Backup.Builder extends GeneratedMessage.Builder<Backup.Builder> implements BackupOrBuilder

A backup resource.

Protobuf type `google.cloud.sql.v1.Backup`

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractMessageLite.Builder\<MessageType,BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html) \> [AbstractMessage.Builder\<BuilderType\>](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html) \> [GeneratedMessage.Builder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html) \> Backup.Builder

## Implements

[BackupOrBuilder](https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.BackupOrBuilder)

## Inherited Members

[AbstractMessage.Builder.findInitializationErrors()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_findInitializationErrors__) [AbstractMessage.Builder.getInitializationErrorString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_getInitializationErrorString__) [AbstractMessage.Builder.internalMergeFrom(AbstractMessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_internalMergeFrom_com_google_protobuf_AbstractMessageLite_) [AbstractMessage.Builder.mergeFrom(byte\[\])](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___) [AbstractMessage.Builder.mergeFrom(byte\[\],ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_) [AbstractMessage.Builder.mergeFrom(byte\[\],int,int,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_byte___int_int_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(ByteString)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_) [AbstractMessage.Builder.mergeFrom(ByteString,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_ByteString_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(CodedInputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_) [AbstractMessage.Builder.mergeFrom(CodedInputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.mergeFrom(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_) [AbstractMessage.Builder.mergeFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_) [AbstractMessage.Builder.mergeFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessage.Builder.newUninitializedMessageException(Message)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_newUninitializedMessageException_com_google_protobuf_Message_) [AbstractMessage.Builder.toString()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_toString__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,Collection\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_Collection___super_T__) [AbstractMessageLite.Builder.\<T\>addAll(Iterable\<T\>,List\<? super T\>)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder__T_addAll_java_lang_Iterable_T__java_util_List___super_T__) [AbstractMessageLite.Builder.internalMergeFrom(MessageType)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_internalMergeFrom_MessageType_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_) [AbstractMessageLite.Builder.mergeDelimitedFrom(InputStream,ExtensionRegistryLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeDelimitedFrom_java_io_InputStream_com_google_protobuf_ExtensionRegistryLite_) [AbstractMessageLite.Builder.mergeFrom(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_mergeFrom_com_google_protobuf_MessageLite_) [AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessageLite.Builder.html#com_google_protobuf_AbstractMessageLite_Builder_newUninitializedMessageException_com_google_protobuf_MessageLite_) [GeneratedMessage.Builder.addRepeatedField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_addRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__) [GeneratedMessage.Builder.clearField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.clearOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clearOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.clone()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clone__) [GeneratedMessage.Builder.getAllFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getAllFields__) [GeneratedMessage.Builder.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__) [GeneratedMessage.Builder.getField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getFieldBuilder(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.getOneofFieldDescriptor(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getOneofFieldDescriptor_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.getParentForChildren()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getParentForChildren__) [GeneratedMessage.Builder.getRepeatedField(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldBuilder(Descriptors.FieldDescriptor,int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldBuilder_com_google_protobuf_Descriptors_FieldDescriptor_int_) [GeneratedMessage.Builder.getRepeatedFieldCount(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getRepeatedFieldCount_com_google_protobuf_Descriptors_FieldDescriptor_) com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder() [GeneratedMessage.Builder.getUnknownFields()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getUnknownFields__) [GeneratedMessage.Builder.hasField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.hasOneof(Descriptors.OneofDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_hasOneof_com_google_protobuf_Descriptors_OneofDescriptor_) [GeneratedMessage.Builder.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__) [GeneratedMessage.Builder.internalGetMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int) [GeneratedMessage.Builder.internalGetMutableMapField(int)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetMutableMapField_int_) com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int) [GeneratedMessage.Builder.isClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isClean__) [GeneratedMessage.Builder.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__) [GeneratedMessage.Builder.markClean()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_markClean__) [GeneratedMessage.Builder.mergeUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_mergeUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int) [GeneratedMessage.Builder.newBuilderForField(Descriptors.FieldDescriptor)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_newBuilderForField_com_google_protobuf_Descriptors_FieldDescriptor_) [GeneratedMessage.Builder.onBuilt()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onBuilt__) [GeneratedMessage.Builder.onChanged()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_onChanged__) com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) [GeneratedMessage.Builder.setField(Descriptors.FieldDescriptor,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setField_com_google_protobuf_Descriptors_FieldDescriptor_java_lang_Object_) [GeneratedMessage.Builder.setRepeatedField(Descriptors.FieldDescriptor,int,Object)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setRepeatedField_com_google_protobuf_Descriptors_FieldDescriptor_int_java_lang_Object_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) [GeneratedMessage.Builder.setUnknownFields(UnknownFieldSet)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_setUnknownFields_com_google_protobuf_UnknownFieldSet_) com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### getDescriptor()

    public static final Descriptors.Descriptor getDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

## Methods

### build()

    public Backup build()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup` |   |

### buildPartial()

    public Backup buildPartial()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup` |   |

### clear()

    public Backup.Builder clear()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.clear()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_clear__)

### clearBackupInterval()

    public Backup.Builder clearBackupInterval()

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearBackupKind()

    public Backup.Builder clearBackupKind()

Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

` .google.cloud.sql.v1.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearBackupRun()

    public Backup.Builder clearBackupRun()

Output only. The mapping to backup run resource used for IAM validations.

`string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearDatabaseVersion()

    public Backup.Builder clearDatabaseVersion()

Output only. The database version of the instance of at the time this backup was made.

` .google.cloud.sql.v1.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearDescription()

    public Backup.Builder clearDescription()

The description of this backup.

`string description = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearError()

    public Backup.Builder clearError()

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearExpiration()

    public Backup.Builder clearExpiration()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearExpiryTime()

    public Backup.Builder clearExpiryTime()

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearInstance()

    public Backup.Builder clearInstance()

The name of the source database instance.

`string instance = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearInstanceDeletionTime()

    public Backup.Builder clearInstanceDeletionTime()

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearInstanceSettings()

    public Backup.Builder clearInstanceSettings()

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearKind()

    public Backup.Builder clearKind()

Output only. This is always `sql#backup`.

`string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearKmsKey()

    public Backup.Builder clearKmsKey()

Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

`string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearKmsKeyVersion()

    public Backup.Builder clearKmsKeyVersion()

Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

`string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearLocation()

    public Backup.Builder clearLocation()

The storage location of the backups. The location can be multi-regional.

`string location = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearMaxChargeableBytes()

    public Backup.Builder clearMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

`optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearName()

    public Backup.Builder clearName()

Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearSatisfiesPzi()

    public Backup.Builder clearSatisfiesPzi()

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearSatisfiesPzs()

    public Backup.Builder clearSatisfiesPzs()

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### clearSelfLink()

    public Backup.Builder clearSelfLink()

Output only. The URI of this resource.

`string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearState()

    public Backup.Builder clearState()

Output only. The status of this backup.

` .google.cloud.sql.v1.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearTimeZone()

    public Backup.Builder clearTimeZone()

Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

`string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearTtlDays()

    public Backup.Builder clearTtlDays()

Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.

`int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### clearType()

    public Backup.Builder clearType()

Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or "FINAL".

` .google.cloud.sql.v1.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### getBackupInterval()

    public Interval getBackupInterval()

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.Interval` | The backupInterval. |

### getBackupIntervalBuilder()

    public Interval.Builder getBackupIntervalBuilder()

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.Interval.Builder` |   |

### getBackupIntervalOrBuilder()

    public IntervalOrBuilder getBackupIntervalOrBuilder()

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.IntervalOrBuilder` |   |

### getBackupKind()

    public SqlBackupKind getBackupKind()

Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

` .google.cloud.sql.v1.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlBackupKind` | The backupKind. |

### getBackupKindValue()

    public int getBackupKindValue()

Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

` .google.cloud.sql.v1.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for backupKind. |

### getBackupRun()

    public String getBackupRun()

Output only. The mapping to backup run resource used for IAM validations.

`string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The backupRun. |

### getBackupRunBytes()

    public ByteString getBackupRunBytes()

Output only. The mapping to backup run resource used for IAM validations.

`string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for backupRun. |

### getDatabaseVersion()

    public SqlDatabaseVersion getDatabaseVersion()

Output only. The database version of the instance of at the time this backup was made.

` .google.cloud.sql.v1.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlDatabaseVersion` | The databaseVersion. |

### getDatabaseVersionValue()

    public int getDatabaseVersionValue()

Output only. The database version of the instance of at the time this backup was made.

` .google.cloud.sql.v1.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for databaseVersion. |

### getDefaultInstanceForType()

    public Backup getDefaultInstanceForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup` |   |

### getDescription()

    public String getDescription()

The description of this backup.

`string description = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public ByteString getDescriptionBytes()

The description of this backup.

`string description = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getDescriptorForType()

    public Descriptors.Descriptor getDescriptorForType()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Descriptors.Descriptor.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.getDescriptorForType()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_getDescriptorForType__)

### getError()

    public OperationError getError()

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationError` | The error. |

### getErrorBuilder()

    public OperationError.Builder getErrorBuilder()

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationError.Builder` |   |

### getErrorOrBuilder()

    public OperationErrorOrBuilder getErrorOrBuilder()

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationErrorOrBuilder` |   |

### getExpirationCase()

    public Backup.ExpirationCase getExpirationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.ExpirationCase` |   |

### getExpiryTime()

    public Timestamp getExpiryTime()

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The expiryTime. |

### getExpiryTimeBuilder()

    public Timestamp.Builder getExpiryTimeBuilder()

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.Builder.html` |   |

### getExpiryTimeOrBuilder()

    public TimestampOrBuilder getExpiryTimeOrBuilder()

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getInstance()

    public String getInstance()

The name of the source database instance.

`string instance = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The instance. |

### getInstanceBytes()

    public ByteString getInstanceBytes()

The name of the source database instance.

`string instance = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for instance. |

### getInstanceDeletionTime()

    public Timestamp getInstanceDeletionTime()

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The instanceDeletionTime. |

### getInstanceDeletionTimeBuilder()

    public Timestamp.Builder getInstanceDeletionTimeBuilder()

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.Builder.html` |   |

### getInstanceDeletionTimeOrBuilder()

    public TimestampOrBuilder getInstanceDeletionTimeOrBuilder()

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getInstanceSettings()

    public DatabaseInstance getInstanceSettings()

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.DatabaseInstance` | The instanceSettings. |

### getInstanceSettingsBuilder()

    public DatabaseInstance.Builder getInstanceSettingsBuilder()

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.DatabaseInstance.Builder` |   |

### getInstanceSettingsOrBuilder()

    public DatabaseInstanceOrBuilder getInstanceSettingsOrBuilder()

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.DatabaseInstanceOrBuilder` |   |

### getKind()

    public String getKind()

Output only. This is always `sql#backup`.

`string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kind. |

### getKindBytes()

    public ByteString getKindBytes()

Output only. This is always `sql#backup`.

`string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kind. |

### getKmsKey()

    public String getKmsKey()

Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

`string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kmsKey. |

### getKmsKeyBytes()

    public ByteString getKmsKeyBytes()

Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

`string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kmsKey. |

### getKmsKeyVersion()

    public String getKmsKeyVersion()

Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

`string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kmsKeyVersion. |

### getKmsKeyVersionBytes()

    public ByteString getKmsKeyVersionBytes()

Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

`string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kmsKeyVersion. |

### getLocation()

    public String getLocation()

The storage location of the backups. The location can be multi-regional.

`string location = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The location. |

### getLocationBytes()

    public ByteString getLocationBytes()

The storage location of the backups. The location can be multi-regional.

`string location = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for location. |

### getMaxChargeableBytes()

    public long getMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

`optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxChargeableBytes. |

### getName()

    public String getName()

Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public ByteString getNameBytes()

Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getSatisfiesPzi()

    public BoolValue getSatisfiesPzi()

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` | The satisfiesPzi. |

### getSatisfiesPziBuilder()

    public BoolValue.Builder getSatisfiesPziBuilder()

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.Builder.html` |   |

### getSatisfiesPziOrBuilder()

    public BoolValueOrBuilder getSatisfiesPziOrBuilder()

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValueOrBuilder.html` |   |

### getSatisfiesPzs()

    public BoolValue getSatisfiesPzs()

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` | The satisfiesPzs. |

### getSatisfiesPzsBuilder()

    public BoolValue.Builder getSatisfiesPzsBuilder()

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.Builder.html` |   |

### getSatisfiesPzsOrBuilder()

    public BoolValueOrBuilder getSatisfiesPzsOrBuilder()

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValueOrBuilder.html` |   |

### getSelfLink()

    public String getSelfLink()

Output only. The URI of this resource.

`string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The selfLink. |

### getSelfLinkBytes()

    public ByteString getSelfLinkBytes()

Output only. The URI of this resource.

`string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for selfLink. |

### getState()

    public Backup.SqlBackupState getState()

Output only. The status of this backup.

` .google.cloud.sql.v1.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.SqlBackupState` | The state. |

### getStateValue()

    public int getStateValue()

Output only. The status of this backup.

` .google.cloud.sql.v1.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTimeZone()

    public String getTimeZone()

Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

`string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The timeZone. |

### getTimeZoneBytes()

    public ByteString getTimeZoneBytes()

Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

`string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for timeZone. |

### getTtlDays()

    public long getTtlDays()

Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.

`int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The ttlDays. |

### getType()

    public Backup.SqlBackupType getType()

Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or "FINAL".

` .google.cloud.sql.v1.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.SqlBackupType` | The type. |

### getTypeValue()

    public int getTypeValue()

Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or "FINAL".

` .google.cloud.sql.v1.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### hasBackupInterval()

    public boolean hasBackupInterval()

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the backupInterval field is set. |

### hasError()

    public boolean hasError()

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the error field is set. |

### hasExpiryTime()

    public boolean hasExpiryTime()

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the expiryTime field is set. |

### hasInstanceDeletionTime()

    public boolean hasInstanceDeletionTime()

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the instanceDeletionTime field is set. |

### hasInstanceSettings()

    public boolean hasInstanceSettings()

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the instanceSettings field is set. |

### hasMaxChargeableBytes()

    public boolean hasMaxChargeableBytes()

Output only. The maximum chargeable bytes for the backup.

`optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the maxChargeableBytes field is set. |

### hasSatisfiesPzi()

    public boolean hasSatisfiesPzi()

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the satisfiesPzi field is set. |

### hasSatisfiesPzs()

    public boolean hasSatisfiesPzs()

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the satisfiesPzs field is set. |

### hasTtlDays()

    public boolean hasTtlDays()

Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.

`int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the ttlDays field is set. |

### internalGetFieldAccessorTable()

    protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.FieldAccessorTable.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.internalGetFieldAccessorTable()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_internalGetFieldAccessorTable__)

### isInitialized()

    public final boolean isInitialized()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

**Overrides** [GeneratedMessage.Builder\<BuilderType\>.isInitialized()](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.GeneratedMessage.Builder.html#com_google_protobuf_GeneratedMessage_Builder_isInitialized__)

### mergeBackupInterval(Interval value)

    public Backup.Builder mergeBackupInterval(Interval value)

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.type.Interval` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeError(OperationError value)

    public Backup.Builder mergeError(OperationError value)

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationError` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeExpiryTime(Timestamp value)

    public Backup.Builder mergeExpiryTime(Timestamp value)

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeFrom(Backup other)

    public Backup.Builder mergeFrom(Backup other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

    public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `input` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.CodedInputStream.html` |
| `extensionRegistry` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ExtensionRegistryLite.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_CodedInputStream_com_google_protobuf_ExtensionRegistryLite_)

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### mergeFrom(Message other)

    public Backup.Builder mergeFrom(Message other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Message.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

**Overrides** [AbstractMessage.Builder\<BuilderType\>.mergeFrom(Message other)](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.AbstractMessage.Builder.html#com_google_protobuf_AbstractMessage_Builder_mergeFrom_com_google_protobuf_Message_)

### mergeInstanceDeletionTime(Timestamp value)

    public Backup.Builder mergeInstanceDeletionTime(Timestamp value)

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeInstanceSettings(DatabaseInstance value)

    public Backup.Builder mergeInstanceSettings(DatabaseInstance value)

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.DatabaseInstance` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeSatisfiesPzi(BoolValue value)

    public Backup.Builder mergeSatisfiesPzi(BoolValue value)

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### mergeSatisfiesPzs(BoolValue value)

    public Backup.Builder mergeSatisfiesPzs(BoolValue value)

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setBackupInterval(Interval value)

    public Backup.Builder setBackupInterval(Interval value)

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `com.google.type.Interval` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setBackupInterval(Interval.Builder builderForValue)

    public Backup.Builder setBackupInterval(Interval.Builder builderForValue)

Output only. This output contains the following values: start_time: All database writes up to this time are available. end_time: Any database writes after this time aren't available.

`.google.type.Interval backup_interval = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `com.google.type.Interval.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setBackupKind(SqlBackupKind value)

    public Backup.Builder setBackupKind(SqlBackupKind value)

Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

` .google.cloud.sql.v1.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlBackupKind` The backupKind to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setBackupKindValue(int value)

    public Backup.Builder setBackupKindValue(int value)

Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT.

` .google.cloud.sql.v1.SqlBackupKind backup_kind = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for backupKind to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setBackupRun(String value)

    public Backup.Builder setBackupRun(String value)

Output only. The mapping to backup run resource used for IAM validations.

`string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The backupRun to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setBackupRunBytes(ByteString value)

    public Backup.Builder setBackupRunBytes(ByteString value)

Output only. The mapping to backup run resource used for IAM validations.

`string backup_run = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for backupRun to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setDatabaseVersion(SqlDatabaseVersion value)

    public Backup.Builder setDatabaseVersion(SqlDatabaseVersion value)

Output only. The database version of the instance of at the time this backup was made.

` .google.cloud.sql.v1.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlDatabaseVersion` The databaseVersion to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setDatabaseVersionValue(int value)

    public Backup.Builder setDatabaseVersionValue(int value)

Output only. The database version of the instance of at the time this backup was made.

` .google.cloud.sql.v1.SqlDatabaseVersion database_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for databaseVersion to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setDescription(String value)

    public Backup.Builder setDescription(String value)

The description of this backup.

`string description = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The description to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setDescriptionBytes(ByteString value)

    public Backup.Builder setDescriptionBytes(ByteString value)

The description of this backup.

`string description = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for description to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setError(OperationError value)

    public Backup.Builder setError(OperationError value)

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationError` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setError(OperationError.Builder builderForValue)

    public Backup.Builder setError(OperationError.Builder builderForValue)

Output only. Information about why the backup operation fails (for example, when the backup state fails).

` .google.cloud.sql.v1.OperationError error = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.OperationError.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setExpiryTime(Timestamp value)

    public Backup.Builder setExpiryTime(Timestamp value)

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setExpiryTime(Timestamp.Builder builderForValue)

    public Backup.Builder setExpiryTime(Timestamp.Builder builderForValue)

Backup expiration time. A UTC timestamp of when this backup expired.

`.google.protobuf.Timestamp expiry_time = 17;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.Builder.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setInstance(String value)

    public Backup.Builder setInstance(String value)

The name of the source database instance.

`string instance = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The instance to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setInstanceBytes(ByteString value)

    public Backup.Builder setInstanceBytes(ByteString value)

The name of the source database instance.

`string instance = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for instance to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setInstanceDeletionTime(Timestamp value)

    public Backup.Builder setInstanceDeletionTime(Timestamp value)

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setInstanceDeletionTime(Timestamp.Builder builderForValue)

    public Backup.Builder setInstanceDeletionTime(Timestamp.Builder builderForValue)

Optional. Output only. Timestamp in UTC of when the instance associated with this backup is deleted.

` .google.protobuf.Timestamp instance_deletion_time = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.Builder.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setInstanceSettings(DatabaseInstance value)

    public Backup.Builder setInstanceSettings(DatabaseInstance value)

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.DatabaseInstance` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setInstanceSettings(DatabaseInstance.Builder builderForValue)

    public Backup.Builder setInstanceSettings(DatabaseInstance.Builder builderForValue)

Optional. Output only. The instance setting of the source instance that's associated with this backup.

` .google.cloud.sql.v1.DatabaseInstance instance_settings = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.DatabaseInstance.Builder` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setKind(String value)

    public Backup.Builder setKind(String value)

Output only. This is always `sql#backup`.

`string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The kind to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setKindBytes(ByteString value)

    public Backup.Builder setKindBytes(ByteString value)

Output only. This is always `sql#backup`.

`string kind = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for kind to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setKmsKey(String value)

    public Backup.Builder setKmsKey(String value)

Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

`string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The kmsKey to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setKmsKeyBytes(ByteString value)

    public Backup.Builder setKmsKeyBytes(ByteString value)

Output only. This output contains the encryption configuration for a backup and the resource name of the KMS key for disk encryption.

`string kms_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for kmsKey to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setKmsKeyVersion(String value)

    public Backup.Builder setKmsKeyVersion(String value)

Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

`string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The kmsKeyVersion to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setKmsKeyVersionBytes(ByteString value)

    public Backup.Builder setKmsKeyVersionBytes(ByteString value)

Output only. This output contains the encryption status for a backup and the version of the KMS key that's used to encrypt the Cloud SQL instance.

`string kms_key_version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for kmsKeyVersion to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setLocation(String value)

    public Backup.Builder setLocation(String value)

The storage location of the backups. The location can be multi-regional.

`string location = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The location to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setLocationBytes(ByteString value)

    public Backup.Builder setLocationBytes(ByteString value)

The storage location of the backups. The location can be multi-regional.

`string location = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for location to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setMaxChargeableBytes(long value)

    public Backup.Builder setMaxChargeableBytes(long value)

Output only. The maximum chargeable bytes for the backup.

`optional int64 max_chargeable_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The maxChargeableBytes to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setName(String value)

    public Backup.Builder setName(String value)

Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The name to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setNameBytes(ByteString value)

    public Backup.Builder setNameBytes(ByteString value)

Output only. The resource name of the backup. Format: projects/{project}/backups/{backup}.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for name to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setSatisfiesPzi(BoolValue value)

    public Backup.Builder setSatisfiesPzi(BoolValue value)

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setSatisfiesPzi(BoolValue.Builder builderForValue)

    public Backup.Builder setSatisfiesPzi(BoolValue.Builder builderForValue)

Output only. This status indicates whether the backup satisfies PZI.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzi = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.Builder.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setSatisfiesPzs(BoolValue value)

    public Backup.Builder setSatisfiesPzs(BoolValue value)

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setSatisfiesPzs(BoolValue.Builder builderForValue)

    public Backup.Builder setSatisfiesPzs(BoolValue.Builder builderForValue)

Output only. This status indicates whether the backup satisfies PZS.

The status is reserved for future use.

` .google.protobuf.BoolValue satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `builderForValue` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.Builder.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` |   |

### setSelfLink(String value)

    public Backup.Builder setSelfLink(String value)

Output only. The URI of this resource.

`string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The selfLink to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setSelfLinkBytes(ByteString value)

    public Backup.Builder setSelfLinkBytes(ByteString value)

Output only. The URI of this resource.

`string self_link = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for selfLink to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setState(Backup.SqlBackupState value)

    public Backup.Builder setState(Backup.SqlBackupState value)

Output only. The status of this backup.

` .google.cloud.sql.v1.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.SqlBackupState` The state to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setStateValue(int value)

    public Backup.Builder setStateValue(int value)

Output only. The status of this backup.

` .google.cloud.sql.v1.Backup.SqlBackupState state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for state to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setTimeZone(String value)

    public Backup.Builder setTimeZone(String value)

Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

`string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` The timeZone to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setTimeZoneBytes(ByteString value)

    public Backup.Builder setTimeZoneBytes(ByteString value)

Output only. This output contains a backup time zone. If a Cloud SQL for SQL Server instance has a different time zone from the backup's time zone, then the restore to the instance doesn't happen.

`string time_zone = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` The bytes for timeZone to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setTtlDays(long value)

    public Backup.Builder setTtlDays(long value)

Input only. The time-to-live (TTL) interval for this resource (in days). For example: ttlDays:7, means 7 days from the current time. The expiration time can't exceed 365 days from the time that the backup is created.

`int64 ttl_days = 16 [(.google.api.field_behavior) = INPUT_ONLY];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The ttlDays to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setType(Backup.SqlBackupType value)

    public Backup.Builder setType(Backup.SqlBackupType value)

Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or "FINAL".

` .google.cloud.sql.v1.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.SqlBackupType` The type to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |

### setTypeValue(int value)

    public Backup.Builder setTypeValue(int value)

Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND" or "FINAL".

` .google.cloud.sql.v1.Backup.SqlBackupType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The enum numeric value on the wire for type to set. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.Backup.Builder` | This builder for chaining. |