Class GenerateKeywordIdeaResponse.Builder

  • All Implemented Interfaces:
    GenerateKeywordIdeaResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    GenerateKeywordIdeaResponse

    public static final class GenerateKeywordIdeaResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordIdeaResponse.Builder>
    implements GenerateKeywordIdeaResponseOrBuilder
     Response message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v10.services.KeywordPlanIdeaService.GenerateKeywordIdeas].
     
    Protobuf type google.ads.googleads.v10.services.GenerateKeywordIdeaResponse
    • 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<GenerateKeywordIdeaResponse.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<GenerateKeywordIdeaResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public GenerateKeywordIdeaResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                    int index,
                                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordIdeaResponse.Builder>
      • addRepeatedField

        public GenerateKeywordIdeaResponse.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordIdeaResponse.Builder>
      • isInitialized

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

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

        public GenerateKeywordIdeaResponse.Builder clearResults()
         Results of generating keyword ideas.
         
        repeated .google.ads.googleads.v10.services.GenerateKeywordIdeaResult results = 1;
      • removeResults

        public GenerateKeywordIdeaResponse.Builder removeResults​(int index)
         Results of generating keyword ideas.
         
        repeated .google.ads.googleads.v10.services.GenerateKeywordIdeaResult results = 1;
      • getResultsBuilder

        public GenerateKeywordIdeaResult.Builder getResultsBuilder​(int index)
         Results of generating keyword ideas.
         
        repeated .google.ads.googleads.v10.services.GenerateKeywordIdeaResult results = 1;
      • addResultsBuilder

        public GenerateKeywordIdeaResult.Builder addResultsBuilder()
         Results of generating keyword ideas.
         
        repeated .google.ads.googleads.v10.services.GenerateKeywordIdeaResult results = 1;
      • addResultsBuilder

        public GenerateKeywordIdeaResult.Builder addResultsBuilder​(int index)
         Results of generating keyword ideas.
         
        repeated .google.ads.googleads.v10.services.GenerateKeywordIdeaResult results = 1;
      • getResultsBuilderList

        public java.util.List<GenerateKeywordIdeaResult.Builder> getResultsBuilderList()
         Results of generating keyword ideas.
         
        repeated .google.ads.googleads.v10.services.GenerateKeywordIdeaResult results = 1;
      • hasAggregateMetricResults

        public boolean hasAggregateMetricResults()
         The aggregate metrics for all keyword ideas.
         
        .google.ads.googleads.v10.common.KeywordPlanAggregateMetricResults aggregate_metric_results = 4;
        Specified by:
        hasAggregateMetricResults in interface GenerateKeywordIdeaResponseOrBuilder
        Returns:
        Whether the aggregateMetricResults field is set.
      • clearAggregateMetricResults

        public GenerateKeywordIdeaResponse.Builder clearAggregateMetricResults()
         The aggregate metrics for all keyword ideas.
         
        .google.ads.googleads.v10.common.KeywordPlanAggregateMetricResults aggregate_metric_results = 4;
      • getAggregateMetricResultsBuilder

        public KeywordPlanAggregateMetricResults.Builder getAggregateMetricResultsBuilder()
         The aggregate metrics for all keyword ideas.
         
        .google.ads.googleads.v10.common.KeywordPlanAggregateMetricResults aggregate_metric_results = 4;
      • getNextPageToken

        public java.lang.String getNextPageToken()
         Pagination token used to retrieve the next page of results.
         Pass the content of this string as the `page_token` attribute of
         the next request.
         `next_page_token` is not returned for the last page.
         
        string next_page_token = 2;
        Specified by:
        getNextPageToken in interface GenerateKeywordIdeaResponseOrBuilder
        Returns:
        The nextPageToken.
      • getNextPageTokenBytes

        public com.google.protobuf.ByteString getNextPageTokenBytes()
         Pagination token used to retrieve the next page of results.
         Pass the content of this string as the `page_token` attribute of
         the next request.
         `next_page_token` is not returned for the last page.
         
        string next_page_token = 2;
        Specified by:
        getNextPageTokenBytes in interface GenerateKeywordIdeaResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public GenerateKeywordIdeaResponse.Builder setNextPageToken​(java.lang.String value)
         Pagination token used to retrieve the next page of results.
         Pass the content of this string as the `page_token` attribute of
         the next request.
         `next_page_token` is not returned for the last page.
         
        string next_page_token = 2;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public GenerateKeywordIdeaResponse.Builder clearNextPageToken()
         Pagination token used to retrieve the next page of results.
         Pass the content of this string as the `page_token` attribute of
         the next request.
         `next_page_token` is not returned for the last page.
         
        string next_page_token = 2;
        Returns:
        This builder for chaining.
      • setNextPageTokenBytes

        public GenerateKeywordIdeaResponse.Builder setNextPageTokenBytes​(com.google.protobuf.ByteString value)
         Pagination token used to retrieve the next page of results.
         Pass the content of this string as the `page_token` attribute of
         the next request.
         `next_page_token` is not returned for the last page.
         
        string next_page_token = 2;
        Parameters:
        value - The bytes for nextPageToken to set.
        Returns:
        This builder for chaining.
      • setTotalSize

        public GenerateKeywordIdeaResponse.Builder setTotalSize​(long value)
         Total number of results available.
         
        int64 total_size = 3;
        Parameters:
        value - The totalSize to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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