public final class CloneContext extends GeneratedMessage implements CloneContextOrBuilder
Database instance clone context.
Protobuf type google.cloud.sql.v1beta4.CloneContext
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 |
|
BIN_LOG_COORDINATES_FIELD_NUMBER
public static final int BIN_LOG_COORDINATES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DATABASE_NAMES_FIELD_NUMBER
public static final int DATABASE_NAMES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESTINATION_INSTANCE_NAME_FIELD_NUMBER
public static final int DESTINATION_INSTANCE_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESTINATION_NETWORK_FIELD_NUMBER
public static final int DESTINATION_NETWORK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESTINATION_PROJECT_FIELD_NUMBER
public static final int DESTINATION_PROJECT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PITR_TIMESTAMP_MS_FIELD_NUMBER
public static final int PITR_TIMESTAMP_MS_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 |
|
SOURCE_INSTANCE_DELETION_TIME_FIELD_NUMBER
public static final int SOURCE_INSTANCE_DELETION_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CloneContext getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CloneContext.Builder newBuilder()
newBuilder(CloneContext prototype)
public static CloneContext.Builder newBuilder(CloneContext prototype)
parseDelimitedFrom(InputStream input)
public static CloneContext parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CloneContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CloneContext parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CloneContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CloneContext parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CloneContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static CloneContext parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CloneContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static CloneContext parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CloneContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CloneContext parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CloneContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CloneContext> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAllocatedIpRange()
public String getAllocatedIpRange()
The name of the allocated ip range for the private ip Cloud SQL instance.
For example: "google-managed-services-default". If set, the cloned instance
ip will be created in the allocated range. The range name must comply with
RFC 1035. Specifically, the name
must be 1-63 characters long and match the regular expression
a-z?.
Reserved for future use.
string allocated_ip_range = 6;
| Returns |
| Type |
Description |
String |
The allocatedIpRange.
|
getAllocatedIpRangeBytes()
public ByteString getAllocatedIpRangeBytes()
The name of the allocated ip range for the private ip Cloud SQL instance.
For example: "google-managed-services-default". If set, the cloned instance
ip will be created in the allocated range. The range name must comply with
RFC 1035. Specifically, the name
must be 1-63 characters long and match the regular expression
a-z?.
Reserved for future use.
string allocated_ip_range = 6;
| Returns |
| Type |
Description |
ByteString |
The bytes for allocatedIpRange.
|
getBinLogCoordinates()
public BinLogCoordinates getBinLogCoordinates()
Binary log coordinates, if specified, identify the position up to which the
source instance is cloned. If not specified, the source instance is
cloned up to the most recent binary log coordinates.
.google.cloud.sql.v1beta4.BinLogCoordinates bin_log_coordinates = 4;
getBinLogCoordinatesOrBuilder()
public BinLogCoordinatesOrBuilder getBinLogCoordinatesOrBuilder()
Binary log coordinates, if specified, identify the position up to which the
source instance is cloned. If not specified, the source instance is
cloned up to the most recent binary log coordinates.
.google.cloud.sql.v1beta4.BinLogCoordinates bin_log_coordinates = 4;
getDatabaseNames(int index)
public String getDatabaseNames(int index)
(SQL Server only) Clone only the specified databases from the source
instance. Clone all databases if empty.
repeated string database_names = 9;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The databaseNames at the given index.
|
getDatabaseNamesBytes(int index)
public ByteString getDatabaseNamesBytes(int index)
(SQL Server only) Clone only the specified databases from the source
instance. Clone all databases if empty.
repeated string database_names = 9;
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the databaseNames at the given index.
|
getDatabaseNamesCount()
public int getDatabaseNamesCount()
(SQL Server only) Clone only the specified databases from the source
instance. Clone all databases if empty.
repeated string database_names = 9;
| Returns |
| Type |
Description |
int |
The count of databaseNames.
|
getDatabaseNamesList()
public ProtocolStringList getDatabaseNamesList()
(SQL Server only) Clone only the specified databases from the source
instance. Clone all databases if empty.
repeated string database_names = 9;
getDefaultInstanceForType()
public CloneContext getDefaultInstanceForType()
getDestinationInstanceName()
public String getDestinationInstanceName()
Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3;
| Returns |
| Type |
Description |
String |
The destinationInstanceName.
|
getDestinationInstanceNameBytes()
public ByteString getDestinationInstanceNameBytes()
Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for destinationInstanceName.
|
getDestinationNetwork()
public String getDestinationNetwork()
Optional. The fully qualified URI of the VPC network to which the cloned
instance will be connected via private services access for private IP. For
example:projects/my-network-project/global/networks/my-network. This
field is only required for cross-project cloning.
optional string destination_network = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The destinationNetwork.
|
getDestinationNetworkBytes()
public ByteString getDestinationNetworkBytes()
Optional. The fully qualified URI of the VPC network to which the cloned
instance will be connected via private services access for private IP. For
example:projects/my-network-project/global/networks/my-network. This
field is only required for cross-project cloning.
optional string destination_network = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for destinationNetwork.
|
getDestinationProject()
public String getDestinationProject()
Optional. The project ID of the destination project where the cloned
instance will be created. To perform a cross-project clone, this field is
required. If not specified, the clone is created in the same project
as the source instance.
optional string destination_project = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The destinationProject.
|
getDestinationProjectBytes()
public ByteString getDestinationProjectBytes()
Optional. The project ID of the destination project where the cloned
instance will be created. To perform a cross-project clone, this field is
required. If not specified, the clone is created in the same project
as the source instance.
optional string destination_project = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for destinationProject.
|
getKind()
This is always sql#cloneContext.
string kind = 1;
| Returns |
| Type |
Description |
String |
The kind.
|
getKindBytes()
public ByteString getKindBytes()
This is always sql#cloneContext.
string kind = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for kind.
|
getParserForType()
public Parser<CloneContext> getParserForType()
Overrides
getPitrTimestampMs()
public long getPitrTimestampMs()
Reserved for future use.
int64 pitr_timestamp_ms = 2;
| Returns |
| Type |
Description |
long |
The pitrTimestampMs.
|
getPointInTime()
public Timestamp getPointInTime()
Timestamp, if specified, identifies the time to which the source instance
is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Returns |
| Type |
Description |
Timestamp |
The pointInTime.
|
getPointInTimeOrBuilder()
public TimestampOrBuilder getPointInTimeOrBuilder()
Timestamp, if specified, identifies the time to which the source instance
is cloned.
.google.protobuf.Timestamp point_in_time = 5;
getPreferredSecondaryZone()
public String getPreferredSecondaryZone()
Optional. Copy clone and point-in-time recovery clone 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The preferredSecondaryZone.
|
getPreferredSecondaryZoneBytes()
public ByteString getPreferredSecondaryZoneBytes()
Optional. Copy clone and point-in-time recovery clone 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for preferredSecondaryZone.
|
getPreferredZone()
public String getPreferredZone()
Optional. Copy clone and point-in-time recovery clone of an instance to the
specified zone. If no zone is specified, clone to the same primary zone as
the source instance.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The preferredZone.
|
getPreferredZoneBytes()
public ByteString getPreferredZoneBytes()
Optional. Copy clone and point-in-time recovery clone of an instance to the
specified zone. If no zone is specified, clone to the same primary zone as
the source instance.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for preferredZone.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSourceInstanceDeletionTime()
public Timestamp getSourceInstanceDeletionTime()
The timestamp used to identify the time when the source instance is
deleted. If this instance is deleted, then you must set the timestamp.
optional .google.protobuf.Timestamp source_instance_deletion_time = 12;
| Returns |
| Type |
Description |
Timestamp |
The sourceInstanceDeletionTime.
|
getSourceInstanceDeletionTimeOrBuilder()
public TimestampOrBuilder getSourceInstanceDeletionTimeOrBuilder()
The timestamp used to identify the time when the source instance is
deleted. If this instance is deleted, then you must set the timestamp.
optional .google.protobuf.Timestamp source_instance_deletion_time = 12;
hasBinLogCoordinates()
public boolean hasBinLogCoordinates()
Binary log coordinates, if specified, identify the position up to which the
source instance is cloned. If not specified, the source instance is
cloned up to the most recent binary log coordinates.
.google.cloud.sql.v1beta4.BinLogCoordinates bin_log_coordinates = 4;
| Returns |
| Type |
Description |
boolean |
Whether the binLogCoordinates field is set.
|
hasDestinationNetwork()
public boolean hasDestinationNetwork()
Optional. The fully qualified URI of the VPC network to which the cloned
instance will be connected via private services access for private IP. For
example:projects/my-network-project/global/networks/my-network. This
field is only required for cross-project cloning.
optional string destination_network = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the destinationNetwork field is set.
|
hasDestinationProject()
public boolean hasDestinationProject()
Optional. The project ID of the destination project where the cloned
instance will be created. To perform a cross-project clone, this field is
required. If not specified, the clone is created in the same project
as the source instance.
optional string destination_project = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the destinationProject field is set.
|
hasPointInTime()
public boolean hasPointInTime()
Timestamp, if specified, identifies the time to which the source instance
is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Returns |
| Type |
Description |
boolean |
Whether the pointInTime field is set.
|
hasPreferredSecondaryZone()
public boolean hasPreferredSecondaryZone()
Optional. Copy clone and point-in-time recovery clone 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the preferredSecondaryZone field is set.
|
hasPreferredZone()
public boolean hasPreferredZone()
Optional. Copy clone and point-in-time recovery clone of an instance to the
specified zone. If no zone is specified, clone to the same primary zone as
the source instance.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the preferredZone field is set.
|
hasSourceInstanceDeletionTime()
public boolean hasSourceInstanceDeletionTime()
The timestamp used to identify the time when the source instance is
deleted. If this instance is deleted, then you must set the timestamp.
optional .google.protobuf.Timestamp source_instance_deletion_time = 12;
| Returns |
| Type |
Description |
boolean |
Whether the sourceInstanceDeletionTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CloneContext.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CloneContext.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public CloneContext.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides