Service Client: Google::Cloud::Discoveryengine::V1beta::AssistantService::AssistantServiceClient
Client stub representing the remote AssistantService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to discoveryengine.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Discoveryengine::V1beta::AssistantService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1beta/assistant_service.proto
SYNOPSIS
use Google::Cloud::Discoveryengine::V1beta::AssistantService;
my $msg = Google::Cloud::Discoveryengine::V1beta::AssistantService::AssistUserMetadata->new({
time_zone => $time_zone,
preferred_language_code => $preferred_language_code,
});
# Read or update a field
my $val = $msg->time_zone();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Discoveryengine::V1beta::AssistantService::AssistUserMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1beta/assistant_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Discoveryengine::V1beta::AssistantService::AssistUserMetadata
User metadata of the request.
Inherits from Protobuf::Message.
Accessors
$msg->time_zone()/$msg->time_zone($value)Type:
StringOptional. IANA time zone, e.g. Europe/Budapest.
$msg->preferred_language_code()/$msg->preferred_language_code($value)Type:
StringOptional. Preferred language to be used for answering if language detection fails. Also used as the language of error messages created by actions, regardless of language detection results.
Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistRequest
Request for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
$msg->query()/$msg->query($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Session::Query)Optional. Current user query.
Empty query is only supported if `file_ids` are provided. In this case, the answer will be generated based on those context files.
$msg->session()/$msg->session($value)Type:
StringOptional. The session to use for the request. If specified, the assistant has access to the session history, and the query and the answer are stored there.
If `-` is specified as the session ID, or it is left empty, then a new session is created with an automatically generated ID.
Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
$msg->user_metadata()/$msg->user_metadata($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistantService::AssistUserMetadata)Optional. Information about the user initiating the query.
$msg->agents_spec()/$msg->agents_spec($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistRequest::AgentsSpec)Optional. Specification of agents that are used to serve the request.
$msg->tools_spec()/$msg->tools_spec($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistRequest::ToolsSpec)Optional. Specification of tools that are used to serve the request.
$msg->generation_spec()/$msg->generation_spec($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistRequest::GenerationSpec)Optional. Specification of the generation configuration for the request.
Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistResponse
Response for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist] method.
Inherits from Protobuf::Message.
Accessors
$msg->answer()/$msg->answer($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistAnswer::AssistAnswer)Assist answer resource object containing parts of the assistant's final answer for the user's query.
Not present if the current response doesn't add anything to previously sent [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
Observe [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies] field in each response will contain replies (reply fragments) to be appended to the ones received in previous responses. [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name] won't be filled.
If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response is the last response and [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name] will have a value.
$msg->session_info()/$msg->session_info($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistResponse::SessionInfo)Session information. Only included in the final StreamAssistResponse of the response stream.
$msg->assist_token()/$msg->assist_token($value)Type:
StringA global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.
$msg->invocation_tools()/$msg->invocation_tools($value)Type:
StringThe tool names of the tools that were invoked.
$msg->invoked_skills()/$msg->invoked_skills($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::AssistantService::StreamAssistResponse::InvokedSkill)The skills executed during the turn.
Google::Cloud::Discoveryengine::V1beta::AssistantService::CreateAssistantRequest
Request for the [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.CreateAssistant] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
$msg->assistant()/$msg->assistant($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant)Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to create.
$msg->assistant_id()/$msg->assistant_id($value)Type:
StringRequired. The ID to use for the [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will become the final component of the [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
Google::Cloud::Discoveryengine::V1beta::AssistantService::DeleteAssistantRequest
Request message for the [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1beta.AssistantService.DeleteAssistant] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
If the caller does not have permission to delete the [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete does not exist, a NOT_FOUND error is returned.
Google::Cloud::Discoveryengine::V1beta::AssistantService::GetAssistantRequest
Request message for the [AssistantService.GetAssistant][google.cloud.discoveryengine.v1beta.AssistantService.GetAssistant] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
Google::Cloud::Discoveryengine::V1beta::AssistantService::ListAssistantsRequest
Request message for the [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token], received from a previous [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] must match the call that provided the page token.
Google::Cloud::Discoveryengine::V1beta::AssistantService::ListAssistantsResponse
Response message for the [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] method.
Inherits from Protobuf::Message.
Accessors
$msg->assistants()/$msg->assistants($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant)All the customer's [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Discoveryengine::V1beta::AssistantService::UpdateAssistantRequest
Request message for the [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.UpdateAssistant] method.
Inherits from Protobuf::Message.
Accessors
$msg->assistant()/$msg->assistant($value)Type:
Message(Google::Cloud::Discoveryengine::V1beta::Assistant::Assistant)Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name` field is used to identify the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
If the caller does not have permission to update the [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update does not exist, a NOT_FOUND error is returned.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The list of fields to update.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Discoveryengine::V1beta::AssistantService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.