Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the ConversationProfiles Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all ConversationProfiles clients ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the ConversationProfiles Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_conversation_profile
def create_conversation_profile(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
def create_conversation_profile(parent: nil, conversation_profile: nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via GetConversationProfile API.
def create_conversation_profile(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
create_conversation_profile
via a request object, either of type
Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_conversation_profile(parent: nil, conversation_profile: nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
create_conversation_profile
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The project to create a conversation profile for.
Format:
projects/<Project ID>/locations/<Location ID>
. - conversation_profile (::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash) — Required. The conversation profile to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dialogflow::V2::ConversationProfile)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest.new # Call the create_conversation_profile method. result = client.create_conversation_profile request # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationProfile. p result
#delete_conversation_profile
def delete_conversation_profile(request, options = nil) -> ::Google::Protobuf::Empty
def delete_conversation_profile(name: nil) -> ::Google::Protobuf::Empty
Deletes the specified conversation profile.
def delete_conversation_profile(request, options = nil) -> ::Google::Protobuf::Empty
delete_conversation_profile
via a request object, either of type
DeleteConversationProfileRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_conversation_profile(name: nil) -> ::Google::Protobuf::Empty
delete_conversation_profile
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the conversation profile to delete.
Format:
projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest.new # Call the delete_conversation_profile method. result = client.delete_conversation_profile request # The returned object is of type Google::Protobuf::Empty. p result
#get_conversation_profile
def get_conversation_profile(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
def get_conversation_profile(name: nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
Retrieves the specified conversation profile.
def get_conversation_profile(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
get_conversation_profile
via a request object, either of type
GetConversationProfileRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_conversation_profile(name: nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
get_conversation_profile
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the conversation profile.
Format:
projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dialogflow::V2::ConversationProfile)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::GetConversationProfileRequest.new # Call the get_conversation_profile method. result = client.get_conversation_profile request # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationProfile. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new ConversationProfiles client object.
- (config) — Configure the ConversationProfiles client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new do |config| config.timeout = 10.0 end
#list_conversation_profiles
def list_conversation_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>
def list_conversation_profiles(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>
Returns the list of all conversation profiles in the specified project.
def list_conversation_profiles(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>
list_conversation_profiles
via a request object, either of type
ListConversationProfilesRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_conversation_profiles(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>
list_conversation_profiles
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The project to list all conversation profiles from.
Format:
projects/<Project ID>/locations/<Location ID>
. - page_size (::Integer) — The maximum number of items to return in a single page. By default 100 and at most 1000.
- page_token (::String) — The next_page_token value returned from a previous list request.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest.new # Call the list_conversation_profiles method. result = client.list_conversation_profiles request # The returned object is of type Gapic::PagedEnumerable. You can # iterate over all elements by calling #each, and the enumerable # will lazily make API calls to fetch subsequent pages. Other # methods are also available for managing paging directly. result.each do |response| # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationProfile. p response end
#update_conversation_profile
def update_conversation_profile(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
def update_conversation_profile(conversation_profile: nil, update_mask: nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via GetConversationProfile API.
def update_conversation_profile(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
update_conversation_profile
via a request object, either of type
UpdateConversationProfileRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_conversation_profile(conversation_profile: nil, update_mask: nil) -> ::Google::Cloud::Dialogflow::V2::ConversationProfile
update_conversation_profile
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- conversation_profile (::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash) — Required. The conversation profile to update.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The mask to control which fields to update.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dialogflow::V2::ConversationProfile)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest.new # Call the update_conversation_profile method. result = client.update_conversation_profile request # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationProfile. p result