public static final class GuidedSearchSpec.Builder extends GeneratedMessage.Builder<GuidedSearchSpec.Builder> implements GuidedSearchSpecOrBuilderDefines guided search spec.
Protobuf type google.cloud.discoveryengine.v1alpha.GuidedSearchSpec
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GuidedSearchSpec.BuilderImplements
GuidedSearchSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GuidedSearchSpec build()| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec |
|
buildPartial()
public GuidedSearchSpec buildPartial()| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec |
|
clear()
public GuidedSearchSpec.Builder clear()| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
|
clearEnableRefinementAttributes()
public GuidedSearchSpec.Builder clearEnableRefinementAttributes()Whether or not to enable and include refinement attributes in gudied search result.
bool enable_refinement_attributes = 1;
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
This builder for chaining. |
clearEnableRelatedQuestions()
public GuidedSearchSpec.Builder clearEnableRelatedQuestions()Whether or not to enable and include related questions in search response.
bool enable_related_questions = 2;
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
This builder for chaining. |
clearMaxRelatedQuestions()
public GuidedSearchSpec.Builder clearMaxRelatedQuestions()Max number of related questions to be returned. The valid range is [1, 5]. If enable_related_questions is true, the default value is 3.
int32 max_related_questions = 3;
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GuidedSearchSpec getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnableRefinementAttributes()
public boolean getEnableRefinementAttributes()Whether or not to enable and include refinement attributes in gudied search result.
bool enable_refinement_attributes = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableRefinementAttributes. |
getEnableRelatedQuestions()
public boolean getEnableRelatedQuestions()Whether or not to enable and include related questions in search response.
bool enable_related_questions = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableRelatedQuestions. |
getMaxRelatedQuestions()
public int getMaxRelatedQuestions()Max number of related questions to be returned. The valid range is [1, 5]. If enable_related_questions is true, the default value is 3.
int32 max_related_questions = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The maxRelatedQuestions. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GuidedSearchSpec other)
public GuidedSearchSpec.Builder mergeFrom(GuidedSearchSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
GuidedSearchSpec |
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GuidedSearchSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GuidedSearchSpec.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
|
setEnableRefinementAttributes(boolean value)
public GuidedSearchSpec.Builder setEnableRefinementAttributes(boolean value)Whether or not to enable and include refinement attributes in gudied search result.
bool enable_refinement_attributes = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableRefinementAttributes to set. |
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
This builder for chaining. |
setEnableRelatedQuestions(boolean value)
public GuidedSearchSpec.Builder setEnableRelatedQuestions(boolean value)Whether or not to enable and include related questions in search response.
bool enable_related_questions = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableRelatedQuestions to set. |
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
This builder for chaining. |
setMaxRelatedQuestions(int value)
public GuidedSearchSpec.Builder setMaxRelatedQuestions(int value)Max number of related questions to be returned. The valid range is [1, 5]. If enable_related_questions is true, the default value is 3.
int32 max_related_questions = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxRelatedQuestions to set. |
| Returns | |
|---|---|
| Type | Description |
GuidedSearchSpec.Builder |
This builder for chaining. |