- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class AnswerQueryRequest.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.Builder> implements AnswerQueryRequestOrBuilder
Request message for ConversationalSearchService.AnswerQuery method.
Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnswerQueryRequest.BuilderImplements
AnswerQueryRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
build()
public AnswerQueryRequest build()
Returns | |
---|---|
Type | Description |
AnswerQueryRequest |
buildPartial()
public AnswerQueryRequest buildPartial()
Returns | |
---|---|
Type | Description |
AnswerQueryRequest |
clear()
public AnswerQueryRequest.Builder clear()
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearAnswerGenerationSpec()
public AnswerQueryRequest.Builder clearAnswerGenerationSpec()
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearAsynchronousMode()
public AnswerQueryRequest.Builder clearAsynchronousMode()
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 or ConversationalSearchService.GetSession method.
bool asynchronous_mode = 10;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AnswerQueryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AnswerQueryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearQuery()
public AnswerQueryRequest.Builder clearQuery()
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearQueryUnderstandingSpec()
public AnswerQueryRequest.Builder clearQueryUnderstandingSpec()
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearRelatedQuestionsSpec()
public AnswerQueryRequest.Builder clearRelatedQuestionsSpec()
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearSafetySpec()
public AnswerQueryRequest.Builder clearSafetySpec()
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
clearSearchSpec()
public AnswerQueryRequest.Builder clearSearchSpec()
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
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 | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
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 | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
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 | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
clone()
public AnswerQueryRequest.Builder clone()
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
getAnswerGenerationSpec()
public AnswerQueryRequest.AnswerGenerationSpec getAnswerGenerationSpec()
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpec |
The answerGenerationSpec. |
getAnswerGenerationSpecBuilder()
public AnswerQueryRequest.AnswerGenerationSpec.Builder getAnswerGenerationSpecBuilder()
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpec.Builder |
getAnswerGenerationSpecOrBuilder()
public AnswerQueryRequest.AnswerGenerationSpecOrBuilder getAnswerGenerationSpecOrBuilder()
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpecOrBuilder |
getAsynchronousMode()
public boolean getAsynchronousMode()
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 or ConversationalSearchService.GetSession method.
bool asynchronous_mode = 10;
Returns | |
---|---|
Type | Description |
boolean |
The asynchronousMode. |
getDefaultInstanceForType()
public AnswerQueryRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AnswerQueryRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getQuery()
public Query getQuery()
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Query |
The query. |
getQueryBuilder()
public Query.Builder getQueryBuilder()
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Query.Builder |
getQueryOrBuilder()
public QueryOrBuilder getQueryOrBuilder()
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
QueryOrBuilder |
getQueryUnderstandingSpec()
public AnswerQueryRequest.QueryUnderstandingSpec getQueryUnderstandingSpec()
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.QueryUnderstandingSpec |
The queryUnderstandingSpec. |
getQueryUnderstandingSpecBuilder()
public AnswerQueryRequest.QueryUnderstandingSpec.Builder getQueryUnderstandingSpecBuilder()
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.QueryUnderstandingSpec.Builder |
getQueryUnderstandingSpecOrBuilder()
public AnswerQueryRequest.QueryUnderstandingSpecOrBuilder getQueryUnderstandingSpecOrBuilder()
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.QueryUnderstandingSpecOrBuilder |
getRelatedQuestionsSpec()
public AnswerQueryRequest.RelatedQuestionsSpec getRelatedQuestionsSpec()
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.RelatedQuestionsSpec |
The relatedQuestionsSpec. |
getRelatedQuestionsSpecBuilder()
public AnswerQueryRequest.RelatedQuestionsSpec.Builder getRelatedQuestionsSpecBuilder()
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.RelatedQuestionsSpec.Builder |
getRelatedQuestionsSpecOrBuilder()
public AnswerQueryRequest.RelatedQuestionsSpecOrBuilder getRelatedQuestionsSpecOrBuilder()
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.RelatedQuestionsSpecOrBuilder |
getSafetySpec()
public AnswerQueryRequest.SafetySpec getSafetySpec()
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.SafetySpec |
The safetySpec. |
getSafetySpecBuilder()
public AnswerQueryRequest.SafetySpec.Builder getSafetySpecBuilder()
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.SafetySpec.Builder |
getSafetySpecOrBuilder()
public AnswerQueryRequest.SafetySpecOrBuilder getSafetySpecOrBuilder()
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.SafetySpecOrBuilder |
getSearchSpec()
public AnswerQueryRequest.SearchSpec getSearchSpec()
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.SearchSpec |
The searchSpec. |
getSearchSpecBuilder()
public AnswerQueryRequest.SearchSpec.Builder getSearchSpecBuilder()
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.SearchSpec.Builder |
getSearchSpecOrBuilder()
public AnswerQueryRequest.SearchSpecOrBuilder getSearchSpecOrBuilder()
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.SearchSpecOrBuilder |
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) = { ... }
Returns | |
---|---|
Type | Description |
String |
The servingConfig. |
getServingConfigBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for servingConfig. |
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) = { ... }
Returns | |
---|---|
Type | Description |
String |
The session. |
getSessionBytes()
public 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) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for session. |
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;
Returns | |
---|---|
Type | Description |
String |
The userPseudoId. |
getUserPseudoIdBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for userPseudoId. |
hasAnswerGenerationSpec()
public boolean hasAnswerGenerationSpec()
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the answerGenerationSpec field is set. |
hasQuery()
public boolean hasQuery()
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the query field is set. |
hasQueryUnderstandingSpec()
public boolean hasQueryUnderstandingSpec()
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Returns | |
---|---|
Type | Description |
boolean |
Whether the queryUnderstandingSpec field is set. |
hasRelatedQuestionsSpec()
public boolean hasRelatedQuestionsSpec()
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Returns | |
---|---|
Type | Description |
boolean |
Whether the relatedQuestionsSpec field is set. |
hasSafetySpec()
public boolean hasSafetySpec()
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the safetySpec field is set. |
hasSearchSpec()
public boolean hasSearchSpec()
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Returns | |
---|---|
Type | Description |
boolean |
Whether the searchSpec field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec value)
public AnswerQueryRequest.Builder mergeAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec value)
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.AnswerGenerationSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeFrom(AnswerQueryRequest other)
public AnswerQueryRequest.Builder mergeFrom(AnswerQueryRequest other)
Parameter | |
---|---|
Name | Description |
other |
AnswerQueryRequest |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnswerQueryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AnswerQueryRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeQuery(Query value)
public AnswerQueryRequest.Builder mergeQuery(Query value)
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Query |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec value)
public AnswerQueryRequest.Builder mergeQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec value)
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.QueryUnderstandingSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec value)
public AnswerQueryRequest.Builder mergeRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec value)
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.RelatedQuestionsSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeSafetySpec(AnswerQueryRequest.SafetySpec value)
public AnswerQueryRequest.Builder mergeSafetySpec(AnswerQueryRequest.SafetySpec value)
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.SafetySpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeSearchSpec(AnswerQueryRequest.SearchSpec value)
public AnswerQueryRequest.Builder mergeSearchSpec(AnswerQueryRequest.SearchSpec value)
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.SearchSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec value)
public AnswerQueryRequest.Builder setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec value)
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.AnswerGenerationSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.Builder builderForValue)
public AnswerQueryRequest.Builder setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.Builder builderForValue)
Answer generation specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7;
Parameter | |
---|---|
Name | Description |
builderForValue |
AnswerQueryRequest.AnswerGenerationSpec.Builder |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setAsynchronousMode(boolean value)
public AnswerQueryRequest.Builder setAsynchronousMode(boolean value)
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 or ConversationalSearchService.GetSession method.
bool asynchronous_mode = 10;
Parameter | |
---|---|
Name | Description |
value |
boolean The asynchronousMode to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setQuery(Query value)
public AnswerQueryRequest.Builder setQuery(Query value)
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Query |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setQuery(Query.Builder builderForValue)
public AnswerQueryRequest.Builder setQuery(Query.Builder builderForValue)
Required. Current user query.
.google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Query.Builder |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec value)
public AnswerQueryRequest.Builder setQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec value)
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.QueryUnderstandingSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec.Builder builderForValue)
public AnswerQueryRequest.Builder setQueryUnderstandingSpec(AnswerQueryRequest.QueryUnderstandingSpec.Builder builderForValue)
Query understanding specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9;
Parameter | |
---|---|
Name | Description |
builderForValue |
AnswerQueryRequest.QueryUnderstandingSpec.Builder |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec value)
public AnswerQueryRequest.Builder setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec value)
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.RelatedQuestionsSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.Builder builderForValue)
public AnswerQueryRequest.Builder setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.Builder builderForValue)
Related questions specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
AnswerQueryRequest.RelatedQuestionsSpec.Builder |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnswerQueryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setSafetySpec(AnswerQueryRequest.SafetySpec value)
public AnswerQueryRequest.Builder setSafetySpec(AnswerQueryRequest.SafetySpec value)
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.SafetySpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setSafetySpec(AnswerQueryRequest.SafetySpec.Builder builderForValue)
public AnswerQueryRequest.Builder setSafetySpec(AnswerQueryRequest.SafetySpec.Builder builderForValue)
Model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec safety_spec = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
AnswerQueryRequest.SafetySpec.Builder |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setSearchSpec(AnswerQueryRequest.SearchSpec value)
public AnswerQueryRequest.Builder setSearchSpec(AnswerQueryRequest.SearchSpec value)
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Parameter | |
---|---|
Name | Description |
value |
AnswerQueryRequest.SearchSpec |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setSearchSpec(AnswerQueryRequest.SearchSpec.Builder builderForValue)
public AnswerQueryRequest.Builder setSearchSpec(AnswerQueryRequest.SearchSpec.Builder builderForValue)
Search specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec search_spec = 8;
Parameter | |
---|---|
Name | Description |
builderForValue |
AnswerQueryRequest.SearchSpec.Builder |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setServingConfig(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The servingConfig to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
setServingConfigBytes(ByteString value)
public AnswerQueryRequest.Builder setServingConfigBytes(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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for servingConfig to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
setSession(String value)
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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The session to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
setSessionBytes(ByteString value)
public AnswerQueryRequest.Builder setSessionBytes(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) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for session to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
setUserPseudoId(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The userPseudoId to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |
setUserPseudoIdBytes(ByteString value)
public AnswerQueryRequest.Builder setUserPseudoIdBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for userPseudoId to set. |
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.Builder |
This builder for chaining. |