Class AnswerQueryRequest.SearchSpec.Builder (0.51.0)

public static final class AnswerQueryRequest.SearchSpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.SearchSpec.Builder> implements AnswerQueryRequest.SearchSpecOrBuilder

Search specification.

Protobuf type google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryRequest.SearchSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

build()

public AnswerQueryRequest.SearchSpec build()
Returns
Type Description
AnswerQueryRequest.SearchSpec

buildPartial()

public AnswerQueryRequest.SearchSpec buildPartial()
Returns
Type Description
AnswerQueryRequest.SearchSpec

clear()

public AnswerQueryRequest.SearchSpec.Builder clear()
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnswerQueryRequest.SearchSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

clearInput()

public AnswerQueryRequest.SearchSpec.Builder clearInput()
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerQueryRequest.SearchSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

clearSearchParams()

public AnswerQueryRequest.SearchSpec.Builder clearSearchParams()

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

clearSearchResultList()

public AnswerQueryRequest.SearchSpec.Builder clearSearchResultList()

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

clone()

public AnswerQueryRequest.SearchSpec.Builder clone()
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.SearchSpec getDefaultInstanceForType()
Returns
Type Description
AnswerQueryRequest.SearchSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInputCase()

public AnswerQueryRequest.SearchSpec.InputCase getInputCase()
Returns
Type Description
AnswerQueryRequest.SearchSpec.InputCase

getSearchParams()

public AnswerQueryRequest.SearchSpec.SearchParams getSearchParams()

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchParams

The searchParams.

getSearchParamsBuilder()

public AnswerQueryRequest.SearchSpec.SearchParams.Builder getSearchParamsBuilder()

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchParams.Builder

getSearchParamsOrBuilder()

public AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder getSearchParamsOrBuilder()

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder

getSearchResultList()

public AnswerQueryRequest.SearchSpec.SearchResultList getSearchResultList()

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList

The searchResultList.

getSearchResultListBuilder()

public AnswerQueryRequest.SearchSpec.SearchResultList.Builder getSearchResultListBuilder()

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultList.Builder

getSearchResultListOrBuilder()

public AnswerQueryRequest.SearchSpec.SearchResultListOrBuilder getSearchResultListOrBuilder()

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Returns
Type Description
AnswerQueryRequest.SearchSpec.SearchResultListOrBuilder

hasSearchParams()

public boolean hasSearchParams()

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Returns
Type Description
boolean

Whether the searchParams field is set.

hasSearchResultList()

public boolean hasSearchResultList()

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Returns
Type Description
boolean

Whether the searchResultList field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.SearchSpec other)

public AnswerQueryRequest.SearchSpec.Builder mergeFrom(AnswerQueryRequest.SearchSpec other)
Parameter
Name Description
other AnswerQueryRequest.SearchSpec
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnswerQueryRequest.SearchSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnswerQueryRequest.SearchSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

mergeSearchParams(AnswerQueryRequest.SearchSpec.SearchParams value)

public AnswerQueryRequest.SearchSpec.Builder mergeSearchParams(AnswerQueryRequest.SearchSpec.SearchParams value)

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Parameter
Name Description
value AnswerQueryRequest.SearchSpec.SearchParams
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

mergeSearchResultList(AnswerQueryRequest.SearchSpec.SearchResultList value)

public AnswerQueryRequest.SearchSpec.Builder mergeSearchResultList(AnswerQueryRequest.SearchSpec.SearchResultList value)

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Parameter
Name Description
value AnswerQueryRequest.SearchSpec.SearchResultList
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.SearchSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryRequest.SearchSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnswerQueryRequest.SearchSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides

setSearchParams(AnswerQueryRequest.SearchSpec.SearchParams value)

public AnswerQueryRequest.SearchSpec.Builder setSearchParams(AnswerQueryRequest.SearchSpec.SearchParams value)

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Parameter
Name Description
value AnswerQueryRequest.SearchSpec.SearchParams
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

setSearchParams(AnswerQueryRequest.SearchSpec.SearchParams.Builder builderForValue)

public AnswerQueryRequest.SearchSpec.Builder setSearchParams(AnswerQueryRequest.SearchSpec.SearchParams.Builder builderForValue)

Search parameters.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1;

Parameter
Name Description
builderForValue AnswerQueryRequest.SearchSpec.SearchParams.Builder
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

setSearchResultList(AnswerQueryRequest.SearchSpec.SearchResultList value)

public AnswerQueryRequest.SearchSpec.Builder setSearchResultList(AnswerQueryRequest.SearchSpec.SearchResultList value)

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Parameter
Name Description
value AnswerQueryRequest.SearchSpec.SearchResultList
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

setSearchResultList(AnswerQueryRequest.SearchSpec.SearchResultList.Builder builderForValue)

public AnswerQueryRequest.SearchSpec.Builder setSearchResultList(AnswerQueryRequest.SearchSpec.SearchResultList.Builder builderForValue)

Search result list.

.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2;

Parameter
Name Description
builderForValue AnswerQueryRequest.SearchSpec.SearchResultList.Builder
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.SearchSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.SearchSpec.Builder
Overrides