Class AnswerQueryRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.Builder>
com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.Builder
All Implemented Interfaces:
AnswerQueryRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnswerQueryRequest

public static final class AnswerQueryRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.Builder> implements AnswerQueryRequestOrBuilder
 Request message for
 [ConversationalSearchService.AnswerQuery][google.cloud.discoveryengine.v1beta.ConversationalSearchService.AnswerQuery]
 method.
 
Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AnswerQueryRequest.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

      public AnswerQueryRequest.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<AnswerQueryRequest.Builder>
      Throws:
      IOException
    • getServingConfig

      public String getServingConfig()
       Required. The resource name of the Search serving config, such as
       `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
       or
       `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
       This field is used to identify the serving configuration name, set
       of models used to make the search.
       
      string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getServingConfig in interface AnswerQueryRequestOrBuilder
      Returns:
      The servingConfig.
    • getServingConfigBytes

      public com.google.protobuf.ByteString getServingConfigBytes()
       Required. The resource name of the Search serving config, such as
       `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
       or
       `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
       This field is used to identify the serving configuration name, set
       of models used to make the search.
       
      string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getServingConfigBytes in interface AnswerQueryRequestOrBuilder
      Returns:
      The bytes for servingConfig.
    • setServingConfig

      public AnswerQueryRequest.Builder setServingConfig(String value)
       Required. The resource name of the Search serving config, such as
       `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
       or
       `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
       This field is used to identify the serving configuration name, set
       of models used to make the search.
       
      string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The servingConfig to set.
      Returns:
      This builder for chaining.
    • clearServingConfig

      public AnswerQueryRequest.Builder clearServingConfig()
       Required. The resource name of the Search serving config, such as
       `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
       or
       `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
       This field is used to identify the serving configuration name, set
       of models used to make the search.
       
      string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setServingConfigBytes

      public AnswerQueryRequest.Builder setServingConfigBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Search serving config, such as
       `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
       or
       `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`.
       This field is used to identify the serving configuration name, set
       of models used to make the search.
       
      string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for servingConfig to set.
      Returns:
      This builder for chaining.
    • hasQuery

      public boolean hasQuery()
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuery in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the query field is set.
    • getQuery

      public Query getQuery()
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface AnswerQueryRequestOrBuilder
      Returns:
      The query.
    • setQuery

      public AnswerQueryRequest.Builder setQuery(Query value)
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
    • setQuery

      public AnswerQueryRequest.Builder setQuery(Query.Builder builderForValue)
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeQuery

      public AnswerQueryRequest.Builder mergeQuery(Query value)
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearQuery

      public AnswerQueryRequest.Builder clearQuery()
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueryBuilder

      public Query.Builder getQueryBuilder()
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueryOrBuilder

      public QueryOrBuilder getQueryOrBuilder()
       Required. Current user query.
       
      .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryOrBuilder in interface AnswerQueryRequestOrBuilder
    • getSession

      public String getSession()
       The session resource name. Not required.
      
       When session field is not set, the API is in sessionless mode.
      
       We support auto session mode: users can use the wildcard symbol `-` as
       session ID.  A new ID will be automatically generated and assigned.
       
      string session = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSession in interface AnswerQueryRequestOrBuilder
      Returns:
      The session.
    • getSessionBytes

      public com.google.protobuf.ByteString getSessionBytes()
       The session resource name. Not required.
      
       When session field is not set, the API is in sessionless mode.
      
       We support auto session mode: users can use the wildcard symbol `-` as
       session ID.  A new ID will be automatically generated and assigned.
       
      string session = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSessionBytes in interface AnswerQueryRequestOrBuilder
      Returns:
      The bytes for session.
    • setSession

      public AnswerQueryRequest.Builder setSession(String value)
       The session resource name. Not required.
      
       When session field is not set, the API is in sessionless mode.
      
       We support auto session mode: users can use the wildcard symbol `-` as
       session ID.  A new ID will be automatically generated and assigned.
       
      string session = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The session to set.
      Returns:
      This builder for chaining.
    • clearSession

      public AnswerQueryRequest.Builder clearSession()
       The session resource name. Not required.
      
       When session field is not set, the API is in sessionless mode.
      
       We support auto session mode: users can use the wildcard symbol `-` as
       session ID.  A new ID will be automatically generated and assigned.
       
      string session = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSessionBytes

      public AnswerQueryRequest.Builder setSessionBytes(com.google.protobuf.ByteString value)
       The session resource name. Not required.
      
       When session field is not set, the API is in sessionless mode.
      
       We support auto session mode: users can use the wildcard symbol `-` as
       session ID.  A new ID will be automatically generated and assigned.
       
      string session = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for session to set.
      Returns:
      This builder for chaining.
    • hasSafetySpec

      public boolean hasSafetySpec()
       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
      Specified by:
      hasSafetySpec in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the safetySpec field is set.
    • getSafetySpec

      public AnswerQueryRequest.SafetySpec getSafetySpec()
       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
      Specified by:
      getSafetySpec in interface AnswerQueryRequestOrBuilder
      Returns:
      The safetySpec.
    • setSafetySpec

       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
    • setSafetySpec

      public AnswerQueryRequest.Builder setSafetySpec(AnswerQueryRequest.SafetySpec.Builder builderForValue)
       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
    • mergeSafetySpec

       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
    • clearSafetySpec

      public AnswerQueryRequest.Builder clearSafetySpec()
       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
    • getSafetySpecBuilder

      public AnswerQueryRequest.SafetySpec.Builder getSafetySpecBuilder()
       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
    • getSafetySpecOrBuilder

      public AnswerQueryRequest.SafetySpecOrBuilder getSafetySpecOrBuilder()
       Model specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
      Specified by:
      getSafetySpecOrBuilder in interface AnswerQueryRequestOrBuilder
    • hasRelatedQuestionsSpec

      public boolean hasRelatedQuestionsSpec()
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
      Specified by:
      hasRelatedQuestionsSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the relatedQuestionsSpec field is set.
    • getRelatedQuestionsSpec

      public AnswerQueryRequest.RelatedQuestionsSpec getRelatedQuestionsSpec()
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
      Specified by:
      getRelatedQuestionsSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      The relatedQuestionsSpec.
    • setRelatedQuestionsSpec

       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
    • setRelatedQuestionsSpec

      public AnswerQueryRequest.Builder setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.Builder builderForValue)
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
    • mergeRelatedQuestionsSpec

      public AnswerQueryRequest.Builder mergeRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec value)
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
    • clearRelatedQuestionsSpec

      public AnswerQueryRequest.Builder clearRelatedQuestionsSpec()
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
    • getRelatedQuestionsSpecBuilder

      public AnswerQueryRequest.RelatedQuestionsSpec.Builder getRelatedQuestionsSpecBuilder()
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
    • getRelatedQuestionsSpecOrBuilder

      public AnswerQueryRequest.RelatedQuestionsSpecOrBuilder getRelatedQuestionsSpecOrBuilder()
       Related questions specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
      Specified by:
      getRelatedQuestionsSpecOrBuilder in interface AnswerQueryRequestOrBuilder
    • hasGroundingSpec

      public boolean hasGroundingSpec()
       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGroundingSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the groundingSpec field is set.
    • getGroundingSpec

      public AnswerQueryRequest.GroundingSpec getGroundingSpec()
       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      The groundingSpec.
    • setGroundingSpec

       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setGroundingSpec

      public AnswerQueryRequest.Builder setGroundingSpec(AnswerQueryRequest.GroundingSpec.Builder builderForValue)
       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeGroundingSpec

       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearGroundingSpec

      public AnswerQueryRequest.Builder clearGroundingSpec()
       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGroundingSpecBuilder

      public AnswerQueryRequest.GroundingSpec.Builder getGroundingSpecBuilder()
       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGroundingSpecOrBuilder

      public AnswerQueryRequest.GroundingSpecOrBuilder getGroundingSpecOrBuilder()
       Optional. Grounding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec grounding_spec = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSpecOrBuilder in interface AnswerQueryRequestOrBuilder
    • hasAnswerGenerationSpec

      public boolean hasAnswerGenerationSpec()
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
      Specified by:
      hasAnswerGenerationSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the answerGenerationSpec field is set.
    • getAnswerGenerationSpec

      public AnswerQueryRequest.AnswerGenerationSpec getAnswerGenerationSpec()
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
      Specified by:
      getAnswerGenerationSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      The answerGenerationSpec.
    • setAnswerGenerationSpec

       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
    • setAnswerGenerationSpec

      public AnswerQueryRequest.Builder setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.Builder builderForValue)
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
    • mergeAnswerGenerationSpec

      public AnswerQueryRequest.Builder mergeAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec value)
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
    • clearAnswerGenerationSpec

      public AnswerQueryRequest.Builder clearAnswerGenerationSpec()
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
    • getAnswerGenerationSpecBuilder

      public AnswerQueryRequest.AnswerGenerationSpec.Builder getAnswerGenerationSpecBuilder()
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
    • getAnswerGenerationSpecOrBuilder

      public AnswerQueryRequest.AnswerGenerationSpecOrBuilder getAnswerGenerationSpecOrBuilder()
       Answer generation specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
      Specified by:
      getAnswerGenerationSpecOrBuilder in interface AnswerQueryRequestOrBuilder
    • hasSearchSpec

      public boolean hasSearchSpec()
       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
      Specified by:
      hasSearchSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the searchSpec field is set.
    • getSearchSpec

      public AnswerQueryRequest.SearchSpec getSearchSpec()
       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
      Specified by:
      getSearchSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      The searchSpec.
    • setSearchSpec

       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
    • setSearchSpec

      public AnswerQueryRequest.Builder setSearchSpec(AnswerQueryRequest.SearchSpec.Builder builderForValue)
       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
    • mergeSearchSpec

       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
    • clearSearchSpec

      public AnswerQueryRequest.Builder clearSearchSpec()
       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
    • getSearchSpecBuilder

      public AnswerQueryRequest.SearchSpec.Builder getSearchSpecBuilder()
       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
    • getSearchSpecOrBuilder

      public AnswerQueryRequest.SearchSpecOrBuilder getSearchSpecOrBuilder()
       Search specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
      Specified by:
      getSearchSpecOrBuilder in interface AnswerQueryRequestOrBuilder
    • hasQueryUnderstandingSpec

      public boolean hasQueryUnderstandingSpec()
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
      Specified by:
      hasQueryUnderstandingSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      Whether the queryUnderstandingSpec field is set.
    • getQueryUnderstandingSpec

      public AnswerQueryRequest.QueryUnderstandingSpec getQueryUnderstandingSpec()
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
      Specified by:
      getQueryUnderstandingSpec in interface AnswerQueryRequestOrBuilder
      Returns:
      The queryUnderstandingSpec.
    • setQueryUnderstandingSpec

       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
    • setQueryUnderstandingSpec

      public AnswerQueryRequest.Builder setQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec.Builder builderForValue)
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
    • mergeQueryUnderstandingSpec

      public AnswerQueryRequest.Builder mergeQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec value)
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
    • clearQueryUnderstandingSpec

      public AnswerQueryRequest.Builder clearQueryUnderstandingSpec()
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
    • getQueryUnderstandingSpecBuilder

      public AnswerQueryRequest.QueryUnderstandingSpec.Builder getQueryUnderstandingSpecBuilder()
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
    • getQueryUnderstandingSpecOrBuilder

      public AnswerQueryRequest.QueryUnderstandingSpecOrBuilder getQueryUnderstandingSpecOrBuilder()
       Query understanding specification.
       
      .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
      Specified by:
      getQueryUnderstandingSpecOrBuilder in interface AnswerQueryRequestOrBuilder
    • getAsynchronousMode

      @Deprecated public boolean getAsynchronousMode()
      Deprecated.
      google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is deprecated. See google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861
       Deprecated: This field is deprecated. Streaming Answer API will be
       supported.
      
       Asynchronous mode control.
      
       If enabled, the response will be returned with answer/session resource
       name without final answer. The API users need to do the polling to get
       the latest status of answer/session by calling
       [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
       or
       [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
       method.
       
      bool asynchronous_mode = 10 [deprecated = true];
      Specified by:
      getAsynchronousMode in interface AnswerQueryRequestOrBuilder
      Returns:
      The asynchronousMode.
    • setAsynchronousMode

      @Deprecated public AnswerQueryRequest.Builder setAsynchronousMode(boolean value)
      Deprecated.
      google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is deprecated. See google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861
       Deprecated: This field is deprecated. Streaming Answer API will be
       supported.
      
       Asynchronous mode control.
      
       If enabled, the response will be returned with answer/session resource
       name without final answer. The API users need to do the polling to get
       the latest status of answer/session by calling
       [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
       or
       [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
       method.
       
      bool asynchronous_mode = 10 [deprecated = true];
      Parameters:
      value - The asynchronousMode to set.
      Returns:
      This builder for chaining.
    • clearAsynchronousMode

      @Deprecated public AnswerQueryRequest.Builder clearAsynchronousMode()
      Deprecated.
      google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is deprecated. See google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861
       Deprecated: This field is deprecated. Streaming Answer API will be
       supported.
      
       Asynchronous mode control.
      
       If enabled, the response will be returned with answer/session resource
       name without final answer. The API users need to do the polling to get
       the latest status of answer/session by calling
       [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer]
       or
       [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
       method.
       
      bool asynchronous_mode = 10 [deprecated = true];
      Returns:
      This builder for chaining.
    • getUserPseudoId

      public String getUserPseudoId()
       A unique identifier for tracking visitors. For example, this could be
       implemented with an HTTP cookie, which should be able to uniquely identify
       a visitor on a single device. This unique identifier should not change if
       the visitor logs in or out of the website.
      
       This field should NOT have a fixed value such as `unknown_visitor`.
      
       The field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
       
      string user_pseudo_id = 12;
      Specified by:
      getUserPseudoId in interface AnswerQueryRequestOrBuilder
      Returns:
      The userPseudoId.
    • getUserPseudoIdBytes

      public com.google.protobuf.ByteString getUserPseudoIdBytes()
       A unique identifier for tracking visitors. For example, this could be
       implemented with an HTTP cookie, which should be able to uniquely identify
       a visitor on a single device. This unique identifier should not change if
       the visitor logs in or out of the website.
      
       This field should NOT have a fixed value such as `unknown_visitor`.
      
       The field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
       
      string user_pseudo_id = 12;
      Specified by:
      getUserPseudoIdBytes in interface AnswerQueryRequestOrBuilder
      Returns:
      The bytes for userPseudoId.
    • setUserPseudoId

      public AnswerQueryRequest.Builder setUserPseudoId(String value)
       A unique identifier for tracking visitors. For example, this could be
       implemented with an HTTP cookie, which should be able to uniquely identify
       a visitor on a single device. This unique identifier should not change if
       the visitor logs in or out of the website.
      
       This field should NOT have a fixed value such as `unknown_visitor`.
      
       The field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
       
      string user_pseudo_id = 12;
      Parameters:
      value - The userPseudoId to set.
      Returns:
      This builder for chaining.
    • clearUserPseudoId

      public AnswerQueryRequest.Builder clearUserPseudoId()
       A unique identifier for tracking visitors. For example, this could be
       implemented with an HTTP cookie, which should be able to uniquely identify
       a visitor on a single device. This unique identifier should not change if
       the visitor logs in or out of the website.
      
       This field should NOT have a fixed value such as `unknown_visitor`.
      
       The field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
       
      string user_pseudo_id = 12;
      Returns:
      This builder for chaining.
    • setUserPseudoIdBytes

      public AnswerQueryRequest.Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value)
       A unique identifier for tracking visitors. For example, this could be
       implemented with an HTTP cookie, which should be able to uniquely identify
       a visitor on a single device. This unique identifier should not change if
       the visitor logs in or out of the website.
      
       This field should NOT have a fixed value such as `unknown_visitor`.
      
       The field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
       
      string user_pseudo_id = 12;
      Parameters:
      value - The bytes for userPseudoId to set.
      Returns:
      This builder for chaining.
    • getUserLabelsCount

      public int getUserLabelsCount()
      Description copied from interface: AnswerQueryRequestOrBuilder
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
      Specified by:
      getUserLabelsCount in interface AnswerQueryRequestOrBuilder
    • containsUserLabels

      public boolean containsUserLabels(String key)
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
      Specified by:
      containsUserLabels in interface AnswerQueryRequestOrBuilder
    • getUserLabels

      @Deprecated public Map<String,String> getUserLabels()
      Deprecated.
      Use getUserLabelsMap() instead.
      Specified by:
      getUserLabels in interface AnswerQueryRequestOrBuilder
    • getUserLabelsMap

      public Map<String,String> getUserLabelsMap()
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
      Specified by:
      getUserLabelsMap in interface AnswerQueryRequestOrBuilder
    • getUserLabelsOrDefault

      public String getUserLabelsOrDefault(String key, String defaultValue)
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
      Specified by:
      getUserLabelsOrDefault in interface AnswerQueryRequestOrBuilder
    • getUserLabelsOrThrow

      public String getUserLabelsOrThrow(String key)
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
      Specified by:
      getUserLabelsOrThrow in interface AnswerQueryRequestOrBuilder
    • clearUserLabels

      public AnswerQueryRequest.Builder clearUserLabels()
    • removeUserLabels

      public AnswerQueryRequest.Builder removeUserLabels(String key)
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
    • getMutableUserLabels

      @Deprecated public Map<String,String> getMutableUserLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putUserLabels

      public AnswerQueryRequest.Builder putUserLabels(String key, String value)
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;
    • putAllUserLabels

      public AnswerQueryRequest.Builder putAllUserLabels(Map<String,String> values)
       The user labels applied to a resource must meet the following requirements:
      
       * Each resource can have multiple labels, up to a maximum of 64.
       * Each label must be a key-value pair.
       * Keys have a minimum length of 1 character and a maximum length of 63
       characters and cannot be empty. Values can be empty and have a maximum
       length of 63 characters.
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes. All characters must use UTF-8 encoding, and
       international characters are allowed.
       * The key portion of a label must be unique. However, you can use the same
       key with multiple resources.
       * Keys must start with a lowercase letter or international character.
      
       See [Google Cloud
       Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
       for more details.
       
      map<string, string> user_labels = 13;