Class CompleteQueryResponse.RecentSearchResult.Builder (2.48.0)

public static final class CompleteQueryResponse.RecentSearchResult.Builder extends GeneratedMessageV3.Builder<CompleteQueryResponse.RecentSearchResult.Builder> implements CompleteQueryResponse.RecentSearchResultOrBuilder

Deprecated: Recent search of this user.

Protobuf type google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CompleteQueryResponse.RecentSearchResult build()
Returns
Type Description
CompleteQueryResponse.RecentSearchResult

buildPartial()

public CompleteQueryResponse.RecentSearchResult buildPartial()
Returns
Type Description
CompleteQueryResponse.RecentSearchResult

clear()

public CompleteQueryResponse.RecentSearchResult.Builder clear()
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CompleteQueryResponse.RecentSearchResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CompleteQueryResponse.RecentSearchResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

clearRecentSearch()

public CompleteQueryResponse.RecentSearchResult.Builder clearRecentSearch()

The recent search query.

string recent_search = 1;

Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder

This builder for chaining.

clone()

public CompleteQueryResponse.RecentSearchResult.Builder clone()
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

getDefaultInstanceForType()

public CompleteQueryResponse.RecentSearchResult getDefaultInstanceForType()
Returns
Type Description
CompleteQueryResponse.RecentSearchResult

getDescriptorForType()

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

getRecentSearch()

public String getRecentSearch()

The recent search query.

string recent_search = 1;

Returns
Type Description
String

The recentSearch.

getRecentSearchBytes()

public ByteString getRecentSearchBytes()

The recent search query.

string recent_search = 1;

Returns
Type Description
ByteString

The bytes for recentSearch.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CompleteQueryResponse.RecentSearchResult other)

public CompleteQueryResponse.RecentSearchResult.Builder mergeFrom(CompleteQueryResponse.RecentSearchResult other)
Parameter
Name Description
other CompleteQueryResponse.RecentSearchResult
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CompleteQueryResponse.RecentSearchResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CompleteQueryResponse.RecentSearchResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecentSearch(String value)

public CompleteQueryResponse.RecentSearchResult.Builder setRecentSearch(String value)

The recent search query.

string recent_search = 1;

Parameter
Name Description
value String

The recentSearch to set.

Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder

This builder for chaining.

setRecentSearchBytes(ByteString value)

public CompleteQueryResponse.RecentSearchResult.Builder setRecentSearchBytes(ByteString value)

The recent search query.

string recent_search = 1;

Parameter
Name Description
value ByteString

The bytes for recentSearch to set.

Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CompleteQueryResponse.RecentSearchResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CompleteQueryResponse.RecentSearchResult.Builder
Overrides