public static final class CloneContext.Builder extends GeneratedMessage.Builder<CloneContext.Builder> implements CloneContextOrBuilderDatabase instance clone context.
Protobuf type google.cloud.sql.v1.CloneContext
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CloneContext.BuilderImplements
CloneContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDatabaseNames(Iterable<String> values)
public CloneContext.Builder addAllDatabaseNames(Iterable<String> values)(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 |
values |
Iterable<String>The databaseNames to add. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
addDatabaseNames(String value)
public CloneContext.Builder addDatabaseNames(String value)(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 |
value |
StringThe databaseNames to add. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
addDatabaseNamesBytes(ByteString value)
public CloneContext.Builder addDatabaseNamesBytes(ByteString value)(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 |
value |
ByteStringThe bytes of the databaseNames to add. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
build()
public CloneContext build()| Returns | |
|---|---|
| Type | Description |
CloneContext |
|
buildPartial()
public CloneContext buildPartial()| Returns | |
|---|---|
| Type | Description |
CloneContext |
|
clear()
public CloneContext.Builder clear()| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
clearAllocatedIpRange()
public CloneContext.Builder clearAllocatedIpRange()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 |
CloneContext.Builder |
This builder for chaining. |
clearBinLogCoordinates()
public CloneContext.Builder clearBinLogCoordinates()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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
clearDatabaseNames()
public CloneContext.Builder clearDatabaseNames()(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 |
CloneContext.Builder |
This builder for chaining. |
clearDestinationInstanceName()
public CloneContext.Builder clearDestinationInstanceName()Required. Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
clearDestinationNetwork()
public CloneContext.Builder clearDestinationNetwork() 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 |
CloneContext.Builder |
This builder for chaining. |
clearDestinationProject()
public CloneContext.Builder clearDestinationProject()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 |
CloneContext.Builder |
This builder for chaining. |
clearKind()
public CloneContext.Builder clearKind() This is always sql#cloneContext.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
clearPitrTimestampMs()
public CloneContext.Builder clearPitrTimestampMs()Reserved for future use.
int64 pitr_timestamp_ms = 2;
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
clearPointInTime()
public CloneContext.Builder clearPointInTime()Timestamp, if specified, identifies the time to which the source instance is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
clearPreferredSecondaryZone()
public CloneContext.Builder clearPreferredSecondaryZone()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. This field applies to all DB types.
optional string preferred_secondary_zone = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
clearPreferredZone()
public CloneContext.Builder clearPreferredZone()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. This field applies to all DB types.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
clearSourceInstanceDeletionTime()
public CloneContext.Builder clearSourceInstanceDeletionTime()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 |
CloneContext.Builder |
|
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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Returns | |
|---|---|
| Type | Description |
BinLogCoordinates |
The binLogCoordinates. |
getBinLogCoordinatesBuilder()
public BinLogCoordinates.Builder getBinLogCoordinatesBuilder()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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Returns | |
|---|---|
| Type | Description |
BinLogCoordinates.Builder |
|
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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Returns | |
|---|---|
| Type | Description |
BinLogCoordinatesOrBuilder |
|
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 |
intThe 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 |
intThe 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;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the databaseNames. |
getDefaultInstanceForType()
public CloneContext getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CloneContext |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinationInstanceName()
public String getDestinationInstanceName()Required. Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The destinationInstanceName. |
getDestinationInstanceNameBytes()
public ByteString getDestinationInstanceNameBytes()Required. Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3 [(.google.api.field_behavior) = REQUIRED];
| 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()
public String 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. |
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. |
getPointInTimeBuilder()
public Timestamp.Builder getPointInTimeBuilder()Timestamp, if specified, identifies the time to which the source instance is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPointInTimeOrBuilder()
public TimestampOrBuilder getPointInTimeOrBuilder()Timestamp, if specified, identifies the time to which the source instance is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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. This field applies to all DB types.
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. This field applies to all DB types.
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. This field applies to all DB types.
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. This field applies to all DB types.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for preferredZone. |
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. |
getSourceInstanceDeletionTimeBuilder()
public Timestamp.Builder getSourceInstanceDeletionTimeBuilder()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 |
Builder |
|
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;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
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.v1.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. This field applies to all DB types.
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. This field applies to all DB types.
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBinLogCoordinates(BinLogCoordinates value)
public CloneContext.Builder mergeBinLogCoordinates(BinLogCoordinates value)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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
BinLogCoordinates |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
mergeFrom(CloneContext other)
public CloneContext.Builder mergeFrom(CloneContext other)| Parameter | |
|---|---|
| Name | Description |
other |
CloneContext |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CloneContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CloneContext.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
mergePointInTime(Timestamp value)
public CloneContext.Builder mergePointInTime(Timestamp value)Timestamp, if specified, identifies the time to which the source instance is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
mergeSourceInstanceDeletionTime(Timestamp value)
public CloneContext.Builder mergeSourceInstanceDeletionTime(Timestamp value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
setAllocatedIpRange(String value)
public CloneContext.Builder setAllocatedIpRange(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe allocatedIpRange to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setAllocatedIpRangeBytes(ByteString value)
public CloneContext.Builder setAllocatedIpRangeBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for allocatedIpRange to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setBinLogCoordinates(BinLogCoordinates value)
public CloneContext.Builder setBinLogCoordinates(BinLogCoordinates value)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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
BinLogCoordinates |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
setBinLogCoordinates(BinLogCoordinates.Builder builderForValue)
public CloneContext.Builder setBinLogCoordinates(BinLogCoordinates.Builder builderForValue)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.v1.BinLogCoordinates bin_log_coordinates = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BinLogCoordinates.Builder |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
setDatabaseNames(int index, String value)
public CloneContext.Builder setDatabaseNames(int index, String value)(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
repeated string database_names = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe databaseNames to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setDestinationInstanceName(String value)
public CloneContext.Builder setDestinationInstanceName(String value)Required. Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationInstanceName to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setDestinationInstanceNameBytes(ByteString value)
public CloneContext.Builder setDestinationInstanceNameBytes(ByteString value)Required. Name of the Cloud SQL instance to be created as a clone.
string destination_instance_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationInstanceName to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setDestinationNetwork(String value)
public CloneContext.Builder setDestinationNetwork(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationNetwork to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setDestinationNetworkBytes(ByteString value)
public CloneContext.Builder setDestinationNetworkBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationNetwork to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setDestinationProject(String value)
public CloneContext.Builder setDestinationProject(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationProject to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setDestinationProjectBytes(ByteString value)
public CloneContext.Builder setDestinationProjectBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationProject to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setKind(String value)
public CloneContext.Builder setKind(String value) This is always sql#cloneContext.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public CloneContext.Builder setKindBytes(ByteString value) This is always sql#cloneContext.
string kind = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setPitrTimestampMs(long value)
public CloneContext.Builder setPitrTimestampMs(long value)Reserved for future use.
int64 pitr_timestamp_ms = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe pitrTimestampMs to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setPointInTime(Timestamp value)
public CloneContext.Builder setPointInTime(Timestamp value)Timestamp, if specified, identifies the time to which the source instance is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
setPointInTime(Timestamp.Builder builderForValue)
public CloneContext.Builder setPointInTime(Timestamp.Builder builderForValue)Timestamp, if specified, identifies the time to which the source instance is cloned.
.google.protobuf.Timestamp point_in_time = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
setPreferredSecondaryZone(String value)
public CloneContext.Builder setPreferredSecondaryZone(String value)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. This field applies to all DB types.
optional string preferred_secondary_zone = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe preferredSecondaryZone to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setPreferredSecondaryZoneBytes(ByteString value)
public CloneContext.Builder setPreferredSecondaryZoneBytes(ByteString value)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. This field applies to all DB types.
optional string preferred_secondary_zone = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for preferredSecondaryZone to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setPreferredZone(String value)
public CloneContext.Builder setPreferredZone(String value)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. This field applies to all DB types.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe preferredZone to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setPreferredZoneBytes(ByteString value)
public CloneContext.Builder setPreferredZoneBytes(ByteString value)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. This field applies to all DB types.
optional string preferred_zone = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for preferredZone to set. |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
This builder for chaining. |
setSourceInstanceDeletionTime(Timestamp value)
public CloneContext.Builder setSourceInstanceDeletionTime(Timestamp value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|
setSourceInstanceDeletionTime(Timestamp.Builder builderForValue)
public CloneContext.Builder setSourceInstanceDeletionTime(Timestamp.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CloneContext.Builder |
|