Class BigQueryOptions.Builder

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

    public static final class BigQueryOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BigQueryOptions.Builder>
    implements BigQueryOptionsOrBuilder
     Options that change functionality of a sink exporting data to BigQuery.
     
    Protobuf type google.logging.v2.BigQueryOptions
    • 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<BigQueryOptions.Builder>
      • clear

        public BigQueryOptions.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<BigQueryOptions.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<BigQueryOptions.Builder>
      • getDefaultInstanceForType

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

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

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

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • setField

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • clearField

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • clearOneof

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • setRepeatedField

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • addRepeatedField

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • mergeFrom

        public BigQueryOptions.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<BigQueryOptions.Builder>
      • isInitialized

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

        public BigQueryOptions.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<BigQueryOptions.Builder>
        Throws:
        IOException
      • getUsePartitionedTables

        public boolean getUsePartitionedTables()
         Optional. Whether to use [BigQuery's partition
         tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
         default, Cloud Logging creates dated tables based on the log entries'
         timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
         is no longer present and [special query
         syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
         has to be used instead. In both cases, tables are sharded based on UTC
         timezone.
         
        bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUsePartitionedTables in interface BigQueryOptionsOrBuilder
        Returns:
        The usePartitionedTables.
      • setUsePartitionedTables

        public BigQueryOptions.Builder setUsePartitionedTables​(boolean value)
         Optional. Whether to use [BigQuery's partition
         tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
         default, Cloud Logging creates dated tables based on the log entries'
         timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
         is no longer present and [special query
         syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
         has to be used instead. In both cases, tables are sharded based on UTC
         timezone.
         
        bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The usePartitionedTables to set.
        Returns:
        This builder for chaining.
      • clearUsePartitionedTables

        public BigQueryOptions.Builder clearUsePartitionedTables()
         Optional. Whether to use [BigQuery's partition
         tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
         default, Cloud Logging creates dated tables based on the log entries'
         timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
         is no longer present and [special query
         syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
         has to be used instead. In both cases, tables are sharded based on UTC
         timezone.
         
        bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getUsesTimestampColumnPartitioning

        public boolean getUsesTimestampColumnPartitioning()
         Output only. True if new timestamp column based partitioning is in use,
         false if legacy ingestion-time partitioning is in use.
        
         All new sinks will have this field set true and will use timestamp column
         based partitioning. If use_partitioned_tables is false, this value has no
         meaning and will be false. Legacy sinks using partitioned tables will have
         this field set to false.
         
        bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUsesTimestampColumnPartitioning in interface BigQueryOptionsOrBuilder
        Returns:
        The usesTimestampColumnPartitioning.
      • setUsesTimestampColumnPartitioning

        public BigQueryOptions.Builder setUsesTimestampColumnPartitioning​(boolean value)
         Output only. True if new timestamp column based partitioning is in use,
         false if legacy ingestion-time partitioning is in use.
        
         All new sinks will have this field set true and will use timestamp column
         based partitioning. If use_partitioned_tables is false, this value has no
         meaning and will be false. Legacy sinks using partitioned tables will have
         this field set to false.
         
        bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The usesTimestampColumnPartitioning to set.
        Returns:
        This builder for chaining.
      • clearUsesTimestampColumnPartitioning

        public BigQueryOptions.Builder clearUsesTimestampColumnPartitioning()
         Output only. True if new timestamp column based partitioning is in use,
         false if legacy ingestion-time partitioning is in use.
        
         All new sinks will have this field set true and will use timestamp column
         based partitioning. If use_partitioned_tables is false, this value has no
         meaning and will be false. Legacy sinks using partitioned tables will have
         this field set to false.
         
        bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BigQueryOptions.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<BigQueryOptions.Builder>
      • mergeUnknownFields

        public final BigQueryOptions.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<BigQueryOptions.Builder>