Class RemoveSuggestionRequest (0.90.0)

public final class RemoveSuggestionRequest extends GeneratedMessage implements RemoveSuggestionRequestOrBuilder

Request message for CompletionService.RemoveSuggestion method.

Protobuf type google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest

Static Fields

COMPLETION_CONFIG_FIELD_NUMBER

public static final int COMPLETION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS_FIELD_NUMBER

public static final int REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS_FIELD_NUMBER
Field Value
Type Description
int

REMOVE_TIME_FIELD_NUMBER

public static final int REMOVE_TIME_FIELD_NUMBER
Field Value
Type Description
int

SEARCH_HISTORY_SUGGESTION_FIELD_NUMBER

public static final int SEARCH_HISTORY_SUGGESTION_FIELD_NUMBER
Field Value
Type Description
int

USER_INFO_FIELD_NUMBER

public static final int USER_INFO_FIELD_NUMBER
Field Value
Type Description
int

USER_PSEUDO_ID_FIELD_NUMBER

public static final int USER_PSEUDO_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RemoveSuggestionRequest getDefaultInstance()
Returns
Type Description
RemoveSuggestionRequest

getDescriptor()

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

newBuilder()

public static RemoveSuggestionRequest.Builder newBuilder()
Returns
Type Description
RemoveSuggestionRequest.Builder

newBuilder(RemoveSuggestionRequest prototype)

public static RemoveSuggestionRequest.Builder newBuilder(RemoveSuggestionRequest prototype)
Parameter
Name Description
prototype RemoveSuggestionRequest
Returns
Type Description
RemoveSuggestionRequest.Builder

parseDelimitedFrom(InputStream input)

public static RemoveSuggestionRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoveSuggestionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RemoveSuggestionRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RemoveSuggestionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RemoveSuggestionRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RemoveSuggestionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RemoveSuggestionRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoveSuggestionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RemoveSuggestionRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoveSuggestionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RemoveSuggestionRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RemoveSuggestionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RemoveSuggestionRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RemoveSuggestionRequest> parser()
Returns
Type Description
Parser<RemoveSuggestionRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<RemoveSuggestionRequest> getParserForType()
Returns
Type Description
Parser<RemoveSuggestionRequest>
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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RemoveSuggestionRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RemoveSuggestionRequest.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException