Class ImportContext.SqlBakImportOptions.Builder (0.1.0)

public static final class ImportContext.SqlBakImportOptions.Builder extends GeneratedMessage.Builder<ImportContext.SqlBakImportOptions.Builder> implements ImportContext.SqlBakImportOptionsOrBuilder

Protobuf type google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions

Static Methods

getDescriptor()

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

Methods

build()

public ImportContext.SqlBakImportOptions build()
Returns
Type Description
ImportContext.SqlBakImportOptions

buildPartial()

public ImportContext.SqlBakImportOptions buildPartial()
Returns
Type Description
ImportContext.SqlBakImportOptions

clear()

public ImportContext.SqlBakImportOptions.Builder clear()
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder
Overrides

clearBakType()

public ImportContext.SqlBakImportOptions.Builder clearBakType()

Type of the bak content, FULL or DIFF.

.google.cloud.sql.v1beta4.BakType bak_type = 6;

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

This builder for chaining.

clearEncryptionOptions()

public ImportContext.SqlBakImportOptions.Builder clearEncryptionOptions()

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

clearNoRecovery()

public ImportContext.SqlBakImportOptions.Builder clearNoRecovery()

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

clearRecoveryOnly()

public ImportContext.SqlBakImportOptions.Builder clearRecoveryOnly()

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

clearStopAt()

public ImportContext.SqlBakImportOptions.Builder clearStopAt()

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

clearStopAtMark()

public ImportContext.SqlBakImportOptions.Builder clearStopAtMark()

Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.

string stop_at_mark = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

This builder for chaining.

clearStriped()

public ImportContext.SqlBakImportOptions.Builder clearStriped()

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

getBakType()

public BakType getBakType()

Type of the bak content, FULL or DIFF.

.google.cloud.sql.v1beta4.BakType bak_type = 6;

Returns
Type Description
BakType

The bakType.

getBakTypeValue()

public int getBakTypeValue()

Type of the bak content, FULL or DIFF.

.google.cloud.sql.v1beta4.BakType bak_type = 6;

Returns
Type Description
int

The enum numeric value on the wire for bakType.

getDefaultInstanceForType()

public ImportContext.SqlBakImportOptions getDefaultInstanceForType()
Returns
Type Description
ImportContext.SqlBakImportOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncryptionOptions()

public ImportContext.SqlBakImportOptions.EncryptionOptions getEncryptionOptions()

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Returns
Type Description
ImportContext.SqlBakImportOptions.EncryptionOptions

The encryptionOptions.

getEncryptionOptionsBuilder()

public ImportContext.SqlBakImportOptions.EncryptionOptions.Builder getEncryptionOptionsBuilder()

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Returns
Type Description
ImportContext.SqlBakImportOptions.EncryptionOptions.Builder

getEncryptionOptionsOrBuilder()

public ImportContext.SqlBakImportOptions.EncryptionOptionsOrBuilder getEncryptionOptionsOrBuilder()

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Returns
Type Description
ImportContext.SqlBakImportOptions.EncryptionOptionsOrBuilder

getNoRecovery()

public BoolValue getNoRecovery()

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Returns
Type Description
BoolValue

The noRecovery.

getNoRecoveryBuilder()

public BoolValue.Builder getNoRecoveryBuilder()

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Returns
Type Description
Builder

getNoRecoveryOrBuilder()

public BoolValueOrBuilder getNoRecoveryOrBuilder()

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Returns
Type Description
BoolValueOrBuilder

getRecoveryOnly()

public BoolValue getRecoveryOnly()

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Returns
Type Description
BoolValue

The recoveryOnly.

getRecoveryOnlyBuilder()

public BoolValue.Builder getRecoveryOnlyBuilder()

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Returns
Type Description
Builder

getRecoveryOnlyOrBuilder()

public BoolValueOrBuilder getRecoveryOnlyOrBuilder()

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Returns
Type Description
BoolValueOrBuilder

getStopAt()

public Timestamp getStopAt()

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The stopAt.

getStopAtBuilder()

public Timestamp.Builder getStopAtBuilder()

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getStopAtMark()

public String getStopAtMark()

Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.

string stop_at_mark = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The stopAtMark.

getStopAtMarkBytes()

public ByteString getStopAtMarkBytes()

Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.

string stop_at_mark = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for stopAtMark.

getStopAtOrBuilder()

public TimestampOrBuilder getStopAtOrBuilder()

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getStriped()

public BoolValue getStriped()

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Returns
Type Description
BoolValue

The striped.

getStripedBuilder()

public BoolValue.Builder getStripedBuilder()

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Returns
Type Description
Builder

getStripedOrBuilder()

public BoolValueOrBuilder getStripedOrBuilder()

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Returns
Type Description
BoolValueOrBuilder

hasEncryptionOptions()

public boolean hasEncryptionOptions()

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Returns
Type Description
boolean

Whether the encryptionOptions field is set.

hasNoRecovery()

public boolean hasNoRecovery()

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Returns
Type Description
boolean

Whether the noRecovery field is set.

hasRecoveryOnly()

public boolean hasRecoveryOnly()

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Returns
Type Description
boolean

Whether the recoveryOnly field is set.

hasStopAt()

public boolean hasStopAt()

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the stopAt field is set.

hasStriped()

public boolean hasStriped()

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Returns
Type Description
boolean

Whether the striped field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEncryptionOptions(ImportContext.SqlBakImportOptions.EncryptionOptions value)

public ImportContext.SqlBakImportOptions.Builder mergeEncryptionOptions(ImportContext.SqlBakImportOptions.EncryptionOptions value)

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Parameter
Name Description
value ImportContext.SqlBakImportOptions.EncryptionOptions
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

mergeFrom(ImportContext.SqlBakImportOptions other)

public ImportContext.SqlBakImportOptions.Builder mergeFrom(ImportContext.SqlBakImportOptions other)
Parameter
Name Description
other ImportContext.SqlBakImportOptions
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportContext.SqlBakImportOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportContext.SqlBakImportOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder
Overrides

mergeNoRecovery(BoolValue value)

public ImportContext.SqlBakImportOptions.Builder mergeNoRecovery(BoolValue value)

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Parameter
Name Description
value BoolValue
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

mergeRecoveryOnly(BoolValue value)

public ImportContext.SqlBakImportOptions.Builder mergeRecoveryOnly(BoolValue value)

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Parameter
Name Description
value BoolValue
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

mergeStopAt(Timestamp value)

public ImportContext.SqlBakImportOptions.Builder mergeStopAt(Timestamp value)

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

mergeStriped(BoolValue value)

public ImportContext.SqlBakImportOptions.Builder mergeStriped(BoolValue value)

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setBakType(BakType value)

public ImportContext.SqlBakImportOptions.Builder setBakType(BakType value)

Type of the bak content, FULL or DIFF.

.google.cloud.sql.v1beta4.BakType bak_type = 6;

Parameter
Name Description
value BakType

The bakType to set.

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

This builder for chaining.

setBakTypeValue(int value)

public ImportContext.SqlBakImportOptions.Builder setBakTypeValue(int value)

Type of the bak content, FULL or DIFF.

.google.cloud.sql.v1beta4.BakType bak_type = 6;

Parameter
Name Description
value int

The enum numeric value on the wire for bakType to set.

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

This builder for chaining.

setEncryptionOptions(ImportContext.SqlBakImportOptions.EncryptionOptions value)

public ImportContext.SqlBakImportOptions.Builder setEncryptionOptions(ImportContext.SqlBakImportOptions.EncryptionOptions value)

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Parameter
Name Description
value ImportContext.SqlBakImportOptions.EncryptionOptions
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setEncryptionOptions(ImportContext.SqlBakImportOptions.EncryptionOptions.Builder builderForValue)

public ImportContext.SqlBakImportOptions.Builder setEncryptionOptions(ImportContext.SqlBakImportOptions.EncryptionOptions.Builder builderForValue)

.google.cloud.sql.v1beta4.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Parameter
Name Description
builderForValue ImportContext.SqlBakImportOptions.EncryptionOptions.Builder
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setNoRecovery(BoolValue value)

public ImportContext.SqlBakImportOptions.Builder setNoRecovery(BoolValue value)

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Parameter
Name Description
value BoolValue
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setNoRecovery(BoolValue.Builder builderForValue)

public ImportContext.SqlBakImportOptions.Builder setNoRecovery(BoolValue.Builder builderForValue)

Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue no_recovery = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setRecoveryOnly(BoolValue value)

public ImportContext.SqlBakImportOptions.Builder setRecoveryOnly(BoolValue value)

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Parameter
Name Description
value BoolValue
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setRecoveryOnly(BoolValue.Builder builderForValue)

public ImportContext.SqlBakImportOptions.Builder setRecoveryOnly(BoolValue.Builder builderForValue)

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue recovery_only = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setStopAt(Timestamp value)

public ImportContext.SqlBakImportOptions.Builder setStopAt(Timestamp value)

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setStopAt(Timestamp.Builder builderForValue)

public ImportContext.SqlBakImportOptions.Builder setStopAt(Timestamp.Builder builderForValue)

Optional. The timestamp when the import should stop. This timestamp is in the RFC 3339 format (for example, 2023-10-01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.

.google.protobuf.Timestamp stop_at = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setStopAtMark(String value)

public ImportContext.SqlBakImportOptions.Builder setStopAtMark(String value)

Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.

string stop_at_mark = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The stopAtMark to set.

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

This builder for chaining.

setStopAtMarkBytes(ByteString value)

public ImportContext.SqlBakImportOptions.Builder setStopAtMarkBytes(ByteString value)

Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.

string stop_at_mark = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for stopAtMark to set.

Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

This builder for chaining.

setStriped(BoolValue value)

public ImportContext.SqlBakImportOptions.Builder setStriped(BoolValue value)

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

setStriped(BoolValue.Builder builderForValue)

public ImportContext.SqlBakImportOptions.Builder setStriped(BoolValue.Builder builderForValue)

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

.google.protobuf.BoolValue striped = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder