Class SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder>
com.google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder
All Implemented Interfaces:
SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchKnowledgeRequest.SearchConfig.FilterSpecs

public static final class SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder> implements SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
 Filter specification for data store queries.
 
Protobuf type google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig.FilterSpecs
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.SearchConfig.FilterSpecs.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.GeneratedMessage.Builder<SearchKnowledgeRequest.SearchConfig.FilterSpecs.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.GeneratedMessage.Builder<SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SearchKnowledgeRequest.SearchConfig.FilterSpecs.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<SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder>
    • mergeFrom

      public SearchKnowledgeRequest.SearchConfig.FilterSpecs.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<SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder>
      Throws:
      IOException
    • getDataStoresList

      public com.google.protobuf.ProtocolStringList getDataStoresList()
       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataStoresList in interface SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
      Returns:
      A list containing the dataStores.
    • getDataStoresCount

      public int getDataStoresCount()
       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataStoresCount in interface SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
      Returns:
      The count of dataStores.
    • getDataStores

      public String getDataStores(int index)
       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataStores in interface SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataStores at the given index.
    • getDataStoresBytes

      public com.google.protobuf.ByteString getDataStoresBytes(int index)
       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataStoresBytes in interface SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dataStores at the given index.
    • setDataStores

      public SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder setDataStores(int index, String value)
       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The dataStores to set.
      Returns:
      This builder for chaining.
    • addDataStores

       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataStores to add.
      Returns:
      This builder for chaining.
    • addAllDataStores

       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The dataStores to add.
      Returns:
      This builder for chaining.
    • clearDataStores

       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addDataStoresBytes

      public SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder addDataStoresBytes(com.google.protobuf.ByteString value)
       Optional. The data store where the filter configuration is applied.
       Full resource name of data store, such as
       projects/{project}/locations/{location}/collections/{collectionId}/
       dataStores/{dataStoreId}.
       
      repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the dataStores to add.
      Returns:
      This builder for chaining.
    • getFilter

      public String getFilter()
       Optional. The filter expression to be applied.
       Expression syntax is documented at
       https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Optional. The filter expression to be applied.
       Expression syntax is documented at
       https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface SearchKnowledgeRequest.SearchConfig.FilterSpecsOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

       Optional. The filter expression to be applied.
       Expression syntax is documented at
       https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

       Optional. The filter expression to be applied.
       Expression syntax is documented at
       https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public SearchKnowledgeRequest.SearchConfig.FilterSpecs.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Optional. The filter expression to be applied.
       Expression syntax is documented at
       https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata#filter-expression-syntax
       
      string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.