Class ImportedDataInfo (2.24.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
TypeDescription
int

DESTINATION_TABLE_ID_FIELD_NUMBER

public static final int DESTINATION_TABLE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

SQL_FIELD_NUMBER

public static final int SQL_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_DEFS_FIELD_NUMBER

public static final int TABLE_DEFS_FIELD_NUMBER
Field Value
TypeDescription
int

USER_DEFINED_FUNCTIONS_FIELD_NUMBER

public static final int USER_DEFINED_FUNCTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

WRITE_DISPOSITION_FIELD_NUMBER

public static final int WRITE_DISPOSITION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImportedDataInfo getDefaultInstance()
Returns
TypeDescription
ImportedDataInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ImportedDataInfo.Builder newBuilder()
Returns
TypeDescription
ImportedDataInfo.Builder

newBuilder(ImportedDataInfo prototype)

public static ImportedDataInfo.Builder newBuilder(ImportedDataInfo prototype)
Parameter
NameDescription
prototypeImportedDataInfo
Returns
TypeDescription
ImportedDataInfo.Builder

parseDelimitedFrom(InputStream input)

public static ImportedDataInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImportedDataInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportedDataInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportedDataInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImportedDataInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImportedDataInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportedDataInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ImportedDataInfo> parser()
Returns
TypeDescription
Parser<ImportedDataInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ImportedDataInfo getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

getDestinationTableId()

public String getDestinationTableId()

Table where results should be written.

string destination_table_id = 2;

Returns
TypeDescription
String

getDestinationTableIdBytes()

public ByteString getDestinationTableIdBytes()

Table where results should be written.

string destination_table_id = 2;

Returns
TypeDescription
ByteString

getParserForType()

public Parser<ImportedDataInfo> getParserForType()
Returns
TypeDescription
Parser<ImportedDataInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinitionOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

getWriteDisposition()

public WriteDisposition getWriteDisposition()

Specifies the action if the destination table already exists.

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

Returns
TypeDescription
WriteDisposition

getWriteDispositionValue()

public int getWriteDispositionValue()

Specifies the action if the destination table already exists.

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

Returns
TypeDescription
int

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ImportedDataInfo.Builder newBuilderForType()
Returns
TypeDescription
ImportedDataInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportedDataInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

toBuilder()

public ImportedDataInfo.Builder toBuilder()
Returns
TypeDescription
ImportedDataInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException