Class ListDocumentsRequest.Builder

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

    public static final class ListDocumentsRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ListDocumentsRequest.Builder>
    implements ListDocumentsRequestOrBuilder
     Request message for
     [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments].
     
    Protobuf type google.cloud.dialogflow.v2.ListDocumentsRequest
    • 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<ListDocumentsRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public ListDocumentsRequest.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<ListDocumentsRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The knowledge base to list all documents for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface ListDocumentsRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The knowledge base to list all documents for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface ListDocumentsRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public ListDocumentsRequest.Builder setParent​(String value)
         Required. The knowledge base to list all documents for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public ListDocumentsRequest.Builder clearParent()
         Required. The knowledge base to list all documents for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public ListDocumentsRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The knowledge base to list all documents for.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getPageSize

        public int getPageSize()
         The maximum number of items to return in a single page. By
         default 10 and at most 100.
         
        int32 page_size = 2;
        Specified by:
        getPageSize in interface ListDocumentsRequestOrBuilder
        Returns:
        The pageSize.
      • setPageSize

        public ListDocumentsRequest.Builder setPageSize​(int value)
         The maximum number of items to return in a single page. By
         default 10 and at most 100.
         
        int32 page_size = 2;
        Parameters:
        value - The pageSize to set.
        Returns:
        This builder for chaining.
      • clearPageSize

        public ListDocumentsRequest.Builder clearPageSize()
         The maximum number of items to return in a single page. By
         default 10 and at most 100.
         
        int32 page_size = 2;
        Returns:
        This builder for chaining.
      • getPageTokenBytes

        public com.google.protobuf.ByteString getPageTokenBytes()
         The next_page_token value returned from a previous list request.
         
        string page_token = 3;
        Specified by:
        getPageTokenBytes in interface ListDocumentsRequestOrBuilder
        Returns:
        The bytes for pageToken.
      • setPageToken

        public ListDocumentsRequest.Builder setPageToken​(String value)
         The next_page_token value returned from a previous list request.
         
        string page_token = 3;
        Parameters:
        value - The pageToken to set.
        Returns:
        This builder for chaining.
      • clearPageToken

        public ListDocumentsRequest.Builder clearPageToken()
         The next_page_token value returned from a previous list request.
         
        string page_token = 3;
        Returns:
        This builder for chaining.
      • setPageTokenBytes

        public ListDocumentsRequest.Builder setPageTokenBytes​(com.google.protobuf.ByteString value)
         The next_page_token value returned from a previous list request.
         
        string page_token = 3;
        Parameters:
        value - The bytes for pageToken to set.
        Returns:
        This builder for chaining.
      • getFilter

        public String getFilter()
         The filter expression used to filter documents returned by the list method.
         The expression has the following syntax:
        
           <field> <operator> <value> [AND <field> <operator> <value>] ...
        
         The following fields and operators are supported:
        
         * knowledge_types with has(:) operator
         * display_name with has(:) operator
         * state with equals(=) operator
        
         Examples:
        
         * "knowledge_types:FAQ" matches documents with FAQ knowledge type.
         * "display_name:customer" matches documents whose display name contains
           "customer".
         * "state=ACTIVE" matches documents with ACTIVE state.
         * "knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
        
         For more information about filtering, see
         [API Filtering](https://aip.dev/160).
         
        string filter = 4;
        Specified by:
        getFilter in interface ListDocumentsRequestOrBuilder
        Returns:
        The filter.
      • getFilterBytes

        public com.google.protobuf.ByteString getFilterBytes()
         The filter expression used to filter documents returned by the list method.
         The expression has the following syntax:
        
           <field> <operator> <value> [AND <field> <operator> <value>] ...
        
         The following fields and operators are supported:
        
         * knowledge_types with has(:) operator
         * display_name with has(:) operator
         * state with equals(=) operator
        
         Examples:
        
         * "knowledge_types:FAQ" matches documents with FAQ knowledge type.
         * "display_name:customer" matches documents whose display name contains
           "customer".
         * "state=ACTIVE" matches documents with ACTIVE state.
         * "knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
        
         For more information about filtering, see
         [API Filtering](https://aip.dev/160).
         
        string filter = 4;
        Specified by:
        getFilterBytes in interface ListDocumentsRequestOrBuilder
        Returns:
        The bytes for filter.
      • setFilter

        public ListDocumentsRequest.Builder setFilter​(String value)
         The filter expression used to filter documents returned by the list method.
         The expression has the following syntax:
        
           <field> <operator> <value> [AND <field> <operator> <value>] ...
        
         The following fields and operators are supported:
        
         * knowledge_types with has(:) operator
         * display_name with has(:) operator
         * state with equals(=) operator
        
         Examples:
        
         * "knowledge_types:FAQ" matches documents with FAQ knowledge type.
         * "display_name:customer" matches documents whose display name contains
           "customer".
         * "state=ACTIVE" matches documents with ACTIVE state.
         * "knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
        
         For more information about filtering, see
         [API Filtering](https://aip.dev/160).
         
        string filter = 4;
        Parameters:
        value - The filter to set.
        Returns:
        This builder for chaining.
      • clearFilter

        public ListDocumentsRequest.Builder clearFilter()
         The filter expression used to filter documents returned by the list method.
         The expression has the following syntax:
        
           <field> <operator> <value> [AND <field> <operator> <value>] ...
        
         The following fields and operators are supported:
        
         * knowledge_types with has(:) operator
         * display_name with has(:) operator
         * state with equals(=) operator
        
         Examples:
        
         * "knowledge_types:FAQ" matches documents with FAQ knowledge type.
         * "display_name:customer" matches documents whose display name contains
           "customer".
         * "state=ACTIVE" matches documents with ACTIVE state.
         * "knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
        
         For more information about filtering, see
         [API Filtering](https://aip.dev/160).
         
        string filter = 4;
        Returns:
        This builder for chaining.
      • setFilterBytes

        public ListDocumentsRequest.Builder setFilterBytes​(com.google.protobuf.ByteString value)
         The filter expression used to filter documents returned by the list method.
         The expression has the following syntax:
        
           <field> <operator> <value> [AND <field> <operator> <value>] ...
        
         The following fields and operators are supported:
        
         * knowledge_types with has(:) operator
         * display_name with has(:) operator
         * state with equals(=) operator
        
         Examples:
        
         * "knowledge_types:FAQ" matches documents with FAQ knowledge type.
         * "display_name:customer" matches documents whose display name contains
           "customer".
         * "state=ACTIVE" matches documents with ACTIVE state.
         * "knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
        
         For more information about filtering, see
         [API Filtering](https://aip.dev/160).
         
        string filter = 4;
        Parameters:
        value - The bytes for filter to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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