Class ImportContext.SqlBakImportOptions (0.1.0)

public static final class ImportContext.SqlBakImportOptions extends GeneratedMessage implements ImportContext.SqlBakImportOptionsOrBuilder

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ImportContext.SqlBakImportOptions

Static Fields

BAK_TYPE_FIELD_NUMBER

public static final int BAK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_OPTIONS_FIELD_NUMBER

public static final int ENCRYPTION_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

NO_RECOVERY_FIELD_NUMBER

public static final int NO_RECOVERY_FIELD_NUMBER
Field Value
Type Description
int

RECOVERY_ONLY_FIELD_NUMBER

public static final int RECOVERY_ONLY_FIELD_NUMBER
Field Value
Type Description
int

STOP_AT_FIELD_NUMBER

public static final int STOP_AT_FIELD_NUMBER
Field Value
Type Description
int

STOP_AT_MARK_FIELD_NUMBER

public static final int STOP_AT_MARK_FIELD_NUMBER
Field Value
Type Description
int

STRIPED_FIELD_NUMBER

public static final int STRIPED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportContext.SqlBakImportOptions getDefaultInstance()
Returns
Type Description
ImportContext.SqlBakImportOptions

getDescriptor()

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

newBuilder()

public static ImportContext.SqlBakImportOptions.Builder newBuilder()
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

newBuilder(ImportContext.SqlBakImportOptions prototype)

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

parseDelimitedFrom(InputStream input)

public static ImportContext.SqlBakImportOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportContext.SqlBakImportOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ImportContext.SqlBakImportOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportContext.SqlBakImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ImportContext.SqlBakImportOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportContext.SqlBakImportOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ImportContext.SqlBakImportOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportContext.SqlBakImportOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ImportContext.SqlBakImportOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportContext.SqlBakImportOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ImportContext.SqlBakImportOptions> parser()
Returns
Type Description
Parser<SqlBakImportOptions>

Methods

equals(Object obj)

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

getBakType()

public BakType getBakType()

Type of the bak content, FULL or DIFF

.google.cloud.sql.v1.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.v1.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

getEncryptionOptions()

public ImportContext.SqlBakImportOptions.EncryptionOptions getEncryptionOptions()

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

Returns
Type Description
ImportContext.SqlBakImportOptions.EncryptionOptions

The encryptionOptions.

getEncryptionOptionsOrBuilder()

public ImportContext.SqlBakImportOptions.EncryptionOptionsOrBuilder getEncryptionOptionsOrBuilder()

.google.cloud.sql.v1.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.

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

getParserForType()

public Parser<ImportContext.SqlBakImportOptions> getParserForType()
Returns
Type Description
Parser<SqlBakImportOptions>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportContext.SqlBakImportOptions.Builder newBuilderForType()
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public ImportContext.SqlBakImportOptions.Builder toBuilder()
Returns
Type Description
ImportContext.SqlBakImportOptions.Builder

writeTo(CodedOutputStream output)

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