public static final class AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder extends GeneratedMessage.Builder<AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder> implements AdvancedCompleteQueryResponse.RecentSearchSuggestionOrBuilderSuggestions from recent search history.
Protobuf type
google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdvancedCompleteQueryResponse.RecentSearchSuggestion.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
getDefaultInstanceForType()
public AdvancedCompleteQueryResponse.RecentSearchSuggestion getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdvancedCompleteQueryResponse.RecentSearchSuggestion |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
|
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 |
|
setSuggestion(String value)
public AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder setSuggestion(String value)The suggestion for the query.
string suggestion = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for suggestion to set. |
| Returns | |
|---|---|
| Type | Description |
AdvancedCompleteQueryResponse.RecentSearchSuggestion.Builder |
This builder for chaining. |