google-apis-dialogflow_v2 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61b62546d636a92aba7f70d6911b147daa59691a1f9f89c383c8404e42a6759b
4
- data.tar.gz: 394f7d1e238ac59efa69284cc6ae9dd6cbbd0376b53bda55d3fc0978c92297fc
3
+ metadata.gz: 983027da15ca1d00e0e19c5ffdcb075ebfc3f4ad0260b6034f7705f1940add41
4
+ data.tar.gz: 90f458a42d9c125ea08a1378639f9220ab9b9742295b82a5a9bf8f2586b426d0
5
5
  SHA512:
6
- metadata.gz: 58001206272b1936450847d064c44bcd2546d3ca9763b57543655d0311688584b79857e04b3294a0713016b739ace43057d6e53969d8db3e258d3d3523dc16aa
7
- data.tar.gz: 7e030c7cbe18908fb89a5c318444fb85fa54b7020c36777a22f1f6b0952148fee716bc792c70fcac15b8763100085c3cb204bee97e7ae90f80a5bfb9cdd981f8
6
+ metadata.gz: df610e29f2e0a80727a0d0626cc65e99a3860d7f8df551f34b7b37f26cff924ac808d5e871ccd66e1ba125b1f948b3e3495cc4b6c2a27f3d5e03fea862707aed
7
+ data.tar.gz: 7889379d9d90ad0e9ece9b15aaf95e81243199967f459c0adda6df94bfc4945d182fdb04d8f826fc5f028c70d1a443a37d9a8fcf4da11e6beac36fa5242acd69
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.3.0 (2021-02-12)
4
+
5
+ * Regenerated from discovery document revision 20210209
6
+
3
7
  ### v0.2.0 (2021-02-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20210130
@@ -2164,6 +2164,11 @@ module Google
2164
2164
  # @return [Hash<String,Object>]
2165
2165
  attr_accessor :payload
2166
2166
 
2167
+ # Represents the result of sentiment analysis.
2168
+ # Corresponds to the JSON property `sentimentAnalysisResult`
2169
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult]
2170
+ attr_accessor :sentiment_analysis_result
2171
+
2167
2172
  # Represents session information communicated to and from the webhook.
2168
2173
  # Corresponds to the JSON property `sessionInfo`
2169
2174
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo]
@@ -2181,6 +2186,7 @@ module Google
2181
2186
  @messages = args[:messages] if args.key?(:messages)
2182
2187
  @page_info = args[:page_info] if args.key?(:page_info)
2183
2188
  @payload = args[:payload] if args.key?(:payload)
2189
+ @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
2184
2190
  @session_info = args[:session_info] if args.key?(:session_info)
2185
2191
  end
2186
2192
  end
@@ -2272,6 +2278,32 @@ module Google
2272
2278
  end
2273
2279
  end
2274
2280
 
2281
+ # Represents the result of sentiment analysis.
2282
+ class GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
2283
+ include Google::Apis::Core::Hashable
2284
+
2285
+ # A non-negative number in the [0, +inf) range, which represents the absolute
2286
+ # magnitude of sentiment, regardless of score (positive or negative).
2287
+ # Corresponds to the JSON property `magnitude`
2288
+ # @return [Float]
2289
+ attr_accessor :magnitude
2290
+
2291
+ # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
2292
+ # Corresponds to the JSON property `score`
2293
+ # @return [Float]
2294
+ attr_accessor :score
2295
+
2296
+ def initialize(**args)
2297
+ update!(**args)
2298
+ end
2299
+
2300
+ # Update properties of this object
2301
+ def update!(**args)
2302
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
2303
+ @score = args[:score] if args.key?(:score)
2304
+ end
2305
+ end
2306
+
2275
2307
  # The response message for a webhook call.
2276
2308
  class GoogleCloudDialogflowCxV3WebhookResponse
2277
2309
  include Google::Apis::Core::Hashable
@@ -4490,6 +4522,11 @@ module Google
4490
4522
  # @return [Hash<String,Object>]
4491
4523
  attr_accessor :payload
4492
4524
 
4525
+ # Represents the result of sentiment analysis.
4526
+ # Corresponds to the JSON property `sentimentAnalysisResult`
4527
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult]
4528
+ attr_accessor :sentiment_analysis_result
4529
+
4493
4530
  # Represents session information communicated to and from the webhook.
4494
4531
  # Corresponds to the JSON property `sessionInfo`
4495
4532
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1SessionInfo]
@@ -4507,6 +4544,7 @@ module Google
4507
4544
  @messages = args[:messages] if args.key?(:messages)
4508
4545
  @page_info = args[:page_info] if args.key?(:page_info)
4509
4546
  @payload = args[:payload] if args.key?(:payload)
4547
+ @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
4510
4548
  @session_info = args[:session_info] if args.key?(:session_info)
4511
4549
  end
4512
4550
  end
@@ -4598,6 +4636,32 @@ module Google
4598
4636
  end
4599
4637
  end
4600
4638
 
4639
+ # Represents the result of sentiment analysis.
4640
+ class GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
4641
+ include Google::Apis::Core::Hashable
4642
+
4643
+ # A non-negative number in the [0, +inf) range, which represents the absolute
4644
+ # magnitude of sentiment, regardless of score (positive or negative).
4645
+ # Corresponds to the JSON property `magnitude`
4646
+ # @return [Float]
4647
+ attr_accessor :magnitude
4648
+
4649
+ # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
4650
+ # Corresponds to the JSON property `score`
4651
+ # @return [Float]
4652
+ attr_accessor :score
4653
+
4654
+ def initialize(**args)
4655
+ update!(**args)
4656
+ end
4657
+
4658
+ # Update properties of this object
4659
+ def update!(**args)
4660
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
4661
+ @score = args[:score] if args.key?(:score)
4662
+ end
4663
+ end
4664
+
4601
4665
  # The response message for a webhook call.
4602
4666
  class GoogleCloudDialogflowCxV3beta1WebhookResponse
4603
4667
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2
18
18
  # Version of the google-apis-dialogflow_v2 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210130"
25
+ REVISION = "20210209"
26
26
  end
27
27
  end
28
28
  end
@@ -412,6 +412,12 @@ module Google
412
412
  include Google::Apis::Core::JsonObjectSupport
413
413
  end
414
414
 
415
+ class GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
415
421
  class GoogleCloudDialogflowCxV3WebhookResponse
416
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
423
 
@@ -814,6 +820,12 @@ module Google
814
820
  include Google::Apis::Core::JsonObjectSupport
815
821
  end
816
822
 
823
+ class GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
817
829
  class GoogleCloudDialogflowCxV3beta1WebhookResponse
818
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
819
831
 
@@ -2409,6 +2421,8 @@ module Google
2409
2421
  property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3PageInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3PageInfo::Representation
2410
2422
 
2411
2423
  hash :payload, as: 'payload'
2424
+ property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult::Representation
2425
+
2412
2426
  property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo::Representation
2413
2427
 
2414
2428
  end
@@ -2440,6 +2454,14 @@ module Google
2440
2454
  end
2441
2455
  end
2442
2456
 
2457
+ class GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
2458
+ # @private
2459
+ class Representation < Google::Apis::Core::JsonRepresentation
2460
+ property :magnitude, as: 'magnitude'
2461
+ property :score, as: 'score'
2462
+ end
2463
+ end
2464
+
2443
2465
  class GoogleCloudDialogflowCxV3WebhookResponse
2444
2466
  # @private
2445
2467
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3063,6 +3085,8 @@ module Google
3063
3085
  property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfo::Representation
3064
3086
 
3065
3087
  hash :payload, as: 'payload'
3088
+ property :sentiment_analysis_result, as: 'sentimentAnalysisResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult::Representation
3089
+
3066
3090
  property :session_info, as: 'sessionInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1SessionInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1SessionInfo::Representation
3067
3091
 
3068
3092
  end
@@ -3094,6 +3118,14 @@ module Google
3094
3118
  end
3095
3119
  end
3096
3120
 
3121
+ class GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
3122
+ # @private
3123
+ class Representation < Google::Apis::Core::JsonRepresentation
3124
+ property :magnitude, as: 'magnitude'
3125
+ property :score, as: 'score'
3126
+ end
3127
+ end
3128
+
3097
3129
  class GoogleCloudDialogflowCxV3beta1WebhookResponse
3098
3130
  # @private
3099
3131
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dialogflow_v2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dialogflow_v2
57
57
  post_install_message:
58
58
  rdoc_options: []