Class SearchGoogleAdsFieldsRequest.Builder

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

    public static final class SearchGoogleAdsFieldsRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsFieldsRequest.Builder>
    implements SearchGoogleAdsFieldsRequestOrBuilder
     Request message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v10.services.GoogleAdsFieldService.SearchGoogleAdsFields].
     
    Protobuf type google.ads.googleads.v10.services.SearchGoogleAdsFieldsRequest
    • 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<SearchGoogleAdsFieldsRequest.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<SearchGoogleAdsFieldsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public java.lang.String getQuery()
         Required. The query string.
         
        string query = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getQuery in interface SearchGoogleAdsFieldsRequestOrBuilder
        Returns:
        The query.
      • getQueryBytes

        public com.google.protobuf.ByteString getQueryBytes()
         Required. The query string.
         
        string query = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getQueryBytes in interface SearchGoogleAdsFieldsRequestOrBuilder
        Returns:
        The bytes for query.
      • setQuery

        public SearchGoogleAdsFieldsRequest.Builder setQuery​(java.lang.String value)
         Required. The query string.
         
        string query = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The query to set.
        Returns:
        This builder for chaining.
      • clearQuery

        public SearchGoogleAdsFieldsRequest.Builder clearQuery()
         Required. The query string.
         
        string query = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setQueryBytes

        public SearchGoogleAdsFieldsRequest.Builder setQueryBytes​(com.google.protobuf.ByteString value)
         Required. The query string.
         
        string query = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for query to set.
        Returns:
        This builder for chaining.
      • getPageToken

        public java.lang.String getPageToken()
         Token of the page to retrieve. If not specified, the first page of
         results will be returned. Use the value obtained from `next_page_token`
         in the previous response in order to request the next page of results.
         
        string page_token = 2;
        Specified by:
        getPageToken in interface SearchGoogleAdsFieldsRequestOrBuilder
        Returns:
        The pageToken.
      • getPageTokenBytes

        public com.google.protobuf.ByteString getPageTokenBytes()
         Token of the page to retrieve. If not specified, the first page of
         results will be returned. Use the value obtained from `next_page_token`
         in the previous response in order to request the next page of results.
         
        string page_token = 2;
        Specified by:
        getPageTokenBytes in interface SearchGoogleAdsFieldsRequestOrBuilder
        Returns:
        The bytes for pageToken.
      • setPageToken

        public SearchGoogleAdsFieldsRequest.Builder setPageToken​(java.lang.String value)
         Token of the page to retrieve. If not specified, the first page of
         results will be returned. Use the value obtained from `next_page_token`
         in the previous response in order to request the next page of results.
         
        string page_token = 2;
        Parameters:
        value - The pageToken to set.
        Returns:
        This builder for chaining.
      • clearPageToken

        public SearchGoogleAdsFieldsRequest.Builder clearPageToken()
         Token of the page to retrieve. If not specified, the first page of
         results will be returned. Use the value obtained from `next_page_token`
         in the previous response in order to request the next page of results.
         
        string page_token = 2;
        Returns:
        This builder for chaining.
      • setPageTokenBytes

        public SearchGoogleAdsFieldsRequest.Builder setPageTokenBytes​(com.google.protobuf.ByteString value)
         Token of the page to retrieve. If not specified, the first page of
         results will be returned. Use the value obtained from `next_page_token`
         in the previous response in order to request the next page of results.
         
        string page_token = 2;
        Parameters:
        value - The bytes for pageToken to set.
        Returns:
        This builder for chaining.
      • getPageSize

        public int getPageSize()
         Number of elements to retrieve in a single page.
         When too large a page is requested, the server may decide to further
         limit the number of returned resources.
         
        int32 page_size = 3;
        Specified by:
        getPageSize in interface SearchGoogleAdsFieldsRequestOrBuilder
        Returns:
        The pageSize.
      • setPageSize

        public SearchGoogleAdsFieldsRequest.Builder setPageSize​(int value)
         Number of elements to retrieve in a single page.
         When too large a page is requested, the server may decide to further
         limit the number of returned resources.
         
        int32 page_size = 3;
        Parameters:
        value - The pageSize to set.
        Returns:
        This builder for chaining.
      • clearPageSize

        public SearchGoogleAdsFieldsRequest.Builder clearPageSize()
         Number of elements to retrieve in a single page.
         When too large a page is requested, the server may decide to further
         limit the number of returned resources.
         
        int32 page_size = 3;
        Returns:
        This builder for chaining.