public static final class Assistant.Builder extends GeneratedMessage.Builder<Assistant.Builder> implements AssistantOrBuilderDiscovery Engine Assistant resource.
Protobuf type google.cloud.discoveryengine.v1beta.Assistant
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Assistant.BuilderImplements
AssistantOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Assistant build()| Returns | |
|---|---|
| Type | Description |
Assistant |
|
buildPartial()
public Assistant buildPartial()| Returns | |
|---|---|
| Type | Description |
Assistant |
|
clear()
public Assistant.Builder clear()| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
clearCreateTime()
public Assistant.Builder clearCreateTime()Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
clearCustomerPolicy()
public Assistant.Builder clearCustomerPolicy()Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
clearDefaultWebGroundingToggleOff()
public Assistant.Builder clearDefaultWebGroundingToggleOff() Optional. This field controls the default web grounding toggle for end
users if web_grounding_type is set to WEB_GROUNDING_TYPE_GOOGLE_SEARCH
or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. By default, this field is
set to false. If web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH
or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH, end users will have web
grounding enabled by default on UI. If true, grounding toggle will be
disabled by default on UI. End users can still enable web grounding in
the UI if web grounding is enabled.
bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
clearDescription()
public Assistant.Builder clearDescription()Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
clearDisplayName()
public Assistant.Builder clearDisplayName()Required. The assistant display name.
It must be a UTF-8 encoded string with a length limit of 128 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
clearEnabledTools()
public Assistant.Builder clearEnabledTools()| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
clearGenerationConfig()
public Assistant.Builder clearGenerationConfig()Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
clearName()
public Assistant.Builder clearName() Immutable. Resource name of the assistant.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}
It must be a UTF-8 encoded string with a length limit of 1024 characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
clearUpdateTime()
public Assistant.Builder clearUpdateTime()Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
clearWebGroundingType()
public Assistant.Builder clearWebGroundingType()Optional. The type of web grounding to use.
.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
containsEnabledTools(String key)
public boolean containsEnabledTools(String key)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCreateTime()
public Timestamp getCreateTime()Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getCustomerPolicy()
public Assistant.CustomerPolicy getCustomerPolicy()Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.CustomerPolicy |
The customerPolicy. |
getCustomerPolicyBuilder()
public Assistant.CustomerPolicy.Builder getCustomerPolicyBuilder()Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.CustomerPolicy.Builder |
|
getCustomerPolicyOrBuilder()
public Assistant.CustomerPolicyOrBuilder getCustomerPolicyOrBuilder()Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.CustomerPolicyOrBuilder |
|
getDefaultInstanceForType()
public Assistant getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Assistant |
|
getDefaultWebGroundingToggleOff()
public boolean getDefaultWebGroundingToggleOff() Optional. This field controls the default web grounding toggle for end
users if web_grounding_type is set to WEB_GROUNDING_TYPE_GOOGLE_SEARCH
or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. By default, this field is
set to false. If web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH
or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH, end users will have web
grounding enabled by default on UI. If true, grounding toggle will be
disabled by default on UI. End users can still enable web grounding in
the UI if web grounding is enabled.
bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The defaultWebGroundingToggleOff. |
getDescription()
public String getDescription()Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Required. The assistant display name.
It must be a UTF-8 encoded string with a length limit of 128 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Required. The assistant display name.
It must be a UTF-8 encoded string with a length limit of 128 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getEnabledTools() (deprecated)
public Map<String,Assistant.ToolList> getEnabledTools()Use #getEnabledToolsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,ToolList> |
|
getEnabledToolsCount()
public int getEnabledToolsCount()Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getEnabledToolsMap()
public Map<String,Assistant.ToolList> getEnabledToolsMap()Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,ToolList> |
|
getEnabledToolsOrDefault(String key, Assistant.ToolList defaultValue)
public Assistant.ToolList getEnabledToolsOrDefault(String key, Assistant.ToolList defaultValue)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
Assistant.ToolList |
| Returns | |
|---|---|
| Type | Description |
Assistant.ToolList |
|
getEnabledToolsOrThrow(String key)
public Assistant.ToolList getEnabledToolsOrThrow(String key)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Assistant.ToolList |
|
getGenerationConfig()
public Assistant.GenerationConfig getGenerationConfig()Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.GenerationConfig |
The generationConfig. |
getGenerationConfigBuilder()
public Assistant.GenerationConfig.Builder getGenerationConfigBuilder()Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.GenerationConfig.Builder |
|
getGenerationConfigOrBuilder()
public Assistant.GenerationConfigOrBuilder getGenerationConfigOrBuilder()Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.GenerationConfigOrBuilder |
|
getMutableEnabledTools() (deprecated)
public Map<String,Assistant.ToolList> getMutableEnabledTools()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,ToolList> |
|
getName()
public String getName() Immutable. Resource name of the assistant.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}
It must be a UTF-8 encoded string with a length limit of 1024 characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Immutable. Resource name of the assistant.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}
It must be a UTF-8 encoded string with a length limit of 1024 characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getWebGroundingType()
public Assistant.WebGroundingType getWebGroundingType()Optional. The type of web grounding to use.
.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Assistant.WebGroundingType |
The webGroundingType. |
getWebGroundingTypeValue()
public int getWebGroundingTypeValue()Optional. The type of web grounding to use.
.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for webGroundingType. |
hasCreateTime()
public boolean hasCreateTime()Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasCustomerPolicy()
public boolean hasCustomerPolicy()Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the customerPolicy field is set. |
hasGenerationConfig()
public boolean hasGenerationConfig()Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the generationConfig field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Assistant.Builder mergeCreateTime(Timestamp value)Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
mergeCustomerPolicy(Assistant.CustomerPolicy value)
public Assistant.Builder mergeCustomerPolicy(Assistant.CustomerPolicy value)Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant.CustomerPolicy |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
mergeFrom(Assistant other)
public Assistant.Builder mergeFrom(Assistant other)| Parameter | |
|---|---|
| Name | Description |
other |
Assistant |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Assistant.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Assistant.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
mergeGenerationConfig(Assistant.GenerationConfig value)
public Assistant.Builder mergeGenerationConfig(Assistant.GenerationConfig value)Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant.GenerationConfig |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
mergeUpdateTime(Timestamp value)
public Assistant.Builder mergeUpdateTime(Timestamp value)Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
putAllEnabledTools(Map<String,Assistant.ToolList> values)
public Assistant.Builder putAllEnabledTools(Map<String,Assistant.ToolList> values)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,ToolList> |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
putEnabledTools(String key, Assistant.ToolList value)
public Assistant.Builder putEnabledTools(String key, Assistant.ToolList value)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
Assistant.ToolList |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
putEnabledToolsBuilderIfAbsent(String key)
public Assistant.ToolList.Builder putEnabledToolsBuilderIfAbsent(String key)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Assistant.ToolList.Builder |
|
removeEnabledTools(String key)
public Assistant.Builder removeEnabledTools(String key)Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setCreateTime(Timestamp value)
public Assistant.Builder setCreateTime(Timestamp value)Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Assistant.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Represents the time when this Assistant was created.
.google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setCustomerPolicy(Assistant.CustomerPolicy value)
public Assistant.Builder setCustomerPolicy(Assistant.CustomerPolicy value)Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant.CustomerPolicy |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setCustomerPolicy(Assistant.CustomerPolicy.Builder builderForValue)
public Assistant.Builder setCustomerPolicy(Assistant.CustomerPolicy.Builder builderForValue)Optional. Customer policy for the assistant.
.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Assistant.CustomerPolicy.Builder |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setDefaultWebGroundingToggleOff(boolean value)
public Assistant.Builder setDefaultWebGroundingToggleOff(boolean value) Optional. This field controls the default web grounding toggle for end
users if web_grounding_type is set to WEB_GROUNDING_TYPE_GOOGLE_SEARCH
or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH. By default, this field is
set to false. If web_grounding_type is WEB_GROUNDING_TYPE_GOOGLE_SEARCH
or WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH, end users will have web
grounding enabled by default on UI. If true, grounding toggle will be
disabled by default on UI. End users can still enable web grounding in
the UI if web grounding is enabled.
bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe defaultWebGroundingToggleOff to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setDescription(String value)
public Assistant.Builder setDescription(String value)Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Assistant.Builder setDescriptionBytes(ByteString value)Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setDisplayName(String value)
public Assistant.Builder setDisplayName(String value)Required. The assistant display name.
It must be a UTF-8 encoded string with a length limit of 128 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Assistant.Builder setDisplayNameBytes(ByteString value)Required. The assistant display name.
It must be a UTF-8 encoded string with a length limit of 128 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setGenerationConfig(Assistant.GenerationConfig value)
public Assistant.Builder setGenerationConfig(Assistant.GenerationConfig value)Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant.GenerationConfig |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setGenerationConfig(Assistant.GenerationConfig.Builder builderForValue)
public Assistant.Builder setGenerationConfig(Assistant.GenerationConfig.Builder builderForValue)Optional. Configuration for the generation of the assistant response.
.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Assistant.GenerationConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setName(String value)
public Assistant.Builder setName(String value) Immutable. Resource name of the assistant.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}
It must be a UTF-8 encoded string with a length limit of 1024 characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Assistant.Builder setNameBytes(ByteString value) Immutable. Resource name of the assistant.
Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}
It must be a UTF-8 encoded string with a length limit of 1024 characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public Assistant.Builder setUpdateTime(Timestamp value)Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Assistant.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. Represents the time when this Assistant was most recently updated.
.google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
|
setWebGroundingType(Assistant.WebGroundingType value)
public Assistant.Builder setWebGroundingType(Assistant.WebGroundingType value)Optional. The type of web grounding to use.
.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Assistant.WebGroundingTypeThe webGroundingType to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |
setWebGroundingTypeValue(int value)
public Assistant.Builder setWebGroundingTypeValue(int value)Optional. The type of web grounding to use.
.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for webGroundingType to set. |
| Returns | |
|---|---|
| Type | Description |
Assistant.Builder |
This builder for chaining. |