Class RemoveSuggestionRequest.Builder (0.90.0)

public static final class RemoveSuggestionRequest.Builder extends GeneratedMessage.Builder<RemoveSuggestionRequest.Builder> implements RemoveSuggestionRequestOrBuilder

Request message for CompletionService.RemoveSuggestion method.

Protobuf type google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest

Static Methods

getDescriptor()

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

Methods

build()

public RemoveSuggestionRequest build()
Returns
Type Description
RemoveSuggestionRequest

buildPartial()

public RemoveSuggestionRequest buildPartial()
Returns
Type Description
RemoveSuggestionRequest

clear()

public RemoveSuggestionRequest.Builder clear()
Returns
Type Description
RemoveSuggestionRequest.Builder
Overrides

clearCompletionConfig()

public RemoveSuggestionRequest.Builder clearCompletionConfig()

Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as projects/*/locations/global/collections/default_collection/engines/*/completionConfig.

string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

clearRemoveAllSearchHistorySuggestions()

public RemoveSuggestionRequest.Builder clearRemoveAllSearchHistorySuggestions()

Remove all search history suggestions for the user.

bool remove_all_search_history_suggestions = 6;

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

clearRemoveTime()

public RemoveSuggestionRequest.Builder clearRemoveTime()

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RemoveSuggestionRequest.Builder

clearSearchHistorySuggestion()

public RemoveSuggestionRequest.Builder clearSearchHistorySuggestion()

The search history suggestion to be removed.

string search_history_suggestion = 2;

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

clearSuggestion()

public RemoveSuggestionRequest.Builder clearSuggestion()
Returns
Type Description
RemoveSuggestionRequest.Builder

clearUserInfo()

public RemoveSuggestionRequest.Builder clearUserInfo()

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RemoveSuggestionRequest.Builder

clearUserPseudoId()

public RemoveSuggestionRequest.Builder clearUserPseudoId()

Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as unknown_visitor.

This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id.

The field must be a UTF-8 encoded string with a length limit of 128.

string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

getCompletionConfig()

public String getCompletionConfig()

Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as projects/*/locations/global/collections/default_collection/engines/*/completionConfig.

string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The completionConfig.

getCompletionConfigBytes()

public ByteString getCompletionConfigBytes()

Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as projects/*/locations/global/collections/default_collection/engines/*/completionConfig.

string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for completionConfig.

getDefaultInstanceForType()

public RemoveSuggestionRequest getDefaultInstanceForType()
Returns
Type Description
RemoveSuggestionRequest

getDescriptorForType()

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

getRemoveAllSearchHistorySuggestions()

public boolean getRemoveAllSearchHistorySuggestions()

Remove all search history suggestions for the user.

bool remove_all_search_history_suggestions = 6;

Returns
Type Description
boolean

The removeAllSearchHistorySuggestions.

getRemoveTime()

public Timestamp getRemoveTime()

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The removeTime.

getRemoveTimeBuilder()

public Timestamp.Builder getRemoveTimeBuilder()

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getRemoveTimeOrBuilder()

public TimestampOrBuilder getRemoveTimeOrBuilder()

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getSearchHistorySuggestion()

public String getSearchHistorySuggestion()

The search history suggestion to be removed.

string search_history_suggestion = 2;

Returns
Type Description
String

The searchHistorySuggestion.

getSearchHistorySuggestionBytes()

public ByteString getSearchHistorySuggestionBytes()

The search history suggestion to be removed.

string search_history_suggestion = 2;

Returns
Type Description
ByteString

The bytes for searchHistorySuggestion.

getSuggestionCase()

public RemoveSuggestionRequest.SuggestionCase getSuggestionCase()
Returns
Type Description
RemoveSuggestionRequest.SuggestionCase

getUserInfo()

public UserInfo getUserInfo()

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserInfo

The userInfo.

getUserInfoBuilder()

public UserInfo.Builder getUserInfoBuilder()

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserInfo.Builder

getUserInfoOrBuilder()

public UserInfoOrBuilder getUserInfoOrBuilder()

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserInfoOrBuilder

getUserPseudoId()

public String getUserPseudoId()

Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as unknown_visitor.

This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id.

The field must be a UTF-8 encoded string with a length limit of 128.

string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The userPseudoId.

getUserPseudoIdBytes()

public ByteString getUserPseudoIdBytes()

Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as unknown_visitor.

This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id.

The field must be a UTF-8 encoded string with a length limit of 128.

string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for userPseudoId.

hasRemoveAllSearchHistorySuggestions()

public boolean hasRemoveAllSearchHistorySuggestions()

Remove all search history suggestions for the user.

bool remove_all_search_history_suggestions = 6;

Returns
Type Description
boolean

Whether the removeAllSearchHistorySuggestions field is set.

hasRemoveTime()

public boolean hasRemoveTime()

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the removeTime field is set.

hasSearchHistorySuggestion()

public boolean hasSearchHistorySuggestion()

The search history suggestion to be removed.

string search_history_suggestion = 2;

Returns
Type Description
boolean

Whether the searchHistorySuggestion field is set.

hasUserInfo()

public boolean hasUserInfo()

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RemoveSuggestionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRemoveTime(Timestamp value)

public RemoveSuggestionRequest.Builder mergeRemoveTime(Timestamp value)

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
RemoveSuggestionRequest.Builder

mergeUserInfo(UserInfo value)

public RemoveSuggestionRequest.Builder mergeUserInfo(UserInfo value)

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value UserInfo
Returns
Type Description
RemoveSuggestionRequest.Builder

setCompletionConfig(String value)

public RemoveSuggestionRequest.Builder setCompletionConfig(String value)

Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as projects/*/locations/global/collections/default_collection/engines/*/completionConfig.

string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The completionConfig to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

setCompletionConfigBytes(ByteString value)

public RemoveSuggestionRequest.Builder setCompletionConfigBytes(ByteString value)

Required. The completion_config of the parent engine resource name for which the search history suggestion is to be removed, such as projects/*/locations/global/collections/default_collection/engines/*/completionConfig.

string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for completionConfig to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

setRemoveAllSearchHistorySuggestions(boolean value)

public RemoveSuggestionRequest.Builder setRemoveAllSearchHistorySuggestions(boolean value)

Remove all search history suggestions for the user.

bool remove_all_search_history_suggestions = 6;

Parameter
Name Description
value boolean

The removeAllSearchHistorySuggestions to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

setRemoveTime(Timestamp value)

public RemoveSuggestionRequest.Builder setRemoveTime(Timestamp value)

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
RemoveSuggestionRequest.Builder

setRemoveTime(Timestamp.Builder builderForValue)

public RemoveSuggestionRequest.Builder setRemoveTime(Timestamp.Builder builderForValue)

Required. Time at which the suggestion was removed. If not set, the current time will be used.

.google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RemoveSuggestionRequest.Builder

setSearchHistorySuggestion(String value)

public RemoveSuggestionRequest.Builder setSearchHistorySuggestion(String value)

The search history suggestion to be removed.

string search_history_suggestion = 2;

Parameter
Name Description
value String

The searchHistorySuggestion to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

setSearchHistorySuggestionBytes(ByteString value)

public RemoveSuggestionRequest.Builder setSearchHistorySuggestionBytes(ByteString value)

The search history suggestion to be removed.

string search_history_suggestion = 2;

Parameter
Name Description
value ByteString

The bytes for searchHistorySuggestion to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

setUserInfo(UserInfo value)

public RemoveSuggestionRequest.Builder setUserInfo(UserInfo value)

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value UserInfo
Returns
Type Description
RemoveSuggestionRequest.Builder

setUserInfo(UserInfo.Builder builderForValue)

public RemoveSuggestionRequest.Builder setUserInfo(UserInfo.Builder builderForValue)

Optional. Information about the end user.

This should be the same identifier information as UserEvent.user_info and SearchRequest.user_info.

.google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue UserInfo.Builder
Returns
Type Description
RemoveSuggestionRequest.Builder

setUserPseudoId(String value)

public RemoveSuggestionRequest.Builder setUserPseudoId(String value)

Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as unknown_visitor.

This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id.

The field must be a UTF-8 encoded string with a length limit of 128.

string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The userPseudoId to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.

setUserPseudoIdBytes(ByteString value)

public RemoveSuggestionRequest.Builder setUserPseudoIdBytes(ByteString value)

Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.

This field should NOT have a fixed value such as unknown_visitor.

This should be the same identifier as UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id.

The field must be a UTF-8 encoded string with a length limit of 128.

string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for userPseudoId to set.

Returns
Type Description
RemoveSuggestionRequest.Builder

This builder for chaining.