Class PointInTimeRestoreContext (0.1.0)

public final class PointInTimeRestoreContext extends GeneratedMessage implements PointInTimeRestoreContextOrBuilder

Context 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

Static Fields

ALLOCATED_IP_RANGE_FIELD_NUMBER

public static final int ALLOCATED_IP_RANGE_FIELD_NUMBER
Field Value
Type Description
int

DATASOURCE_FIELD_NUMBER

public static final int DATASOURCE_FIELD_NUMBER
Field Value
Type Description
int

POINT_IN_TIME_FIELD_NUMBER

public static final int POINT_IN_TIME_FIELD_NUMBER
Field Value
Type Description
int

PREFERRED_SECONDARY_ZONE_FIELD_NUMBER

public static final int PREFERRED_SECONDARY_ZONE_FIELD_NUMBER
Field Value
Type Description
int

PREFERRED_ZONE_FIELD_NUMBER

public static final int PREFERRED_ZONE_FIELD_NUMBER
Field Value
Type Description
int

PRIVATE_NETWORK_FIELD_NUMBER

public static final int PRIVATE_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
Type Description
int

TARGET_INSTANCE_CLEAR_SETTINGS_FIELD_NAMES_FIELD_NUMBER

public static final int TARGET_INSTANCE_CLEAR_SETTINGS_FIELD_NAMES_FIELD_NUMBER
Field Value
Type Description
int

TARGET_INSTANCE_FIELD_NUMBER

public static final int TARGET_INSTANCE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_INSTANCE_SETTINGS_FIELD_NUMBER

public static final int TARGET_INSTANCE_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PointInTimeRestoreContext getDefaultInstance()
Returns
Type Description
PointInTimeRestoreContext

getDescriptor()

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

newBuilder()

public static PointInTimeRestoreContext.Builder newBuilder()
Returns
Type Description
PointInTimeRestoreContext.Builder

newBuilder(PointInTimeRestoreContext prototype)

public static PointInTimeRestoreContext.Builder newBuilder(PointInTimeRestoreContext prototype)
Parameter
Name Description
prototype PointInTimeRestoreContext
Returns
Type Description
PointInTimeRestoreContext.Builder

parseDelimitedFrom(InputStream input)

public static PointInTimeRestoreContext parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PointInTimeRestoreContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PointInTimeRestoreContext parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PointInTimeRestoreContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PointInTimeRestoreContext parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PointInTimeRestoreContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PointInTimeRestoreContext parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PointInTimeRestoreContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PointInTimeRestoreContext parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PointInTimeRestoreContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PointInTimeRestoreContext parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PointInTimeRestoreContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointInTimeRestoreContext
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PointInTimeRestoreContext> parser()
Returns
Type Description
Parser<PointInTimeRestoreContext>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<PointInTimeRestoreContext> getParserForType()
Returns
Type Description
Parser<PointInTimeRestoreContext>
Overrides

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 int

The 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 int

The 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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PointInTimeRestoreContext.Builder newBuilderForType()
Returns
Type Description
PointInTimeRestoreContext.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PointInTimeRestoreContext.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PointInTimeRestoreContext.Builder
Overrides

toBuilder()

public PointInTimeRestoreContext.Builder toBuilder()
Returns
Type Description
PointInTimeRestoreContext.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException