Class BigQueryConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.BigQueryConfig
All Implemented Interfaces:
BigQueryConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class BigQueryConfig extends com.google.protobuf.GeneratedMessage implements BigQueryConfigOrBuilder
 Message of configurations for BigQuery processor.
 
Protobuf type google.cloud.visionai.v1.BigQueryConfig
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Message of configurations for BigQuery processor.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Data Schema By default, Vision AI Application will try to write annotations to the target BigQuery table using the following schema: ingestion_time: TIMESTAMP, the ingestion time of the original data.
    boolean
     
    Deprecated.
    int
    Data Schema By default, Vision AI Application will try to write annotations to the target BigQuery table using the following schema: ingestion_time: TIMESTAMP, the ingestion time of the original data.
    Data Schema By default, Vision AI Application will try to write annotations to the target BigQuery table using the following schema: ingestion_time: TIMESTAMP, the ingestion time of the original data.
    Data Schema By default, Vision AI Application will try to write annotations to the target BigQuery table using the following schema: ingestion_time: TIMESTAMP, the ingestion time of the original data.
    Data Schema By default, Vision AI Application will try to write annotations to the target BigQuery table using the following schema: ingestion_time: TIMESTAMP, the ingestion time of the original data.
    boolean
    If true, App Platform will create the BigQuery DataSet and the BigQuery Table with default schema if the specified table doesn't exist.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Parser<BigQueryConfig>
     
    int
     
    BigQuery table resource for Vision AI Platform to ingest annotations to.
    com.google.protobuf.ByteString
    BigQuery table resource for Vision AI Platform to ingest annotations to.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<BigQueryConfig>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • TABLE_FIELD_NUMBER

      public static final int TABLE_FIELD_NUMBER
      See Also:
    • CLOUD_FUNCTION_MAPPING_FIELD_NUMBER

      public static final int CLOUD_FUNCTION_MAPPING_FIELD_NUMBER
      See Also:
    • CREATE_DEFAULT_TABLE_IF_NOT_EXISTS_FIELD_NUMBER

      public static final int CREATE_DEFAULT_TABLE_IF_NOT_EXISTS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getTable

      public String getTable()
       BigQuery table resource for Vision AI Platform to ingest annotations to.
       
      string table = 1;
      Specified by:
      getTable in interface BigQueryConfigOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       BigQuery table resource for Vision AI Platform to ingest annotations to.
       
      string table = 1;
      Specified by:
      getTableBytes in interface BigQueryConfigOrBuilder
      Returns:
      The bytes for table.
    • getCloudFunctionMappingCount

      public int getCloudFunctionMappingCount()
      Description copied from interface: BigQueryConfigOrBuilder
       Data Schema
       By default, Vision AI Application will try to write annotations to the
       target BigQuery table using the following schema:
      
       ingestion_time: TIMESTAMP, the ingestion time of the original data.
      
       application: STRING, name of the application which produces the annotation.
      
       instance: STRING, Id of the instance which produces the annotation.
      
       node: STRING, name of the application graph node which produces the
       annotation.
      
       annotation: STRING or JSON, the actual annotation protobuf will be
       converted to json string with bytes field as 64 encoded string. It can be
       written to both String or Json type column.
      
       To forward annotation data to an existing BigQuery table, customer needs to
       make sure the compatibility of the schema.
       The map maps application node name to its corresponding cloud function
       endpoint to transform the annotations directly to the
       google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
       proto_rows should be set). If configured, annotations produced by
       corresponding application node will sent to the Cloud Function at first
       before be forwarded to BigQuery.
      
       If the default table schema doesn't fit, customer is able to transform the
       annotation output from Vision AI Application to arbitrary BigQuery table
       schema with CloudFunction.
       * The cloud function will receive AppPlatformCloudFunctionRequest where
       the annotations field will be the json format of Vision AI annotation.
       * The cloud function should return AppPlatformCloudFunctionResponse with
       AppendRowsRequest stored in the annotations field.
       * To drop the annotation, simply clear the annotations field in the
       returned AppPlatformCloudFunctionResponse.
       
      map<string, string> cloud_function_mapping = 2;
      Specified by:
      getCloudFunctionMappingCount in interface BigQueryConfigOrBuilder
    • containsCloudFunctionMapping

      public boolean containsCloudFunctionMapping(String key)
       Data Schema
       By default, Vision AI Application will try to write annotations to the
       target BigQuery table using the following schema:
      
       ingestion_time: TIMESTAMP, the ingestion time of the original data.
      
       application: STRING, name of the application which produces the annotation.
      
       instance: STRING, Id of the instance which produces the annotation.
      
       node: STRING, name of the application graph node which produces the
       annotation.
      
       annotation: STRING or JSON, the actual annotation protobuf will be
       converted to json string with bytes field as 64 encoded string. It can be
       written to both String or Json type column.
      
       To forward annotation data to an existing BigQuery table, customer needs to
       make sure the compatibility of the schema.
       The map maps application node name to its corresponding cloud function
       endpoint to transform the annotations directly to the
       google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
       proto_rows should be set). If configured, annotations produced by
       corresponding application node will sent to the Cloud Function at first
       before be forwarded to BigQuery.
      
       If the default table schema doesn't fit, customer is able to transform the
       annotation output from Vision AI Application to arbitrary BigQuery table
       schema with CloudFunction.
       * The cloud function will receive AppPlatformCloudFunctionRequest where
       the annotations field will be the json format of Vision AI annotation.
       * The cloud function should return AppPlatformCloudFunctionResponse with
       AppendRowsRequest stored in the annotations field.
       * To drop the annotation, simply clear the annotations field in the
       returned AppPlatformCloudFunctionResponse.
       
      map<string, string> cloud_function_mapping = 2;
      Specified by:
      containsCloudFunctionMapping in interface BigQueryConfigOrBuilder
    • getCloudFunctionMapping

      @Deprecated public Map<String,String> getCloudFunctionMapping()
      Deprecated.
      Specified by:
      getCloudFunctionMapping in interface BigQueryConfigOrBuilder
    • getCloudFunctionMappingMap

      public Map<String,String> getCloudFunctionMappingMap()
       Data Schema
       By default, Vision AI Application will try to write annotations to the
       target BigQuery table using the following schema:
      
       ingestion_time: TIMESTAMP, the ingestion time of the original data.
      
       application: STRING, name of the application which produces the annotation.
      
       instance: STRING, Id of the instance which produces the annotation.
      
       node: STRING, name of the application graph node which produces the
       annotation.
      
       annotation: STRING or JSON, the actual annotation protobuf will be
       converted to json string with bytes field as 64 encoded string. It can be
       written to both String or Json type column.
      
       To forward annotation data to an existing BigQuery table, customer needs to
       make sure the compatibility of the schema.
       The map maps application node name to its corresponding cloud function
       endpoint to transform the annotations directly to the
       google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
       proto_rows should be set). If configured, annotations produced by
       corresponding application node will sent to the Cloud Function at first
       before be forwarded to BigQuery.
      
       If the default table schema doesn't fit, customer is able to transform the
       annotation output from Vision AI Application to arbitrary BigQuery table
       schema with CloudFunction.
       * The cloud function will receive AppPlatformCloudFunctionRequest where
       the annotations field will be the json format of Vision AI annotation.
       * The cloud function should return AppPlatformCloudFunctionResponse with
       AppendRowsRequest stored in the annotations field.
       * To drop the annotation, simply clear the annotations field in the
       returned AppPlatformCloudFunctionResponse.
       
      map<string, string> cloud_function_mapping = 2;
      Specified by:
      getCloudFunctionMappingMap in interface BigQueryConfigOrBuilder
    • getCloudFunctionMappingOrDefault

      public String getCloudFunctionMappingOrDefault(String key, String defaultValue)
       Data Schema
       By default, Vision AI Application will try to write annotations to the
       target BigQuery table using the following schema:
      
       ingestion_time: TIMESTAMP, the ingestion time of the original data.
      
       application: STRING, name of the application which produces the annotation.
      
       instance: STRING, Id of the instance which produces the annotation.
      
       node: STRING, name of the application graph node which produces the
       annotation.
      
       annotation: STRING or JSON, the actual annotation protobuf will be
       converted to json string with bytes field as 64 encoded string. It can be
       written to both String or Json type column.
      
       To forward annotation data to an existing BigQuery table, customer needs to
       make sure the compatibility of the schema.
       The map maps application node name to its corresponding cloud function
       endpoint to transform the annotations directly to the
       google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
       proto_rows should be set). If configured, annotations produced by
       corresponding application node will sent to the Cloud Function at first
       before be forwarded to BigQuery.
      
       If the default table schema doesn't fit, customer is able to transform the
       annotation output from Vision AI Application to arbitrary BigQuery table
       schema with CloudFunction.
       * The cloud function will receive AppPlatformCloudFunctionRequest where
       the annotations field will be the json format of Vision AI annotation.
       * The cloud function should return AppPlatformCloudFunctionResponse with
       AppendRowsRequest stored in the annotations field.
       * To drop the annotation, simply clear the annotations field in the
       returned AppPlatformCloudFunctionResponse.
       
      map<string, string> cloud_function_mapping = 2;
      Specified by:
      getCloudFunctionMappingOrDefault in interface BigQueryConfigOrBuilder
    • getCloudFunctionMappingOrThrow

      public String getCloudFunctionMappingOrThrow(String key)
       Data Schema
       By default, Vision AI Application will try to write annotations to the
       target BigQuery table using the following schema:
      
       ingestion_time: TIMESTAMP, the ingestion time of the original data.
      
       application: STRING, name of the application which produces the annotation.
      
       instance: STRING, Id of the instance which produces the annotation.
      
       node: STRING, name of the application graph node which produces the
       annotation.
      
       annotation: STRING or JSON, the actual annotation protobuf will be
       converted to json string with bytes field as 64 encoded string. It can be
       written to both String or Json type column.
      
       To forward annotation data to an existing BigQuery table, customer needs to
       make sure the compatibility of the schema.
       The map maps application node name to its corresponding cloud function
       endpoint to transform the annotations directly to the
       google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
       proto_rows should be set). If configured, annotations produced by
       corresponding application node will sent to the Cloud Function at first
       before be forwarded to BigQuery.
      
       If the default table schema doesn't fit, customer is able to transform the
       annotation output from Vision AI Application to arbitrary BigQuery table
       schema with CloudFunction.
       * The cloud function will receive AppPlatformCloudFunctionRequest where
       the annotations field will be the json format of Vision AI annotation.
       * The cloud function should return AppPlatformCloudFunctionResponse with
       AppendRowsRequest stored in the annotations field.
       * To drop the annotation, simply clear the annotations field in the
       returned AppPlatformCloudFunctionResponse.
       
      map<string, string> cloud_function_mapping = 2;
      Specified by:
      getCloudFunctionMappingOrThrow in interface BigQueryConfigOrBuilder
    • getCreateDefaultTableIfNotExists

      public boolean getCreateDefaultTableIfNotExists()
       If true, App Platform will create the BigQuery DataSet and the
       BigQuery Table with default schema if the specified table doesn't exist.
       This doesn't work if any cloud function customized schema is specified
       since the system doesn't know your desired schema.
       JSON column will be used in the default table created by App Platform.
       
      bool create_default_table_if_not_exists = 3;
      Specified by:
      getCreateDefaultTableIfNotExists in interface BigQueryConfigOrBuilder
      Returns:
      The createDefaultTableIfNotExists.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 BigQueryConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static BigQueryConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BigQueryConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BigQueryConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BigQueryConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BigQueryConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static BigQueryConfig.Builder newBuilder()
    • newBuilder

      public static BigQueryConfig.Builder newBuilder(BigQueryConfig prototype)
    • toBuilder

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

      protected BigQueryConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BigQueryConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BigQueryConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<BigQueryConfig> 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.GeneratedMessage
    • getDefaultInstanceForType

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