    public interface PointInTimeRestoreContextOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAllocatedIpRange()

    public abstract String getAllocatedIpRange()

Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/[-a-z0-9]*[a-z0-9])?. Reserved for future use.

`optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAllocatedIpRangeBytes()

    public abstract ByteString getAllocatedIpRangeBytes()

Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/[-a-z0-9]*[a-z0-9])?. Reserved for future use.

`optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDatasource()

    public abstract String getDatasource()

The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.

`optional string datasource = 1;`

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

### getDatasourceBytes()

    public abstract ByteString getDatasourceBytes()

The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.

`optional string datasource = 1;`

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

### getPointInTime()

    public abstract Timestamp getPointInTime()

Required. The date and time to which you want to restore the instance.

`.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED]; `

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

### getPointInTimeOrBuilder()

    public abstract TimestampOrBuilder getPointInTimeOrBuilder()

Required. The date and time to which you want to restore the instance.

`.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED]; `

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

### getPreferredSecondaryZone()

    public abstract String getPreferredSecondaryZone()

Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.

`optional string preferred_secondary_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; `

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

### getPreferredSecondaryZoneBytes()

    public abstract ByteString getPreferredSecondaryZoneBytes()

Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.

`optional string preferred_secondary_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; `

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

### getPreferredZone()

    public abstract String getPreferredZone()

Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.

`optional string preferred_zone = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPreferredZoneBytes()

    public abstract ByteString getPreferredZoneBytes()

Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.

`optional string preferred_zone = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPrivateNetwork()

    public abstract String getPrivateNetwork()

Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.

`optional string private_network = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getPrivateNetworkBytes()

    public abstract ByteString getPrivateNetworkBytes()

Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.

`optional string private_network = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getRegion()

    public abstract String getRegion()

Optional. The region of the target instance where the datasource will be restored. For example: "us-central1".

`optional string region = 13 [(.google.api.field_behavior) = OPTIONAL];`

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

### getRegionBytes()

    public abstract ByteString getRegionBytes()

Optional. The region of the target instance where the datasource will be restored. For example: "us-central1".

`optional string region = 13 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTargetInstance()

    public abstract String getTargetInstance()

Target instance name.

`optional string target_instance = 3;`

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

### getTargetInstanceBytes()

    public abstract ByteString getTargetInstanceBytes()

Target instance name.

`optional string target_instance = 3;`

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

### getTargetInstanceClearSettingsFieldNames(int index)

    public abstract String getTargetInstanceClearSettingsFieldNames(int index)

Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.

` repeated string target_instance_clear_settings_field_names = 12 [(.google.api.field_behavior) = OPTIONAL]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The targetInstanceClearSettingsFieldNames at the given index. |

### getTargetInstanceClearSettingsFieldNamesBytes(int index)

    public abstract ByteString getTargetInstanceClearSettingsFieldNamesBytes(int index)

Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.

` repeated string target_instance_clear_settings_field_names = 12 [(.google.api.field_behavior) = OPTIONAL]; `

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the targetInstanceClearSettingsFieldNames at the given index. |

### getTargetInstanceClearSettingsFieldNamesCount()

    public abstract int getTargetInstanceClearSettingsFieldNamesCount()

Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.

` repeated string target_instance_clear_settings_field_names = 12 [(.google.api.field_behavior) = OPTIONAL]; `

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

### getTargetInstanceClearSettingsFieldNamesList()

    public abstract List<String> getTargetInstanceClearSettingsFieldNamesList()

Optional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.

` repeated string target_instance_clear_settings_field_names = 12 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the targetInstanceClearSettingsFieldNames. |

### getTargetInstanceSettings()

    public abstract DatabaseInstance getTargetInstanceSettings()

Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.

` .google.cloud.sql.v1.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL]; `

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

### getTargetInstanceSettingsOrBuilder()

    public abstract DatabaseInstanceOrBuilder getTargetInstanceSettingsOrBuilder()

Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.

` .google.cloud.sql.v1.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL]; `

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

### hasAllocatedIpRange()

    public abstract boolean hasAllocatedIpRange()

Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/[-a-z0-9]*[a-z0-9])?. Reserved for future use.

`optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasDatasource()

    public abstract boolean hasDatasource()

The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.

`optional string datasource = 1;`

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

### hasPointInTime()

    public abstract boolean hasPointInTime()

Required. The date and time to which you want to restore the instance.

`.google.protobuf.Timestamp point_in_time = 2 [(.google.api.field_behavior) = REQUIRED]; `

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

### hasPreferredSecondaryZone()

    public abstract boolean hasPreferredSecondaryZone()

Optional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.

`optional string preferred_secondary_zone = 9 [(.google.api.field_behavior) = OPTIONAL]; `

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

### hasPreferredZone()

    public abstract boolean hasPreferredZone()

Optional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.

`optional string preferred_zone = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasPrivateNetwork()

    public abstract boolean hasPrivateNetwork()

Optional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.

`optional string private_network = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasRegion()

    public abstract boolean hasRegion()

Optional. The region of the target instance where the datasource will be restored. For example: "us-central1".

`optional string region = 13 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasTargetInstance()

    public abstract boolean hasTargetInstance()

Target instance name.

`optional string target_instance = 3;`

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

### hasTargetInstanceSettings()

    public abstract boolean hasTargetInstanceSettings()

Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.

` .google.cloud.sql.v1.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL]; `

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