Class ImportedDataInfo

  • All Implemented Interfaces:
    ImportedDataInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ImportedDataInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements ImportedDataInfoOrBuilder
     Describes data which should be imported.
     
    Protobuf type google.cloud.bigquery.datatransfer.v1.ImportedDataInfo
    See Also:
    Serialized Form
    • Field Detail

      • DESTINATION_TABLE_ID_FIELD_NUMBER

        public static final int DESTINATION_TABLE_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESTINATION_TABLE_DESCRIPTION_FIELD_NUMBER

        public static final int DESTINATION_TABLE_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TABLE_DEFS_FIELD_NUMBER

        public static final int TABLE_DEFS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • USER_DEFINED_FUNCTIONS_FIELD_NUMBER

        public static final int USER_DEFINED_FUNCTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WRITE_DISPOSITION_FIELD_NUMBER

        public static final int WRITE_DISPOSITION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ImportedDataInfo parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportedDataInfo parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportedDataInfo parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportedDataInfo parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportedDataInfo parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportedDataInfo parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportedDataInfo parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected ImportedDataInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ImportedDataInfo> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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