Class ImportedDataInfo.Builder

  • All Implemented Interfaces:
    ImportedDataInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ImportedDataInfo

    public static final class ImportedDataInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
    implements ImportedDataInfoOrBuilder
     Describes data which should be imported.
     
    Protobuf type google.cloud.bigquery.datatransfer.v1.ImportedDataInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • clear

        public ImportedDataInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • getDefaultInstanceForType

        public ImportedDataInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ImportedDataInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ImportedDataInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ImportedDataInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • setField

        public ImportedDataInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • clearField

        public ImportedDataInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • clearOneof

        public ImportedDataInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • setRepeatedField

        public ImportedDataInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • addRepeatedField

        public ImportedDataInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • mergeFrom

        public ImportedDataInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportedDataInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • mergeFrom

        public ImportedDataInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportedDataInfo.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getSql in interface ImportedDataInfoOrBuilder
      • getSqlBytes

        public com.google.protobuf.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;
        Specified by:
        getSqlBytes in interface ImportedDataInfoOrBuilder
      • setSql

        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;
      • 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;
      • setSqlBytes

        public ImportedDataInfo.Builder setSqlBytes​(com.google.protobuf.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;
      • setDestinationTableId

        public ImportedDataInfo.Builder setDestinationTableId​(String value)
         Table where results should be written.
         
        string destination_table_id = 2;
      • clearDestinationTableId

        public ImportedDataInfo.Builder clearDestinationTableId()
         Table where results should be written.
         
        string destination_table_id = 2;
      • setDestinationTableIdBytes

        public ImportedDataInfo.Builder setDestinationTableIdBytes​(com.google.protobuf.ByteString value)
         Table where results should be written.
         
        string destination_table_id = 2;
      • 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;
        Specified by:
        getDestinationTableDescription in interface ImportedDataInfoOrBuilder
      • getDestinationTableDescriptionBytes

        public com.google.protobuf.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;
        Specified by:
        getDestinationTableDescriptionBytes in interface ImportedDataInfoOrBuilder
      • setDestinationTableDescription

        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;
      • 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;
      • setDestinationTableDescriptionBytes

        public ImportedDataInfo.Builder setDestinationTableDescriptionBytes​(com.google.protobuf.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;
      • 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;
        Specified by:
        getTableDefsList in interface ImportedDataInfoOrBuilder
      • 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;
        Specified by:
        getTableDefsCount in interface ImportedDataInfoOrBuilder
      • getTableDefs

        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;
        Specified by:
        getTableDefs in interface ImportedDataInfoOrBuilder
      • setTableDefs

        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;
      • setTableDefs

        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;
      • addTableDefs

        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;
      • addTableDefs

        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;
      • addTableDefs

        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;
      • addTableDefs

        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;
      • addAllTableDefs

        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;
      • 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;
      • removeTableDefs

        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;
      • getTableDefsBuilder

        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;
      • getTableDefsOrBuilder

        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;
        Specified by:
        getTableDefsOrBuilder in interface ImportedDataInfoOrBuilder
      • 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;
        Specified by:
        getTableDefsOrBuilderList in interface ImportedDataInfoOrBuilder
      • 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;
      • addTableDefsBuilder

        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;
      • 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;
      • getUserDefinedFunctionsList

        public com.google.protobuf.ProtocolStringList getUserDefinedFunctionsList()
         Inline code for User-defined function resources.
         Ignored when "sql" parameter is empty.
         
        repeated string user_defined_functions = 4;
        Specified by:
        getUserDefinedFunctionsList in interface ImportedDataInfoOrBuilder
      • getUserDefinedFunctionsCount

        public int getUserDefinedFunctionsCount()
         Inline code for User-defined function resources.
         Ignored when "sql" parameter is empty.
         
        repeated string user_defined_functions = 4;
        Specified by:
        getUserDefinedFunctionsCount in interface ImportedDataInfoOrBuilder
      • getUserDefinedFunctions

        public String getUserDefinedFunctions​(int index)
         Inline code for User-defined function resources.
         Ignored when "sql" parameter is empty.
         
        repeated string user_defined_functions = 4;
        Specified by:
        getUserDefinedFunctions in interface ImportedDataInfoOrBuilder
      • getUserDefinedFunctionsBytes

        public com.google.protobuf.ByteString getUserDefinedFunctionsBytes​(int index)
         Inline code for User-defined function resources.
         Ignored when "sql" parameter is empty.
         
        repeated string user_defined_functions = 4;
        Specified by:
        getUserDefinedFunctionsBytes in interface ImportedDataInfoOrBuilder
      • setUserDefinedFunctions

        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;
      • addUserDefinedFunctions

        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;
      • addAllUserDefinedFunctions

        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;
      • clearUserDefinedFunctions

        public ImportedDataInfo.Builder clearUserDefinedFunctions()
         Inline code for User-defined function resources.
         Ignored when "sql" parameter is empty.
         
        repeated string user_defined_functions = 4;
      • addUserDefinedFunctionsBytes

        public ImportedDataInfo.Builder addUserDefinedFunctionsBytes​(com.google.protobuf.ByteString value)
         Inline code for User-defined function resources.
         Ignored when "sql" parameter is empty.
         
        repeated string user_defined_functions = 4;
      • getWriteDispositionValue

        public int getWriteDispositionValue()
         Specifies the action if the destination table already exists.
         
        .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
        Specified by:
        getWriteDispositionValue in interface ImportedDataInfoOrBuilder
      • setWriteDispositionValue

        public ImportedDataInfo.Builder setWriteDispositionValue​(int value)
         Specifies the action if the destination table already exists.
         
        .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
      • setWriteDisposition

        public ImportedDataInfo.Builder setWriteDisposition​(WriteDisposition value)
         Specifies the action if the destination table already exists.
         
        .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
      • clearWriteDisposition

        public ImportedDataInfo.Builder clearWriteDisposition()
         Specifies the action if the destination table already exists.
         
        .google.cloud.bigquery.datatransfer.v1.WriteDisposition write_disposition = 6;
      • setUnknownFields

        public final ImportedDataInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>
      • mergeUnknownFields

        public final ImportedDataInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ImportedDataInfo.Builder>