Reference documentation and code samples for the Dialogflow API module Google::Cloud::Dialogflow.
Methods
.agents
def self.agents(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Agents.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Agents::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Agents service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Agents service. You can determine whether the method will succeed by calling Dialogflow.agents_available?.
About Agents
Service for managing Agents.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.agents_available?
def self.agents_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Agents service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.agents. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Agents service, or if the versioned client gem needs an update to support the Agents service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.answer_records
def self.answer_records(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for AnswerRecords.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::AnswerRecords::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the AnswerRecords service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the AnswerRecords service. You can determine whether the method will succeed by calling Dialogflow.answer_records_available?.
About AnswerRecords
Service for managing AnswerRecords.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.answer_records_available?
def self.answer_records_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the AnswerRecords service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.answer_records. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AnswerRecords service, or if the versioned client gem needs an update to support the AnswerRecords service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.configure
def self.configure() -> ::Google::Cloud::Config
Configure the google-cloud-dialogflow library.
The following configuration parameters are supported:
credentials
(type:String, Hash, Google::Auth::Credentials
) - The path to the keyfile as a String, the contents of the keyfile as a Hash, or a Google::Auth::Credentials object.lib_name
(type:String
) - The library name as recorded in instrumentation and logging.lib_version
(type:String
) - The library version as recorded in instrumentation and logging.interceptors
(type:Array<GRPC::ClientInterceptor>
) - An array of interceptors that are run before calls are executed.timeout
(type:Numeric
) - Default timeout in seconds.metadata
(type:Hash{Symbol=>String}
) - Additional headers to be sent with the call.retry_policy
(type:Hash
) - The retry policy. The value is a hash with the following keys::initial_delay
(type:Numeric
) - The initial delay in seconds.:max_delay
(type:Numeric
) - The max delay in seconds.:multiplier
(type:Numeric
) - The incremental backoff multiplier.:retry_codes
(type:Array<String>
) - The error codes that should trigger a retry.
- (::Google::Cloud.configure.dialogflow)
- (::Google::Cloud::Config) — The default configuration used by this library
.contexts
def self.contexts(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Contexts.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Contexts::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Contexts service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Contexts service. You can determine whether the method will succeed by calling Dialogflow.contexts_available?.
About Contexts
Service for managing Contexts.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.contexts_available?
def self.contexts_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Contexts service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.contexts. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Contexts service, or if the versioned client gem needs an update to support the Contexts service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.conversation_datasets
def self.conversation_datasets(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for ConversationDatasets.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::ConversationDatasets::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the ConversationDatasets service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the ConversationDatasets service. You can determine whether the method will succeed by calling Dialogflow.conversation_datasets_available?.
About ConversationDatasets
Conversation datasets.
Conversation datasets contain raw conversation files and their customizable metadata that can be used for model training.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.conversation_datasets_available?
def self.conversation_datasets_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the ConversationDatasets service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.conversation_datasets. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ConversationDatasets service, or if the versioned client gem needs an update to support the ConversationDatasets service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.conversation_models
def self.conversation_models(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for ConversationModels.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::ConversationModels::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the ConversationModels service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the ConversationModels service. You can determine whether the method will succeed by calling Dialogflow.conversation_models_available?.
About ConversationModels
Manages a collection of models for human agent assistant.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.conversation_models_available?
def self.conversation_models_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the ConversationModels service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.conversation_models. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ConversationModels service, or if the versioned client gem needs an update to support the ConversationModels service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.conversation_profiles
def self.conversation_profiles(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for ConversationProfiles.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::ConversationProfiles::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the ConversationProfiles service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the ConversationProfiles service. You can determine whether the method will succeed by calling Dialogflow.conversation_profiles_available?.
About ConversationProfiles
Service for managing ConversationProfiles.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.conversation_profiles_available?
def self.conversation_profiles_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the ConversationProfiles service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.conversation_profiles. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ConversationProfiles service, or if the versioned client gem needs an update to support the ConversationProfiles service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.conversations
def self.conversations(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Conversations.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Conversations::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Conversations service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Conversations service. You can determine whether the method will succeed by calling Dialogflow.conversations_available?.
About Conversations
Service for managing Conversations.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.conversations_available?
def self.conversations_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Conversations service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.conversations. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Conversations service, or if the versioned client gem needs an update to support the Conversations service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.documents
def self.documents(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Documents.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Documents::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Documents service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Documents service. You can determine whether the method will succeed by calling Dialogflow.documents_available?.
About Documents
Service for managing knowledge Documents.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.documents_available?
def self.documents_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Documents service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.documents. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Documents service, or if the versioned client gem needs an update to support the Documents service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.encryption_spec_service
def self.encryption_spec_service(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for EncryptionSpecService.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::EncryptionSpecService::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the EncryptionSpecService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the EncryptionSpecService service. You can determine whether the method will succeed by calling Dialogflow.encryption_spec_service_available?.
About EncryptionSpecService
Manages encryption spec settings for Dialogflow and Agent Assist.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.encryption_spec_service_available?
def self.encryption_spec_service_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the EncryptionSpecService service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.encryption_spec_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the EncryptionSpecService service, or if the versioned client gem needs an update to support the EncryptionSpecService service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.entity_types
def self.entity_types(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for EntityTypes.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::EntityTypes::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the EntityTypes service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the EntityTypes service. You can determine whether the method will succeed by calling Dialogflow.entity_types_available?.
About EntityTypes
Service for managing EntityTypes.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.entity_types_available?
def self.entity_types_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the EntityTypes service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.entity_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the EntityTypes service, or if the versioned client gem needs an update to support the EntityTypes service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.environments
def self.environments(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Environments.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Environments::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Environments service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Environments service. You can determine whether the method will succeed by calling Dialogflow.environments_available?.
About Environments
Service for managing Environments.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.environments_available?
def self.environments_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Environments service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.environments. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Environments service, or if the versioned client gem needs an update to support the Environments service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.fulfillments
def self.fulfillments(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Fulfillments.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Fulfillments::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Fulfillments service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Fulfillments service. You can determine whether the method will succeed by calling Dialogflow.fulfillments_available?.
About Fulfillments
Service for managing Fulfillments.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.fulfillments_available?
def self.fulfillments_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Fulfillments service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.fulfillments. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Fulfillments service, or if the versioned client gem needs an update to support the Fulfillments service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.generators
def self.generators(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Generators.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Generators::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Generators service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Generators service. You can determine whether the method will succeed by calling Dialogflow.generators_available?.
About Generators
Generator Service for LLM powered Agent Assist. This service manages the configurations of user owned Generators, such as description, context and instruction, input/output format, etc. The generator resources will be used inside a conversation and will be triggered by TriggerEvent to query LLM for answers.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.generators_available?
def self.generators_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Generators service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.generators. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Generators service, or if the versioned client gem needs an update to support the Generators service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.intents
def self.intents(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Intents.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Intents::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Intents service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Intents service. You can determine whether the method will succeed by calling Dialogflow.intents_available?.
About Intents
Service for managing Intents.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.intents_available?
def self.intents_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Intents service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.intents. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Intents service, or if the versioned client gem needs an update to support the Intents service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.knowledge_bases
def self.knowledge_bases(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for KnowledgeBases.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::KnowledgeBases::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the KnowledgeBases service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the KnowledgeBases service. You can determine whether the method will succeed by calling Dialogflow.knowledge_bases_available?.
About KnowledgeBases
Service for managing KnowledgeBases.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.knowledge_bases_available?
def self.knowledge_bases_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the KnowledgeBases service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.knowledge_bases. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the KnowledgeBases service, or if the versioned client gem needs an update to support the KnowledgeBases service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.participants
def self.participants(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Participants.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Participants::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Participants service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Participants service. You can determine whether the method will succeed by calling Dialogflow.participants_available?.
About Participants
Service for managing Participants.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.participants_available?
def self.participants_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Participants service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.participants. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Participants service, or if the versioned client gem needs an update to support the Participants service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.session_entity_types
def self.session_entity_types(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for SessionEntityTypes.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the SessionEntityTypes service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the SessionEntityTypes service. You can determine whether the method will succeed by calling Dialogflow.session_entity_types_available?.
About SessionEntityTypes
Service for managing SessionEntityTypes.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.session_entity_types_available?
def self.session_entity_types_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the SessionEntityTypes service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.session_entity_types. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the SessionEntityTypes service, or if the versioned client gem needs an update to support the SessionEntityTypes service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.sessions
def self.sessions(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Sessions.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Sessions::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Sessions service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Sessions service. You can determine whether the method will succeed by calling Dialogflow.sessions_available?.
About Sessions
A service used for session interactions.
For more information, see the API interactions guide.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.sessions_available?
def self.sessions_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Sessions service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.sessions. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Sessions service, or if the versioned client gem needs an update to support the Sessions service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
.versions
def self.versions(version: :v2, transport: :grpc, &block) -> ::Object
Create a new client object for Versions.
By default, this returns an instance of
Google::Cloud::Dialogflow::V2::Versions::Client
for a gRPC client for version V2 of the API.
However, you can specify a different API version by passing it in the
version
parameter. If the Versions service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest
or :grpc
in
the transport
parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the Versions service. You can determine whether the method will succeed by calling Dialogflow.versions_available?.
About Versions
Service for managing Versions.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (::Object) — A client object for the specified version.
.versions_available?
def self.versions_available?(version: :v2, transport: :grpc) -> boolean
Determines whether the Versions service is supported by the current client. If true, you can retrieve a client object by calling Dialogflow.versions. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the Versions service, or if the versioned client gem needs an update to support the Versions service.
-
version (::String, ::Symbol) (defaults to: :v2) — The API version to connect to. Optional.
Defaults to
:v2
. -
transport (:grpc, :rest) (defaults to: :grpc) — The transport to use. Defaults to
:grpc
.
- (boolean) — Whether the service is available.
Constants
VERSION
value: "1.10.0".freeze