Class ConverseConversationRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
- com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.Builder
-
- All Implemented Interfaces:
ConverseConversationRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConverseConversationRequest
public static final class ConverseConversationRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder> implements ConverseConversationRequestOrBuilder
Request message for [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation] method.
Protobuf typegoogle.cloud.discoveryengine.v1beta.ConverseConversationRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConverseConversationRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConverseConversationRequestbuild()ConverseConversationRequestbuildPartial()ConverseConversationRequest.Builderclear()ConverseConversationRequest.BuilderclearConversation()The conversation to be used by auto session only.ConverseConversationRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ConverseConversationRequest.BuilderclearName()Required.ConverseConversationRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ConverseConversationRequest.BuilderclearQuery()Required.ConverseConversationRequest.BuilderclearSafeSearch()Whether to turn on safe search.ConverseConversationRequest.BuilderclearServingConfig()The resource name of the Serving Config to use.ConverseConversationRequest.BuilderclearSummarySpec()A specification for configuring the summary returned in the response.ConverseConversationRequest.BuilderclearUserLabels()ConverseConversationRequest.Builderclone()booleancontainsUserLabels(String key)The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.ConversationgetConversation()The conversation to be used by auto session only.Conversation.BuildergetConversationBuilder()The conversation to be used by auto session only.ConversationOrBuildergetConversationOrBuilder()The conversation to be used by auto session only.ConverseConversationRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMutableUserLabels()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.TextInputgetQuery()Required.TextInput.BuildergetQueryBuilder()Required.TextInputOrBuildergetQueryOrBuilder()Required.booleangetSafeSearch()Whether to turn on safe search.StringgetServingConfig()The resource name of the Serving Config to use.com.google.protobuf.ByteStringgetServingConfigBytes()The resource name of the Serving Config to use.SearchRequest.ContentSearchSpec.SummarySpecgetSummarySpec()A specification for configuring the summary returned in the response.SearchRequest.ContentSearchSpec.SummarySpec.BuildergetSummarySpecBuilder()A specification for configuring the summary returned in the response.SearchRequest.ContentSearchSpec.SummarySpecOrBuildergetSummarySpecOrBuilder()A specification for configuring the summary returned in the response.Map<String,String>getUserLabels()Deprecated.intgetUserLabelsCount()The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.Map<String,String>getUserLabelsMap()The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.StringgetUserLabelsOrDefault(String key, String defaultValue)The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.StringgetUserLabelsOrThrow(String key)The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.booleanhasConversation()The conversation to be used by auto session only.booleanhasQuery()Required.booleanhasSummarySpec()A specification for configuring the summary returned in the response.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ConverseConversationRequest.BuildermergeConversation(Conversation value)The conversation to be used by auto session only.ConverseConversationRequest.BuildermergeFrom(ConverseConversationRequest other)ConverseConversationRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ConverseConversationRequest.BuildermergeFrom(com.google.protobuf.Message other)ConverseConversationRequest.BuildermergeQuery(TextInput value)Required.ConverseConversationRequest.BuildermergeSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)A specification for configuring the summary returned in the response.ConverseConversationRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ConverseConversationRequest.BuilderputAllUserLabels(Map<String,String> values)The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.ConverseConversationRequest.BuilderputUserLabels(String key, String value)The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.ConverseConversationRequest.BuilderremoveUserLabels(String key)The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.ConverseConversationRequest.BuildersetConversation(Conversation value)The conversation to be used by auto session only.ConverseConversationRequest.BuildersetConversation(Conversation.Builder builderForValue)The conversation to be used by auto session only.ConverseConversationRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ConverseConversationRequest.BuildersetName(String value)Required.ConverseConversationRequest.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.ConverseConversationRequest.BuildersetQuery(TextInput value)Required.ConverseConversationRequest.BuildersetQuery(TextInput.Builder builderForValue)Required.ConverseConversationRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ConverseConversationRequest.BuildersetSafeSearch(boolean value)Whether to turn on safe search.ConverseConversationRequest.BuildersetServingConfig(String value)The resource name of the Serving Config to use.ConverseConversationRequest.BuildersetServingConfigBytes(com.google.protobuf.ByteString value)The resource name of the Serving Config to use.ConverseConversationRequest.BuildersetSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)A specification for configuring the summary returned in the response.ConverseConversationRequest.BuildersetSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue)A specification for configuring the summary returned in the response.ConverseConversationRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
clear
public ConverseConversationRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
getDefaultInstanceForType
public ConverseConversationRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConverseConversationRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConverseConversationRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConverseConversationRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
setField
public ConverseConversationRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
clearField
public ConverseConversationRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
clearOneof
public ConverseConversationRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
setRepeatedField
public ConverseConversationRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
addRepeatedField
public ConverseConversationRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
mergeFrom
public ConverseConversationRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConverseConversationRequest.Builder>
-
mergeFrom
public ConverseConversationRequest.Builder mergeFrom(ConverseConversationRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
mergeFrom
public ConverseConversationRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConverseConversationRequest.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceConverseConversationRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceConverseConversationRequestOrBuilder- Returns:
- The bytes for name.
-
setName
public ConverseConversationRequest.Builder setName(String value)
Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ConverseConversationRequest.Builder clearName()
Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public ConverseConversationRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasQuery
public boolean hasQuery()
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasQueryin interfaceConverseConversationRequestOrBuilder- Returns:
- Whether the query field is set.
-
getQuery
public TextInput getQuery()
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryin interfaceConverseConversationRequestOrBuilder- Returns:
- The query.
-
setQuery
public ConverseConversationRequest.Builder setQuery(TextInput value)
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
-
setQuery
public ConverseConversationRequest.Builder setQuery(TextInput.Builder builderForValue)
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
-
mergeQuery
public ConverseConversationRequest.Builder mergeQuery(TextInput value)
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearQuery
public ConverseConversationRequest.Builder clearQuery()
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
-
getQueryBuilder
public TextInput.Builder getQueryBuilder()
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
-
getQueryOrBuilder
public TextInputOrBuilder getQueryOrBuilder()
Required. Current user input.
.google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryOrBuilderin interfaceConverseConversationRequestOrBuilder
-
getServingConfig
public String getServingConfig()
The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not set, the default serving config will be used.string serving_config = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getServingConfigin interfaceConverseConversationRequestOrBuilder- Returns:
- The servingConfig.
-
getServingConfigBytes
public com.google.protobuf.ByteString getServingConfigBytes()
The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not set, the default serving config will be used.string serving_config = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getServingConfigBytesin interfaceConverseConversationRequestOrBuilder- Returns:
- The bytes for servingConfig.
-
setServingConfig
public ConverseConversationRequest.Builder setServingConfig(String value)
The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not set, the default serving config will be used.string serving_config = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The servingConfig to set.- Returns:
- This builder for chaining.
-
clearServingConfig
public ConverseConversationRequest.Builder clearServingConfig()
The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not set, the default serving config will be used.string serving_config = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServingConfigBytes
public ConverseConversationRequest.Builder setServingConfigBytes(com.google.protobuf.ByteString value)
The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not set, the default serving config will be used.string serving_config = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for servingConfig to set.- Returns:
- This builder for chaining.
-
hasConversation
public boolean hasConversation()
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;- Specified by:
hasConversationin interfaceConverseConversationRequestOrBuilder- Returns:
- Whether the conversation field is set.
-
getConversation
public Conversation getConversation()
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;- Specified by:
getConversationin interfaceConverseConversationRequestOrBuilder- Returns:
- The conversation.
-
setConversation
public ConverseConversationRequest.Builder setConversation(Conversation value)
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
-
setConversation
public ConverseConversationRequest.Builder setConversation(Conversation.Builder builderForValue)
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
-
mergeConversation
public ConverseConversationRequest.Builder mergeConversation(Conversation value)
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
-
clearConversation
public ConverseConversationRequest.Builder clearConversation()
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
-
getConversationBuilder
public Conversation.Builder getConversationBuilder()
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
-
getConversationOrBuilder
public ConversationOrBuilder getConversationOrBuilder()
The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
.google.cloud.discoveryengine.v1beta.Conversation conversation = 5;- Specified by:
getConversationOrBuilderin interfaceConverseConversationRequestOrBuilder
-
getSafeSearch
public boolean getSafeSearch()
Whether to turn on safe search.
bool safe_search = 6;- Specified by:
getSafeSearchin interfaceConverseConversationRequestOrBuilder- Returns:
- The safeSearch.
-
setSafeSearch
public ConverseConversationRequest.Builder setSafeSearch(boolean value)
Whether to turn on safe search.
bool safe_search = 6;- Parameters:
value- The safeSearch to set.- Returns:
- This builder for chaining.
-
clearSafeSearch
public ConverseConversationRequest.Builder clearSafeSearch()
Whether to turn on safe search.
bool safe_search = 6;- Returns:
- This builder for chaining.
-
getUserLabelsCount
public int getUserLabelsCount()
Description copied from interface:ConverseConversationRequestOrBuilderThe user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;- Specified by:
getUserLabelsCountin interfaceConverseConversationRequestOrBuilder
-
containsUserLabels
public boolean containsUserLabels(String key)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;- Specified by:
containsUserLabelsin interfaceConverseConversationRequestOrBuilder
-
getUserLabels
@Deprecated public Map<String,String> getUserLabels()
Deprecated.UsegetUserLabelsMap()instead.- Specified by:
getUserLabelsin interfaceConverseConversationRequestOrBuilder
-
getUserLabelsMap
public Map<String,String> getUserLabelsMap()
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;- Specified by:
getUserLabelsMapin interfaceConverseConversationRequestOrBuilder
-
getUserLabelsOrDefault
public String getUserLabelsOrDefault(String key, String defaultValue)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;- Specified by:
getUserLabelsOrDefaultin interfaceConverseConversationRequestOrBuilder
-
getUserLabelsOrThrow
public String getUserLabelsOrThrow(String key)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;- Specified by:
getUserLabelsOrThrowin interfaceConverseConversationRequestOrBuilder
-
clearUserLabels
public ConverseConversationRequest.Builder clearUserLabels()
-
removeUserLabels
public ConverseConversationRequest.Builder removeUserLabels(String key)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;
-
getMutableUserLabels
@Deprecated public Map<String,String> getMutableUserLabels()
Deprecated.Use alternate mutation accessors instead.
-
putUserLabels
public ConverseConversationRequest.Builder putUserLabels(String key, String value)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;
-
putAllUserLabels
public ConverseConversationRequest.Builder putAllUserLabels(Map<String,String> values)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 7;
-
hasSummarySpec
public boolean hasSummarySpec()
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;- Specified by:
hasSummarySpecin interfaceConverseConversationRequestOrBuilder- Returns:
- Whether the summarySpec field is set.
-
getSummarySpec
public SearchRequest.ContentSearchSpec.SummarySpec getSummarySpec()
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;- Specified by:
getSummarySpecin interfaceConverseConversationRequestOrBuilder- Returns:
- The summarySpec.
-
setSummarySpec
public ConverseConversationRequest.Builder setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;
-
setSummarySpec
public ConverseConversationRequest.Builder setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.Builder builderForValue)
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;
-
mergeSummarySpec
public ConverseConversationRequest.Builder mergeSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec value)
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;
-
clearSummarySpec
public ConverseConversationRequest.Builder clearSummarySpec()
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;
-
getSummarySpecBuilder
public SearchRequest.ContentSearchSpec.SummarySpec.Builder getSummarySpecBuilder()
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;
-
getSummarySpecOrBuilder
public SearchRequest.ContentSearchSpec.SummarySpecOrBuilder getSummarySpecOrBuilder()
A specification for configuring the summary returned in the response.
.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;- Specified by:
getSummarySpecOrBuilderin interfaceConverseConversationRequestOrBuilder
-
setUnknownFields
public final ConverseConversationRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
mergeUnknownFields
public final ConverseConversationRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConverseConversationRequest.Builder>
-
-