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

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

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

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

        public GenerateKeywordHistoricalMetricsResult.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<GenerateKeywordHistoricalMetricsResult.Builder>
        Throws:
        java.io.IOException
      • hasText

        public boolean hasText()
         The text of the query associated with one or more keywords.
         Note that we de-dupe your keywords list, eliminating close variants
         before returning the keywords as text. For example, if your request
         originally contained the keywords "car" and "cars", the returned search
         query will only contain "cars". The list of de-duped queries will be
         included in close_variants field.
         
        optional string text = 1;
        Specified by:
        hasText in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Returns:
        Whether the text field is set.
      • getText

        public java.lang.String getText()
         The text of the query associated with one or more keywords.
         Note that we de-dupe your keywords list, eliminating close variants
         before returning the keywords as text. For example, if your request
         originally contained the keywords "car" and "cars", the returned search
         query will only contain "cars". The list of de-duped queries will be
         included in close_variants field.
         
        optional string text = 1;
        Specified by:
        getText in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Returns:
        The text.
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         The text of the query associated with one or more keywords.
         Note that we de-dupe your keywords list, eliminating close variants
         before returning the keywords as text. For example, if your request
         originally contained the keywords "car" and "cars", the returned search
         query will only contain "cars". The list of de-duped queries will be
         included in close_variants field.
         
        optional string text = 1;
        Specified by:
        getTextBytes in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Returns:
        The bytes for text.
      • setText

        public GenerateKeywordHistoricalMetricsResult.Builder setText​(java.lang.String value)
         The text of the query associated with one or more keywords.
         Note that we de-dupe your keywords list, eliminating close variants
         before returning the keywords as text. For example, if your request
         originally contained the keywords "car" and "cars", the returned search
         query will only contain "cars". The list of de-duped queries will be
         included in close_variants field.
         
        optional string text = 1;
        Parameters:
        value - The text to set.
        Returns:
        This builder for chaining.
      • clearText

        public GenerateKeywordHistoricalMetricsResult.Builder clearText()
         The text of the query associated with one or more keywords.
         Note that we de-dupe your keywords list, eliminating close variants
         before returning the keywords as text. For example, if your request
         originally contained the keywords "car" and "cars", the returned search
         query will only contain "cars". The list of de-duped queries will be
         included in close_variants field.
         
        optional string text = 1;
        Returns:
        This builder for chaining.
      • setTextBytes

        public GenerateKeywordHistoricalMetricsResult.Builder setTextBytes​(com.google.protobuf.ByteString value)
         The text of the query associated with one or more keywords.
         Note that we de-dupe your keywords list, eliminating close variants
         before returning the keywords as text. For example, if your request
         originally contained the keywords "car" and "cars", the returned search
         query will only contain "cars". The list of de-duped queries will be
         included in close_variants field.
         
        optional string text = 1;
        Parameters:
        value - The bytes for text to set.
        Returns:
        This builder for chaining.
      • getCloseVariantsList

        public com.google.protobuf.ProtocolStringList getCloseVariantsList()
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Specified by:
        getCloseVariantsList in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Returns:
        A list containing the closeVariants.
      • getCloseVariantsCount

        public int getCloseVariantsCount()
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Specified by:
        getCloseVariantsCount in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Returns:
        The count of closeVariants.
      • getCloseVariants

        public java.lang.String getCloseVariants​(int index)
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Specified by:
        getCloseVariants in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The closeVariants at the given index.
      • getCloseVariantsBytes

        public com.google.protobuf.ByteString getCloseVariantsBytes​(int index)
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Specified by:
        getCloseVariantsBytes in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the closeVariants at the given index.
      • setCloseVariants

        public GenerateKeywordHistoricalMetricsResult.Builder setCloseVariants​(int index,
                                                                               java.lang.String value)
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Parameters:
        index - The index to set the value at.
        value - The closeVariants to set.
        Returns:
        This builder for chaining.
      • addCloseVariants

        public GenerateKeywordHistoricalMetricsResult.Builder addCloseVariants​(java.lang.String value)
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Parameters:
        value - The closeVariants to add.
        Returns:
        This builder for chaining.
      • addAllCloseVariants

        public GenerateKeywordHistoricalMetricsResult.Builder addAllCloseVariants​(java.lang.Iterable<java.lang.String> values)
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Parameters:
        values - The closeVariants to add.
        Returns:
        This builder for chaining.
      • clearCloseVariants

        public GenerateKeywordHistoricalMetricsResult.Builder clearCloseVariants()
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Returns:
        This builder for chaining.
      • addCloseVariantsBytes

        public GenerateKeywordHistoricalMetricsResult.Builder addCloseVariantsBytes​(com.google.protobuf.ByteString value)
         The list of close variants from the requested keywords whose stats
         are combined into this GenerateKeywordHistoricalMetricsResult.
         
        repeated string close_variants = 3;
        Parameters:
        value - The bytes of the closeVariants to add.
        Returns:
        This builder for chaining.
      • hasKeywordMetrics

        public boolean hasKeywordMetrics()
         The historical metrics for text and its close variants
         
        .google.ads.googleads.v14.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
        Specified by:
        hasKeywordMetrics in interface GenerateKeywordHistoricalMetricsResultOrBuilder
        Returns:
        Whether the keywordMetrics field is set.
      • clearKeywordMetrics

        public GenerateKeywordHistoricalMetricsResult.Builder clearKeywordMetrics()
         The historical metrics for text and its close variants
         
        .google.ads.googleads.v14.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
      • getKeywordMetricsBuilder

        public KeywordPlanHistoricalMetrics.Builder getKeywordMetricsBuilder()
         The historical metrics for text and its close variants
         
        .google.ads.googleads.v14.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;