Class AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder (0.50.0)

public static final class AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder extends GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder> implements AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilder

Suggestions from recent search history.

Protobuf type google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion build()
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion

buildPartial()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion buildPartial()
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion

clear()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder clear()
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides

clearRecentSearchTime()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder clearRecentSearchTime()

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

clearSuggestion()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder clearSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

This builder for chaining.

clone()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder clone()
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides

getDefaultInstanceForType()

public AdvancedCompleteQueryResponse.RecentSearchSuggestion getDefaultInstanceForType()
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion

getDescriptorForType()

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

getRecentSearchTime()

public Timestamp getRecentSearchTime()

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Returns
Type Description
Timestamp

The recentSearchTime.

getRecentSearchTimeBuilder()

public Timestamp.Builder getRecentSearchTimeBuilder()

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Returns
Type Description
Builder

getRecentSearchTimeOrBuilder()

public TimestampOrBuilder getRecentSearchTimeOrBuilder()

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Returns
Type Description
TimestampOrBuilder

getSuggestion()

public String getSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
String

The suggestion.

getSuggestionBytes()

public ByteString getSuggestionBytes()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
ByteString

The bytes for suggestion.

hasRecentSearchTime()

public boolean hasRecentSearchTime()

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Returns
Type Description
boolean

Whether the recentSearchTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdvancedCompleteQueryResponse.RecentSearchSuggestion other)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder mergeFrom(AdvancedCompleteQueryResponse.RecentSearchSuggestion other)
Parameter
Name Description
other AdvancedCompleteQueryResponse.RecentSearchSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides

mergeRecentSearchTime(Timestamp value)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder mergeRecentSearchTime(Timestamp value)

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecentSearchTime(Timestamp value)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder setRecentSearchTime(Timestamp value)

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

setRecentSearchTime(Timestamp.Builder builderForValue)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder setRecentSearchTime(Timestamp.Builder builderForValue)

The time when this recent rearch happened.

.google.protobuf.Timestamp recent_search_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

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

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

setSuggestion(String value)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder setSuggestion(String value)

The suggestion for the query.

string suggestion = 1;

Parameter
Name Description
value String

The suggestion to set.

Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

This builder for chaining.

setSuggestionBytes(ByteString value)

public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder setSuggestionBytes(ByteString value)

The suggestion for the query.

string suggestion = 1;

Parameter
Name Description
value ByteString

The bytes for suggestion to set.

Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder
Overrides