Class SearchInfo.Builder

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

    public static final class SearchInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SearchInfo.Builder>
    implements SearchInfoOrBuilder
     Detailed search information.
     
    Protobuf type google.cloud.discoveryengine.v1.SearchInfo
    • 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<SearchInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public SearchInfo.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<SearchInfo.Builder>
        Throws:
        IOException
      • getSearchQuery

        public String getSearchQuery()
         The user's search query.
        
         See
         [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
         for definition.
        
         The value must be a UTF-8 encoded string with a length limit of 5,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         At least one of
         [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or
         [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]
         is required for `search` events. Other event types should not set this
         field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string search_query = 1;
        Specified by:
        getSearchQuery in interface SearchInfoOrBuilder
        Returns:
        The searchQuery.
      • getSearchQueryBytes

        public com.google.protobuf.ByteString getSearchQueryBytes()
         The user's search query.
        
         See
         [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
         for definition.
        
         The value must be a UTF-8 encoded string with a length limit of 5,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         At least one of
         [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or
         [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]
         is required for `search` events. Other event types should not set this
         field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string search_query = 1;
        Specified by:
        getSearchQueryBytes in interface SearchInfoOrBuilder
        Returns:
        The bytes for searchQuery.
      • setSearchQuery

        public SearchInfo.Builder setSearchQuery​(String value)
         The user's search query.
        
         See
         [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
         for definition.
        
         The value must be a UTF-8 encoded string with a length limit of 5,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         At least one of
         [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or
         [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]
         is required for `search` events. Other event types should not set this
         field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string search_query = 1;
        Parameters:
        value - The searchQuery to set.
        Returns:
        This builder for chaining.
      • clearSearchQuery

        public SearchInfo.Builder clearSearchQuery()
         The user's search query.
        
         See
         [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
         for definition.
        
         The value must be a UTF-8 encoded string with a length limit of 5,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         At least one of
         [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or
         [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]
         is required for `search` events. Other event types should not set this
         field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string search_query = 1;
        Returns:
        This builder for chaining.
      • setSearchQueryBytes

        public SearchInfo.Builder setSearchQueryBytes​(com.google.protobuf.ByteString value)
         The user's search query.
        
         See
         [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query]
         for definition.
        
         The value must be a UTF-8 encoded string with a length limit of 5,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         At least one of
         [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or
         [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]
         is required for `search` events. Other event types should not set this
         field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string search_query = 1;
        Parameters:
        value - The bytes for searchQuery to set.
        Returns:
        This builder for chaining.
      • getOrderBy

        public String getOrderBy()
         The order in which products are returned, if applicable.
        
         See
         [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by]
         for definition and syntax.
        
         The value must be a UTF-8 encoded string with a length limit of 1,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string order_by = 2;
        Specified by:
        getOrderBy in interface SearchInfoOrBuilder
        Returns:
        The orderBy.
      • getOrderByBytes

        public com.google.protobuf.ByteString getOrderByBytes()
         The order in which products are returned, if applicable.
        
         See
         [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by]
         for definition and syntax.
        
         The value must be a UTF-8 encoded string with a length limit of 1,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string order_by = 2;
        Specified by:
        getOrderByBytes in interface SearchInfoOrBuilder
        Returns:
        The bytes for orderBy.
      • setOrderBy

        public SearchInfo.Builder setOrderBy​(String value)
         The order in which products are returned, if applicable.
        
         See
         [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by]
         for definition and syntax.
        
         The value must be a UTF-8 encoded string with a length limit of 1,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string order_by = 2;
        Parameters:
        value - The orderBy to set.
        Returns:
        This builder for chaining.
      • clearOrderBy

        public SearchInfo.Builder clearOrderBy()
         The order in which products are returned, if applicable.
        
         See
         [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by]
         for definition and syntax.
        
         The value must be a UTF-8 encoded string with a length limit of 1,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string order_by = 2;
        Returns:
        This builder for chaining.
      • setOrderByBytes

        public SearchInfo.Builder setOrderByBytes​(com.google.protobuf.ByteString value)
         The order in which products are returned, if applicable.
        
         See
         [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by]
         for definition and syntax.
        
         The value must be a UTF-8 encoded string with a length limit of 1,000
         characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        string order_by = 2;
        Parameters:
        value - The bytes for orderBy to set.
        Returns:
        This builder for chaining.
      • hasOffset

        public boolean hasOffset()
         An integer that specifies the current offset for pagination (the 0-indexed
         starting location, amongst the products deemed by the API as relevant).
        
         See
         [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset]
         for definition.
        
         If this field is negative, an `INVALID_ARGUMENT` is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        optional int32 offset = 3;
        Specified by:
        hasOffset in interface SearchInfoOrBuilder
        Returns:
        Whether the offset field is set.
      • getOffset

        public int getOffset()
         An integer that specifies the current offset for pagination (the 0-indexed
         starting location, amongst the products deemed by the API as relevant).
        
         See
         [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset]
         for definition.
        
         If this field is negative, an `INVALID_ARGUMENT` is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        optional int32 offset = 3;
        Specified by:
        getOffset in interface SearchInfoOrBuilder
        Returns:
        The offset.
      • setOffset

        public SearchInfo.Builder setOffset​(int value)
         An integer that specifies the current offset for pagination (the 0-indexed
         starting location, amongst the products deemed by the API as relevant).
        
         See
         [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset]
         for definition.
        
         If this field is negative, an `INVALID_ARGUMENT` is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        optional int32 offset = 3;
        Parameters:
        value - The offset to set.
        Returns:
        This builder for chaining.
      • clearOffset

        public SearchInfo.Builder clearOffset()
         An integer that specifies the current offset for pagination (the 0-indexed
         starting location, amongst the products deemed by the API as relevant).
        
         See
         [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset]
         for definition.
        
         If this field is negative, an `INVALID_ARGUMENT` is returned.
        
         This can only be set for `search` events. Other event types should not set
         this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        optional int32 offset = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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