Class ImportContext.SqlImportOptions (0.1.0)

public static final class ImportContext.SqlImportOptions extends GeneratedMessage implements ImportContext.SqlImportOptionsOrBuilder

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

Inheritance

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

Static Fields

PARALLEL_FIELD_NUMBER

public static final int PARALLEL_FIELD_NUMBER
Field Value
Type Description
int

POSTGRES_IMPORT_OPTIONS_FIELD_NUMBER

public static final int POSTGRES_IMPORT_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

THREADS_FIELD_NUMBER

public static final int THREADS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(ImportContext.SqlImportOptions prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParallel()

public BoolValue getParallel()

Optional. Whether or not the import should be parallel.

.google.protobuf.BoolValue parallel = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoolValue

The parallel.

getParallelOrBuilder()

public BoolValueOrBuilder getParallelOrBuilder()

Optional. Whether or not the import should be parallel.

.google.protobuf.BoolValue parallel = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoolValueOrBuilder

getParserForType()

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

getPostgresImportOptions()

public ImportContext.SqlImportOptions.PostgresImportOptions getPostgresImportOptions()

Optional. Options for importing from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1.ImportContext.SqlImportOptions.PostgresImportOptions postgres_import_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportContext.SqlImportOptions.PostgresImportOptions

The postgresImportOptions.

getPostgresImportOptionsOrBuilder()

public ImportContext.SqlImportOptions.PostgresImportOptionsOrBuilder getPostgresImportOptionsOrBuilder()

Optional. Options for importing from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1.ImportContext.SqlImportOptions.PostgresImportOptions postgres_import_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportContext.SqlImportOptions.PostgresImportOptionsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThreads()

public Int32Value getThreads()

Optional. The number of threads to use for parallel import.

.google.protobuf.Int32Value threads = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Int32Value

The threads.

getThreadsOrBuilder()

public Int32ValueOrBuilder getThreadsOrBuilder()

Optional. The number of threads to use for parallel import.

.google.protobuf.Int32Value threads = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Int32ValueOrBuilder

hasParallel()

public boolean hasParallel()

Optional. Whether or not the import should be parallel.

.google.protobuf.BoolValue parallel = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the parallel field is set.

hasPostgresImportOptions()

public boolean hasPostgresImportOptions()

Optional. Options for importing from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1.ImportContext.SqlImportOptions.PostgresImportOptions postgres_import_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the postgresImportOptions field is set.

hasThreads()

public boolean hasThreads()

Optional. The number of threads to use for parallel import.

.google.protobuf.Int32Value threads = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the threads 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.SqlImportOptions.Builder newBuilderForType()
Returns
Type Description
ImportContext.SqlImportOptions.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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