Class GenerateKeywordHistoricalMetricsRequest.Builder

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

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

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

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

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

        public GenerateKeywordHistoricalMetricsRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                  throws java.io.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<GenerateKeywordHistoricalMetricsRequest.Builder>
        Throws:
        java.io.IOException
      • setCustomerId

        public GenerateKeywordHistoricalMetricsRequest.Builder setCustomerId​(java.lang.String value)
         The ID of the customer with the recommendation.
         
        string customer_id = 1;
        Parameters:
        value - The customerId to set.
        Returns:
        This builder for chaining.
      • setCustomerIdBytes

        public GenerateKeywordHistoricalMetricsRequest.Builder setCustomerIdBytes​(com.google.protobuf.ByteString value)
         The ID of the customer with the recommendation.
         
        string customer_id = 1;
        Parameters:
        value - The bytes for customerId to set.
        Returns:
        This builder for chaining.
      • getKeywordsList

        public com.google.protobuf.ProtocolStringList getKeywordsList()
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Specified by:
        getKeywordsList in interface GenerateKeywordHistoricalMetricsRequestOrBuilder
        Returns:
        A list containing the keywords.
      • getKeywordsCount

        public int getKeywordsCount()
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Specified by:
        getKeywordsCount in interface GenerateKeywordHistoricalMetricsRequestOrBuilder
        Returns:
        The count of keywords.
      • getKeywords

        public java.lang.String getKeywords​(int index)
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Specified by:
        getKeywords in interface GenerateKeywordHistoricalMetricsRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The keywords at the given index.
      • getKeywordsBytes

        public com.google.protobuf.ByteString getKeywordsBytes​(int index)
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Specified by:
        getKeywordsBytes in interface GenerateKeywordHistoricalMetricsRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the keywords at the given index.
      • setKeywords

        public GenerateKeywordHistoricalMetricsRequest.Builder setKeywords​(int index,
                                                                           java.lang.String value)
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Parameters:
        index - The index to set the value at.
        value - The keywords to set.
        Returns:
        This builder for chaining.
      • addKeywords

        public GenerateKeywordHistoricalMetricsRequest.Builder addKeywords​(java.lang.String value)
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Parameters:
        value - The keywords to add.
        Returns:
        This builder for chaining.
      • addAllKeywords

        public GenerateKeywordHistoricalMetricsRequest.Builder addAllKeywords​(java.lang.Iterable<java.lang.String> values)
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Parameters:
        values - The keywords to add.
        Returns:
        This builder for chaining.
      • clearKeywords

        public GenerateKeywordHistoricalMetricsRequest.Builder clearKeywords()
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Returns:
        This builder for chaining.
      • addKeywordsBytes

        public GenerateKeywordHistoricalMetricsRequest.Builder addKeywordsBytes​(com.google.protobuf.ByteString value)
         A list of keywords to get historical metrics.
         Not all inputs will be returned as a result of near-exact deduplication.
         For example, if stats for "car" and "cars" are requested, only "car" will
         be returned.
         A maximum of 10,000 keywords can be used.
         
        repeated string keywords = 2;
        Parameters:
        value - The bytes of the keywords to add.
        Returns:
        This builder for chaining.
      • clearHistoricalMetricsOptions

        public GenerateKeywordHistoricalMetricsRequest.Builder clearHistoricalMetricsOptions()
         The options for historical metrics data.
         
        .google.ads.googleads.v10.common.HistoricalMetricsOptions historical_metrics_options = 3;
      • getHistoricalMetricsOptionsBuilder

        public HistoricalMetricsOptions.Builder getHistoricalMetricsOptionsBuilder()
         The options for historical metrics data.
         
        .google.ads.googleads.v10.common.HistoricalMetricsOptions historical_metrics_options = 3;