NAME
Google::Cloud::Dialogflow::V2beta1::SessionsClient - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Dialogflow::V2beta1::SessionsClient;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Dialogflow::V2beta1::SessionsClient->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Dialogflow::V2beta1::SessionsClient->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Dialogflow::V2beta1::SessionsClient is an auto-generated client library for Google Cloud Services.
It provides a unified client interface supporting both high-performance HTTP/2 gRPC and HTTP/REST transports, with automatic Google Cloud Application Default Credentials (ADC) resolution and typed Protocol Buffers message handling.
SOURCE
Generated from the following Protocol Buffers schemas:
googleapis/google/cloud/dialogflow/v2beta1/agent.protogoogleapis/google/cloud/dialogflow/v2beta1/agent_coaching_instruction.protogoogleapis/google/cloud/dialogflow/v2beta1/answer_record.protogoogleapis/google/cloud/dialogflow/v2beta1/audio_config.protogoogleapis/google/cloud/dialogflow/v2beta1/ces_app.protogoogleapis/google/cloud/dialogflow/v2beta1/ces_tool.protogoogleapis/google/cloud/dialogflow/v2beta1/companion_agent.protogoogleapis/google/cloud/dialogflow/v2beta1/context.protogoogleapis/google/cloud/dialogflow/v2beta1/conversation.protogoogleapis/google/cloud/dialogflow/v2beta1/conversation_event.protogoogleapis/google/cloud/dialogflow/v2beta1/conversation_profile.protogoogleapis/google/cloud/dialogflow/v2beta1/document.protogoogleapis/google/cloud/dialogflow/v2beta1/encryption_spec.protogoogleapis/google/cloud/dialogflow/v2beta1/entity_type.protogoogleapis/google/cloud/dialogflow/v2beta1/environment.protogoogleapis/google/cloud/dialogflow/v2beta1/fulfillment.protogoogleapis/google/cloud/dialogflow/v2beta1/gcs.protogoogleapis/google/cloud/dialogflow/v2beta1/generator.protogoogleapis/google/cloud/dialogflow/v2beta1/generator_evaluation.protogoogleapis/google/cloud/dialogflow/v2beta1/grounding.protogoogleapis/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.protogoogleapis/google/cloud/dialogflow/v2beta1/intent.protogoogleapis/google/cloud/dialogflow/v2beta1/knowledge_base.protogoogleapis/google/cloud/dialogflow/v2beta1/operations.protogoogleapis/google/cloud/dialogflow/v2beta1/participant.protogoogleapis/google/cloud/dialogflow/v2beta1/phone_number.protogoogleapis/google/cloud/dialogflow/v2beta1/session.protogoogleapis/google/cloud/dialogflow/v2beta1/session_entity_type.protogoogleapis/google/cloud/dialogflow/v2beta1/sip_trunk.protogoogleapis/google/cloud/dialogflow/v2beta1/tool.protogoogleapis/google/cloud/dialogflow/v2beta1/tool_call.protogoogleapis/google/cloud/dialogflow/v2beta1/toolset.protogoogleapis/google/cloud/dialogflow/v2beta1/validation_result.protogoogleapis/google/cloud/dialogflow/v2beta1/version.protogoogleapis/google/cloud/dialogflow/v2beta1/webhook.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Dialogflow::V2beta1::SessionsClient->new(
credentials => $auth, # Optional: Google::Auth object (defaults to ADC)
transport => 'grpc', # Optional: 'grpc' (default) or 'rest'
);
ATTRIBUTES
credentials
Returns or accepts the Google::Auth credentials object.
transport
Returns or accepts the active transport object (Google::gRPC::Client or Google::Cloud::REST::Client).
METHODS
METHODS
The following RPC methods are available in this client:
detect_intent
my $response = $client->detect_intent( session => $session, query_params => $query_params, query_input => $query_input, output_audio_config => $output_audio_config, output_audio_config_mask => $output_audio_config_mask, input_audio => $input_audio, );Calls the RPC method
DetectIntentongoogle.cloud.dialogflow.v2beta1.Sessions.Request: Google::Cloud::Dialogflow::V2beta1::Session::DetectIntentRequest
Returns: Google::Cloud::Dialogflow::V2beta1::Session::DetectIntentResponse
Parameters:
session-stringquery_params- Google::Cloud::Dialogflow::V2beta1::Session::QueryParametersquery_input- Google::Cloud::Dialogflow::V2beta1::Session::QueryInputoutput_audio_config- Google::Cloud::Dialogflow::V2beta1::AudioConfig::OutputAudioConfigoutput_audio_config_mask- Google::Protobuf::FieldMask::FieldMaskinput_audio-bytes
streaming_detect_intent
my $response = $client->streaming_detect_intent( session => $session, query_params => $query_params, query_input => $query_input, single_utterance => $single_utterance, output_audio_config => $output_audio_config, output_audio_config_mask => $output_audio_config_mask, input_audio => $input_audio, enable_debugging_info => $enable_debugging_info, );Calls the RPC method
StreamingDetectIntentongoogle.cloud.dialogflow.v2beta1.Sessions.Request: Google::Cloud::Dialogflow::V2beta1::Session::StreamingDetectIntentRequest
Returns: Google::Cloud::Dialogflow::V2beta1::Session::StreamingDetectIntentResponse
Parameters:
session-stringquery_params- Google::Cloud::Dialogflow::V2beta1::Session::QueryParametersquery_input- Google::Cloud::Dialogflow::V2beta1::Session::QueryInputsingle_utterance-booloutput_audio_config- Google::Cloud::Dialogflow::V2beta1::AudioConfig::OutputAudioConfigoutput_audio_config_mask- Google::Protobuf::FieldMask::FieldMaskinput_audio-bytesenable_debugging_info-bool
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.