public final class PointInTimeRestoreContext extends GeneratedMessage implements PointInTimeRestoreContextOrBuilder
The context to perform a point-in-time recovery of an instance managed by
Backup and Disaster Recovery (DR) Service.
Protobuf type google.cloud.sql.v1.PointInTimeRestoreContext
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PointInTimeRestoreContext.Builder newBuilder()
newBuilder(PointInTimeRestoreContext prototype)
public static PointInTimeRestoreContext.Builder newBuilder(PointInTimeRestoreContext prototype)
parseDelimitedFrom(InputStream input)
public static PointInTimeRestoreContext parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PointInTimeRestoreContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PointInTimeRestoreContext parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PointInTimeRestoreContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PointInTimeRestoreContext parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PointInTimeRestoreContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static PointInTimeRestoreContext parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PointInTimeRestoreContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static PointInTimeRestoreContext parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PointInTimeRestoreContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PointInTimeRestoreContext parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PointInTimeRestoreContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PointInTimeRestoreContext> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
getParserForType()
public Parser<PointInTimeRestoreContext> getParserForType()
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];
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.v1.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
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.v1.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
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.v1.DatabaseInstance target_instance_settings = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the targetInstanceSettings field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PointInTimeRestoreContext.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PointInTimeRestoreContext.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public PointInTimeRestoreContext.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides