Class SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder (0.43.0)

public static final class SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder extends GeneratedMessageV3.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder> implements SearchResponse.NaturalLanguageQueryUnderstandingInfoOrBuilder

Information describing what natural language understanding was done on the input query.

Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo build()
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo

buildPartial()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo buildPartial()
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo

clear()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clear()
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides

clearExtractedFilters()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearExtractedFilters()

The filters that were extracted from the input query.

string extracted_filters = 1;

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides

clearRewrittenQuery()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearRewrittenQuery()

Rewritten input query minus the extracted filters.

string rewritten_query = 2;

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

This builder for chaining.

clearStructuredExtractedFilter()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clearStructuredExtractedFilter()

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

clone()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder clone()
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides

getDefaultInstanceForType()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo getDefaultInstanceForType()
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo

getDescriptorForType()

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

getExtractedFilters()

public String getExtractedFilters()

The filters that were extracted from the input query.

string extracted_filters = 1;

Returns
Type Description
String

The extractedFilters.

getExtractedFiltersBytes()

public ByteString getExtractedFiltersBytes()

The filters that were extracted from the input query.

string extracted_filters = 1;

Returns
Type Description
ByteString

The bytes for extractedFilters.

getRewrittenQuery()

public String getRewrittenQuery()

Rewritten input query minus the extracted filters.

string rewritten_query = 2;

Returns
Type Description
String

The rewrittenQuery.

getRewrittenQueryBytes()

public ByteString getRewrittenQueryBytes()

Rewritten input query minus the extracted filters.

string rewritten_query = 2;

Returns
Type Description
ByteString

The bytes for rewrittenQuery.

getStructuredExtractedFilter()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter getStructuredExtractedFilter()

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter

The structuredExtractedFilter.

getStructuredExtractedFilterBuilder()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder getStructuredExtractedFilterBuilder()

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder

getStructuredExtractedFilterOrBuilder()

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder getStructuredExtractedFilterOrBuilder()

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilterOrBuilder

hasStructuredExtractedFilter()

public boolean hasStructuredExtractedFilter()

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Returns
Type Description
boolean

Whether the structuredExtractedFilter field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchResponse.NaturalLanguageQueryUnderstandingInfo other)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeFrom(SearchResponse.NaturalLanguageQueryUnderstandingInfo other)
Parameter
Name Description
other SearchResponse.NaturalLanguageQueryUnderstandingInfo
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides

mergeStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value)

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Parameter
Name Description
value SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides

setExtractedFilters(String value)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setExtractedFilters(String value)

The filters that were extracted from the input query.

string extracted_filters = 1;

Parameter
Name Description
value String

The extractedFilters to set.

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

This builder for chaining.

setExtractedFiltersBytes(ByteString value)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setExtractedFiltersBytes(ByteString value)

The filters that were extracted from the input query.

string extracted_filters = 1;

Parameter
Name Description
value ByteString

The bytes for extractedFilters to set.

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRewrittenQuery(String value)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setRewrittenQuery(String value)

Rewritten input query minus the extracted filters.

string rewritten_query = 2;

Parameter
Name Description
value String

The rewrittenQuery to set.

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

This builder for chaining.

setRewrittenQueryBytes(ByteString value)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setRewrittenQueryBytes(ByteString value)

Rewritten input query minus the extracted filters.

string rewritten_query = 2;

Parameter
Name Description
value ByteString

The bytes for rewrittenQuery to set.

Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

This builder for chaining.

setStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value)

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Parameter
Name Description
value SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

setStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder builderForValue)

public SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setStructuredExtractedFilter(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder builderForValue)

The filters that were extracted from the input query represented in a structured form.

.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structured_extracted_filter = 3;

Parameter
Name Description
builderForValue SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchResponse.NaturalLanguageQueryUnderstandingInfo.Builder
Overrides