Class CompleteQueryResponse.RecentSearchResult.Builder (2.11.0)

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

Recent search of this user.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CompleteQueryResponse.RecentSearchResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

build()

public CompleteQueryResponse.RecentSearchResult build()
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult

buildPartial()

public CompleteQueryResponse.RecentSearchResult buildPartial()
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult

clear()

public CompleteQueryResponse.RecentSearchResult.Builder clear()
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CompleteQueryResponse.RecentSearchResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CompleteQueryResponse.RecentSearchResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

clearRecentSearch()

public CompleteQueryResponse.RecentSearchResult.Builder clearRecentSearch()

The recent search query.

string recent_search = 1;

Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder

This builder for chaining.

clone()

public CompleteQueryResponse.RecentSearchResult.Builder clone()
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

getDefaultInstanceForType()

public CompleteQueryResponse.RecentSearchResult getDefaultInstanceForType()
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRecentSearch()

public String getRecentSearch()

The recent search query.

string recent_search = 1;

Returns
TypeDescription
String

The recentSearch.

getRecentSearchBytes()

public ByteString getRecentSearchBytes()

The recent search query.

string recent_search = 1;

Returns
TypeDescription
ByteString

The bytes for recentSearch.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CompleteQueryResponse.RecentSearchResult other)

public CompleteQueryResponse.RecentSearchResult.Builder mergeFrom(CompleteQueryResponse.RecentSearchResult other)
Parameter
NameDescription
otherCompleteQueryResponse.RecentSearchResult
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CompleteQueryResponse.RecentSearchResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CompleteQueryResponse.RecentSearchResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CompleteQueryResponse.RecentSearchResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CompleteQueryResponse.RecentSearchResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

setRecentSearch(String value)

public CompleteQueryResponse.RecentSearchResult.Builder setRecentSearch(String value)

The recent search query.

string recent_search = 1;

Parameter
NameDescription
valueString

The recentSearch to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for recentSearch to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CompleteQueryResponse.RecentSearchResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CompleteQueryResponse.RecentSearchResult.Builder
Overrides