Service Client: Google::Cloud::Dialogflow::V2::CompanionAgent::CompanionAgentsClient
Client stub representing the remote CompanionAgents gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to dialogflow.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Dialogflow::V2::CompanionAgent - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/companion_agent.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2::CompanionAgent;
my $msg = Google::Cloud::Dialogflow::V2::CompanionAgent::CreateCompanionAgentRequest->new({
parent => $parent,
companion_agent => $companion_agent,
companion_agent_id => $companion_agent_id,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2::CompanionAgent::CreateCompanionAgentRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/companion_agent.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::Dialogflow::V2::CompanionAgent::CreateCompanionAgentRequest
Request of CreateCompanionAgent.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource identifier of the project creating the companion agent. Format: `projects/{project}/locations/{location}`
$msg->companion_agent()/$msg->companion_agent($value)Type:
Message(Google::Cloud::Dialogflow::V2::CompanionAgent::CompanionAgent)Required. The companion agent to create.
$msg->companion_agent_id()/$msg->companion_agent_id($value)Type:
StringOptional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.
Google::Cloud::Dialogflow::V2::CompanionAgent::GetCompanionAgentRequest
Request message for GetCompanionAgent.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The unique resource identifier of the CompanionAgent to get all information for. Format: `projects/{project}/locations/{location}/companionAgents/{companion_agent}`. Contains the information about the {project}, {location}, and {companion_agent}.
Google::Cloud::Dialogflow::V2::CompanionAgent::ListCompanionAgentsRequest
Request message for ListCompanionAgents.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name to list the companion agents for. Format: `projects/{project}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of companion agents to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The page token, received from a previous call.
Google::Cloud::Dialogflow::V2::CompanionAgent::ListCompanionAgentsResponse
Response message for ListCompanionAgents.
Inherits from Protobuf::Message.
Accessors
$msg->companion_agents()/$msg->companion_agents($value)Type:
Message(Google::Cloud::Dialogflow::V2::CompanionAgent::CompanionAgent)The list of companion agents.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::V2::CompanionAgent::UpdateCompanionAgentRequest
Request message for UpdateCompanionAgent.
Inherits from Protobuf::Message.
Accessors
$msg->companion_agent()/$msg->companion_agent($value)Type:
Message(Google::Cloud::Dialogflow::V2::CompanionAgent::CompanionAgent)Required. The Companion Agent to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Update mask for Companion Agent.
Google::Cloud::Dialogflow::V2::CompanionAgent::DeleteCompanionAgentRequest
Request message for DeleteCompanionAgent.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The unique resource identifier of the CompanionAgent to delete. Format: `projects/{project}/locations/{location}/companionAgents/{companion_agent}`.
Google::Cloud::Dialogflow::V2::CompanionAgent::GuidanceInstruction
Guidance instruction for the companion agent.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name for the instruction. This name should be unique within the companion agent.
$msg->display_details()/$msg->display_details($value)Type:
StringOptional. The detailed description of this instruction.
$msg->condition()/$msg->condition($value)Type:
StringOptional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.
$msg->actions()/$msg->actions($value)Type:
Message(Google::Cloud::Dialogflow::V2::CompanionAgent::GuidanceInstruction::Action)Optional. The action items that can be processed.
$msg->trigger_event()/$msg->trigger_event($value)Type:
Enum(Google::Cloud::Dialogflow::V2::CompanionAgent::TriggerEvent)Optional. Event that triggers the guidance instruction. If UNSPECIFIED, the instruction triggering will be the same as the skill's skill_triggering_event.
$msg->disable_suggested_reply()/$msg->disable_suggested_reply($value)Type:
BoolOptional. Whether to disable suggested reply generation for this instruction. When set to `true`, guidance generated from this instruction will not include a suggested reply. Default is `false` (suggested reply enabled).
Google::Cloud::Dialogflow::V2::CompanionAgent::CompanionAgent
Companion agent.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The unique identifier of the companion agent. Format: `projects/{project}/locations/{location}/companionAgents/{companion_agent}`
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of this companion agent.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time of this companion agent.
$msg->toolset_tools()/$msg->toolset_tools($value)Type:
Message(Google::Cloud::Dialogflow::V2::Toolset::ToolsetTool)Optional. List of CES toolset specs that the companion agent can choose from.
$msg->ces_tool_specs()/$msg->ces_tool_specs($value)Type:
Message(Google::Cloud::Dialogflow::V2::CesTool::CesToolSpec)Optional. List of CES tool specs that the companion agent can choose from.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name for the companion agent. Character limit is 63.
$msg->description()/$msg->description($value)Type:
StringOptional. Description for the companion agent.
$msg->skill_configs()/$msg->skill_configs($value)Type:
Message(Google::Cloud::Dialogflow::V2::CompanionAgent::CompanionAgent::SkillConfig)Optional. List of skill configs for the companion agent. Allows at most one instance of each [SkillConfig][google.cloud.dialogflow.v2.CompanionAgent.SkillConfig] type.
Enum: CompanionAgent::TriggerEvent
TRIGGER_EVENT_UNSPECIFIED=>0END_OF_UTTERANCE=>1CUSTOMER_MESSAGE=>2AGENT_MESSAGE=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::CompanionAgent::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.