Class ImportedDataInfo (2.47.0)

public final class ImportedDataInfo extends GeneratedMessageV3 implements ImportedDataInfoOrBuilder

Describes data which should be imported.

Protobuf type google.cloud.bigquery.datatransfer.v1.ImportedDataInfo

Static Fields

DESTINATION_TABLE_DESCRIPTION_FIELD_NUMBER

public static final int DESTINATION_TABLE_DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_TABLE_ID_FIELD_NUMBER

public static final int DESTINATION_TABLE_ID_FIELD_NUMBER
Field Value
Type Description
int

SQL_FIELD_NUMBER

public static final int SQL_FIELD_NUMBER
Field Value
Type Description
int

TABLE_DEFS_FIELD_NUMBER

public static final int TABLE_DEFS_FIELD_NUMBER
Field Value
Type Description
int

USER_DEFINED_FUNCTIONS_FIELD_NUMBER

public static final int USER_DEFINED_FUNCTIONS_FIELD_NUMBER
Field Value
Type Description
int

WRITE_DISPOSITION_FIELD_NUMBER

public static final int WRITE_DISPOSITION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportedDataInfo getDefaultInstance()
Returns
Type Description
ImportedDataInfo

getDescriptor()

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

newBuilder()

public static ImportedDataInfo.Builder newBuilder()
Returns
Type Description
ImportedDataInfo.Builder

newBuilder(ImportedDataInfo prototype)

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

parseDelimitedFrom(InputStream input)

public static ImportedDataInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportedDataInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ImportedDataInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportedDataInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ImportedDataInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportedDataInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ImportedDataInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportedDataInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ImportedDataInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportedDataInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ImportedDataInfo> parser()
Returns
Type Description
Parser<ImportedDataInfo>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ImportedDataInfo getDefaultInstanceForType()
Returns
Type Description
ImportedDataInfo

getDestinationTableDescription()

public String getDestinationTableDescription()

The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.

string destination_table_description = 10;

Returns
Type Description
String

getDestinationTableDescriptionBytes()

public ByteString getDestinationTableDescriptionBytes()

The description of a destination table. This can be several sentences or paragraphs describing the table contents in detail.

string destination_table_description = 10;

Returns
Type Description
ByteString

getDestinationTableId()

public String getDestinationTableId()

Table where results should be written.

string destination_table_id = 2;

Returns
Type Description
String

getDestinationTableIdBytes()

public ByteString getDestinationTableIdBytes()

Table where results should be written.

string destination_table_id = 2;

Returns
Type Description
ByteString

getParserForType()

public Parser<ImportedDataInfo> getParserForType()
Returns
Type Description
Parser<ImportedDataInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSql()

public String getSql()

SQL query to run. When empty, API checks that there is only one table_def specified and loads this table. Only Standard SQL queries are accepted. Legacy SQL is not allowed.

string sql = 1;

Returns
Type Description
String

getSqlBytes()

public ByteString getSqlBytes()

SQL query to run. When empty, API checks that there is only one table_def specified and loads this table. Only Standard SQL queries are accepted. Legacy SQL is not allowed.

string sql = 1;

Returns
Type Description
ByteString

getTableDefs(int index)

public ImportedDataInfo.TableDefinition getTableDefs(int index)

When used WITHOUT the "sql" parameter, describes the schema of the destination table. When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;

Parameter
Name Description
index int
Returns
Type Description
ImportedDataInfo.TableDefinition

getTableDefsCount()

public int getTableDefsCount()

When used WITHOUT the "sql" parameter, describes the schema of the destination table. When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;

Returns
Type Description
int

getTableDefsList()

public List<ImportedDataInfo.TableDefinition> getTableDefsList()

When used WITHOUT the "sql" parameter, describes the schema of the destination table. When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;

Returns
Type Description
List<TableDefinition>

getTableDefsOrBuilder(int index)

public ImportedDataInfo.TableDefinitionOrBuilder getTableDefsOrBuilder(int index)

When used WITHOUT the "sql" parameter, describes the schema of the destination table. When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;

Parameter
Name Description
index int
Returns
Type Description
ImportedDataInfo.TableDefinitionOrBuilder

getTableDefsOrBuilderList()

public List<? extends ImportedDataInfo.TableDefinitionOrBuilder> getTableDefsOrBuilderList()

When used WITHOUT the "sql" parameter, describes the schema of the destination table. When used WITH the "sql" parameter, describes tables with data stored outside of BigQuery.

repeated .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition table_defs = 3;

Returns
Type Description
List<? extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUserDefinedFunctions(int index)

public String getUserDefinedFunctions(int index)

Inline code for User-defined function resources. Ignored when "sql" parameter is empty.

repeated string user_defined_functions = 4;

Parameter
Name Description
index int
Returns
Type Description
String

getUserDefinedFunctionsBytes(int index)

public ByteString getUserDefinedFunctionsBytes(int index)

Inline code for User-defined function resources. Ignored when "sql" parameter is empty.

repeated string user_defined_functions = 4;

Parameter
Name Description
index int
Returns
Type Description
ByteString

getUserDefinedFunctionsCount()

public int getUserDefinedFunctionsCount()

Inline code for User-defined function resources. Ignored when "sql" parameter is empty.

repeated string user_defined_functions = 4;

Returns
Type Description
int

getUserDefinedFunctionsList()

public ProtocolStringList getUserDefinedFunctionsList()

Inline code for User-defined function resources. Ignored when "sql" parameter is empty.

repeated string user_defined_functions = 4;

Returns
Type Description
ProtocolStringList

getWriteDisposition()

public WriteDisposition getWriteDisposition()

Specifies the action if the destination table already exists.

.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;

Returns
Type Description
WriteDisposition

getWriteDispositionValue()

public int getWriteDispositionValue()

Specifies the action if the destination table already exists.

.google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;

Returns
Type Description
int

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportedDataInfo.Builder newBuilderForType()
Returns
Type Description
ImportedDataInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportedDataInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportedDataInfo.Builder
Overrides

toBuilder()

public ImportedDataInfo.Builder toBuilder()
Returns
Type Description
ImportedDataInfo.Builder

writeTo(CodedOutputStream output)

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