public static final class PointInTimeRestoreContext.Builder extends GeneratedMessage.Builder<PointInTimeRestoreContext.Builder> implements PointInTimeRestoreContextOrBuilderContext to perform a point-in-time restore of an instance managed by Backup and Disaster Recovery (DR) Service.
Protobuf type google.cloud.sql.v1beta4.PointInTimeRestoreContext
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PointInTimeRestoreContext.BuilderImplements
PointInTimeRestoreContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTargetInstanceClearSettingsFieldNames(Iterable<String> values)
public PointInTimeRestoreContext.Builder addAllTargetInstanceClearSettingsFieldNames(Iterable<String> values)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 |
values |
Iterable<String>The targetInstanceClearSettingsFieldNames to add. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
addTargetInstanceClearSettingsFieldNames(String value)
public PointInTimeRestoreContext.Builder addTargetInstanceClearSettingsFieldNames(String value)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 |
value |
StringThe targetInstanceClearSettingsFieldNames to add. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
addTargetInstanceClearSettingsFieldNamesBytes(ByteString value)
public PointInTimeRestoreContext.Builder addTargetInstanceClearSettingsFieldNamesBytes(ByteString value)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 |
value |
ByteStringThe bytes of the targetInstanceClearSettingsFieldNames to add. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
build()
public PointInTimeRestoreContext build()| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext |
|
buildPartial()
public PointInTimeRestoreContext buildPartial()| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext |
|
clear()
public PointInTimeRestoreContext.Builder clear()| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
clearAllocatedIpRange()
public PointInTimeRestoreContext.Builder clearAllocatedIpRange()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 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearDatasource()
public PointInTimeRestoreContext.Builder clearDatasource()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 |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearPointInTime()
public PointInTimeRestoreContext.Builder clearPointInTime()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 |
PointInTimeRestoreContext.Builder |
|
clearPreferredSecondaryZone()
public PointInTimeRestoreContext.Builder clearPreferredSecondaryZone()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 |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearPreferredZone()
public PointInTimeRestoreContext.Builder clearPreferredZone()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 |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearPrivateNetwork()
public PointInTimeRestoreContext.Builder clearPrivateNetwork() 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 |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearRegion()
public PointInTimeRestoreContext.Builder clearRegion()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 |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearTargetInstance()
public PointInTimeRestoreContext.Builder clearTargetInstance()Target instance name.
optional string target_instance = 3;
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearTargetInstanceClearSettingsFieldNames()
public PointInTimeRestoreContext.Builder clearTargetInstanceClearSettingsFieldNames()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 |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
clearTargetInstanceSettings()
public PointInTimeRestoreContext.Builder clearTargetInstanceSettings()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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
getAllocatedIpRange()
public 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 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The allocatedIpRange. |
getAllocatedIpRangeBytes()
public 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 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for allocatedIpRange. |
getDatasource()
public 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 |
String |
The datasource. |
getDatasourceBytes()
public 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 |
ByteString |
The bytes for datasource. |
getDefaultInstanceForType()
public PointInTimeRestoreContext getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPointInTime()
public 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 |
Timestamp |
The pointInTime. |
getPointInTimeBuilder()
public Timestamp.Builder getPointInTimeBuilder()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 |
Builder |
|
getPointInTimeOrBuilder()
public 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 |
TimestampOrBuilder |
|
getPreferredSecondaryZone()
public 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 |
String |
The preferredSecondaryZone. |
getPreferredSecondaryZoneBytes()
public 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 |
ByteString |
The bytes for preferredSecondaryZone. |
getPreferredZone()
public 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 |
String |
The preferredZone. |
getPreferredZoneBytes()
public 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 |
ByteString |
The bytes for preferredZone. |
getPrivateNetwork()
public 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 |
String |
The privateNetwork. |
getPrivateNetworkBytes()
public 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 |
ByteString |
The bytes for privateNetwork. |
getRegion()
public 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 |
String |
The region. |
getRegionBytes()
public 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 |
ByteString |
The bytes for region. |
getTargetInstance()
public String getTargetInstance()Target instance name.
optional string target_instance = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The targetInstance. |
getTargetInstanceBytes()
public ByteString getTargetInstanceBytes()Target instance name.
optional string target_instance = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for targetInstance. |
getTargetInstanceClearSettingsFieldNames(int index)
public 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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The targetInstanceClearSettingsFieldNames at the given index. |
getTargetInstanceClearSettingsFieldNamesBytes(int index)
public 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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the targetInstanceClearSettingsFieldNames at the given index. |
getTargetInstanceClearSettingsFieldNamesCount()
public 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 |
int |
The count of targetInstanceClearSettingsFieldNames. |
getTargetInstanceClearSettingsFieldNamesList()
public ProtocolStringList 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 |
ProtocolStringList |
A list containing the targetInstanceClearSettingsFieldNames. |
getTargetInstanceSettings()
public 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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DatabaseInstance |
The targetInstanceSettings. |
getTargetInstanceSettingsBuilder()
public DatabaseInstance.Builder getTargetInstanceSettingsBuilder()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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DatabaseInstance.Builder |
|
getTargetInstanceSettingsOrBuilder()
public 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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DatabaseInstanceOrBuilder |
|
hasAllocatedIpRange()
public 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 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allocatedIpRange field is set. |
hasDatasource()
public 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 |
boolean |
Whether the datasource field is set. |
hasPointInTime()
public 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 |
boolean |
Whether the pointInTime field is set. |
hasPreferredSecondaryZone()
public 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 |
boolean |
Whether the preferredSecondaryZone field is set. |
hasPreferredZone()
public 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 |
boolean |
Whether the preferredZone field is set. |
hasPrivateNetwork()
public 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 |
boolean |
Whether the privateNetwork field is set. |
hasRegion()
public 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 |
boolean |
Whether the region field is set. |
hasTargetInstance()
public boolean hasTargetInstance()Target instance name.
optional string target_instance = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the targetInstance field is set. |
hasTargetInstanceSettings()
public 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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the targetInstanceSettings field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PointInTimeRestoreContext other)
public PointInTimeRestoreContext.Builder mergeFrom(PointInTimeRestoreContext other)| Parameter | |
|---|---|
| Name | Description |
other |
PointInTimeRestoreContext |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PointInTimeRestoreContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PointInTimeRestoreContext.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
mergePointInTime(Timestamp value)
public PointInTimeRestoreContext.Builder mergePointInTime(Timestamp value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
mergeTargetInstanceSettings(DatabaseInstance value)
public PointInTimeRestoreContext.Builder mergeTargetInstanceSettings(DatabaseInstance value)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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
DatabaseInstance |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
setAllocatedIpRange(String value)
public PointInTimeRestoreContext.Builder setAllocatedIpRange(String value)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 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe allocatedIpRange to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setAllocatedIpRangeBytes(ByteString value)
public PointInTimeRestoreContext.Builder setAllocatedIpRangeBytes(ByteString value)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 standards. Specifically, the name must be 1-63 characters long and match the regular expression a-z?. Reserved for future use.
optional string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for allocatedIpRange to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setDatasource(String value)
public PointInTimeRestoreContext.Builder setDatasource(String value)The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.
optional string datasource = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe datasource to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setDatasourceBytes(ByteString value)
public PointInTimeRestoreContext.Builder setDatasourceBytes(ByteString value)The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.
optional string datasource = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for datasource to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setPointInTime(Timestamp value)
public PointInTimeRestoreContext.Builder setPointInTime(Timestamp value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
setPointInTime(Timestamp.Builder builderForValue)
public PointInTimeRestoreContext.Builder setPointInTime(Timestamp.Builder builderForValue)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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
setPreferredSecondaryZone(String value)
public PointInTimeRestoreContext.Builder setPreferredSecondaryZone(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe preferredSecondaryZone to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setPreferredSecondaryZoneBytes(ByteString value)
public PointInTimeRestoreContext.Builder setPreferredSecondaryZoneBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for preferredSecondaryZone to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setPreferredZone(String value)
public PointInTimeRestoreContext.Builder setPreferredZone(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe preferredZone to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setPreferredZoneBytes(ByteString value)
public PointInTimeRestoreContext.Builder setPreferredZoneBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for preferredZone to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setPrivateNetwork(String value)
public PointInTimeRestoreContext.Builder setPrivateNetwork(String value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe privateNetwork to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setPrivateNetworkBytes(ByteString value)
public PointInTimeRestoreContext.Builder setPrivateNetworkBytes(ByteString value) 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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for privateNetwork to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setRegion(String value)
public PointInTimeRestoreContext.Builder setRegion(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe region to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setRegionBytes(ByteString value)
public PointInTimeRestoreContext.Builder setRegionBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setTargetInstance(String value)
public PointInTimeRestoreContext.Builder setTargetInstance(String value)Target instance name.
optional string target_instance = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe targetInstance to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setTargetInstanceBytes(ByteString value)
public PointInTimeRestoreContext.Builder setTargetInstanceBytes(ByteString value)Target instance name.
optional string target_instance = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for targetInstance to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setTargetInstanceClearSettingsFieldNames(int index, String value)
public PointInTimeRestoreContext.Builder setTargetInstanceClearSettingsFieldNames(int index, String value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe targetInstanceClearSettingsFieldNames to set. |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
This builder for chaining. |
setTargetInstanceSettings(DatabaseInstance value)
public PointInTimeRestoreContext.Builder setTargetInstanceSettings(DatabaseInstance value)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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
DatabaseInstance |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|
setTargetInstanceSettings(DatabaseInstance.Builder builderForValue)
public PointInTimeRestoreContext.Builder setTargetInstanceSettings(DatabaseInstance.Builder builderForValue)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.v1beta4.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DatabaseInstance.Builder |
| Returns | |
|---|---|
| Type | Description |
PointInTimeRestoreContext.Builder |
|