google-api-client 0.19.5 → 0.19.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +7 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +7 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -6
- data/generated/google/apis/bigquery_v2/representations.rb +5 -1
- data/generated/google/apis/bigquery_v2/service.rb +15 -3
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +45 -0
- data/generated/google/apis/calendar_v3/representations.rb +29 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +11 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +64 -30
- data/generated/google/apis/compute_alpha/representations.rb +1 -0
- data/generated/google/apis/compute_alpha/service.rb +142 -5
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +55 -29
- data/generated/google/apis/compute_beta/service.rb +3 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +219 -23
- data/generated/google/apis/compute_v1/representations.rb +68 -0
- data/generated/google/apis/compute_v1/service.rb +148 -3
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1769 -367
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +813 -223
- data/generated/google/apis/dialogflow_v2beta1/service.rb +224 -224
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +3 -1
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/dlp_v2beta2/classes.rb +3 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +24 -24
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +16 -0
- data/generated/google/apis/ml_v1/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +9 -1
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +9 -0
- data/generated/google/apis/poly_v1/representations.rb +1 -0
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +7 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +4 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +282 -0
- data/generated/google/apis/sheets_v4/representations.rb +66 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +15 -0
- data/generated/google/apis/slides_v1/representations.rb +1 -0
- data/generated/google/apis/slides_v1/service.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +17 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +37 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -1084,6 +1084,24 @@ module Google
|
|
1084
1084
|
include Google::Apis::Core::JsonObjectSupport
|
1085
1085
|
end
|
1086
1086
|
|
1087
|
+
class InstanceListReferrers
|
1088
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1089
|
+
|
1090
|
+
class Warning
|
1091
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1092
|
+
|
1093
|
+
class Datum
|
1094
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1095
|
+
|
1096
|
+
include Google::Apis::Core::JsonObjectSupport
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
include Google::Apis::Core::JsonObjectSupport
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
include Google::Apis::Core::JsonObjectSupport
|
1103
|
+
end
|
1104
|
+
|
1087
1105
|
class MoveInstanceRequest
|
1088
1106
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1089
1107
|
|
@@ -1618,6 +1636,12 @@ module Google
|
|
1618
1636
|
include Google::Apis::Core::JsonObjectSupport
|
1619
1637
|
end
|
1620
1638
|
|
1639
|
+
class Reference
|
1640
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1641
|
+
|
1642
|
+
include Google::Apis::Core::JsonObjectSupport
|
1643
|
+
end
|
1644
|
+
|
1621
1645
|
class Region
|
1622
1646
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1623
1647
|
|
@@ -2724,6 +2748,8 @@ module Google
|
|
2724
2748
|
property :kind, as: 'kind'
|
2725
2749
|
property :name, as: 'name'
|
2726
2750
|
property :nat_ip, as: 'natIP'
|
2751
|
+
property :public_ptr_domain_name, as: 'publicPtrDomainName'
|
2752
|
+
property :set_public_ptr, as: 'setPublicPtr'
|
2727
2753
|
property :type, as: 'type'
|
2728
2754
|
end
|
2729
2755
|
end
|
@@ -4602,6 +4628,38 @@ module Google
|
|
4602
4628
|
end
|
4603
4629
|
end
|
4604
4630
|
|
4631
|
+
class InstanceListReferrers
|
4632
|
+
# @private
|
4633
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4634
|
+
property :id, as: 'id'
|
4635
|
+
collection :items, as: 'items', class: Google::Apis::ComputeV1::Reference, decorator: Google::Apis::ComputeV1::Reference::Representation
|
4636
|
+
|
4637
|
+
property :kind, as: 'kind'
|
4638
|
+
property :next_page_token, as: 'nextPageToken'
|
4639
|
+
property :self_link, as: 'selfLink'
|
4640
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceListReferrers::Warning, decorator: Google::Apis::ComputeV1::InstanceListReferrers::Warning::Representation
|
4641
|
+
|
4642
|
+
end
|
4643
|
+
|
4644
|
+
class Warning
|
4645
|
+
# @private
|
4646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4647
|
+
property :code, as: 'code'
|
4648
|
+
collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceListReferrers::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceListReferrers::Warning::Datum::Representation
|
4649
|
+
|
4650
|
+
property :message, as: 'message'
|
4651
|
+
end
|
4652
|
+
|
4653
|
+
class Datum
|
4654
|
+
# @private
|
4655
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4656
|
+
property :key, as: 'key'
|
4657
|
+
property :value, as: 'value'
|
4658
|
+
end
|
4659
|
+
end
|
4660
|
+
end
|
4661
|
+
end
|
4662
|
+
|
4605
4663
|
class MoveInstanceRequest
|
4606
4664
|
# @private
|
4607
4665
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5574,6 +5632,16 @@ module Google
|
|
5574
5632
|
end
|
5575
5633
|
end
|
5576
5634
|
|
5635
|
+
class Reference
|
5636
|
+
# @private
|
5637
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5638
|
+
property :kind, as: 'kind'
|
5639
|
+
property :reference_type, as: 'referenceType'
|
5640
|
+
property :referrer, as: 'referrer'
|
5641
|
+
property :target, as: 'target'
|
5642
|
+
end
|
5643
|
+
end
|
5644
|
+
|
5577
5645
|
class Region
|
5578
5646
|
# @private
|
5579
5647
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2697,8 +2697,8 @@ module Google
|
|
2697
2697
|
execute_or_queue_command(command, &block)
|
2698
2698
|
end
|
2699
2699
|
|
2700
|
-
# Updates the specified firewall rule with the data included in the request.
|
2701
|
-
#
|
2700
|
+
# Updates the specified firewall rule with the data included in the request. The
|
2701
|
+
# PUT method can only update the following fields of firewall rule: allowed,
|
2702
2702
|
# description, sourceRanges, sourceTags, targetTags.
|
2703
2703
|
# @param [String] project
|
2704
2704
|
# Project ID for this request.
|
@@ -7287,6 +7287,90 @@ module Google
|
|
7287
7287
|
execute_or_queue_command(command, &block)
|
7288
7288
|
end
|
7289
7289
|
|
7290
|
+
# Retrieves the list of referrers to instances contained within the specified
|
7291
|
+
# zone.
|
7292
|
+
# @param [String] project
|
7293
|
+
# Project ID for this request.
|
7294
|
+
# @param [String] zone
|
7295
|
+
# The name of the zone for this request.
|
7296
|
+
# @param [String] instance
|
7297
|
+
# Name of the target instance scoping this request, or '-' if the request should
|
7298
|
+
# span over all instances in the container.
|
7299
|
+
# @param [String] filter
|
7300
|
+
# Sets a filter `expression` for filtering listed resources. Your `expression`
|
7301
|
+
# must be in the format: field_name comparison_string literal_string.
|
7302
|
+
# The field_name is the name of the field you want to compare. Only atomic field
|
7303
|
+
# types are supported (string, number, boolean). The comparison_string must be
|
7304
|
+
# either eq (equals) or ne (not equals). The literal_string is the string value
|
7305
|
+
# to filter to. The literal value must be valid for the type of field you are
|
7306
|
+
# filtering by (string, number, boolean). For string fields, the literal value
|
7307
|
+
# is interpreted as a regular expression using RE2 syntax. The literal value
|
7308
|
+
# must match the entire field.
|
7309
|
+
# For example, to filter for instances that do not have a name of example-
|
7310
|
+
# instance, you would use name ne example-instance.
|
7311
|
+
# You can filter on nested fields. For example, you could filter on instances
|
7312
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
7313
|
+
# nested fields to take advantage of labels to organize and search for results
|
7314
|
+
# based on label values.
|
7315
|
+
# To filter on multiple expressions, provide each separate expression within
|
7316
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
7317
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
7318
|
+
# resources must match all expressions to pass the filters.
|
7319
|
+
# @param [Fixnum] max_results
|
7320
|
+
# The maximum number of results per page that should be returned. If the number
|
7321
|
+
# of available results is larger than maxResults, Compute Engine returns a
|
7322
|
+
# nextPageToken that can be used to get the next page of results in subsequent
|
7323
|
+
# list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
7324
|
+
# @param [String] order_by
|
7325
|
+
# Sorts list results by a certain order. By default, results are returned in
|
7326
|
+
# alphanumerical order based on the resource name.
|
7327
|
+
# You can also sort results in descending order based on the creation timestamp
|
7328
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
7329
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
7330
|
+
# Use this to sort resources like operations so that the newest operation is
|
7331
|
+
# returned first.
|
7332
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
7333
|
+
# @param [String] page_token
|
7334
|
+
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
7335
|
+
# a previous list request to get the next page of results.
|
7336
|
+
# @param [String] fields
|
7337
|
+
# Selector specifying which fields to include in a partial response.
|
7338
|
+
# @param [String] quota_user
|
7339
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7340
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7341
|
+
# Overrides userIp if both are provided.
|
7342
|
+
# @param [String] user_ip
|
7343
|
+
# IP address of the site where the request originates. Use this if you want to
|
7344
|
+
# enforce per-user limits.
|
7345
|
+
# @param [Google::Apis::RequestOptions] options
|
7346
|
+
# Request-specific options
|
7347
|
+
#
|
7348
|
+
# @yield [result, err] Result & error if block supplied
|
7349
|
+
# @yieldparam result [Google::Apis::ComputeV1::InstanceListReferrers] parsed result object
|
7350
|
+
# @yieldparam err [StandardError] error object if request failed
|
7351
|
+
#
|
7352
|
+
# @return [Google::Apis::ComputeV1::InstanceListReferrers]
|
7353
|
+
#
|
7354
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7355
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7356
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7357
|
+
def list_instance_referrers(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
7358
|
+
command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/referrers', options)
|
7359
|
+
command.response_representation = Google::Apis::ComputeV1::InstanceListReferrers::Representation
|
7360
|
+
command.response_class = Google::Apis::ComputeV1::InstanceListReferrers
|
7361
|
+
command.params['project'] = project unless project.nil?
|
7362
|
+
command.params['zone'] = zone unless zone.nil?
|
7363
|
+
command.params['instance'] = instance unless instance.nil?
|
7364
|
+
command.query['filter'] = filter unless filter.nil?
|
7365
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
7366
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
7367
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
7368
|
+
command.query['fields'] = fields unless fields.nil?
|
7369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7370
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
7371
|
+
execute_or_queue_command(command, &block)
|
7372
|
+
end
|
7373
|
+
|
7290
7374
|
# Performs a reset on the instance. For more information, see Resetting an
|
7291
7375
|
# instance.
|
7292
7376
|
# @param [String] project
|
@@ -8078,6 +8162,67 @@ module Google
|
|
8078
8162
|
execute_or_queue_command(command, &block)
|
8079
8163
|
end
|
8080
8164
|
|
8165
|
+
# Updates the specified access config from an instance's network interface with
|
8166
|
+
# the data included in the request. This method supports PATCH semantics and
|
8167
|
+
# uses the JSON merge patch format and processing rules.
|
8168
|
+
# @param [String] project
|
8169
|
+
# Project ID for this request.
|
8170
|
+
# @param [String] zone
|
8171
|
+
# The name of the zone for this request.
|
8172
|
+
# @param [String] instance
|
8173
|
+
# The instance name for this request.
|
8174
|
+
# @param [String] network_interface
|
8175
|
+
# The name of the network interface where the access config is attached.
|
8176
|
+
# @param [Google::Apis::ComputeV1::AccessConfig] access_config_object
|
8177
|
+
# @param [String] request_id
|
8178
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
8179
|
+
# that if you must retry your request, the server will know to ignore the
|
8180
|
+
# request if it has already been completed.
|
8181
|
+
# For example, consider a situation where you make an initial request and the
|
8182
|
+
# request times out. If you make the request again with the same request ID, the
|
8183
|
+
# server can check if original operation with the same request ID was received,
|
8184
|
+
# and if so, will ignore the second request. This prevents clients from
|
8185
|
+
# accidentally creating duplicate commitments.
|
8186
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
8187
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
8188
|
+
# @param [String] fields
|
8189
|
+
# Selector specifying which fields to include in a partial response.
|
8190
|
+
# @param [String] quota_user
|
8191
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8192
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8193
|
+
# Overrides userIp if both are provided.
|
8194
|
+
# @param [String] user_ip
|
8195
|
+
# IP address of the site where the request originates. Use this if you want to
|
8196
|
+
# enforce per-user limits.
|
8197
|
+
# @param [Google::Apis::RequestOptions] options
|
8198
|
+
# Request-specific options
|
8199
|
+
#
|
8200
|
+
# @yield [result, err] Result & error if block supplied
|
8201
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
8202
|
+
# @yieldparam err [StandardError] error object if request failed
|
8203
|
+
#
|
8204
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
8205
|
+
#
|
8206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8209
|
+
def update_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
8210
|
+
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options)
|
8211
|
+
command.request_representation = Google::Apis::ComputeV1::AccessConfig::Representation
|
8212
|
+
command.request_object = access_config_object
|
8213
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
8214
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
8215
|
+
command.params['project'] = project unless project.nil?
|
8216
|
+
command.params['zone'] = zone unless zone.nil?
|
8217
|
+
command.params['instance'] = instance unless instance.nil?
|
8218
|
+
command.query['networkInterface'] = network_interface unless network_interface.nil?
|
8219
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
8220
|
+
command.query['fields'] = fields unless fields.nil?
|
8221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8222
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
8223
|
+
execute_or_queue_command(command, &block)
|
8224
|
+
end
|
8225
|
+
|
8081
8226
|
# Retrieves an aggregated list of interconnect attachments.
|
8082
8227
|
# @param [String] project
|
8083
8228
|
# Project ID for this request.
|
@@ -10431,7 +10576,7 @@ module Google
|
|
10431
10576
|
# @param [String] region
|
10432
10577
|
# Name of the region scoping this request.
|
10433
10578
|
# @param [String] backend_service
|
10434
|
-
# Name of the BackendService resource
|
10579
|
+
# Name of the BackendService resource for which to get health.
|
10435
10580
|
# @param [Google::Apis::ComputeV1::ResourceGroupReference] resource_group_reference_object
|
10436
10581
|
# @param [String] fields
|
10437
10582
|
# Selector specifying which fields to include in a partial response.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/dialogflow-enterprise/
|
27
27
|
module DialogflowV2beta1
|
28
28
|
VERSION = 'V2beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180129'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,8 +22,1410 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DialogflowV2beta1
|
24
24
|
|
25
|
+
# The response message for EntityTypes.BatchUpdateEntityTypes.
|
26
|
+
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The collection of updated or created entity types.
|
30
|
+
# Corresponds to the JSON property `entityTypes`
|
31
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityType>]
|
32
|
+
attr_accessor :entity_types
|
33
|
+
|
34
|
+
def initialize(**args)
|
35
|
+
update!(**args)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update properties of this object
|
39
|
+
def update!(**args)
|
40
|
+
@entity_types = args[:entity_types] if args.key?(:entity_types)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# The response message for Intents.BatchUpdateIntents.
|
45
|
+
class GoogleCloudDialogflowV2BatchUpdateIntentsResponse
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
# The collection of updated or created intents.
|
49
|
+
# Corresponds to the JSON property `intents`
|
50
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Intent>]
|
51
|
+
attr_accessor :intents
|
52
|
+
|
53
|
+
def initialize(**args)
|
54
|
+
update!(**args)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Update properties of this object
|
58
|
+
def update!(**args)
|
59
|
+
@intents = args[:intents] if args.key?(:intents)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# Represents a context.
|
64
|
+
class GoogleCloudDialogflowV2Context
|
65
|
+
include Google::Apis::Core::Hashable
|
66
|
+
|
67
|
+
# Optional. The number of conversational query requests after which the
|
68
|
+
# context expires. If set to `0` (the default) the context expires
|
69
|
+
# immediately. Contexts expire automatically after 10 minutes even if there
|
70
|
+
# are no matching queries.
|
71
|
+
# Corresponds to the JSON property `lifespanCount`
|
72
|
+
# @return [Fixnum]
|
73
|
+
attr_accessor :lifespan_count
|
74
|
+
|
75
|
+
# Required. The unique identifier of the context. Format:
|
76
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
77
|
+
# Note: The Context ID is always converted to lowercase.
|
78
|
+
# Corresponds to the JSON property `name`
|
79
|
+
# @return [String]
|
80
|
+
attr_accessor :name
|
81
|
+
|
82
|
+
# Optional. The collection of parameters associated with this context.
|
83
|
+
# Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
|
84
|
+
# syntax.
|
85
|
+
# Corresponds to the JSON property `parameters`
|
86
|
+
# @return [Hash<String,Object>]
|
87
|
+
attr_accessor :parameters
|
88
|
+
|
89
|
+
def initialize(**args)
|
90
|
+
update!(**args)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Update properties of this object
|
94
|
+
def update!(**args)
|
95
|
+
@lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count)
|
96
|
+
@name = args[:name] if args.key?(:name)
|
97
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Represents an entity type.
|
102
|
+
# Entity types serve as a tool for extracting parameter values from natural
|
103
|
+
# language queries.
|
104
|
+
class GoogleCloudDialogflowV2EntityType
|
105
|
+
include Google::Apis::Core::Hashable
|
106
|
+
|
107
|
+
# Optional. Indicates whether the entity type can be automatically
|
108
|
+
# expanded.
|
109
|
+
# Corresponds to the JSON property `autoExpansionMode`
|
110
|
+
# @return [String]
|
111
|
+
attr_accessor :auto_expansion_mode
|
112
|
+
|
113
|
+
# Required. The name of the entity.
|
114
|
+
# Corresponds to the JSON property `displayName`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :display_name
|
117
|
+
|
118
|
+
# Optional. The collection of entities associated with the entity type.
|
119
|
+
# Corresponds to the JSON property `entities`
|
120
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityTypeEntity>]
|
121
|
+
attr_accessor :entities
|
122
|
+
|
123
|
+
# Required. Indicates the kind of entity type.
|
124
|
+
# Corresponds to the JSON property `kind`
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :kind
|
127
|
+
|
128
|
+
# Required for all methods except `create` (`create` populates the name
|
129
|
+
# automatically.
|
130
|
+
# The unique identifier of the entity type. Format:
|
131
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
132
|
+
# Corresponds to the JSON property `name`
|
133
|
+
# @return [String]
|
134
|
+
attr_accessor :name
|
135
|
+
|
136
|
+
def initialize(**args)
|
137
|
+
update!(**args)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Update properties of this object
|
141
|
+
def update!(**args)
|
142
|
+
@auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode)
|
143
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
144
|
+
@entities = args[:entities] if args.key?(:entities)
|
145
|
+
@kind = args[:kind] if args.key?(:kind)
|
146
|
+
@name = args[:name] if args.key?(:name)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Optional. Represents an entity.
|
151
|
+
class GoogleCloudDialogflowV2EntityTypeEntity
|
152
|
+
include Google::Apis::Core::Hashable
|
153
|
+
|
154
|
+
# Required. A collection of synonyms. For `KIND_LIST` entity types this
|
155
|
+
# must contain exactly one synonym equal to `value`.
|
156
|
+
# Corresponds to the JSON property `synonyms`
|
157
|
+
# @return [Array<String>]
|
158
|
+
attr_accessor :synonyms
|
159
|
+
|
160
|
+
# Required.
|
161
|
+
# For `KIND_MAP` entity types:
|
162
|
+
# A canonical name to be used in place of synonyms.
|
163
|
+
# For `KIND_LIST` entity types:
|
164
|
+
# A string that can contain references to other entity types (with or
|
165
|
+
# without aliases).
|
166
|
+
# Corresponds to the JSON property `value`
|
167
|
+
# @return [String]
|
168
|
+
attr_accessor :value
|
169
|
+
|
170
|
+
def initialize(**args)
|
171
|
+
update!(**args)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Update properties of this object
|
175
|
+
def update!(**args)
|
176
|
+
@synonyms = args[:synonyms] if args.key?(:synonyms)
|
177
|
+
@value = args[:value] if args.key?(:value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Events allow for matching intents by event name instead of the natural
|
182
|
+
# language input. For instance, input `<event: ` name: “welcome_event”,
|
183
|
+
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
184
|
+
# The parameter `name` may be used by the agent in the response:
|
185
|
+
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
186
|
+
class GoogleCloudDialogflowV2EventInput
|
187
|
+
include Google::Apis::Core::Hashable
|
188
|
+
|
189
|
+
# Required. The language of this query. See [Language
|
190
|
+
# Support](https://dialogflow.com/docs/languages) for a list of the
|
191
|
+
# currently supported language codes. Note that queries in the same session
|
192
|
+
# do not necessarily need to specify the same language.
|
193
|
+
# Corresponds to the JSON property `languageCode`
|
194
|
+
# @return [String]
|
195
|
+
attr_accessor :language_code
|
196
|
+
|
197
|
+
# Required. The unique identifier of the event.
|
198
|
+
# Corresponds to the JSON property `name`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :name
|
201
|
+
|
202
|
+
# Optional. The collection of parameters associated with the event.
|
203
|
+
# Corresponds to the JSON property `parameters`
|
204
|
+
# @return [Hash<String,Object>]
|
205
|
+
attr_accessor :parameters
|
206
|
+
|
207
|
+
def initialize(**args)
|
208
|
+
update!(**args)
|
209
|
+
end
|
210
|
+
|
211
|
+
# Update properties of this object
|
212
|
+
def update!(**args)
|
213
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
214
|
+
@name = args[:name] if args.key?(:name)
|
215
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# The response message for Agents.ExportAgent.
|
220
|
+
class GoogleCloudDialogflowV2ExportAgentResponse
|
221
|
+
include Google::Apis::Core::Hashable
|
222
|
+
|
223
|
+
# The exported agent.
|
224
|
+
# Example for how to export an agent to a zip file via a command line:
|
225
|
+
# curl \
|
226
|
+
# 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
|
227
|
+
# -X POST \
|
228
|
+
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
|
229
|
+
# -H 'Accept: application/json' \
|
230
|
+
# -H 'Content-Type: application/json' \
|
231
|
+
# --compressed \
|
232
|
+
# --data-binary '``' \
|
233
|
+
# | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
|
234
|
+
# | base64 --decode > <agent zip file>
|
235
|
+
# Corresponds to the JSON property `agentContent`
|
236
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :agent_content
|
239
|
+
|
240
|
+
# The URI to a file containing the exported agent. This field is populated
|
241
|
+
# only if `agent_uri` is specified in `ExportAgentRequest`.
|
242
|
+
# Corresponds to the JSON property `agentUri`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :agent_uri
|
245
|
+
|
246
|
+
def initialize(**args)
|
247
|
+
update!(**args)
|
248
|
+
end
|
249
|
+
|
250
|
+
# Update properties of this object
|
251
|
+
def update!(**args)
|
252
|
+
@agent_content = args[:agent_content] if args.key?(:agent_content)
|
253
|
+
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# Represents an intent.
|
258
|
+
# Intents convert a number of user expressions or patterns into an action. An
|
259
|
+
# action is an extraction of a user command or sentence semantics.
|
260
|
+
class GoogleCloudDialogflowV2Intent
|
261
|
+
include Google::Apis::Core::Hashable
|
262
|
+
|
263
|
+
# Optional. The name of the action associated with the intent.
|
264
|
+
# Corresponds to the JSON property `action`
|
265
|
+
# @return [String]
|
266
|
+
attr_accessor :action
|
267
|
+
|
268
|
+
# Optional. The list of platforms for which the first response will be
|
269
|
+
# taken from among the messages assigned to the DEFAULT_PLATFORM.
|
270
|
+
# Corresponds to the JSON property `defaultResponsePlatforms`
|
271
|
+
# @return [Array<String>]
|
272
|
+
attr_accessor :default_response_platforms
|
273
|
+
|
274
|
+
# Required. The name of this intent.
|
275
|
+
# Corresponds to the JSON property `displayName`
|
276
|
+
# @return [String]
|
277
|
+
attr_accessor :display_name
|
278
|
+
|
279
|
+
# Optional. The collection of event names that trigger the intent.
|
280
|
+
# If the collection of input contexts is not empty, all of the contexts must
|
281
|
+
# be present in the active user session for an event to trigger this intent.
|
282
|
+
# Corresponds to the JSON property `events`
|
283
|
+
# @return [Array<String>]
|
284
|
+
attr_accessor :events
|
285
|
+
|
286
|
+
# Optional. Collection of information about all followup intents that have
|
287
|
+
# name of this intent as a root_name.
|
288
|
+
# Corresponds to the JSON property `followupIntentInfo`
|
289
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentFollowupIntentInfo>]
|
290
|
+
attr_accessor :followup_intent_info
|
291
|
+
|
292
|
+
# Optional. The list of context names required for this intent to be
|
293
|
+
# triggered.
|
294
|
+
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
|
295
|
+
# Corresponds to the JSON property `inputContextNames`
|
296
|
+
# @return [Array<String>]
|
297
|
+
attr_accessor :input_context_names
|
298
|
+
|
299
|
+
# Optional. Indicates whether this is a fallback intent.
|
300
|
+
# Corresponds to the JSON property `isFallback`
|
301
|
+
# @return [Boolean]
|
302
|
+
attr_accessor :is_fallback
|
303
|
+
alias_method :is_fallback?, :is_fallback
|
304
|
+
|
305
|
+
# Optional. The collection of rich messages corresponding to the
|
306
|
+
# `Response` field in API.AI console.
|
307
|
+
# Corresponds to the JSON property `messages`
|
308
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessage>]
|
309
|
+
attr_accessor :messages
|
310
|
+
|
311
|
+
# Optional. Indicates whether Machine Learning is enabled for the intent.
|
312
|
+
# Note: If `ml_enabled` setting is set to false, then this intent is not
|
313
|
+
# taken into account during inference in `ML ONLY` match mode. Also,
|
314
|
+
# auto-markup in the UI is turned off.
|
315
|
+
# Corresponds to the JSON property `mlEnabled`
|
316
|
+
# @return [Boolean]
|
317
|
+
attr_accessor :ml_enabled
|
318
|
+
alias_method :ml_enabled?, :ml_enabled
|
319
|
+
|
320
|
+
# Required for all methods except `create` (`create` populates the name
|
321
|
+
# automatically.
|
322
|
+
# The unique identifier of this intent.
|
323
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
324
|
+
# Corresponds to the JSON property `name`
|
325
|
+
# @return [String]
|
326
|
+
attr_accessor :name
|
327
|
+
|
328
|
+
# Optional. The collection of contexts that are activated when the intent
|
329
|
+
# is matched. Context messages in this collection should not set the
|
330
|
+
# parameters field. Setting the `lifespan_count` to 0 will reset the context
|
331
|
+
# when the intent is matched.
|
332
|
+
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
|
333
|
+
# Corresponds to the JSON property `outputContexts`
|
334
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Context>]
|
335
|
+
attr_accessor :output_contexts
|
336
|
+
|
337
|
+
# Optional. The collection of parameters associated with the intent.
|
338
|
+
# Corresponds to the JSON property `parameters`
|
339
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentParameter>]
|
340
|
+
attr_accessor :parameters
|
341
|
+
|
342
|
+
# The unique identifier of the parent intent in the chain of followup
|
343
|
+
# intents.
|
344
|
+
# It identifies the parent followup intent.
|
345
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
346
|
+
# Corresponds to the JSON property `parentFollowupIntentName`
|
347
|
+
# @return [String]
|
348
|
+
attr_accessor :parent_followup_intent_name
|
349
|
+
|
350
|
+
# Optional. The priority of this intent. Higher numbers represent higher
|
351
|
+
# priorities. Zero or negative numbers mean that the intent is disabled.
|
352
|
+
# Corresponds to the JSON property `priority`
|
353
|
+
# @return [Fixnum]
|
354
|
+
attr_accessor :priority
|
355
|
+
|
356
|
+
# Optional. Indicates whether to delete all contexts in the current
|
357
|
+
# session when this intent is matched.
|
358
|
+
# Corresponds to the JSON property `resetContexts`
|
359
|
+
# @return [Boolean]
|
360
|
+
attr_accessor :reset_contexts
|
361
|
+
alias_method :reset_contexts?, :reset_contexts
|
362
|
+
|
363
|
+
# The unique identifier of the root intent in the chain of followup intents.
|
364
|
+
# It identifies the correct followup intents chain for this intent.
|
365
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
366
|
+
# Corresponds to the JSON property `rootFollowupIntentName`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :root_followup_intent_name
|
369
|
+
|
370
|
+
# Optional. The collection of examples/templates that the agent is
|
371
|
+
# trained on.
|
372
|
+
# Corresponds to the JSON property `trainingPhrases`
|
373
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentTrainingPhrase>]
|
374
|
+
attr_accessor :training_phrases
|
375
|
+
|
376
|
+
# Required. Indicates whether webhooks are enabled for the intent.
|
377
|
+
# Corresponds to the JSON property `webhookState`
|
378
|
+
# @return [String]
|
379
|
+
attr_accessor :webhook_state
|
380
|
+
|
381
|
+
def initialize(**args)
|
382
|
+
update!(**args)
|
383
|
+
end
|
384
|
+
|
385
|
+
# Update properties of this object
|
386
|
+
def update!(**args)
|
387
|
+
@action = args[:action] if args.key?(:action)
|
388
|
+
@default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
|
389
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
390
|
+
@events = args[:events] if args.key?(:events)
|
391
|
+
@followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
|
392
|
+
@input_context_names = args[:input_context_names] if args.key?(:input_context_names)
|
393
|
+
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
394
|
+
@messages = args[:messages] if args.key?(:messages)
|
395
|
+
@ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
|
396
|
+
@name = args[:name] if args.key?(:name)
|
397
|
+
@output_contexts = args[:output_contexts] if args.key?(:output_contexts)
|
398
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
399
|
+
@parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
|
400
|
+
@priority = args[:priority] if args.key?(:priority)
|
401
|
+
@reset_contexts = args[:reset_contexts] if args.key?(:reset_contexts)
|
402
|
+
@root_followup_intent_name = args[:root_followup_intent_name] if args.key?(:root_followup_intent_name)
|
403
|
+
@training_phrases = args[:training_phrases] if args.key?(:training_phrases)
|
404
|
+
@webhook_state = args[:webhook_state] if args.key?(:webhook_state)
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
# Represents a single followup intent in the chain.
|
409
|
+
class GoogleCloudDialogflowV2IntentFollowupIntentInfo
|
410
|
+
include Google::Apis::Core::Hashable
|
411
|
+
|
412
|
+
# The unique identifier of the followup intent.
|
413
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
414
|
+
# Corresponds to the JSON property `followupIntentName`
|
415
|
+
# @return [String]
|
416
|
+
attr_accessor :followup_intent_name
|
417
|
+
|
418
|
+
# The unique identifier of the followup intent parent.
|
419
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
420
|
+
# Corresponds to the JSON property `parentFollowupIntentName`
|
421
|
+
# @return [String]
|
422
|
+
attr_accessor :parent_followup_intent_name
|
423
|
+
|
424
|
+
def initialize(**args)
|
425
|
+
update!(**args)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Update properties of this object
|
429
|
+
def update!(**args)
|
430
|
+
@followup_intent_name = args[:followup_intent_name] if args.key?(:followup_intent_name)
|
431
|
+
@parent_followup_intent_name = args[:parent_followup_intent_name] if args.key?(:parent_followup_intent_name)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# Corresponds to the `Response` field in API.AI console.
|
436
|
+
class GoogleCloudDialogflowV2IntentMessage
|
437
|
+
include Google::Apis::Core::Hashable
|
438
|
+
|
439
|
+
# The basic card message. Useful for displaying information.
|
440
|
+
# Corresponds to the JSON property `basicCard`
|
441
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageBasicCard]
|
442
|
+
attr_accessor :basic_card
|
443
|
+
|
444
|
+
# The card response message.
|
445
|
+
# Corresponds to the JSON property `card`
|
446
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageCard]
|
447
|
+
attr_accessor :card
|
448
|
+
|
449
|
+
# The card for presenting a carousel of options to select from.
|
450
|
+
# Corresponds to the JSON property `carouselSelect`
|
451
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageCarouselSelect]
|
452
|
+
attr_accessor :carousel_select
|
453
|
+
|
454
|
+
# The image response message.
|
455
|
+
# Corresponds to the JSON property `image`
|
456
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageImage]
|
457
|
+
attr_accessor :image
|
458
|
+
|
459
|
+
# The suggestion chip message that allows the user to jump out to the app
|
460
|
+
# or website associated with this agent.
|
461
|
+
# Corresponds to the JSON property `linkOutSuggestion`
|
462
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion]
|
463
|
+
attr_accessor :link_out_suggestion
|
464
|
+
|
465
|
+
# The card for presenting a list of options to select from.
|
466
|
+
# Corresponds to the JSON property `listSelect`
|
467
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageListSelect]
|
468
|
+
attr_accessor :list_select
|
469
|
+
|
470
|
+
# The response containing a custom payload.
|
471
|
+
# Corresponds to the JSON property `payload`
|
472
|
+
# @return [Hash<String,Object>]
|
473
|
+
attr_accessor :payload
|
474
|
+
|
475
|
+
# Optional. The platform that this message is intended for.
|
476
|
+
# Corresponds to the JSON property `platform`
|
477
|
+
# @return [String]
|
478
|
+
attr_accessor :platform
|
479
|
+
|
480
|
+
# The quick replies response message.
|
481
|
+
# Corresponds to the JSON property `quickReplies`
|
482
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageQuickReplies]
|
483
|
+
attr_accessor :quick_replies
|
484
|
+
|
485
|
+
# The collection of simple response candidates.
|
486
|
+
# This message in `QueryResult.fulfillment_messages` and
|
487
|
+
# `WebhookResponse.fulfillment_messages` should contain only one
|
488
|
+
# `SimpleResponse`.
|
489
|
+
# Corresponds to the JSON property `simpleResponses`
|
490
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageSimpleResponses]
|
491
|
+
attr_accessor :simple_responses
|
492
|
+
|
493
|
+
# The collection of suggestions.
|
494
|
+
# Corresponds to the JSON property `suggestions`
|
495
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageSuggestions]
|
496
|
+
attr_accessor :suggestions
|
497
|
+
|
498
|
+
# The text response message.
|
499
|
+
# Corresponds to the JSON property `text`
|
500
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageText]
|
501
|
+
attr_accessor :text
|
502
|
+
|
503
|
+
def initialize(**args)
|
504
|
+
update!(**args)
|
505
|
+
end
|
506
|
+
|
507
|
+
# Update properties of this object
|
508
|
+
def update!(**args)
|
509
|
+
@basic_card = args[:basic_card] if args.key?(:basic_card)
|
510
|
+
@card = args[:card] if args.key?(:card)
|
511
|
+
@carousel_select = args[:carousel_select] if args.key?(:carousel_select)
|
512
|
+
@image = args[:image] if args.key?(:image)
|
513
|
+
@link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion)
|
514
|
+
@list_select = args[:list_select] if args.key?(:list_select)
|
515
|
+
@payload = args[:payload] if args.key?(:payload)
|
516
|
+
@platform = args[:platform] if args.key?(:platform)
|
517
|
+
@quick_replies = args[:quick_replies] if args.key?(:quick_replies)
|
518
|
+
@simple_responses = args[:simple_responses] if args.key?(:simple_responses)
|
519
|
+
@suggestions = args[:suggestions] if args.key?(:suggestions)
|
520
|
+
@text = args[:text] if args.key?(:text)
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
# The basic card message. Useful for displaying information.
|
525
|
+
class GoogleCloudDialogflowV2IntentMessageBasicCard
|
526
|
+
include Google::Apis::Core::Hashable
|
527
|
+
|
528
|
+
# Optional. The collection of card buttons.
|
529
|
+
# Corresponds to the JSON property `buttons`
|
530
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageBasicCardButton>]
|
531
|
+
attr_accessor :buttons
|
532
|
+
|
533
|
+
# Required, unless image is present. The body text of the card.
|
534
|
+
# Corresponds to the JSON property `formattedText`
|
535
|
+
# @return [String]
|
536
|
+
attr_accessor :formatted_text
|
537
|
+
|
538
|
+
# The image response message.
|
539
|
+
# Corresponds to the JSON property `image`
|
540
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageImage]
|
541
|
+
attr_accessor :image
|
542
|
+
|
543
|
+
# Optional. The subtitle of the card.
|
544
|
+
# Corresponds to the JSON property `subtitle`
|
545
|
+
# @return [String]
|
546
|
+
attr_accessor :subtitle
|
547
|
+
|
548
|
+
# Optional. The title of the card.
|
549
|
+
# Corresponds to the JSON property `title`
|
550
|
+
# @return [String]
|
551
|
+
attr_accessor :title
|
552
|
+
|
553
|
+
def initialize(**args)
|
554
|
+
update!(**args)
|
555
|
+
end
|
556
|
+
|
557
|
+
# Update properties of this object
|
558
|
+
def update!(**args)
|
559
|
+
@buttons = args[:buttons] if args.key?(:buttons)
|
560
|
+
@formatted_text = args[:formatted_text] if args.key?(:formatted_text)
|
561
|
+
@image = args[:image] if args.key?(:image)
|
562
|
+
@subtitle = args[:subtitle] if args.key?(:subtitle)
|
563
|
+
@title = args[:title] if args.key?(:title)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
# The button object that appears at the bottom of a card.
|
568
|
+
class GoogleCloudDialogflowV2IntentMessageBasicCardButton
|
569
|
+
include Google::Apis::Core::Hashable
|
570
|
+
|
571
|
+
# Opens the given URI.
|
572
|
+
# Corresponds to the JSON property `openUriAction`
|
573
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction]
|
574
|
+
attr_accessor :open_uri_action
|
575
|
+
|
576
|
+
# Required. The title of the button.
|
577
|
+
# Corresponds to the JSON property `title`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :title
|
580
|
+
|
581
|
+
def initialize(**args)
|
582
|
+
update!(**args)
|
583
|
+
end
|
584
|
+
|
585
|
+
# Update properties of this object
|
586
|
+
def update!(**args)
|
587
|
+
@open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action)
|
588
|
+
@title = args[:title] if args.key?(:title)
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
# Opens the given URI.
|
593
|
+
class GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
|
594
|
+
include Google::Apis::Core::Hashable
|
595
|
+
|
596
|
+
# Required. The HTTP or HTTPS scheme URI.
|
597
|
+
# Corresponds to the JSON property `uri`
|
598
|
+
# @return [String]
|
599
|
+
attr_accessor :uri
|
600
|
+
|
601
|
+
def initialize(**args)
|
602
|
+
update!(**args)
|
603
|
+
end
|
604
|
+
|
605
|
+
# Update properties of this object
|
606
|
+
def update!(**args)
|
607
|
+
@uri = args[:uri] if args.key?(:uri)
|
608
|
+
end
|
609
|
+
end
|
610
|
+
|
611
|
+
# The card response message.
|
612
|
+
class GoogleCloudDialogflowV2IntentMessageCard
|
613
|
+
include Google::Apis::Core::Hashable
|
614
|
+
|
615
|
+
# Optional. The collection of card buttons.
|
616
|
+
# Corresponds to the JSON property `buttons`
|
617
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageCardButton>]
|
618
|
+
attr_accessor :buttons
|
619
|
+
|
620
|
+
# Optional. The public URI to an image file for the card.
|
621
|
+
# Corresponds to the JSON property `imageUri`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :image_uri
|
624
|
+
|
625
|
+
# Optional. The subtitle of the card.
|
626
|
+
# Corresponds to the JSON property `subtitle`
|
627
|
+
# @return [String]
|
628
|
+
attr_accessor :subtitle
|
629
|
+
|
630
|
+
# Optional. The title of the card.
|
631
|
+
# Corresponds to the JSON property `title`
|
632
|
+
# @return [String]
|
633
|
+
attr_accessor :title
|
634
|
+
|
635
|
+
def initialize(**args)
|
636
|
+
update!(**args)
|
637
|
+
end
|
638
|
+
|
639
|
+
# Update properties of this object
|
640
|
+
def update!(**args)
|
641
|
+
@buttons = args[:buttons] if args.key?(:buttons)
|
642
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
643
|
+
@subtitle = args[:subtitle] if args.key?(:subtitle)
|
644
|
+
@title = args[:title] if args.key?(:title)
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
# Optional. Contains information about a button.
|
649
|
+
class GoogleCloudDialogflowV2IntentMessageCardButton
|
650
|
+
include Google::Apis::Core::Hashable
|
651
|
+
|
652
|
+
# Optional. The text to send back to the Dialogflow API or a URI to
|
653
|
+
# open.
|
654
|
+
# Corresponds to the JSON property `postback`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :postback
|
657
|
+
|
658
|
+
# Optional. The text to show on the button.
|
659
|
+
# Corresponds to the JSON property `text`
|
660
|
+
# @return [String]
|
661
|
+
attr_accessor :text
|
662
|
+
|
663
|
+
def initialize(**args)
|
664
|
+
update!(**args)
|
665
|
+
end
|
666
|
+
|
667
|
+
# Update properties of this object
|
668
|
+
def update!(**args)
|
669
|
+
@postback = args[:postback] if args.key?(:postback)
|
670
|
+
@text = args[:text] if args.key?(:text)
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
# The card for presenting a carousel of options to select from.
|
675
|
+
class GoogleCloudDialogflowV2IntentMessageCarouselSelect
|
676
|
+
include Google::Apis::Core::Hashable
|
677
|
+
|
678
|
+
# Required. Carousel items.
|
679
|
+
# Corresponds to the JSON property `items`
|
680
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageCarouselSelectItem>]
|
681
|
+
attr_accessor :items
|
682
|
+
|
683
|
+
def initialize(**args)
|
684
|
+
update!(**args)
|
685
|
+
end
|
686
|
+
|
687
|
+
# Update properties of this object
|
688
|
+
def update!(**args)
|
689
|
+
@items = args[:items] if args.key?(:items)
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
693
|
+
# An item in the carousel.
|
694
|
+
class GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
|
695
|
+
include Google::Apis::Core::Hashable
|
696
|
+
|
697
|
+
# Optional. The body text of the card.
|
698
|
+
# Corresponds to the JSON property `description`
|
699
|
+
# @return [String]
|
700
|
+
attr_accessor :description
|
701
|
+
|
702
|
+
# The image response message.
|
703
|
+
# Corresponds to the JSON property `image`
|
704
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageImage]
|
705
|
+
attr_accessor :image
|
706
|
+
|
707
|
+
# Additional info about the select item for when it is triggered in a
|
708
|
+
# dialog.
|
709
|
+
# Corresponds to the JSON property `info`
|
710
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageSelectItemInfo]
|
711
|
+
attr_accessor :info
|
712
|
+
|
713
|
+
# Required. Title of the carousel item.
|
714
|
+
# Corresponds to the JSON property `title`
|
715
|
+
# @return [String]
|
716
|
+
attr_accessor :title
|
717
|
+
|
718
|
+
def initialize(**args)
|
719
|
+
update!(**args)
|
720
|
+
end
|
721
|
+
|
722
|
+
# Update properties of this object
|
723
|
+
def update!(**args)
|
724
|
+
@description = args[:description] if args.key?(:description)
|
725
|
+
@image = args[:image] if args.key?(:image)
|
726
|
+
@info = args[:info] if args.key?(:info)
|
727
|
+
@title = args[:title] if args.key?(:title)
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
731
|
+
# The image response message.
|
732
|
+
class GoogleCloudDialogflowV2IntentMessageImage
|
733
|
+
include Google::Apis::Core::Hashable
|
734
|
+
|
735
|
+
# Optional. A text description of the image to be used for accessibility,
|
736
|
+
# e.g., screen readers.
|
737
|
+
# Corresponds to the JSON property `accessibilityText`
|
738
|
+
# @return [String]
|
739
|
+
attr_accessor :accessibility_text
|
740
|
+
|
741
|
+
# Optional. The public URI to an image file.
|
742
|
+
# Corresponds to the JSON property `imageUri`
|
743
|
+
# @return [String]
|
744
|
+
attr_accessor :image_uri
|
745
|
+
|
746
|
+
def initialize(**args)
|
747
|
+
update!(**args)
|
748
|
+
end
|
749
|
+
|
750
|
+
# Update properties of this object
|
751
|
+
def update!(**args)
|
752
|
+
@accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text)
|
753
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
# The suggestion chip message that allows the user to jump out to the app
|
758
|
+
# or website associated with this agent.
|
759
|
+
class GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
|
760
|
+
include Google::Apis::Core::Hashable
|
761
|
+
|
762
|
+
# Required. The name of the app or site this chip is linking to.
|
763
|
+
# Corresponds to the JSON property `destinationName`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :destination_name
|
766
|
+
|
767
|
+
# Required. The URI of the app or site to open when the user taps the
|
768
|
+
# suggestion chip.
|
769
|
+
# Corresponds to the JSON property `uri`
|
770
|
+
# @return [String]
|
771
|
+
attr_accessor :uri
|
772
|
+
|
773
|
+
def initialize(**args)
|
774
|
+
update!(**args)
|
775
|
+
end
|
776
|
+
|
777
|
+
# Update properties of this object
|
778
|
+
def update!(**args)
|
779
|
+
@destination_name = args[:destination_name] if args.key?(:destination_name)
|
780
|
+
@uri = args[:uri] if args.key?(:uri)
|
781
|
+
end
|
782
|
+
end
|
783
|
+
|
784
|
+
# The card for presenting a list of options to select from.
|
785
|
+
class GoogleCloudDialogflowV2IntentMessageListSelect
|
786
|
+
include Google::Apis::Core::Hashable
|
787
|
+
|
788
|
+
# Required. List items.
|
789
|
+
# Corresponds to the JSON property `items`
|
790
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageListSelectItem>]
|
791
|
+
attr_accessor :items
|
792
|
+
|
793
|
+
# Optional. The overall title of the list.
|
794
|
+
# Corresponds to the JSON property `title`
|
795
|
+
# @return [String]
|
796
|
+
attr_accessor :title
|
797
|
+
|
798
|
+
def initialize(**args)
|
799
|
+
update!(**args)
|
800
|
+
end
|
801
|
+
|
802
|
+
# Update properties of this object
|
803
|
+
def update!(**args)
|
804
|
+
@items = args[:items] if args.key?(:items)
|
805
|
+
@title = args[:title] if args.key?(:title)
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
809
|
+
# An item in the list.
|
810
|
+
class GoogleCloudDialogflowV2IntentMessageListSelectItem
|
811
|
+
include Google::Apis::Core::Hashable
|
812
|
+
|
813
|
+
# Optional. The main text describing the item.
|
814
|
+
# Corresponds to the JSON property `description`
|
815
|
+
# @return [String]
|
816
|
+
attr_accessor :description
|
817
|
+
|
818
|
+
# The image response message.
|
819
|
+
# Corresponds to the JSON property `image`
|
820
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageImage]
|
821
|
+
attr_accessor :image
|
822
|
+
|
823
|
+
# Additional info about the select item for when it is triggered in a
|
824
|
+
# dialog.
|
825
|
+
# Corresponds to the JSON property `info`
|
826
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageSelectItemInfo]
|
827
|
+
attr_accessor :info
|
828
|
+
|
829
|
+
# Required. The title of the list item.
|
830
|
+
# Corresponds to the JSON property `title`
|
831
|
+
# @return [String]
|
832
|
+
attr_accessor :title
|
833
|
+
|
834
|
+
def initialize(**args)
|
835
|
+
update!(**args)
|
836
|
+
end
|
837
|
+
|
838
|
+
# Update properties of this object
|
839
|
+
def update!(**args)
|
840
|
+
@description = args[:description] if args.key?(:description)
|
841
|
+
@image = args[:image] if args.key?(:image)
|
842
|
+
@info = args[:info] if args.key?(:info)
|
843
|
+
@title = args[:title] if args.key?(:title)
|
844
|
+
end
|
845
|
+
end
|
846
|
+
|
847
|
+
# The quick replies response message.
|
848
|
+
class GoogleCloudDialogflowV2IntentMessageQuickReplies
|
849
|
+
include Google::Apis::Core::Hashable
|
850
|
+
|
851
|
+
# Optional. The collection of quick replies.
|
852
|
+
# Corresponds to the JSON property `quickReplies`
|
853
|
+
# @return [Array<String>]
|
854
|
+
attr_accessor :quick_replies
|
855
|
+
|
856
|
+
# Optional. The title of the collection of quick replies.
|
857
|
+
# Corresponds to the JSON property `title`
|
858
|
+
# @return [String]
|
859
|
+
attr_accessor :title
|
860
|
+
|
861
|
+
def initialize(**args)
|
862
|
+
update!(**args)
|
863
|
+
end
|
864
|
+
|
865
|
+
# Update properties of this object
|
866
|
+
def update!(**args)
|
867
|
+
@quick_replies = args[:quick_replies] if args.key?(:quick_replies)
|
868
|
+
@title = args[:title] if args.key?(:title)
|
869
|
+
end
|
870
|
+
end
|
871
|
+
|
872
|
+
# Additional info about the select item for when it is triggered in a
|
873
|
+
# dialog.
|
874
|
+
class GoogleCloudDialogflowV2IntentMessageSelectItemInfo
|
875
|
+
include Google::Apis::Core::Hashable
|
876
|
+
|
877
|
+
# Required. A unique key that will be sent back to the agent if this
|
878
|
+
# response is given.
|
879
|
+
# Corresponds to the JSON property `key`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :key
|
882
|
+
|
883
|
+
# Optional. A list of synonyms that can also be used to trigger this
|
884
|
+
# item in dialog.
|
885
|
+
# Corresponds to the JSON property `synonyms`
|
886
|
+
# @return [Array<String>]
|
887
|
+
attr_accessor :synonyms
|
888
|
+
|
889
|
+
def initialize(**args)
|
890
|
+
update!(**args)
|
891
|
+
end
|
892
|
+
|
893
|
+
# Update properties of this object
|
894
|
+
def update!(**args)
|
895
|
+
@key = args[:key] if args.key?(:key)
|
896
|
+
@synonyms = args[:synonyms] if args.key?(:synonyms)
|
897
|
+
end
|
898
|
+
end
|
899
|
+
|
900
|
+
# The simple response message containing speech or text.
|
901
|
+
class GoogleCloudDialogflowV2IntentMessageSimpleResponse
|
902
|
+
include Google::Apis::Core::Hashable
|
903
|
+
|
904
|
+
# Optional. The text to display.
|
905
|
+
# Corresponds to the JSON property `displayText`
|
906
|
+
# @return [String]
|
907
|
+
attr_accessor :display_text
|
908
|
+
|
909
|
+
# One of text_to_speech or ssml must be provided. Structured spoken
|
910
|
+
# response to the user in the SSML format. Mutually exclusive with
|
911
|
+
# text_to_speech.
|
912
|
+
# Corresponds to the JSON property `ssml`
|
913
|
+
# @return [String]
|
914
|
+
attr_accessor :ssml
|
915
|
+
|
916
|
+
# One of text_to_speech or ssml must be provided. The plain text of the
|
917
|
+
# speech output. Mutually exclusive with ssml.
|
918
|
+
# Corresponds to the JSON property `textToSpeech`
|
919
|
+
# @return [String]
|
920
|
+
attr_accessor :text_to_speech
|
921
|
+
|
922
|
+
def initialize(**args)
|
923
|
+
update!(**args)
|
924
|
+
end
|
925
|
+
|
926
|
+
# Update properties of this object
|
927
|
+
def update!(**args)
|
928
|
+
@display_text = args[:display_text] if args.key?(:display_text)
|
929
|
+
@ssml = args[:ssml] if args.key?(:ssml)
|
930
|
+
@text_to_speech = args[:text_to_speech] if args.key?(:text_to_speech)
|
931
|
+
end
|
932
|
+
end
|
933
|
+
|
934
|
+
# The collection of simple response candidates.
|
935
|
+
# This message in `QueryResult.fulfillment_messages` and
|
936
|
+
# `WebhookResponse.fulfillment_messages` should contain only one
|
937
|
+
# `SimpleResponse`.
|
938
|
+
class GoogleCloudDialogflowV2IntentMessageSimpleResponses
|
939
|
+
include Google::Apis::Core::Hashable
|
940
|
+
|
941
|
+
# Required. The list of simple responses.
|
942
|
+
# Corresponds to the JSON property `simpleResponses`
|
943
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageSimpleResponse>]
|
944
|
+
attr_accessor :simple_responses
|
945
|
+
|
946
|
+
def initialize(**args)
|
947
|
+
update!(**args)
|
948
|
+
end
|
949
|
+
|
950
|
+
# Update properties of this object
|
951
|
+
def update!(**args)
|
952
|
+
@simple_responses = args[:simple_responses] if args.key?(:simple_responses)
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
# The suggestion chip message that the user can tap to quickly post a reply
|
957
|
+
# to the conversation.
|
958
|
+
class GoogleCloudDialogflowV2IntentMessageSuggestion
|
959
|
+
include Google::Apis::Core::Hashable
|
960
|
+
|
961
|
+
# Required. The text shown the in the suggestion chip.
|
962
|
+
# Corresponds to the JSON property `title`
|
963
|
+
# @return [String]
|
964
|
+
attr_accessor :title
|
965
|
+
|
966
|
+
def initialize(**args)
|
967
|
+
update!(**args)
|
968
|
+
end
|
969
|
+
|
970
|
+
# Update properties of this object
|
971
|
+
def update!(**args)
|
972
|
+
@title = args[:title] if args.key?(:title)
|
973
|
+
end
|
974
|
+
end
|
975
|
+
|
976
|
+
# The collection of suggestions.
|
977
|
+
class GoogleCloudDialogflowV2IntentMessageSuggestions
|
978
|
+
include Google::Apis::Core::Hashable
|
979
|
+
|
980
|
+
# Required. The list of suggested replies.
|
981
|
+
# Corresponds to the JSON property `suggestions`
|
982
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessageSuggestion>]
|
983
|
+
attr_accessor :suggestions
|
984
|
+
|
985
|
+
def initialize(**args)
|
986
|
+
update!(**args)
|
987
|
+
end
|
988
|
+
|
989
|
+
# Update properties of this object
|
990
|
+
def update!(**args)
|
991
|
+
@suggestions = args[:suggestions] if args.key?(:suggestions)
|
992
|
+
end
|
993
|
+
end
|
994
|
+
|
995
|
+
# The text response message.
|
996
|
+
class GoogleCloudDialogflowV2IntentMessageText
|
997
|
+
include Google::Apis::Core::Hashable
|
998
|
+
|
999
|
+
# Optional. The collection of the agent's responses.
|
1000
|
+
# Corresponds to the JSON property `text`
|
1001
|
+
# @return [Array<String>]
|
1002
|
+
attr_accessor :text
|
1003
|
+
|
1004
|
+
def initialize(**args)
|
1005
|
+
update!(**args)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# Update properties of this object
|
1009
|
+
def update!(**args)
|
1010
|
+
@text = args[:text] if args.key?(:text)
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# Represents intent parameters.
|
1015
|
+
class GoogleCloudDialogflowV2IntentParameter
|
1016
|
+
include Google::Apis::Core::Hashable
|
1017
|
+
|
1018
|
+
# Optional. The default value to use when the `value` yields an empty
|
1019
|
+
# result.
|
1020
|
+
# Default values can be extracted from contexts by using the following
|
1021
|
+
# syntax: `#context_name.parameter_name`.
|
1022
|
+
# Corresponds to the JSON property `defaultValue`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :default_value
|
1025
|
+
|
1026
|
+
# Required. The name of the parameter.
|
1027
|
+
# Corresponds to the JSON property `displayName`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :display_name
|
1030
|
+
|
1031
|
+
# Optional. The name of the entity type, prefixed with `@`, that
|
1032
|
+
# describes values of the parameter. If the parameter is
|
1033
|
+
# required, this must be provided.
|
1034
|
+
# Corresponds to the JSON property `entityTypeDisplayName`
|
1035
|
+
# @return [String]
|
1036
|
+
attr_accessor :entity_type_display_name
|
1037
|
+
|
1038
|
+
# Optional. Indicates whether the parameter represents a list of values.
|
1039
|
+
# Corresponds to the JSON property `isList`
|
1040
|
+
# @return [Boolean]
|
1041
|
+
attr_accessor :is_list
|
1042
|
+
alias_method :is_list?, :is_list
|
1043
|
+
|
1044
|
+
# Optional. Indicates whether the parameter is required. That is,
|
1045
|
+
# whether the intent cannot be completed without collecting the parameter
|
1046
|
+
# value.
|
1047
|
+
# Corresponds to the JSON property `mandatory`
|
1048
|
+
# @return [Boolean]
|
1049
|
+
attr_accessor :mandatory
|
1050
|
+
alias_method :mandatory?, :mandatory
|
1051
|
+
|
1052
|
+
# The unique identifier of this parameter.
|
1053
|
+
# Corresponds to the JSON property `name`
|
1054
|
+
# @return [String]
|
1055
|
+
attr_accessor :name
|
1056
|
+
|
1057
|
+
# Optional. The collection of prompts that the agent can present to the
|
1058
|
+
# user in order to collect value for the parameter.
|
1059
|
+
# Corresponds to the JSON property `prompts`
|
1060
|
+
# @return [Array<String>]
|
1061
|
+
attr_accessor :prompts
|
1062
|
+
|
1063
|
+
# Optional. The definition of the parameter value. It can be:
|
1064
|
+
# - a constant string,
|
1065
|
+
# - a parameter value defined as `$parameter_name`,
|
1066
|
+
# - an original parameter value defined as `$parameter_name.original`,
|
1067
|
+
# - a parameter value from some context defined as
|
1068
|
+
# `#context_name.parameter_name`.
|
1069
|
+
# Corresponds to the JSON property `value`
|
1070
|
+
# @return [String]
|
1071
|
+
attr_accessor :value
|
1072
|
+
|
1073
|
+
def initialize(**args)
|
1074
|
+
update!(**args)
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
# Update properties of this object
|
1078
|
+
def update!(**args)
|
1079
|
+
@default_value = args[:default_value] if args.key?(:default_value)
|
1080
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1081
|
+
@entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name)
|
1082
|
+
@is_list = args[:is_list] if args.key?(:is_list)
|
1083
|
+
@mandatory = args[:mandatory] if args.key?(:mandatory)
|
1084
|
+
@name = args[:name] if args.key?(:name)
|
1085
|
+
@prompts = args[:prompts] if args.key?(:prompts)
|
1086
|
+
@value = args[:value] if args.key?(:value)
|
1087
|
+
end
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# Represents an example or template that the agent is trained on.
|
1091
|
+
class GoogleCloudDialogflowV2IntentTrainingPhrase
|
1092
|
+
include Google::Apis::Core::Hashable
|
1093
|
+
|
1094
|
+
# Required. The unique identifier of this training phrase.
|
1095
|
+
# Corresponds to the JSON property `name`
|
1096
|
+
# @return [String]
|
1097
|
+
attr_accessor :name
|
1098
|
+
|
1099
|
+
# Required. The collection of training phrase parts (can be annotated).
|
1100
|
+
# Fields: `entity_type`, `alias` and `user_defined` should be populated
|
1101
|
+
# only for the annotated parts of the training phrase.
|
1102
|
+
# Corresponds to the JSON property `parts`
|
1103
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentTrainingPhrasePart>]
|
1104
|
+
attr_accessor :parts
|
1105
|
+
|
1106
|
+
# Optional. Indicates how many times this example or template was added to
|
1107
|
+
# the intent. Each time a developer adds an existing sample by editing an
|
1108
|
+
# intent or training, this counter is increased.
|
1109
|
+
# Corresponds to the JSON property `timesAddedCount`
|
1110
|
+
# @return [Fixnum]
|
1111
|
+
attr_accessor :times_added_count
|
1112
|
+
|
1113
|
+
# Required. The type of the training phrase.
|
1114
|
+
# Corresponds to the JSON property `type`
|
1115
|
+
# @return [String]
|
1116
|
+
attr_accessor :type
|
1117
|
+
|
1118
|
+
def initialize(**args)
|
1119
|
+
update!(**args)
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
# Update properties of this object
|
1123
|
+
def update!(**args)
|
1124
|
+
@name = args[:name] if args.key?(:name)
|
1125
|
+
@parts = args[:parts] if args.key?(:parts)
|
1126
|
+
@times_added_count = args[:times_added_count] if args.key?(:times_added_count)
|
1127
|
+
@type = args[:type] if args.key?(:type)
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# Represents a part of a training phrase.
|
1132
|
+
class GoogleCloudDialogflowV2IntentTrainingPhrasePart
|
1133
|
+
include Google::Apis::Core::Hashable
|
1134
|
+
|
1135
|
+
# Optional. The parameter name for the value extracted from the
|
1136
|
+
# annotated part of the example.
|
1137
|
+
# Corresponds to the JSON property `alias`
|
1138
|
+
# @return [String]
|
1139
|
+
attr_accessor :alias
|
1140
|
+
|
1141
|
+
# Optional. The entity type name prefixed with `@`. This field is
|
1142
|
+
# required for the annotated part of the text and applies only to
|
1143
|
+
# examples.
|
1144
|
+
# Corresponds to the JSON property `entityType`
|
1145
|
+
# @return [String]
|
1146
|
+
attr_accessor :entity_type
|
1147
|
+
|
1148
|
+
# Required. The text corresponding to the example or template,
|
1149
|
+
# if there are no annotations. For
|
1150
|
+
# annotated examples, it is the text for one of the example's parts.
|
1151
|
+
# Corresponds to the JSON property `text`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :text
|
1154
|
+
|
1155
|
+
# Optional. Indicates whether the text was manually annotated by the
|
1156
|
+
# developer.
|
1157
|
+
# Corresponds to the JSON property `userDefined`
|
1158
|
+
# @return [Boolean]
|
1159
|
+
attr_accessor :user_defined
|
1160
|
+
alias_method :user_defined?, :user_defined
|
1161
|
+
|
1162
|
+
def initialize(**args)
|
1163
|
+
update!(**args)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Update properties of this object
|
1167
|
+
def update!(**args)
|
1168
|
+
@alias = args[:alias] if args.key?(:alias)
|
1169
|
+
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
1170
|
+
@text = args[:text] if args.key?(:text)
|
1171
|
+
@user_defined = args[:user_defined] if args.key?(:user_defined)
|
1172
|
+
end
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# Represents the contents of the original request that was passed to
|
1176
|
+
# the `[Streaming]DetectIntent` call.
|
1177
|
+
class GoogleCloudDialogflowV2OriginalDetectIntentRequest
|
1178
|
+
include Google::Apis::Core::Hashable
|
1179
|
+
|
1180
|
+
# Optional. This field is set to the value of `QueryParameters.payload` field
|
1181
|
+
# passed in the request.
|
1182
|
+
# Corresponds to the JSON property `payload`
|
1183
|
+
# @return [Hash<String,Object>]
|
1184
|
+
attr_accessor :payload
|
1185
|
+
|
1186
|
+
# The source of this request, e.g., `google`, `facebook`, `slack`. It is set
|
1187
|
+
# by Dialogflow-owned servers. Possible values of this field correspond to
|
1188
|
+
# Intent.Message.Platform.
|
1189
|
+
# Corresponds to the JSON property `source`
|
1190
|
+
# @return [String]
|
1191
|
+
attr_accessor :source
|
1192
|
+
|
1193
|
+
def initialize(**args)
|
1194
|
+
update!(**args)
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# Update properties of this object
|
1198
|
+
def update!(**args)
|
1199
|
+
@payload = args[:payload] if args.key?(:payload)
|
1200
|
+
@source = args[:source] if args.key?(:source)
|
1201
|
+
end
|
1202
|
+
end
|
1203
|
+
|
1204
|
+
# Represents the result of conversational query or event processing.
|
1205
|
+
class GoogleCloudDialogflowV2QueryResult
|
1206
|
+
include Google::Apis::Core::Hashable
|
1207
|
+
|
1208
|
+
# The action name from the matched intent.
|
1209
|
+
# Corresponds to the JSON property `action`
|
1210
|
+
# @return [String]
|
1211
|
+
attr_accessor :action
|
1212
|
+
|
1213
|
+
# This field is set to:
|
1214
|
+
# - `false` if the matched intent has required parameters and not all of
|
1215
|
+
# the required parameter values have been collected.
|
1216
|
+
# - `true` if all required parameter values have been collected, or if the
|
1217
|
+
# matched intent doesn't contain any required parameters.
|
1218
|
+
# Corresponds to the JSON property `allRequiredParamsPresent`
|
1219
|
+
# @return [Boolean]
|
1220
|
+
attr_accessor :all_required_params_present
|
1221
|
+
alias_method :all_required_params_present?, :all_required_params_present
|
1222
|
+
|
1223
|
+
# The free-form diagnostic info. For example, this field
|
1224
|
+
# could contain webhook call latency.
|
1225
|
+
# Corresponds to the JSON property `diagnosticInfo`
|
1226
|
+
# @return [Hash<String,Object>]
|
1227
|
+
attr_accessor :diagnostic_info
|
1228
|
+
|
1229
|
+
# The collection of rich messages to present to the user.
|
1230
|
+
# Corresponds to the JSON property `fulfillmentMessages`
|
1231
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessage>]
|
1232
|
+
attr_accessor :fulfillment_messages
|
1233
|
+
|
1234
|
+
# The text to be pronounced to the user or shown on the screen.
|
1235
|
+
# Corresponds to the JSON property `fulfillmentText`
|
1236
|
+
# @return [String]
|
1237
|
+
attr_accessor :fulfillment_text
|
1238
|
+
|
1239
|
+
# Represents an intent.
|
1240
|
+
# Intents convert a number of user expressions or patterns into an action. An
|
1241
|
+
# action is an extraction of a user command or sentence semantics.
|
1242
|
+
# Corresponds to the JSON property `intent`
|
1243
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Intent]
|
1244
|
+
attr_accessor :intent
|
1245
|
+
|
1246
|
+
# The intent detection confidence. Values range from 0.0
|
1247
|
+
# (completely uncertain) to 1.0 (completely certain).
|
1248
|
+
# Corresponds to the JSON property `intentDetectionConfidence`
|
1249
|
+
# @return [Float]
|
1250
|
+
attr_accessor :intent_detection_confidence
|
1251
|
+
|
1252
|
+
# The language that was triggered during intent detection.
|
1253
|
+
# See [Language Support](https://dialogflow.com/docs/reference/language)
|
1254
|
+
# for a list of the currently supported language codes.
|
1255
|
+
# Corresponds to the JSON property `languageCode`
|
1256
|
+
# @return [String]
|
1257
|
+
attr_accessor :language_code
|
1258
|
+
|
1259
|
+
# The collection of output contexts. If applicable,
|
1260
|
+
# `output_contexts.parameters` contains entries with name
|
1261
|
+
# `<parameter name>.original` containing the original parameter values
|
1262
|
+
# before the query.
|
1263
|
+
# Corresponds to the JSON property `outputContexts`
|
1264
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Context>]
|
1265
|
+
attr_accessor :output_contexts
|
1266
|
+
|
1267
|
+
# The collection of extracted parameters.
|
1268
|
+
# Corresponds to the JSON property `parameters`
|
1269
|
+
# @return [Hash<String,Object>]
|
1270
|
+
attr_accessor :parameters
|
1271
|
+
|
1272
|
+
# The original conversational query text:
|
1273
|
+
# - If natural language text was provided as input, `query_text` contains
|
1274
|
+
# a copy of the input.
|
1275
|
+
# - If natural language speech audio was provided as input, `query_text`
|
1276
|
+
# contains the speech recognition result. If speech recognizer produced
|
1277
|
+
# multiple alternatives, a particular one is picked.
|
1278
|
+
# - If an event was provided as input, `query_text` is not set.
|
1279
|
+
# Corresponds to the JSON property `queryText`
|
1280
|
+
# @return [String]
|
1281
|
+
attr_accessor :query_text
|
1282
|
+
|
1283
|
+
# The Speech recognition confidence between 0.0 and 1.0. A higher number
|
1284
|
+
# indicates an estimated greater likelihood that the recognized words are
|
1285
|
+
# correct. The default of 0.0 is a sentinel value indicating that confidence
|
1286
|
+
# was not set.
|
1287
|
+
# You should not rely on this field as it isn't guaranteed to be accurate, or
|
1288
|
+
# even set. In particular this field isn't set in Webhook calls and for
|
1289
|
+
# StreamingDetectIntent since the streaming endpoint has separate confidence
|
1290
|
+
# estimates per portion of the audio in StreamingRecognitionResult.
|
1291
|
+
# Corresponds to the JSON property `speechRecognitionConfidence`
|
1292
|
+
# @return [Float]
|
1293
|
+
attr_accessor :speech_recognition_confidence
|
1294
|
+
|
1295
|
+
# If the query was fulfilled by a webhook call, this field is set to the
|
1296
|
+
# value of the `payload` field returned in the webhook response.
|
1297
|
+
# Corresponds to the JSON property `webhookPayload`
|
1298
|
+
# @return [Hash<String,Object>]
|
1299
|
+
attr_accessor :webhook_payload
|
1300
|
+
|
1301
|
+
# If the query was fulfilled by a webhook call, this field is set to the
|
1302
|
+
# value of the `source` field returned in the webhook response.
|
1303
|
+
# Corresponds to the JSON property `webhookSource`
|
1304
|
+
# @return [String]
|
1305
|
+
attr_accessor :webhook_source
|
1306
|
+
|
1307
|
+
def initialize(**args)
|
1308
|
+
update!(**args)
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
# Update properties of this object
|
1312
|
+
def update!(**args)
|
1313
|
+
@action = args[:action] if args.key?(:action)
|
1314
|
+
@all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
|
1315
|
+
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
1316
|
+
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
1317
|
+
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
1318
|
+
@intent = args[:intent] if args.key?(:intent)
|
1319
|
+
@intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
|
1320
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1321
|
+
@output_contexts = args[:output_contexts] if args.key?(:output_contexts)
|
1322
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
1323
|
+
@query_text = args[:query_text] if args.key?(:query_text)
|
1324
|
+
@speech_recognition_confidence = args[:speech_recognition_confidence] if args.key?(:speech_recognition_confidence)
|
1325
|
+
@webhook_payload = args[:webhook_payload] if args.key?(:webhook_payload)
|
1326
|
+
@webhook_source = args[:webhook_source] if args.key?(:webhook_source)
|
1327
|
+
end
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# The request message for a webhook call.
|
1331
|
+
class GoogleCloudDialogflowV2WebhookRequest
|
1332
|
+
include Google::Apis::Core::Hashable
|
1333
|
+
|
1334
|
+
# Represents the contents of the original request that was passed to
|
1335
|
+
# the `[Streaming]DetectIntent` call.
|
1336
|
+
# Corresponds to the JSON property `originalDetectIntentRequest`
|
1337
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2OriginalDetectIntentRequest]
|
1338
|
+
attr_accessor :original_detect_intent_request
|
1339
|
+
|
1340
|
+
# Represents the result of conversational query or event processing.
|
1341
|
+
# Corresponds to the JSON property `queryResult`
|
1342
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2QueryResult]
|
1343
|
+
attr_accessor :query_result
|
1344
|
+
|
1345
|
+
# The unique identifier of the response. Contains the same value as
|
1346
|
+
# `[Streaming]DetectIntentResponse.response_id`.
|
1347
|
+
# Corresponds to the JSON property `responseId`
|
1348
|
+
# @return [String]
|
1349
|
+
attr_accessor :response_id
|
1350
|
+
|
1351
|
+
# The unique identifier of detectIntent request session.
|
1352
|
+
# Can be used to identify end-user inside webhook implementation.
|
1353
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
1354
|
+
# Corresponds to the JSON property `session`
|
1355
|
+
# @return [String]
|
1356
|
+
attr_accessor :session
|
1357
|
+
|
1358
|
+
def initialize(**args)
|
1359
|
+
update!(**args)
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
# Update properties of this object
|
1363
|
+
def update!(**args)
|
1364
|
+
@original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request)
|
1365
|
+
@query_result = args[:query_result] if args.key?(:query_result)
|
1366
|
+
@response_id = args[:response_id] if args.key?(:response_id)
|
1367
|
+
@session = args[:session] if args.key?(:session)
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# The response message for a webhook call.
|
1372
|
+
class GoogleCloudDialogflowV2WebhookResponse
|
1373
|
+
include Google::Apis::Core::Hashable
|
1374
|
+
|
1375
|
+
# Events allow for matching intents by event name instead of the natural
|
1376
|
+
# language input. For instance, input `<event: ` name: “welcome_event”,
|
1377
|
+
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
1378
|
+
# The parameter `name` may be used by the agent in the response:
|
1379
|
+
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
1380
|
+
# Corresponds to the JSON property `followupEventInput`
|
1381
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EventInput]
|
1382
|
+
attr_accessor :followup_event_input
|
1383
|
+
|
1384
|
+
# Optional. The collection of rich messages to present to the user. This
|
1385
|
+
# value is passed directly to `QueryResult.fulfillment_messages`.
|
1386
|
+
# Corresponds to the JSON property `fulfillmentMessages`
|
1387
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2IntentMessage>]
|
1388
|
+
attr_accessor :fulfillment_messages
|
1389
|
+
|
1390
|
+
# Optional. The text to be shown on the screen. This value is passed directly
|
1391
|
+
# to `QueryResult.fulfillment_text`.
|
1392
|
+
# Corresponds to the JSON property `fulfillmentText`
|
1393
|
+
# @return [String]
|
1394
|
+
attr_accessor :fulfillment_text
|
1395
|
+
|
1396
|
+
# Optional. The collection of output contexts. This value is passed directly
|
1397
|
+
# to `QueryResult.output_contexts`.
|
1398
|
+
# Corresponds to the JSON property `outputContexts`
|
1399
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Context>]
|
1400
|
+
attr_accessor :output_contexts
|
1401
|
+
|
1402
|
+
# Optional. This value is passed directly to `QueryResult.webhook_payload`.
|
1403
|
+
# Corresponds to the JSON property `payload`
|
1404
|
+
# @return [Hash<String,Object>]
|
1405
|
+
attr_accessor :payload
|
1406
|
+
|
1407
|
+
# Optional. This value is passed directly to `QueryResult.webhook_source`.
|
1408
|
+
# Corresponds to the JSON property `source`
|
1409
|
+
# @return [String]
|
1410
|
+
attr_accessor :source
|
1411
|
+
|
1412
|
+
def initialize(**args)
|
1413
|
+
update!(**args)
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
# Update properties of this object
|
1417
|
+
def update!(**args)
|
1418
|
+
@followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
|
1419
|
+
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
1420
|
+
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
1421
|
+
@output_contexts = args[:output_contexts] if args.key?(:output_contexts)
|
1422
|
+
@payload = args[:payload] if args.key?(:payload)
|
1423
|
+
@source = args[:source] if args.key?(:source)
|
1424
|
+
end
|
1425
|
+
end
|
1426
|
+
|
25
1427
|
# Represents a conversational agent.
|
26
|
-
class
|
1428
|
+
class GoogleCloudDialogflowV2beta1Agent
|
27
1429
|
include Google::Apis::Core::Hashable
|
28
1430
|
|
29
1431
|
# Optional. The URI of the agent's avatar.
|
@@ -113,12 +1515,12 @@ module Google
|
|
113
1515
|
end
|
114
1516
|
|
115
1517
|
# The request message for EntityTypes.BatchCreateEntities.
|
116
|
-
class
|
1518
|
+
class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
|
117
1519
|
include Google::Apis::Core::Hashable
|
118
1520
|
|
119
1521
|
# Required. The collection of entities to create.
|
120
1522
|
# Corresponds to the JSON property `entities`
|
121
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1523
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
|
122
1524
|
attr_accessor :entities
|
123
1525
|
|
124
1526
|
# Optional. The language of entity synonyms defined in `entities`. If not
|
@@ -142,7 +1544,7 @@ module Google
|
|
142
1544
|
end
|
143
1545
|
|
144
1546
|
# The request message for EntityTypes.BatchDeleteEntities.
|
145
|
-
class
|
1547
|
+
class GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
|
146
1548
|
include Google::Apis::Core::Hashable
|
147
1549
|
|
148
1550
|
# Required. The canonical `values` of the entities to delete. Note that
|
@@ -173,7 +1575,7 @@ module Google
|
|
173
1575
|
end
|
174
1576
|
|
175
1577
|
# The request message for EntityTypes.BatchDeleteEntityTypes.
|
176
|
-
class
|
1578
|
+
class GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
|
177
1579
|
include Google::Apis::Core::Hashable
|
178
1580
|
|
179
1581
|
# Required. The names entity types to delete. All names must point to the
|
@@ -193,13 +1595,13 @@ module Google
|
|
193
1595
|
end
|
194
1596
|
|
195
1597
|
# The request message for Intents.BatchDeleteIntents.
|
196
|
-
class
|
1598
|
+
class GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
|
197
1599
|
include Google::Apis::Core::Hashable
|
198
1600
|
|
199
1601
|
# Required. The collection of intents to delete. Only intent `name` must be
|
200
1602
|
# filled in.
|
201
1603
|
# Corresponds to the JSON property `intents`
|
202
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1604
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent>]
|
203
1605
|
attr_accessor :intents
|
204
1606
|
|
205
1607
|
def initialize(**args)
|
@@ -213,12 +1615,12 @@ module Google
|
|
213
1615
|
end
|
214
1616
|
|
215
1617
|
# The response message for EntityTypes.BatchCreateEntities.
|
216
|
-
class
|
1618
|
+
class GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
|
217
1619
|
include Google::Apis::Core::Hashable
|
218
1620
|
|
219
1621
|
# Required. The collection of new entities to replace the existing entities.
|
220
1622
|
# Corresponds to the JSON property `entities`
|
221
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1623
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
|
222
1624
|
attr_accessor :entities
|
223
1625
|
|
224
1626
|
# Optional. The language of entity synonyms defined in `entities`. If not
|
@@ -248,12 +1650,12 @@ module Google
|
|
248
1650
|
end
|
249
1651
|
|
250
1652
|
# The request message for EntityTypes.BatchUpdateEntityTypes.
|
251
|
-
class
|
1653
|
+
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
|
252
1654
|
include Google::Apis::Core::Hashable
|
253
1655
|
|
254
1656
|
# This message is a wrapper around a collection of entity types.
|
255
1657
|
# Corresponds to the JSON property `entityTypeBatchInline`
|
256
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
1658
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeBatch]
|
257
1659
|
attr_accessor :entity_type_batch_inline
|
258
1660
|
|
259
1661
|
# Warning: Importing entity types from a URI is not implemented yet.
|
@@ -294,12 +1696,12 @@ module Google
|
|
294
1696
|
end
|
295
1697
|
|
296
1698
|
# The response message for EntityTypes.BatchUpdateEntityTypes.
|
297
|
-
class
|
1699
|
+
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
|
298
1700
|
include Google::Apis::Core::Hashable
|
299
1701
|
|
300
1702
|
# The collection of updated or created entity types.
|
301
1703
|
# Corresponds to the JSON property `entityTypes`
|
302
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1704
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType>]
|
303
1705
|
attr_accessor :entity_types
|
304
1706
|
|
305
1707
|
def initialize(**args)
|
@@ -313,12 +1715,12 @@ module Google
|
|
313
1715
|
end
|
314
1716
|
|
315
1717
|
# The request message for Intents.BatchUpdateIntents.
|
316
|
-
class
|
1718
|
+
class GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
|
317
1719
|
include Google::Apis::Core::Hashable
|
318
1720
|
|
319
1721
|
# This message is a wrapper around a collection of intents.
|
320
1722
|
# Corresponds to the JSON property `intentBatchInline`
|
321
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
1723
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentBatch]
|
322
1724
|
attr_accessor :intent_batch_inline
|
323
1725
|
|
324
1726
|
# Warning: Importing intents from a URI is not implemented yet.
|
@@ -364,12 +1766,12 @@ module Google
|
|
364
1766
|
end
|
365
1767
|
|
366
1768
|
# The response message for Intents.BatchUpdateIntents.
|
367
|
-
class
|
1769
|
+
class GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
|
368
1770
|
include Google::Apis::Core::Hashable
|
369
1771
|
|
370
1772
|
# The collection of updated or created intents.
|
371
1773
|
# Corresponds to the JSON property `intents`
|
372
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1774
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent>]
|
373
1775
|
attr_accessor :intents
|
374
1776
|
|
375
1777
|
def initialize(**args)
|
@@ -383,7 +1785,7 @@ module Google
|
|
383
1785
|
end
|
384
1786
|
|
385
1787
|
# Represents a context.
|
386
|
-
class
|
1788
|
+
class GoogleCloudDialogflowV2beta1Context
|
387
1789
|
include Google::Apis::Core::Hashable
|
388
1790
|
|
389
1791
|
# Optional. The number of conversational query requests after which the
|
@@ -421,7 +1823,7 @@ module Google
|
|
421
1823
|
end
|
422
1824
|
|
423
1825
|
# The request to detect user's intent.
|
424
|
-
class
|
1826
|
+
class GoogleCloudDialogflowV2beta1DetectIntentRequest
|
425
1827
|
include Google::Apis::Core::Hashable
|
426
1828
|
|
427
1829
|
# Optional. The natural language speech audio to be processed. This field
|
@@ -438,12 +1840,12 @@ module Google
|
|
438
1840
|
# 2. A conversational query in the form of text,.
|
439
1841
|
# 3. An event that specifies which intent to trigger.
|
440
1842
|
# Corresponds to the JSON property `queryInput`
|
441
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
1843
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryInput]
|
442
1844
|
attr_accessor :query_input
|
443
1845
|
|
444
1846
|
# Represents the parameters of the conversational query.
|
445
1847
|
# Corresponds to the JSON property `queryParams`
|
446
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
1848
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryParameters]
|
447
1849
|
attr_accessor :query_params
|
448
1850
|
|
449
1851
|
def initialize(**args)
|
@@ -459,12 +1861,12 @@ module Google
|
|
459
1861
|
end
|
460
1862
|
|
461
1863
|
# The message returned from the DetectIntent method.
|
462
|
-
class
|
1864
|
+
class GoogleCloudDialogflowV2beta1DetectIntentResponse
|
463
1865
|
include Google::Apis::Core::Hashable
|
464
1866
|
|
465
1867
|
# Represents the result of conversational query or event processing.
|
466
1868
|
# Corresponds to the JSON property `queryResult`
|
467
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
1869
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult]
|
468
1870
|
attr_accessor :query_result
|
469
1871
|
|
470
1872
|
# The unique identifier of the response. It can be used to
|
@@ -513,7 +1915,7 @@ module Google
|
|
513
1915
|
# - Logging. If some API errors are stored in logs, the message `Status` could
|
514
1916
|
# be used directly after any stripping needed for security/privacy reasons.
|
515
1917
|
# Corresponds to the JSON property `webhookStatus`
|
516
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
1918
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
|
517
1919
|
attr_accessor :webhook_status
|
518
1920
|
|
519
1921
|
def initialize(**args)
|
@@ -528,29 +1930,10 @@ module Google
|
|
528
1930
|
end
|
529
1931
|
end
|
530
1932
|
|
531
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
532
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
533
|
-
# or the response type of an API method. For instance:
|
534
|
-
# service Foo `
|
535
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
536
|
-
# `
|
537
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
538
|
-
class Empty
|
539
|
-
include Google::Apis::Core::Hashable
|
540
|
-
|
541
|
-
def initialize(**args)
|
542
|
-
update!(**args)
|
543
|
-
end
|
544
|
-
|
545
|
-
# Update properties of this object
|
546
|
-
def update!(**args)
|
547
|
-
end
|
548
|
-
end
|
549
|
-
|
550
1933
|
# Represents an entity type.
|
551
1934
|
# Entity types serve as a tool for extracting parameter values from natural
|
552
1935
|
# language queries.
|
553
|
-
class
|
1936
|
+
class GoogleCloudDialogflowV2beta1EntityType
|
554
1937
|
include Google::Apis::Core::Hashable
|
555
1938
|
|
556
1939
|
# Optional. Indicates whether the entity type can be automatically
|
@@ -566,7 +1949,7 @@ module Google
|
|
566
1949
|
|
567
1950
|
# Optional. The collection of entities associated with the entity type.
|
568
1951
|
# Corresponds to the JSON property `entities`
|
569
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1952
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
|
570
1953
|
attr_accessor :entities
|
571
1954
|
|
572
1955
|
# Required. Indicates the kind of entity type.
|
@@ -597,12 +1980,12 @@ module Google
|
|
597
1980
|
end
|
598
1981
|
|
599
1982
|
# This message is a wrapper around a collection of entity types.
|
600
|
-
class
|
1983
|
+
class GoogleCloudDialogflowV2beta1EntityTypeBatch
|
601
1984
|
include Google::Apis::Core::Hashable
|
602
1985
|
|
603
1986
|
# A collection of entity types.
|
604
1987
|
# Corresponds to the JSON property `entityTypes`
|
605
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
1988
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType>]
|
606
1989
|
attr_accessor :entity_types
|
607
1990
|
|
608
1991
|
def initialize(**args)
|
@@ -616,7 +1999,7 @@ module Google
|
|
616
1999
|
end
|
617
2000
|
|
618
2001
|
# Optional. Represents an entity.
|
619
|
-
class
|
2002
|
+
class GoogleCloudDialogflowV2beta1EntityTypeEntity
|
620
2003
|
include Google::Apis::Core::Hashable
|
621
2004
|
|
622
2005
|
# Required. A collection of synonyms. For `KIND_LIST` entity types this
|
@@ -651,7 +2034,7 @@ module Google
|
|
651
2034
|
# parameters: ` name: “Sam” ` `>` can trigger a personalized welcome response.
|
652
2035
|
# The parameter `name` may be used by the agent in the response:
|
653
2036
|
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
654
|
-
class
|
2037
|
+
class GoogleCloudDialogflowV2beta1EventInput
|
655
2038
|
include Google::Apis::Core::Hashable
|
656
2039
|
|
657
2040
|
# Required. The language of this query. See [Language
|
@@ -685,7 +2068,7 @@ module Google
|
|
685
2068
|
end
|
686
2069
|
|
687
2070
|
# The request message for Agents.ExportAgent.
|
688
|
-
class
|
2071
|
+
class GoogleCloudDialogflowV2beta1ExportAgentRequest
|
689
2072
|
include Google::Apis::Core::Hashable
|
690
2073
|
|
691
2074
|
# Warning: Exporting agents to a URI is not implemented yet.
|
@@ -708,7 +2091,7 @@ module Google
|
|
708
2091
|
end
|
709
2092
|
|
710
2093
|
# The response message for Agents.ExportAgent.
|
711
|
-
class
|
2094
|
+
class GoogleCloudDialogflowV2beta1ExportAgentResponse
|
712
2095
|
include Google::Apis::Core::Hashable
|
713
2096
|
|
714
2097
|
# The exported agent.
|
@@ -747,7 +2130,7 @@ module Google
|
|
747
2130
|
end
|
748
2131
|
|
749
2132
|
# The request message for Agents.ImportAgent.
|
750
|
-
class
|
2133
|
+
class GoogleCloudDialogflowV2beta1ImportAgentRequest
|
751
2134
|
include Google::Apis::Core::Hashable
|
752
2135
|
|
753
2136
|
# The agent to import.
|
@@ -788,7 +2171,7 @@ module Google
|
|
788
2171
|
end
|
789
2172
|
|
790
2173
|
# Instructs the speech recognizer how to process the audio content.
|
791
|
-
class
|
2174
|
+
class GoogleCloudDialogflowV2beta1InputAudioConfig
|
792
2175
|
include Google::Apis::Core::Hashable
|
793
2176
|
|
794
2177
|
# Required. Audio encoding of the audio content to process.
|
@@ -836,7 +2219,7 @@ module Google
|
|
836
2219
|
# Represents an intent.
|
837
2220
|
# Intents convert a number of user expressions or patterns into an action. An
|
838
2221
|
# action is an extraction of a user command or sentence semantics.
|
839
|
-
class
|
2222
|
+
class GoogleCloudDialogflowV2beta1Intent
|
840
2223
|
include Google::Apis::Core::Hashable
|
841
2224
|
|
842
2225
|
# Optional. The name of the action associated with the intent.
|
@@ -865,7 +2248,7 @@ module Google
|
|
865
2248
|
# Optional. Collection of information about all followup intents that have
|
866
2249
|
# name of this intent as a root_name.
|
867
2250
|
# Corresponds to the JSON property `followupIntentInfo`
|
868
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2251
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo>]
|
869
2252
|
attr_accessor :followup_intent_info
|
870
2253
|
|
871
2254
|
# Optional. The list of context names required for this intent to be
|
@@ -884,7 +2267,7 @@ module Google
|
|
884
2267
|
# Optional. The collection of rich messages corresponding to the
|
885
2268
|
# `Response` field in API.AI console.
|
886
2269
|
# Corresponds to the JSON property `messages`
|
887
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2270
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage>]
|
888
2271
|
attr_accessor :messages
|
889
2272
|
|
890
2273
|
# Optional. Indicates whether Machine Learning is enabled for the intent.
|
@@ -910,12 +2293,12 @@ module Google
|
|
910
2293
|
# when the intent is matched.
|
911
2294
|
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
|
912
2295
|
# Corresponds to the JSON property `outputContexts`
|
913
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2296
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>]
|
914
2297
|
attr_accessor :output_contexts
|
915
2298
|
|
916
2299
|
# Optional. The collection of parameters associated with the intent.
|
917
2300
|
# Corresponds to the JSON property `parameters`
|
918
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2301
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentParameter>]
|
919
2302
|
attr_accessor :parameters
|
920
2303
|
|
921
2304
|
# The unique identifier of the parent intent in the chain of followup
|
@@ -949,7 +2332,7 @@ module Google
|
|
949
2332
|
# Optional. The collection of examples/templates that the agent is
|
950
2333
|
# trained on.
|
951
2334
|
# Corresponds to the JSON property `trainingPhrases`
|
952
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2335
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrase>]
|
953
2336
|
attr_accessor :training_phrases
|
954
2337
|
|
955
2338
|
# Required. Indicates whether webhooks are enabled for the intent.
|
@@ -985,12 +2368,12 @@ module Google
|
|
985
2368
|
end
|
986
2369
|
|
987
2370
|
# This message is a wrapper around a collection of intents.
|
988
|
-
class
|
2371
|
+
class GoogleCloudDialogflowV2beta1IntentBatch
|
989
2372
|
include Google::Apis::Core::Hashable
|
990
2373
|
|
991
2374
|
# A collection of intents.
|
992
2375
|
# Corresponds to the JSON property `intents`
|
993
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2376
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent>]
|
994
2377
|
attr_accessor :intents
|
995
2378
|
|
996
2379
|
def initialize(**args)
|
@@ -1004,7 +2387,7 @@ module Google
|
|
1004
2387
|
end
|
1005
2388
|
|
1006
2389
|
# Represents a single followup intent in the chain.
|
1007
|
-
class
|
2390
|
+
class GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
|
1008
2391
|
include Google::Apis::Core::Hashable
|
1009
2392
|
|
1010
2393
|
# The unique identifier of the followup intent.
|
@@ -1031,38 +2414,38 @@ module Google
|
|
1031
2414
|
end
|
1032
2415
|
|
1033
2416
|
# Corresponds to the `Response` field in API.AI console.
|
1034
|
-
class
|
2417
|
+
class GoogleCloudDialogflowV2beta1IntentMessage
|
1035
2418
|
include Google::Apis::Core::Hashable
|
1036
2419
|
|
1037
2420
|
# The basic card message. Useful for displaying information.
|
1038
2421
|
# Corresponds to the JSON property `basicCard`
|
1039
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2422
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCard]
|
1040
2423
|
attr_accessor :basic_card
|
1041
2424
|
|
1042
2425
|
# The card response message.
|
1043
2426
|
# Corresponds to the JSON property `card`
|
1044
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2427
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCard]
|
1045
2428
|
attr_accessor :card
|
1046
2429
|
|
1047
2430
|
# The card for presenting a carousel of options to select from.
|
1048
2431
|
# Corresponds to the JSON property `carouselSelect`
|
1049
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2432
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect]
|
1050
2433
|
attr_accessor :carousel_select
|
1051
2434
|
|
1052
2435
|
# The image response message.
|
1053
2436
|
# Corresponds to the JSON property `image`
|
1054
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2437
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage]
|
1055
2438
|
attr_accessor :image
|
1056
2439
|
|
1057
2440
|
# The suggestion chip message that allows the user to jump out to the app
|
1058
2441
|
# or website associated with this agent.
|
1059
2442
|
# Corresponds to the JSON property `linkOutSuggestion`
|
1060
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2443
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion]
|
1061
2444
|
attr_accessor :link_out_suggestion
|
1062
2445
|
|
1063
2446
|
# The card for presenting a list of options to select from.
|
1064
2447
|
# Corresponds to the JSON property `listSelect`
|
1065
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2448
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect]
|
1066
2449
|
attr_accessor :list_select
|
1067
2450
|
|
1068
2451
|
# The response containing a custom payload.
|
@@ -1077,7 +2460,7 @@ module Google
|
|
1077
2460
|
|
1078
2461
|
# The quick replies response message.
|
1079
2462
|
# Corresponds to the JSON property `quickReplies`
|
1080
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2463
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies]
|
1081
2464
|
attr_accessor :quick_replies
|
1082
2465
|
|
1083
2466
|
# The collection of simple response candidates.
|
@@ -1085,17 +2468,17 @@ module Google
|
|
1085
2468
|
# `WebhookResponse.fulfillment_messages` should contain only one
|
1086
2469
|
# `SimpleResponse`.
|
1087
2470
|
# Corresponds to the JSON property `simpleResponses`
|
1088
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2471
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses]
|
1089
2472
|
attr_accessor :simple_responses
|
1090
2473
|
|
1091
2474
|
# The collection of suggestions.
|
1092
2475
|
# Corresponds to the JSON property `suggestions`
|
1093
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2476
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions]
|
1094
2477
|
attr_accessor :suggestions
|
1095
2478
|
|
1096
2479
|
# The text response message.
|
1097
2480
|
# Corresponds to the JSON property `text`
|
1098
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2481
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageText]
|
1099
2482
|
attr_accessor :text
|
1100
2483
|
|
1101
2484
|
def initialize(**args)
|
@@ -1120,12 +2503,12 @@ module Google
|
|
1120
2503
|
end
|
1121
2504
|
|
1122
2505
|
# The basic card message. Useful for displaying information.
|
1123
|
-
class
|
2506
|
+
class GoogleCloudDialogflowV2beta1IntentMessageBasicCard
|
1124
2507
|
include Google::Apis::Core::Hashable
|
1125
2508
|
|
1126
2509
|
# Optional. The collection of card buttons.
|
1127
2510
|
# Corresponds to the JSON property `buttons`
|
1128
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2511
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>]
|
1129
2512
|
attr_accessor :buttons
|
1130
2513
|
|
1131
2514
|
# Required, unless image is present. The body text of the card.
|
@@ -1135,7 +2518,7 @@ module Google
|
|
1135
2518
|
|
1136
2519
|
# The image response message.
|
1137
2520
|
# Corresponds to the JSON property `image`
|
1138
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2521
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage]
|
1139
2522
|
attr_accessor :image
|
1140
2523
|
|
1141
2524
|
# Optional. The subtitle of the card.
|
@@ -1163,12 +2546,12 @@ module Google
|
|
1163
2546
|
end
|
1164
2547
|
|
1165
2548
|
# The button object that appears at the bottom of a card.
|
1166
|
-
class
|
2549
|
+
class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
|
1167
2550
|
include Google::Apis::Core::Hashable
|
1168
2551
|
|
1169
2552
|
# Opens the given URI.
|
1170
2553
|
# Corresponds to the JSON property `openUriAction`
|
1171
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2554
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction]
|
1172
2555
|
attr_accessor :open_uri_action
|
1173
2556
|
|
1174
2557
|
# Required. The title of the button.
|
@@ -1188,7 +2571,7 @@ module Google
|
|
1188
2571
|
end
|
1189
2572
|
|
1190
2573
|
# Opens the given URI.
|
1191
|
-
class
|
2574
|
+
class GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
|
1192
2575
|
include Google::Apis::Core::Hashable
|
1193
2576
|
|
1194
2577
|
# Required. The HTTP or HTTPS scheme URI.
|
@@ -1207,12 +2590,12 @@ module Google
|
|
1207
2590
|
end
|
1208
2591
|
|
1209
2592
|
# The card response message.
|
1210
|
-
class
|
2593
|
+
class GoogleCloudDialogflowV2beta1IntentMessageCard
|
1211
2594
|
include Google::Apis::Core::Hashable
|
1212
2595
|
|
1213
2596
|
# Optional. The collection of card buttons.
|
1214
2597
|
# Corresponds to the JSON property `buttons`
|
1215
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2598
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCardButton>]
|
1216
2599
|
attr_accessor :buttons
|
1217
2600
|
|
1218
2601
|
# Optional. The public URI to an image file for the card.
|
@@ -1244,7 +2627,7 @@ module Google
|
|
1244
2627
|
end
|
1245
2628
|
|
1246
2629
|
# Optional. Contains information about a button.
|
1247
|
-
class
|
2630
|
+
class GoogleCloudDialogflowV2beta1IntentMessageCardButton
|
1248
2631
|
include Google::Apis::Core::Hashable
|
1249
2632
|
|
1250
2633
|
# Optional. The text to send back to the Dialogflow API or a URI to
|
@@ -1270,12 +2653,12 @@ module Google
|
|
1270
2653
|
end
|
1271
2654
|
|
1272
2655
|
# The card for presenting a carousel of options to select from.
|
1273
|
-
class
|
2656
|
+
class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
|
1274
2657
|
include Google::Apis::Core::Hashable
|
1275
2658
|
|
1276
2659
|
# Required. Carousel items.
|
1277
2660
|
# Corresponds to the JSON property `items`
|
1278
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2661
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem>]
|
1279
2662
|
attr_accessor :items
|
1280
2663
|
|
1281
2664
|
def initialize(**args)
|
@@ -1289,7 +2672,7 @@ module Google
|
|
1289
2672
|
end
|
1290
2673
|
|
1291
2674
|
# An item in the carousel.
|
1292
|
-
class
|
2675
|
+
class GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
|
1293
2676
|
include Google::Apis::Core::Hashable
|
1294
2677
|
|
1295
2678
|
# Optional. The body text of the card.
|
@@ -1299,13 +2682,13 @@ module Google
|
|
1299
2682
|
|
1300
2683
|
# The image response message.
|
1301
2684
|
# Corresponds to the JSON property `image`
|
1302
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2685
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage]
|
1303
2686
|
attr_accessor :image
|
1304
2687
|
|
1305
2688
|
# Additional info about the select item for when it is triggered in a
|
1306
2689
|
# dialog.
|
1307
2690
|
# Corresponds to the JSON property `info`
|
1308
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2691
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo]
|
1309
2692
|
attr_accessor :info
|
1310
2693
|
|
1311
2694
|
# Required. Title of the carousel item.
|
@@ -1327,7 +2710,7 @@ module Google
|
|
1327
2710
|
end
|
1328
2711
|
|
1329
2712
|
# The image response message.
|
1330
|
-
class
|
2713
|
+
class GoogleCloudDialogflowV2beta1IntentMessageImage
|
1331
2714
|
include Google::Apis::Core::Hashable
|
1332
2715
|
|
1333
2716
|
# Optional. A text description of the image to be used for accessibility,
|
@@ -1354,7 +2737,7 @@ module Google
|
|
1354
2737
|
|
1355
2738
|
# The suggestion chip message that allows the user to jump out to the app
|
1356
2739
|
# or website associated with this agent.
|
1357
|
-
class
|
2740
|
+
class GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
|
1358
2741
|
include Google::Apis::Core::Hashable
|
1359
2742
|
|
1360
2743
|
# Required. The name of the app or site this chip is linking to.
|
@@ -1380,12 +2763,12 @@ module Google
|
|
1380
2763
|
end
|
1381
2764
|
|
1382
2765
|
# The card for presenting a list of options to select from.
|
1383
|
-
class
|
2766
|
+
class GoogleCloudDialogflowV2beta1IntentMessageListSelect
|
1384
2767
|
include Google::Apis::Core::Hashable
|
1385
2768
|
|
1386
2769
|
# Required. List items.
|
1387
2770
|
# Corresponds to the JSON property `items`
|
1388
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2771
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>]
|
1389
2772
|
attr_accessor :items
|
1390
2773
|
|
1391
2774
|
# Optional. The overall title of the list.
|
@@ -1405,7 +2788,7 @@ module Google
|
|
1405
2788
|
end
|
1406
2789
|
|
1407
2790
|
# An item in the list.
|
1408
|
-
class
|
2791
|
+
class GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
|
1409
2792
|
include Google::Apis::Core::Hashable
|
1410
2793
|
|
1411
2794
|
# Optional. The main text describing the item.
|
@@ -1415,13 +2798,13 @@ module Google
|
|
1415
2798
|
|
1416
2799
|
# The image response message.
|
1417
2800
|
# Corresponds to the JSON property `image`
|
1418
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2801
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage]
|
1419
2802
|
attr_accessor :image
|
1420
2803
|
|
1421
2804
|
# Additional info about the select item for when it is triggered in a
|
1422
2805
|
# dialog.
|
1423
2806
|
# Corresponds to the JSON property `info`
|
1424
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2807
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo]
|
1425
2808
|
attr_accessor :info
|
1426
2809
|
|
1427
2810
|
# Required. The title of the list item.
|
@@ -1443,7 +2826,7 @@ module Google
|
|
1443
2826
|
end
|
1444
2827
|
|
1445
2828
|
# The quick replies response message.
|
1446
|
-
class
|
2829
|
+
class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
|
1447
2830
|
include Google::Apis::Core::Hashable
|
1448
2831
|
|
1449
2832
|
# Optional. The collection of quick replies.
|
@@ -1469,7 +2852,7 @@ module Google
|
|
1469
2852
|
|
1470
2853
|
# Additional info about the select item for when it is triggered in a
|
1471
2854
|
# dialog.
|
1472
|
-
class
|
2855
|
+
class GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
|
1473
2856
|
include Google::Apis::Core::Hashable
|
1474
2857
|
|
1475
2858
|
# Required. A unique key that will be sent back to the agent if this
|
@@ -1496,7 +2879,7 @@ module Google
|
|
1496
2879
|
end
|
1497
2880
|
|
1498
2881
|
# The simple response message containing speech or text.
|
1499
|
-
class
|
2882
|
+
class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
|
1500
2883
|
include Google::Apis::Core::Hashable
|
1501
2884
|
|
1502
2885
|
# Optional. The text to display.
|
@@ -1533,12 +2916,12 @@ module Google
|
|
1533
2916
|
# This message in `QueryResult.fulfillment_messages` and
|
1534
2917
|
# `WebhookResponse.fulfillment_messages` should contain only one
|
1535
2918
|
# `SimpleResponse`.
|
1536
|
-
class
|
2919
|
+
class GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
|
1537
2920
|
include Google::Apis::Core::Hashable
|
1538
2921
|
|
1539
2922
|
# Required. The list of simple responses.
|
1540
2923
|
# Corresponds to the JSON property `simpleResponses`
|
1541
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2924
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse>]
|
1542
2925
|
attr_accessor :simple_responses
|
1543
2926
|
|
1544
2927
|
def initialize(**args)
|
@@ -1553,7 +2936,7 @@ module Google
|
|
1553
2936
|
|
1554
2937
|
# The suggestion chip message that the user can tap to quickly post a reply
|
1555
2938
|
# to the conversation.
|
1556
|
-
class
|
2939
|
+
class GoogleCloudDialogflowV2beta1IntentMessageSuggestion
|
1557
2940
|
include Google::Apis::Core::Hashable
|
1558
2941
|
|
1559
2942
|
# Required. The text shown the in the suggestion chip.
|
@@ -1572,12 +2955,12 @@ module Google
|
|
1572
2955
|
end
|
1573
2956
|
|
1574
2957
|
# The collection of suggestions.
|
1575
|
-
class
|
2958
|
+
class GoogleCloudDialogflowV2beta1IntentMessageSuggestions
|
1576
2959
|
include Google::Apis::Core::Hashable
|
1577
2960
|
|
1578
2961
|
# Required. The list of suggested replies.
|
1579
2962
|
# Corresponds to the JSON property `suggestions`
|
1580
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
2963
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestion>]
|
1581
2964
|
attr_accessor :suggestions
|
1582
2965
|
|
1583
2966
|
def initialize(**args)
|
@@ -1591,7 +2974,7 @@ module Google
|
|
1591
2974
|
end
|
1592
2975
|
|
1593
2976
|
# The text response message.
|
1594
|
-
class
|
2977
|
+
class GoogleCloudDialogflowV2beta1IntentMessageText
|
1595
2978
|
include Google::Apis::Core::Hashable
|
1596
2979
|
|
1597
2980
|
# Optional. The collection of the agent's responses.
|
@@ -1610,7 +2993,7 @@ module Google
|
|
1610
2993
|
end
|
1611
2994
|
|
1612
2995
|
# Represents intent parameters.
|
1613
|
-
class
|
2996
|
+
class GoogleCloudDialogflowV2beta1IntentParameter
|
1614
2997
|
include Google::Apis::Core::Hashable
|
1615
2998
|
|
1616
2999
|
# Optional. The default value to use when the `value` yields an empty
|
@@ -1686,7 +3069,7 @@ module Google
|
|
1686
3069
|
end
|
1687
3070
|
|
1688
3071
|
# Represents an example or template that the agent is trained on.
|
1689
|
-
class
|
3072
|
+
class GoogleCloudDialogflowV2beta1IntentTrainingPhrase
|
1690
3073
|
include Google::Apis::Core::Hashable
|
1691
3074
|
|
1692
3075
|
# Required. The unique identifier of this training phrase.
|
@@ -1698,7 +3081,7 @@ module Google
|
|
1698
3081
|
# Fields: `entity_type`, `alias` and `user_defined` should be populated
|
1699
3082
|
# only for the annotated parts of the training phrase.
|
1700
3083
|
# Corresponds to the JSON property `parts`
|
1701
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3084
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>]
|
1702
3085
|
attr_accessor :parts
|
1703
3086
|
|
1704
3087
|
# Optional. Indicates how many times this example or template was added to
|
@@ -1727,7 +3110,7 @@ module Google
|
|
1727
3110
|
end
|
1728
3111
|
|
1729
3112
|
# Represents a part of a training phrase.
|
1730
|
-
class
|
3113
|
+
class GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
|
1731
3114
|
include Google::Apis::Core::Hashable
|
1732
3115
|
|
1733
3116
|
# Optional. The parameter name for the value extracted from the
|
@@ -1770,43 +3153,14 @@ module Google
|
|
1770
3153
|
end
|
1771
3154
|
end
|
1772
3155
|
|
1773
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
1774
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
1775
|
-
# specified otherwise, this must conform to the
|
1776
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
1777
|
-
# standard</a>. Values must be within normalized ranges.
|
1778
|
-
class LatLng
|
1779
|
-
include Google::Apis::Core::Hashable
|
1780
|
-
|
1781
|
-
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
1782
|
-
# Corresponds to the JSON property `latitude`
|
1783
|
-
# @return [Float]
|
1784
|
-
attr_accessor :latitude
|
1785
|
-
|
1786
|
-
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
1787
|
-
# Corresponds to the JSON property `longitude`
|
1788
|
-
# @return [Float]
|
1789
|
-
attr_accessor :longitude
|
1790
|
-
|
1791
|
-
def initialize(**args)
|
1792
|
-
update!(**args)
|
1793
|
-
end
|
1794
|
-
|
1795
|
-
# Update properties of this object
|
1796
|
-
def update!(**args)
|
1797
|
-
@latitude = args[:latitude] if args.key?(:latitude)
|
1798
|
-
@longitude = args[:longitude] if args.key?(:longitude)
|
1799
|
-
end
|
1800
|
-
end
|
1801
|
-
|
1802
3156
|
# The response message for Contexts.ListContexts.
|
1803
|
-
class
|
3157
|
+
class GoogleCloudDialogflowV2beta1ListContextsResponse
|
1804
3158
|
include Google::Apis::Core::Hashable
|
1805
3159
|
|
1806
3160
|
# The list of contexts. There will be a maximum number of items
|
1807
3161
|
# returned based on the page_size field in the request.
|
1808
3162
|
# Corresponds to the JSON property `contexts`
|
1809
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3163
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>]
|
1810
3164
|
attr_accessor :contexts
|
1811
3165
|
|
1812
3166
|
# Token to retrieve the next page of results, or empty if there are no
|
@@ -1827,13 +3181,13 @@ module Google
|
|
1827
3181
|
end
|
1828
3182
|
|
1829
3183
|
# The response message for EntityTypes.ListEntityTypes.
|
1830
|
-
class
|
3184
|
+
class GoogleCloudDialogflowV2beta1ListEntityTypesResponse
|
1831
3185
|
include Google::Apis::Core::Hashable
|
1832
3186
|
|
1833
3187
|
# The list of agent entity types. There will be a maximum number of items
|
1834
3188
|
# returned based on the page_size field in the request.
|
1835
3189
|
# Corresponds to the JSON property `entityTypes`
|
1836
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3190
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType>]
|
1837
3191
|
attr_accessor :entity_types
|
1838
3192
|
|
1839
3193
|
# Token to retrieve the next page of results, or empty if there are no
|
@@ -1854,13 +3208,13 @@ module Google
|
|
1854
3208
|
end
|
1855
3209
|
|
1856
3210
|
# The response message for Intents.ListIntents.
|
1857
|
-
class
|
3211
|
+
class GoogleCloudDialogflowV2beta1ListIntentsResponse
|
1858
3212
|
include Google::Apis::Core::Hashable
|
1859
3213
|
|
1860
3214
|
# The list of agent intents. There will be a maximum number of items
|
1861
3215
|
# returned based on the page_size field in the request.
|
1862
3216
|
# Corresponds to the JSON property `intents`
|
1863
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3217
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent>]
|
1864
3218
|
attr_accessor :intents
|
1865
3219
|
|
1866
3220
|
# Token to retrieve the next page of results, or empty if there are no
|
@@ -1881,7 +3235,7 @@ module Google
|
|
1881
3235
|
end
|
1882
3236
|
|
1883
3237
|
# The response message for SessionEntityTypes.ListSessionEntityTypes.
|
1884
|
-
class
|
3238
|
+
class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
|
1885
3239
|
include Google::Apis::Core::Hashable
|
1886
3240
|
|
1887
3241
|
# Token to retrieve the next page of results, or empty if there are no
|
@@ -1893,7 +3247,7 @@ module Google
|
|
1893
3247
|
# The list of session entity types. There will be a maximum number of items
|
1894
3248
|
# returned based on the page_size field in the request.
|
1895
3249
|
# Corresponds to the JSON property `sessionEntityTypes`
|
1896
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3250
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType>]
|
1897
3251
|
attr_accessor :session_entity_types
|
1898
3252
|
|
1899
3253
|
def initialize(**args)
|
@@ -1907,106 +3261,9 @@ module Google
|
|
1907
3261
|
end
|
1908
3262
|
end
|
1909
3263
|
|
1910
|
-
# This resource represents a long-running operation that is the result of a
|
1911
|
-
# network API call.
|
1912
|
-
class Operation
|
1913
|
-
include Google::Apis::Core::Hashable
|
1914
|
-
|
1915
|
-
# If the value is `false`, it means the operation is still in progress.
|
1916
|
-
# If `true`, the operation is completed, and either `error` or `response` is
|
1917
|
-
# available.
|
1918
|
-
# Corresponds to the JSON property `done`
|
1919
|
-
# @return [Boolean]
|
1920
|
-
attr_accessor :done
|
1921
|
-
alias_method :done?, :done
|
1922
|
-
|
1923
|
-
# The `Status` type defines a logical error model that is suitable for different
|
1924
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
1925
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1926
|
-
# - Simple to use and understand for most users
|
1927
|
-
# - Flexible enough to meet unexpected needs
|
1928
|
-
# # Overview
|
1929
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
1930
|
-
# and error details. The error code should be an enum value of
|
1931
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1932
|
-
# error message should be a developer-facing English message that helps
|
1933
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
1934
|
-
# error message is needed, put the localized message in the error details or
|
1935
|
-
# localize it in the client. The optional error details may contain arbitrary
|
1936
|
-
# information about the error. There is a predefined set of error detail types
|
1937
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
1938
|
-
# # Language mapping
|
1939
|
-
# The `Status` message is the logical representation of the error model, but it
|
1940
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
1941
|
-
# exposed in different client libraries and different wire protocols, it can be
|
1942
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
1943
|
-
# in Java, but more likely mapped to some error codes in C.
|
1944
|
-
# # Other uses
|
1945
|
-
# The error model and the `Status` message can be used in a variety of
|
1946
|
-
# environments, either with or without APIs, to provide a
|
1947
|
-
# consistent developer experience across different environments.
|
1948
|
-
# Example uses of this error model include:
|
1949
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
1950
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
1951
|
-
# errors.
|
1952
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1953
|
-
# have a `Status` message for error reporting.
|
1954
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
1955
|
-
# `Status` message should be used directly inside batch response, one for
|
1956
|
-
# each error sub-response.
|
1957
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1958
|
-
# results in its response, the status of those operations should be
|
1959
|
-
# represented directly using the `Status` message.
|
1960
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1961
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
1962
|
-
# Corresponds to the JSON property `error`
|
1963
|
-
# @return [Google::Apis::DialogflowV2beta1::Status]
|
1964
|
-
attr_accessor :error
|
1965
|
-
|
1966
|
-
# Service-specific metadata associated with the operation. It typically
|
1967
|
-
# contains progress information and common metadata such as create time.
|
1968
|
-
# Some services might not provide such metadata. Any method that returns a
|
1969
|
-
# long-running operation should document the metadata type, if any.
|
1970
|
-
# Corresponds to the JSON property `metadata`
|
1971
|
-
# @return [Hash<String,Object>]
|
1972
|
-
attr_accessor :metadata
|
1973
|
-
|
1974
|
-
# The server-assigned name, which is only unique within the same service that
|
1975
|
-
# originally returns it. If you use the default HTTP mapping, the
|
1976
|
-
# `name` should have the format of `operations/some/unique/name`.
|
1977
|
-
# Corresponds to the JSON property `name`
|
1978
|
-
# @return [String]
|
1979
|
-
attr_accessor :name
|
1980
|
-
|
1981
|
-
# The normal response of the operation in case of success. If the original
|
1982
|
-
# method returns no data on success, such as `Delete`, the response is
|
1983
|
-
# `google.protobuf.Empty`. If the original method is standard
|
1984
|
-
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
1985
|
-
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
1986
|
-
# is the original method name. For example, if the original method name
|
1987
|
-
# is `TakeSnapshot()`, the inferred response type is
|
1988
|
-
# `TakeSnapshotResponse`.
|
1989
|
-
# Corresponds to the JSON property `response`
|
1990
|
-
# @return [Hash<String,Object>]
|
1991
|
-
attr_accessor :response
|
1992
|
-
|
1993
|
-
def initialize(**args)
|
1994
|
-
update!(**args)
|
1995
|
-
end
|
1996
|
-
|
1997
|
-
# Update properties of this object
|
1998
|
-
def update!(**args)
|
1999
|
-
@done = args[:done] if args.key?(:done)
|
2000
|
-
@error = args[:error] if args.key?(:error)
|
2001
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
2002
|
-
@name = args[:name] if args.key?(:name)
|
2003
|
-
@response = args[:response] if args.key?(:response)
|
2004
|
-
end
|
2005
|
-
end
|
2006
|
-
|
2007
3264
|
# Represents the contents of the original request that was passed to
|
2008
3265
|
# the `[Streaming]DetectIntent` call.
|
2009
|
-
class
|
3266
|
+
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
|
2010
3267
|
include Google::Apis::Core::Hashable
|
2011
3268
|
|
2012
3269
|
# Optional. This field is set to the value of `QueryParameters.payload` field
|
@@ -2038,12 +3295,12 @@ module Google
|
|
2038
3295
|
# instructs the speech recognizer how to process the speech audio.
|
2039
3296
|
# 2. A conversational query in the form of text,.
|
2040
3297
|
# 3. An event that specifies which intent to trigger.
|
2041
|
-
class
|
3298
|
+
class GoogleCloudDialogflowV2beta1QueryInput
|
2042
3299
|
include Google::Apis::Core::Hashable
|
2043
3300
|
|
2044
3301
|
# Instructs the speech recognizer how to process the audio content.
|
2045
3302
|
# Corresponds to the JSON property `audioConfig`
|
2046
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3303
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
|
2047
3304
|
attr_accessor :audio_config
|
2048
3305
|
|
2049
3306
|
# Events allow for matching intents by event name instead of the natural
|
@@ -2052,12 +3309,12 @@ module Google
|
|
2052
3309
|
# The parameter `name` may be used by the agent in the response:
|
2053
3310
|
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
2054
3311
|
# Corresponds to the JSON property `event`
|
2055
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3312
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput]
|
2056
3313
|
attr_accessor :event
|
2057
3314
|
|
2058
3315
|
# Represents the natural language text to be processed.
|
2059
3316
|
# Corresponds to the JSON property `text`
|
2060
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3317
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
|
2061
3318
|
attr_accessor :text
|
2062
3319
|
|
2063
3320
|
def initialize(**args)
|
@@ -2073,13 +3330,13 @@ module Google
|
|
2073
3330
|
end
|
2074
3331
|
|
2075
3332
|
# Represents the parameters of the conversational query.
|
2076
|
-
class
|
3333
|
+
class GoogleCloudDialogflowV2beta1QueryParameters
|
2077
3334
|
include Google::Apis::Core::Hashable
|
2078
3335
|
|
2079
3336
|
# Optional. The collection of contexts to be activated before this query is
|
2080
3337
|
# executed.
|
2081
3338
|
# Corresponds to the JSON property `contexts`
|
2082
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3339
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>]
|
2083
3340
|
attr_accessor :contexts
|
2084
3341
|
|
2085
3342
|
# An object representing a latitude/longitude pair. This is expressed as a pair
|
@@ -2088,7 +3345,7 @@ module Google
|
|
2088
3345
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
2089
3346
|
# standard</a>. Values must be within normalized ranges.
|
2090
3347
|
# Corresponds to the JSON property `geoLocation`
|
2091
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3348
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
|
2092
3349
|
attr_accessor :geo_location
|
2093
3350
|
|
2094
3351
|
# Optional. This field can be used to pass custom data into the webhook
|
@@ -2108,7 +3365,7 @@ module Google
|
|
2108
3365
|
# developer entities with for this query only. The entity synonyms apply
|
2109
3366
|
# to all languages.
|
2110
3367
|
# Corresponds to the JSON property `sessionEntityTypes`
|
2111
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3368
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType>]
|
2112
3369
|
attr_accessor :session_entity_types
|
2113
3370
|
|
2114
3371
|
# Optional. The time zone of this conversational query from the
|
@@ -2135,7 +3392,7 @@ module Google
|
|
2135
3392
|
end
|
2136
3393
|
|
2137
3394
|
# Represents the result of conversational query or event processing.
|
2138
|
-
class
|
3395
|
+
class GoogleCloudDialogflowV2beta1QueryResult
|
2139
3396
|
include Google::Apis::Core::Hashable
|
2140
3397
|
|
2141
3398
|
# The action name from the matched intent.
|
@@ -2161,7 +3418,7 @@ module Google
|
|
2161
3418
|
|
2162
3419
|
# The collection of rich messages to present to the user.
|
2163
3420
|
# Corresponds to the JSON property `fulfillmentMessages`
|
2164
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3421
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage>]
|
2165
3422
|
attr_accessor :fulfillment_messages
|
2166
3423
|
|
2167
3424
|
# The text to be pronounced to the user or shown on the screen.
|
@@ -2173,7 +3430,7 @@ module Google
|
|
2173
3430
|
# Intents convert a number of user expressions or patterns into an action. An
|
2174
3431
|
# action is an extraction of a user command or sentence semantics.
|
2175
3432
|
# Corresponds to the JSON property `intent`
|
2176
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3433
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent]
|
2177
3434
|
attr_accessor :intent
|
2178
3435
|
|
2179
3436
|
# The intent detection confidence. Values range from 0.0
|
@@ -2194,7 +3451,7 @@ module Google
|
|
2194
3451
|
# `<parameter name>.original` containing the original parameter values
|
2195
3452
|
# before the query.
|
2196
3453
|
# Corresponds to the JSON property `outputContexts`
|
2197
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3454
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>]
|
2198
3455
|
attr_accessor :output_contexts
|
2199
3456
|
|
2200
3457
|
# The collection of extracted parameters.
|
@@ -2261,7 +3518,7 @@ module Google
|
|
2261
3518
|
end
|
2262
3519
|
|
2263
3520
|
# The request message for Agents.RestoreAgent.
|
2264
|
-
class
|
3521
|
+
class GoogleCloudDialogflowV2beta1RestoreAgentRequest
|
2265
3522
|
include Google::Apis::Core::Hashable
|
2266
3523
|
|
2267
3524
|
# The agent to restore.
|
@@ -2302,13 +3559,13 @@ module Google
|
|
2302
3559
|
end
|
2303
3560
|
|
2304
3561
|
# The response message for Agents.SearchAgents.
|
2305
|
-
class
|
3562
|
+
class GoogleCloudDialogflowV2beta1SearchAgentsResponse
|
2306
3563
|
include Google::Apis::Core::Hashable
|
2307
3564
|
|
2308
3565
|
# The list of agents. There will be a maximum number of items returned based
|
2309
3566
|
# on the page_size field in the request.
|
2310
3567
|
# Corresponds to the JSON property `agents`
|
2311
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3568
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent>]
|
2312
3569
|
attr_accessor :agents
|
2313
3570
|
|
2314
3571
|
# Token to retrieve the next page of results, or empty if there are no
|
@@ -2323,109 +3580,37 @@ module Google
|
|
2323
3580
|
|
2324
3581
|
# Update properties of this object
|
2325
3582
|
def update!(**args)
|
2326
|
-
@agents = args[:agents] if args.key?(:agents)
|
2327
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2328
|
-
end
|
2329
|
-
end
|
2330
|
-
|
2331
|
-
# Represents a session entity type.
|
2332
|
-
# Extends or replaces a developer entity type at the user session level (we
|
2333
|
-
# refer to the entity types defined at the agent level as "developer entity
|
2334
|
-
# types").
|
2335
|
-
# Note: session entity types apply to all queries, regardless of the language.
|
2336
|
-
class
|
2337
|
-
include Google::Apis::Core::Hashable
|
2338
|
-
|
2339
|
-
# Required. The collection of entities associated with this session entity
|
2340
|
-
# type.
|
2341
|
-
# Corresponds to the JSON property `entities`
|
2342
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::EntityTypeEntity>]
|
2343
|
-
attr_accessor :entities
|
2344
|
-
|
2345
|
-
# Required. Indicates whether the additional data should override or
|
2346
|
-
# supplement the developer entity type definition.
|
2347
|
-
# Corresponds to the JSON property `entityOverrideMode`
|
2348
|
-
# @return [String]
|
2349
|
-
attr_accessor :entity_override_mode
|
2350
|
-
|
2351
|
-
# Required. The unique identifier of this session entity type. Format:
|
2352
|
-
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
2353
|
-
# Display Name>`.
|
2354
|
-
# Corresponds to the JSON property `name`
|
2355
|
-
# @return [String]
|
2356
|
-
attr_accessor :name
|
2357
|
-
|
2358
|
-
def initialize(**args)
|
2359
|
-
update!(**args)
|
2360
|
-
end
|
2361
|
-
|
2362
|
-
# Update properties of this object
|
2363
|
-
def update!(**args)
|
2364
|
-
@entities = args[:entities] if args.key?(:entities)
|
2365
|
-
@entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
|
2366
|
-
@name = args[:name] if args.key?(:name)
|
2367
|
-
end
|
2368
|
-
end
|
2369
|
-
|
2370
|
-
# The `Status` type defines a logical error model that is suitable for different
|
2371
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
2372
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
2373
|
-
# - Simple to use and understand for most users
|
2374
|
-
# - Flexible enough to meet unexpected needs
|
2375
|
-
# # Overview
|
2376
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
2377
|
-
# and error details. The error code should be an enum value of
|
2378
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
2379
|
-
# error message should be a developer-facing English message that helps
|
2380
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
2381
|
-
# error message is needed, put the localized message in the error details or
|
2382
|
-
# localize it in the client. The optional error details may contain arbitrary
|
2383
|
-
# information about the error. There is a predefined set of error detail types
|
2384
|
-
# in the package `google.rpc` that can be used for common error conditions.
|
2385
|
-
# # Language mapping
|
2386
|
-
# The `Status` message is the logical representation of the error model, but it
|
2387
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
2388
|
-
# exposed in different client libraries and different wire protocols, it can be
|
2389
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
2390
|
-
# in Java, but more likely mapped to some error codes in C.
|
2391
|
-
# # Other uses
|
2392
|
-
# The error model and the `Status` message can be used in a variety of
|
2393
|
-
# environments, either with or without APIs, to provide a
|
2394
|
-
# consistent developer experience across different environments.
|
2395
|
-
# Example uses of this error model include:
|
2396
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
2397
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
2398
|
-
# errors.
|
2399
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
2400
|
-
# have a `Status` message for error reporting.
|
2401
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
2402
|
-
# `Status` message should be used directly inside batch response, one for
|
2403
|
-
# each error sub-response.
|
2404
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
2405
|
-
# results in its response, the status of those operations should be
|
2406
|
-
# represented directly using the `Status` message.
|
2407
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
2408
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
2409
|
-
class Status
|
3583
|
+
@agents = args[:agents] if args.key?(:agents)
|
3584
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3585
|
+
end
|
3586
|
+
end
|
3587
|
+
|
3588
|
+
# Represents a session entity type.
|
3589
|
+
# Extends or replaces a developer entity type at the user session level (we
|
3590
|
+
# refer to the entity types defined at the agent level as "developer entity
|
3591
|
+
# types").
|
3592
|
+
# Note: session entity types apply to all queries, regardless of the language.
|
3593
|
+
class GoogleCloudDialogflowV2beta1SessionEntityType
|
2410
3594
|
include Google::Apis::Core::Hashable
|
2411
3595
|
|
2412
|
-
# The
|
2413
|
-
#
|
2414
|
-
#
|
2415
|
-
|
3596
|
+
# Required. The collection of entities associated with this session entity
|
3597
|
+
# type.
|
3598
|
+
# Corresponds to the JSON property `entities`
|
3599
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity>]
|
3600
|
+
attr_accessor :entities
|
2416
3601
|
|
2417
|
-
#
|
2418
|
-
#
|
2419
|
-
# Corresponds to the JSON property `
|
2420
|
-
# @return [
|
2421
|
-
attr_accessor :
|
3602
|
+
# Required. Indicates whether the additional data should override or
|
3603
|
+
# supplement the developer entity type definition.
|
3604
|
+
# Corresponds to the JSON property `entityOverrideMode`
|
3605
|
+
# @return [String]
|
3606
|
+
attr_accessor :entity_override_mode
|
2422
3607
|
|
2423
|
-
#
|
2424
|
-
#
|
2425
|
-
#
|
2426
|
-
# Corresponds to the JSON property `
|
3608
|
+
# Required. The unique identifier of this session entity type. Format:
|
3609
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
3610
|
+
# Display Name>`.
|
3611
|
+
# Corresponds to the JSON property `name`
|
2427
3612
|
# @return [String]
|
2428
|
-
attr_accessor :
|
3613
|
+
attr_accessor :name
|
2429
3614
|
|
2430
3615
|
def initialize(**args)
|
2431
3616
|
update!(**args)
|
@@ -2433,14 +3618,14 @@ module Google
|
|
2433
3618
|
|
2434
3619
|
# Update properties of this object
|
2435
3620
|
def update!(**args)
|
2436
|
-
@
|
2437
|
-
@
|
2438
|
-
@
|
3621
|
+
@entities = args[:entities] if args.key?(:entities)
|
3622
|
+
@entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
|
3623
|
+
@name = args[:name] if args.key?(:name)
|
2439
3624
|
end
|
2440
3625
|
end
|
2441
3626
|
|
2442
3627
|
# Represents the natural language text to be processed.
|
2443
|
-
class
|
3628
|
+
class GoogleCloudDialogflowV2beta1TextInput
|
2444
3629
|
include Google::Apis::Core::Hashable
|
2445
3630
|
|
2446
3631
|
# Required. The language of this conversational query. See [Language
|
@@ -2469,7 +3654,7 @@ module Google
|
|
2469
3654
|
end
|
2470
3655
|
|
2471
3656
|
# The request message for Agents.TrainAgent.
|
2472
|
-
class
|
3657
|
+
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
2473
3658
|
include Google::Apis::Core::Hashable
|
2474
3659
|
|
2475
3660
|
def initialize(**args)
|
@@ -2482,18 +3667,18 @@ module Google
|
|
2482
3667
|
end
|
2483
3668
|
|
2484
3669
|
# The request message for a webhook call.
|
2485
|
-
class
|
3670
|
+
class GoogleCloudDialogflowV2beta1WebhookRequest
|
2486
3671
|
include Google::Apis::Core::Hashable
|
2487
3672
|
|
2488
3673
|
# Represents the contents of the original request that was passed to
|
2489
3674
|
# the `[Streaming]DetectIntent` call.
|
2490
3675
|
# Corresponds to the JSON property `originalDetectIntentRequest`
|
2491
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3676
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest]
|
2492
3677
|
attr_accessor :original_detect_intent_request
|
2493
3678
|
|
2494
3679
|
# Represents the result of conversational query or event processing.
|
2495
3680
|
# Corresponds to the JSON property `queryResult`
|
2496
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3681
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult]
|
2497
3682
|
attr_accessor :query_result
|
2498
3683
|
|
2499
3684
|
# The unique identifier of the response. Contains the same value as
|
@@ -2523,7 +3708,7 @@ module Google
|
|
2523
3708
|
end
|
2524
3709
|
|
2525
3710
|
# The response message for a webhook call.
|
2526
|
-
class
|
3711
|
+
class GoogleCloudDialogflowV2beta1WebhookResponse
|
2527
3712
|
include Google::Apis::Core::Hashable
|
2528
3713
|
|
2529
3714
|
# Events allow for matching intents by event name instead of the natural
|
@@ -2532,13 +3717,13 @@ module Google
|
|
2532
3717
|
# The parameter `name` may be used by the agent in the response:
|
2533
3718
|
# `“Hello #welcome_event.name! What can I do for you today?”`.
|
2534
3719
|
# Corresponds to the JSON property `followupEventInput`
|
2535
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3720
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EventInput]
|
2536
3721
|
attr_accessor :followup_event_input
|
2537
3722
|
|
2538
3723
|
# Optional. The collection of rich messages to present to the user. This
|
2539
3724
|
# value is passed directly to `QueryResult.fulfillment_messages`.
|
2540
3725
|
# Corresponds to the JSON property `fulfillmentMessages`
|
2541
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3726
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage>]
|
2542
3727
|
attr_accessor :fulfillment_messages
|
2543
3728
|
|
2544
3729
|
# Optional. The text to be shown on the screen. This value is passed directly
|
@@ -2550,7 +3735,7 @@ module Google
|
|
2550
3735
|
# Optional. The collection of output contexts. This value is passed directly
|
2551
3736
|
# to `QueryResult.output_contexts`.
|
2552
3737
|
# Corresponds to the JSON property `outputContexts`
|
2553
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::
|
3738
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context>]
|
2554
3739
|
attr_accessor :output_contexts
|
2555
3740
|
|
2556
3741
|
# Optional. This value is passed directly to `QueryResult.webhook_payload`.
|
@@ -2577,6 +3762,223 @@ module Google
|
|
2577
3762
|
@source = args[:source] if args.key?(:source)
|
2578
3763
|
end
|
2579
3764
|
end
|
3765
|
+
|
3766
|
+
# This resource represents a long-running operation that is the result of a
|
3767
|
+
# network API call.
|
3768
|
+
class GoogleLongrunningOperation
|
3769
|
+
include Google::Apis::Core::Hashable
|
3770
|
+
|
3771
|
+
# If the value is `false`, it means the operation is still in progress.
|
3772
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
3773
|
+
# available.
|
3774
|
+
# Corresponds to the JSON property `done`
|
3775
|
+
# @return [Boolean]
|
3776
|
+
attr_accessor :done
|
3777
|
+
alias_method :done?, :done
|
3778
|
+
|
3779
|
+
# The `Status` type defines a logical error model that is suitable for different
|
3780
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
3781
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
3782
|
+
# - Simple to use and understand for most users
|
3783
|
+
# - Flexible enough to meet unexpected needs
|
3784
|
+
# # Overview
|
3785
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
3786
|
+
# and error details. The error code should be an enum value of
|
3787
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
3788
|
+
# error message should be a developer-facing English message that helps
|
3789
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
3790
|
+
# error message is needed, put the localized message in the error details or
|
3791
|
+
# localize it in the client. The optional error details may contain arbitrary
|
3792
|
+
# information about the error. There is a predefined set of error detail types
|
3793
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
3794
|
+
# # Language mapping
|
3795
|
+
# The `Status` message is the logical representation of the error model, but it
|
3796
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
3797
|
+
# exposed in different client libraries and different wire protocols, it can be
|
3798
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
3799
|
+
# in Java, but more likely mapped to some error codes in C.
|
3800
|
+
# # Other uses
|
3801
|
+
# The error model and the `Status` message can be used in a variety of
|
3802
|
+
# environments, either with or without APIs, to provide a
|
3803
|
+
# consistent developer experience across different environments.
|
3804
|
+
# Example uses of this error model include:
|
3805
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
3806
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
3807
|
+
# errors.
|
3808
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
3809
|
+
# have a `Status` message for error reporting.
|
3810
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
3811
|
+
# `Status` message should be used directly inside batch response, one for
|
3812
|
+
# each error sub-response.
|
3813
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
3814
|
+
# results in its response, the status of those operations should be
|
3815
|
+
# represented directly using the `Status` message.
|
3816
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
3817
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
3818
|
+
# Corresponds to the JSON property `error`
|
3819
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
|
3820
|
+
attr_accessor :error
|
3821
|
+
|
3822
|
+
# Service-specific metadata associated with the operation. It typically
|
3823
|
+
# contains progress information and common metadata such as create time.
|
3824
|
+
# Some services might not provide such metadata. Any method that returns a
|
3825
|
+
# long-running operation should document the metadata type, if any.
|
3826
|
+
# Corresponds to the JSON property `metadata`
|
3827
|
+
# @return [Hash<String,Object>]
|
3828
|
+
attr_accessor :metadata
|
3829
|
+
|
3830
|
+
# The server-assigned name, which is only unique within the same service that
|
3831
|
+
# originally returns it. If you use the default HTTP mapping, the
|
3832
|
+
# `name` should have the format of `operations/some/unique/name`.
|
3833
|
+
# Corresponds to the JSON property `name`
|
3834
|
+
# @return [String]
|
3835
|
+
attr_accessor :name
|
3836
|
+
|
3837
|
+
# The normal response of the operation in case of success. If the original
|
3838
|
+
# method returns no data on success, such as `Delete`, the response is
|
3839
|
+
# `google.protobuf.Empty`. If the original method is standard
|
3840
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
3841
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
3842
|
+
# is the original method name. For example, if the original method name
|
3843
|
+
# is `TakeSnapshot()`, the inferred response type is
|
3844
|
+
# `TakeSnapshotResponse`.
|
3845
|
+
# Corresponds to the JSON property `response`
|
3846
|
+
# @return [Hash<String,Object>]
|
3847
|
+
attr_accessor :response
|
3848
|
+
|
3849
|
+
def initialize(**args)
|
3850
|
+
update!(**args)
|
3851
|
+
end
|
3852
|
+
|
3853
|
+
# Update properties of this object
|
3854
|
+
def update!(**args)
|
3855
|
+
@done = args[:done] if args.key?(:done)
|
3856
|
+
@error = args[:error] if args.key?(:error)
|
3857
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
3858
|
+
@name = args[:name] if args.key?(:name)
|
3859
|
+
@response = args[:response] if args.key?(:response)
|
3860
|
+
end
|
3861
|
+
end
|
3862
|
+
|
3863
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
3864
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
3865
|
+
# or the response type of an API method. For instance:
|
3866
|
+
# service Foo `
|
3867
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
3868
|
+
# `
|
3869
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
3870
|
+
class GoogleProtobufEmpty
|
3871
|
+
include Google::Apis::Core::Hashable
|
3872
|
+
|
3873
|
+
def initialize(**args)
|
3874
|
+
update!(**args)
|
3875
|
+
end
|
3876
|
+
|
3877
|
+
# Update properties of this object
|
3878
|
+
def update!(**args)
|
3879
|
+
end
|
3880
|
+
end
|
3881
|
+
|
3882
|
+
# The `Status` type defines a logical error model that is suitable for different
|
3883
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
3884
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
3885
|
+
# - Simple to use and understand for most users
|
3886
|
+
# - Flexible enough to meet unexpected needs
|
3887
|
+
# # Overview
|
3888
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
3889
|
+
# and error details. The error code should be an enum value of
|
3890
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
3891
|
+
# error message should be a developer-facing English message that helps
|
3892
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
3893
|
+
# error message is needed, put the localized message in the error details or
|
3894
|
+
# localize it in the client. The optional error details may contain arbitrary
|
3895
|
+
# information about the error. There is a predefined set of error detail types
|
3896
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
3897
|
+
# # Language mapping
|
3898
|
+
# The `Status` message is the logical representation of the error model, but it
|
3899
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
3900
|
+
# exposed in different client libraries and different wire protocols, it can be
|
3901
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
3902
|
+
# in Java, but more likely mapped to some error codes in C.
|
3903
|
+
# # Other uses
|
3904
|
+
# The error model and the `Status` message can be used in a variety of
|
3905
|
+
# environments, either with or without APIs, to provide a
|
3906
|
+
# consistent developer experience across different environments.
|
3907
|
+
# Example uses of this error model include:
|
3908
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
3909
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
3910
|
+
# errors.
|
3911
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
3912
|
+
# have a `Status` message for error reporting.
|
3913
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
3914
|
+
# `Status` message should be used directly inside batch response, one for
|
3915
|
+
# each error sub-response.
|
3916
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
3917
|
+
# results in its response, the status of those operations should be
|
3918
|
+
# represented directly using the `Status` message.
|
3919
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
3920
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
3921
|
+
class GoogleRpcStatus
|
3922
|
+
include Google::Apis::Core::Hashable
|
3923
|
+
|
3924
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
3925
|
+
# Corresponds to the JSON property `code`
|
3926
|
+
# @return [Fixnum]
|
3927
|
+
attr_accessor :code
|
3928
|
+
|
3929
|
+
# A list of messages that carry the error details. There is a common set of
|
3930
|
+
# message types for APIs to use.
|
3931
|
+
# Corresponds to the JSON property `details`
|
3932
|
+
# @return [Array<Hash<String,Object>>]
|
3933
|
+
attr_accessor :details
|
3934
|
+
|
3935
|
+
# A developer-facing error message, which should be in English. Any
|
3936
|
+
# user-facing error message should be localized and sent in the
|
3937
|
+
# google.rpc.Status.details field, or localized by the client.
|
3938
|
+
# Corresponds to the JSON property `message`
|
3939
|
+
# @return [String]
|
3940
|
+
attr_accessor :message
|
3941
|
+
|
3942
|
+
def initialize(**args)
|
3943
|
+
update!(**args)
|
3944
|
+
end
|
3945
|
+
|
3946
|
+
# Update properties of this object
|
3947
|
+
def update!(**args)
|
3948
|
+
@code = args[:code] if args.key?(:code)
|
3949
|
+
@details = args[:details] if args.key?(:details)
|
3950
|
+
@message = args[:message] if args.key?(:message)
|
3951
|
+
end
|
3952
|
+
end
|
3953
|
+
|
3954
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
3955
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
3956
|
+
# specified otherwise, this must conform to the
|
3957
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
3958
|
+
# standard</a>. Values must be within normalized ranges.
|
3959
|
+
class GoogleTypeLatLng
|
3960
|
+
include Google::Apis::Core::Hashable
|
3961
|
+
|
3962
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
3963
|
+
# Corresponds to the JSON property `latitude`
|
3964
|
+
# @return [Float]
|
3965
|
+
attr_accessor :latitude
|
3966
|
+
|
3967
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
3968
|
+
# Corresponds to the JSON property `longitude`
|
3969
|
+
# @return [Float]
|
3970
|
+
attr_accessor :longitude
|
3971
|
+
|
3972
|
+
def initialize(**args)
|
3973
|
+
update!(**args)
|
3974
|
+
end
|
3975
|
+
|
3976
|
+
# Update properties of this object
|
3977
|
+
def update!(**args)
|
3978
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
3979
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
3980
|
+
end
|
3981
|
+
end
|
2580
3982
|
end
|
2581
3983
|
end
|
2582
3984
|
end
|