lib/google/cloud/dialogflow.rb in google-cloud-dialogflow-1.6.0 vs lib/google/cloud/dialogflow.rb in google-cloud-dialogflow-1.7.0
- old
+ new
@@ -27,30 +27,31 @@
require "google/cloud" unless defined? ::Google::Cloud.new
require "google/cloud/config"
# Set the default configuration
::Google::Cloud.configure.add_config! :dialogflow do |config|
- config.add_field! :endpoint, "dialogflow.googleapis.com", match: ::String
+ config.add_field! :endpoint, nil, match: ::String
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
config.add_field! :scope, nil, match: [::Array, ::String]
config.add_field! :lib_name, nil, match: ::String
config.add_field! :lib_version, nil, match: ::String
config.add_field! :interceptors, nil, match: ::Array
config.add_field! :timeout, nil, match: ::Numeric
config.add_field! :metadata, nil, match: ::Hash
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
config.add_field! :quota_project, nil, match: ::String
+ config.add_field! :universe_domain, nil, match: ::String
end
module Google
module Cloud
module Dialogflow
##
# Create a new client object for Agents.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Agents::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Agents/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Agents::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -80,11 +81,11 @@
##
# Create a new client object for Contexts.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Contexts::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Contexts/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Contexts::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -114,11 +115,11 @@
##
# Create a new client object for Intents.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Intents::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Intents/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Intents::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -148,11 +149,11 @@
##
# Create a new client object for EntityTypes.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::EntityTypes::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/EntityTypes/Client.html)
+ # [Google::Cloud::Dialogflow::V2::EntityTypes::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -182,11 +183,11 @@
##
# Create a new client object for SessionEntityTypes.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/SessionEntityTypes/Client.html)
+ # [Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -217,11 +218,11 @@
##
# Create a new client object for Sessions.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Sessions::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Sessions/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Sessions::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -254,11 +255,11 @@
##
# Create a new client object for Participants.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Participants::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Participants/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Participants::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -288,11 +289,11 @@
##
# Create a new client object for AnswerRecords.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::AnswerRecords::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/AnswerRecords/Client.html)
+ # [Google::Cloud::Dialogflow::V2::AnswerRecords::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -320,155 +321,155 @@
service_module = service_module.const_get(:Rest) if transport == :rest
service_module.const_get(:Client).new(&block)
end
##
- # Create a new client object for Conversations.
+ # Create a new client object for ConversationProfiles.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Conversations::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Conversations/Client.html)
+ # [Google::Cloud::Dialogflow::V2::ConversationProfiles::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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 Conversations service is
+ # `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.
#
- # ## About Conversations
+ # ## About ConversationProfiles
#
# Service for managing
- # Conversations.
+ # ConversationProfiles.
#
# @param version [::String, ::Symbol] The API version to connect to. Optional.
# Defaults to `:v2`.
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
# @return [::Object] A client object for the specified version.
#
- def self.conversations version: :v2, transport: :grpc, &block
+ def self.conversation_profiles version: :v2, transport: :grpc, &block
require "google/cloud/dialogflow/#{version.to_s.downcase}"
package_name = Google::Cloud::Dialogflow
.constants
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
.first
- service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Conversations)
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:ConversationProfiles)
service_module = service_module.const_get(:Rest) if transport == :rest
service_module.const_get(:Client).new(&block)
end
##
- # Create a new client object for ConversationDatasets.
+ # Create a new client object for Conversations.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::ConversationDatasets::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationDatasets/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Conversations::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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 ConversationDatasets service is
+ # `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.
#
- # ## About ConversationDatasets
+ # ## About Conversations
#
- # Conversation datasets.
+ # Service for managing
+ # Conversations.
#
- # Conversation datasets contain raw conversation files and their
- # customizable metadata that can be used for model training.
- #
# @param version [::String, ::Symbol] The API version to connect to. Optional.
# Defaults to `:v2`.
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
# @return [::Object] A client object for the specified version.
#
- def self.conversation_datasets version: :v2, transport: :grpc, &block
+ def self.conversations version: :v2, transport: :grpc, &block
require "google/cloud/dialogflow/#{version.to_s.downcase}"
package_name = Google::Cloud::Dialogflow
.constants
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
.first
- service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:ConversationDatasets)
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:Conversations)
service_module = service_module.const_get(:Rest) if transport == :rest
service_module.const_get(:Client).new(&block)
end
##
- # Create a new client object for ConversationModels.
+ # Create a new client object for ConversationDatasets.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::ConversationModels::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationModels/Client.html)
+ # [Google::Cloud::Dialogflow::V2::ConversationDatasets::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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 ConversationModels service is
+ # `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.
#
- # ## About ConversationModels
+ # ## About ConversationDatasets
#
- # Manages a collection of models for human agent assistant.
+ # Conversation datasets.
#
+ # Conversation datasets contain raw conversation files and their
+ # customizable metadata that can be used for model training.
+ #
# @param version [::String, ::Symbol] The API version to connect to. Optional.
# Defaults to `:v2`.
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
# @return [::Object] A client object for the specified version.
#
- def self.conversation_models version: :v2, transport: :grpc, &block
+ def self.conversation_datasets version: :v2, transport: :grpc, &block
require "google/cloud/dialogflow/#{version.to_s.downcase}"
package_name = Google::Cloud::Dialogflow
.constants
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
.first
- service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:ConversationModels)
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:ConversationDatasets)
service_module = service_module.const_get(:Rest) if transport == :rest
service_module.const_get(:Client).new(&block)
end
##
- # Create a new client object for ConversationProfiles.
+ # Create a new client object for ConversationModels.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::ConversationProfiles::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/ConversationProfiles/Client.html)
+ # [Google::Cloud::Dialogflow::V2::ConversationModels::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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 ConversationProfiles service is
+ # `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.
#
- # ## About ConversationProfiles
+ # ## About ConversationModels
#
- # Service for managing
- # ConversationProfiles.
+ # Manages a collection of models for human agent assistant.
#
# @param version [::String, ::Symbol] The API version to connect to. Optional.
# Defaults to `:v2`.
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
# @return [::Object] A client object for the specified version.
#
- def self.conversation_profiles version: :v2, transport: :grpc, &block
+ def self.conversation_models version: :v2, transport: :grpc, &block
require "google/cloud/dialogflow/#{version.to_s.downcase}"
package_name = Google::Cloud::Dialogflow
.constants
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
.first
- service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:ConversationProfiles)
+ service_module = Google::Cloud::Dialogflow.const_get(package_name).const_get(:ConversationModels)
service_module = service_module.const_get(:Rest) if transport == :rest
service_module.const_get(:Client).new(&block)
end
##
# Create a new client object for Documents.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Documents::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Documents/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Documents::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -499,11 +500,11 @@
##
# Create a new client object for Fulfillments.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Fulfillments::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Fulfillments/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Fulfillments::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -533,11 +534,11 @@
##
# Create a new client object for Environments.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Environments::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Environments/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Environments::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -567,11 +568,11 @@
##
# Create a new client object for KnowledgeBases.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::KnowledgeBases::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/KnowledgeBases/Client.html)
+ # [Google::Cloud::Dialogflow::V2::KnowledgeBases::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.
@@ -602,10 +603,10 @@
##
# Create a new client object for Versions.
#
# By default, this returns an instance of
- # [Google::Cloud::Dialogflow::V2::Versions::Client](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest/Google/Cloud/Dialogflow/V2/Versions/Client.html)
+ # [Google::Cloud::Dialogflow::V2::Versions::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/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.