Service Client: Google::Cloud::Discoveryengine::V1::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::V1::AssistantService - Compiled Protocol Buffers messages for google/cloud/discoveryengine/v1/assistant_service.proto

SYNOPSIS

use Google::Cloud::Discoveryengine::V1::AssistantService;

my $msg = Google::Cloud::Discoveryengine::V1::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::V1::AssistantService::AssistUserMetadata->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/discoveryengine/v1/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::V1::AssistantService::AssistUserMetadata

User metadata of the request.

Inherits from Protobuf::Message.

Accessors

  • $msg->time_zone() / $msg->time_zone($value)

    Type: String

    Optional. IANA time zone, e.g. Europe/Budapest.

  • $msg->preferred_language_code() / $msg->preferred_language_code($value)

    Type: String

    Optional. 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::V1::AssistantService::StreamAssistRequest

Request for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Discoveryengine::V1::AssistantService::StreamAssistResponse

Response for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->answer() / $msg->answer($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::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.v1.AssistAnswer.replies].

    Observe [AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to see if more parts are to be expected. While the state is `IN_PROGRESS`, the [AssistAnswer.replies][google.cloud.discoveryengine.v1.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.v1.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.v1.AssistAnswer.name] will have a value.

  • $msg->session_info() / $msg->session_info($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::AssistantService::StreamAssistResponse::SessionInfo)

    Session information. Only included in the final StreamAssistResponse of the response stream.

  • $msg->assist_token() / $msg->assist_token($value)

    Type: String

    A 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: String

    The tool names of the tools that were invoked.

  • $msg->invoked_skills() / $msg->invoked_skills($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::AssistantService::StreamAssistResponse::InvokedSkill)

    The skills executed during the turn.

  • $msg->connector_auth_errors() / $msg->connector_auth_errors($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::AssistantService::StreamAssistResponse::ConnectorAuthError)

    Per-connector authentication errors encountered during the request. Present when one or more connectors failed authentication but the request proceeded with the remaining connectors.

Google::Cloud::Discoveryengine::V1::AssistantService::CreateAssistantRequest

Request for the [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1.AssistantService.CreateAssistant] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`

  • $msg->assistant() / $msg->assistant($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::Assistant::Assistant)

    Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to create.

  • $msg->assistant_id() / $msg->assistant_id($value)

    Type: String

    Required. The ID to use for the [Assistant][google.cloud.discoveryengine.v1.Assistant], which will become the final component of the [Assistant][google.cloud.discoveryengine.v1.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::V1::AssistantService::DeleteAssistantRequest

Request message for the [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1.AssistantService.DeleteAssistant] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of [Assistant][google.cloud.discoveryengine.v1.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.v1.Assistant], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the [Assistant][google.cloud.discoveryengine.v1.Assistant] to delete does not exist, a NOT_FOUND error is returned.

Google::Cloud::Discoveryengine::V1::AssistantService::GetAssistantRequest

Request message for the [AssistantService.GetAssistant][google.cloud.discoveryengine.v1.AssistantService.GetAssistant] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Resource name of [Assistant][google.cloud.discoveryengine.v1.Assistant]. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`

Google::Cloud::Discoveryengine::V1::AssistantService::ListAssistantsRequest

Request message for the [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum number of [Assistant][google.cloud.discoveryengine.v1.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: String

    A page token [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1.ListAssistantsResponse.next_page_token], received from a previous [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to [ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] must match the call that provided the page token.

Google::Cloud::Discoveryengine::V1::AssistantService::ListAssistantsResponse

Response message for the [AssistantService.ListAssistants][google.cloud.discoveryengine.v1.AssistantService.ListAssistants] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->assistants() / $msg->assistants($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::Assistant::Assistant)

    All the customer's [Assistant][google.cloud.discoveryengine.v1.Assistant]s.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1.ListAssistantsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Discoveryengine::V1::AssistantService::UpdateAssistantRequest

Request message for the [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1.AssistantService.UpdateAssistant] method.

Inherits from Protobuf::Message.

Accessors

  • $msg->assistant() / $msg->assistant($value)

    Type: Message (Google::Cloud::Discoveryengine::V1::Assistant::Assistant)

    Required. The [Assistant][google.cloud.discoveryengine.v1.Assistant] to update.

    The [Assistant][google.cloud.discoveryengine.v1.Assistant]'s `name` field is used to identify the [Assistant][google.cloud.discoveryengine.v1.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.v1.Assistant], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

    If the [Assistant][google.cloud.discoveryengine.v1.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::V1::AssistantService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.