Class ImportedDataInfo.Builder (2.8.0)

public static final class ImportedDataInfo.Builder extends GeneratedMessageV3.Builder<ImportedDataInfo.Builder> implements ImportedDataInfoOrBuilder

Describes data which should be imported.

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

Static Methods

getDescriptor()

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

Methods

addAllTableDefs(Iterable<? extends ImportedDataInfo.TableDefinition> values)

public ImportedDataInfo.Builder addAllTableDefs(Iterable<? extends ImportedDataInfo.TableDefinition> values)

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
valuesIterable<? extends com.google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition>
Returns
TypeDescription
ImportedDataInfo.Builder

addAllUserDefinedFunctions(Iterable<String> values)

public ImportedDataInfo.Builder addAllUserDefinedFunctions(Iterable<String> values)

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

repeated string user_defined_functions = 4;

Parameter
NameDescription
valuesIterable<String>
Returns
TypeDescription
ImportedDataInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportedDataInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

addTableDefs(ImportedDataInfo.TableDefinition value)

public ImportedDataInfo.Builder addTableDefs(ImportedDataInfo.TableDefinition value)

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
valueImportedDataInfo.TableDefinition
Returns
TypeDescription
ImportedDataInfo.Builder

addTableDefs(ImportedDataInfo.TableDefinition.Builder builderForValue)

public ImportedDataInfo.Builder addTableDefs(ImportedDataInfo.TableDefinition.Builder builderForValue)

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
builderForValueImportedDataInfo.TableDefinition.Builder
Returns
TypeDescription
ImportedDataInfo.Builder

addTableDefs(int index, ImportedDataInfo.TableDefinition value)

public ImportedDataInfo.Builder addTableDefs(int index, ImportedDataInfo.TableDefinition value)

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;

Parameters
NameDescription
indexint
valueImportedDataInfo.TableDefinition
Returns
TypeDescription
ImportedDataInfo.Builder

addTableDefs(int index, ImportedDataInfo.TableDefinition.Builder builderForValue)

public ImportedDataInfo.Builder addTableDefs(int index, ImportedDataInfo.TableDefinition.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueImportedDataInfo.TableDefinition.Builder
Returns
TypeDescription
ImportedDataInfo.Builder

addTableDefsBuilder()

public ImportedDataInfo.TableDefinition.Builder addTableDefsBuilder()

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
ImportedDataInfo.TableDefinition.Builder

addTableDefsBuilder(int index)

public ImportedDataInfo.TableDefinition.Builder addTableDefsBuilder(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.Builder

addUserDefinedFunctions(String value)

public ImportedDataInfo.Builder addUserDefinedFunctions(String value)

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

repeated string user_defined_functions = 4;

Parameter
NameDescription
valueString
Returns
TypeDescription
ImportedDataInfo.Builder

addUserDefinedFunctionsBytes(ByteString value)

public ImportedDataInfo.Builder addUserDefinedFunctionsBytes(ByteString value)

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

repeated string user_defined_functions = 4;

Parameter
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.Builder

build()

public ImportedDataInfo build()
Returns
TypeDescription
ImportedDataInfo

buildPartial()

public ImportedDataInfo buildPartial()
Returns
TypeDescription
ImportedDataInfo

clear()

public ImportedDataInfo.Builder clear()
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

clearDestinationTableDescription()

public ImportedDataInfo.Builder clearDestinationTableDescription()

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
ImportedDataInfo.Builder

clearDestinationTableId()

public ImportedDataInfo.Builder clearDestinationTableId()

Table where results should be written.

string destination_table_id = 2;

Returns
TypeDescription
ImportedDataInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public ImportedDataInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportedDataInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

clearSql()

public ImportedDataInfo.Builder clearSql()

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
ImportedDataInfo.Builder

clearTableDefs()

public ImportedDataInfo.Builder clearTableDefs()

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
ImportedDataInfo.Builder

clearUserDefinedFunctions()

public ImportedDataInfo.Builder clearUserDefinedFunctions()

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

repeated string user_defined_functions = 4;

Returns
TypeDescription
ImportedDataInfo.Builder

clearWriteDisposition()

public ImportedDataInfo.Builder clearWriteDisposition()

Specifies the action if the destination table already exists.

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

Returns
TypeDescription
ImportedDataInfo.Builder

clone()

public ImportedDataInfo.Builder clone()
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

getDefaultInstanceForType()

public ImportedDataInfo getDefaultInstanceForType()
Returns
TypeDescription
ImportedDataInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

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

getTableDefsBuilder(int index)

public ImportedDataInfo.TableDefinition.Builder getTableDefsBuilder(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.Builder

getTableDefsBuilderList()

public List<ImportedDataInfo.TableDefinition.Builder> getTableDefsBuilderList()

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<Builder>

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>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportedDataInfo other)

public ImportedDataInfo.Builder mergeFrom(ImportedDataInfo other)
Parameter
NameDescription
otherImportedDataInfo
Returns
TypeDescription
ImportedDataInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportedDataInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportedDataInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportedDataInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

removeTableDefs(int index)

public ImportedDataInfo.Builder removeTableDefs(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.Builder

setDestinationTableDescription(String value)

public ImportedDataInfo.Builder setDestinationTableDescription(String value)

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

string destination_table_description = 10;

Parameter
NameDescription
valueString
Returns
TypeDescription
ImportedDataInfo.Builder

setDestinationTableDescriptionBytes(ByteString value)

public ImportedDataInfo.Builder setDestinationTableDescriptionBytes(ByteString value)

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

string destination_table_description = 10;

Parameter
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.Builder

setDestinationTableId(String value)

public ImportedDataInfo.Builder setDestinationTableId(String value)

Table where results should be written.

string destination_table_id = 2;

Parameter
NameDescription
valueString
Returns
TypeDescription
ImportedDataInfo.Builder

setDestinationTableIdBytes(ByteString value)

public ImportedDataInfo.Builder setDestinationTableIdBytes(ByteString value)

Table where results should be written.

string destination_table_id = 2;

Parameter
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImportedDataInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportedDataInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

setSql(String value)

public ImportedDataInfo.Builder setSql(String value)

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;

Parameter
NameDescription
valueString
Returns
TypeDescription
ImportedDataInfo.Builder

setSqlBytes(ByteString value)

public ImportedDataInfo.Builder setSqlBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString
Returns
TypeDescription
ImportedDataInfo.Builder

setTableDefs(int index, ImportedDataInfo.TableDefinition value)

public ImportedDataInfo.Builder setTableDefs(int index, ImportedDataInfo.TableDefinition value)

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;

Parameters
NameDescription
indexint
valueImportedDataInfo.TableDefinition
Returns
TypeDescription
ImportedDataInfo.Builder

setTableDefs(int index, ImportedDataInfo.TableDefinition.Builder builderForValue)

public ImportedDataInfo.Builder setTableDefs(int index, ImportedDataInfo.TableDefinition.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueImportedDataInfo.TableDefinition.Builder
Returns
TypeDescription
ImportedDataInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportedDataInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportedDataInfo.Builder
Overrides

setUserDefinedFunctions(int index, String value)

public ImportedDataInfo.Builder setUserDefinedFunctions(int index, String value)

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

repeated string user_defined_functions = 4;

Parameters
NameDescription
indexint
valueString
Returns
TypeDescription
ImportedDataInfo.Builder

setWriteDisposition(WriteDisposition value)

public ImportedDataInfo.Builder setWriteDisposition(WriteDisposition value)

Specifies the action if the destination table already exists.

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

Parameter
NameDescription
valueWriteDisposition
Returns
TypeDescription
ImportedDataInfo.Builder

setWriteDispositionValue(int value)

public ImportedDataInfo.Builder setWriteDispositionValue(int value)

Specifies the action if the destination table already exists.

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

Parameter
NameDescription
valueint
Returns
TypeDescription
ImportedDataInfo.Builder