google-cloud-dialogflow 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d221a442b7c8c91b4387f3600bf713834cf5bcdb4ec0d6065120b0af88d69083
4
- data.tar.gz: c38f6449d50352375c6c1aa6c5006f52314f01e2797db8771c1cb40757dce9ac
3
+ metadata.gz: 3ecd151c41e6f76d5be70c0fb3f5f7d3d837be635e9931e8fc9c660c99654369
4
+ data.tar.gz: e28d51dbedf1e461727bfa74f6e4ac6b9822394e07909360bef79708ea6cb710
5
5
  SHA512:
6
- metadata.gz: 2c69c2590f88467efd5a491d6c8a778bac15787ad8d3bc943c2be48aaed1500b560150af1c429d1f7687959b68af7c68a68496f310a2385ea6373ef20fcf2d78
7
- data.tar.gz: 82a452b2a8fda6d56cd9e3a6aa97ca8169f79a60e6f11bf4239fc57d92e89713e2e0bb301173099de1f615f96ee05283730ff4331fc7569fd9b3ad5304d5a4f2
6
+ metadata.gz: 7eb54fc213bd503f5124191c2bb0273757efce3ecf7a8e17b529a16ae6a38a85da54d6e4d554d79a7dc9c58f5a49dce0f4225dee5a7529deaf29c86908d8b5e3
7
+ data.tar.gz: 2aeb162d1e01f6a50d8b941c94e0da6ad10af0c98f56cff132d5fbaa62b5744c81784075acbe4ad2365ca1376ee15a5b03706266fac9b6ea3a469d2bcaec804d
@@ -5,6 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
  require 'google/api/annotations_pb'
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -64,12 +64,13 @@ module Google
64
64
  # @!attribute [rw] name
65
65
  # @return [String]
66
66
  # Optional. The name of the voice. If not set, the service will choose a
67
- # voice based on the other parameters such as language_code and gender.
67
+ # voice based on the other parameters such as language_code and
68
+ # {Google::Cloud::Dialogflow::V2::VoiceSelectionParams#ssml_gender ssml_gender}.
68
69
  # @!attribute [rw] ssml_gender
69
70
  # @return [Google::Cloud::Dialogflow::V2::SsmlVoiceGender]
70
71
  # Optional. The preferred gender of the voice. If not set, the service will
71
72
  # choose a voice based on the other parameters such as language_code and
72
- # name. Note that this is only a preference, not requirement. If a
73
+ # {Google::Cloud::Dialogflow::V2::VoiceSelectionParams#name name}. Note that this is only a preference, not requirement. If a
73
74
  # voice of the appropriate gender is not available, the synthesizer should
74
75
  # substitute a voice with a different gender rather than failing the request.
75
76
  class VoiceSelectionParams; end
@@ -262,6 +262,15 @@ module Google
262
262
  # @!attribute [rw] carousel_select
263
263
  # @return [Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect]
264
264
  # The carousel card response for Actions on Google.
265
+ # @!attribute [rw] browse_carousel_card
266
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard]
267
+ # Browse carousel card for Actions on Google.
268
+ # @!attribute [rw] table_card
269
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::TableCard]
270
+ # Table card for Actions on Google.
271
+ # @!attribute [rw] media_content
272
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent]
273
+ # The media content card for Actions on Google.
265
274
  # @!attribute [rw] platform
266
275
  # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Platform]
267
276
  # Optional. The platform that this message is intended for.
@@ -457,6 +466,186 @@ module Google
457
466
  # item in dialog.
458
467
  class SelectItemInfo; end
459
468
 
469
+ # The media content card for Actions on Google.
470
+ # @!attribute [rw] media_type
471
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType]
472
+ # Optional. What type of media is the content (ie "audio").
473
+ # @!attribute [rw] media_objects
474
+ # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>]
475
+ # Required. List of media objects.
476
+ class MediaContent
477
+ # Response media object for media content card.
478
+ # @!attribute [rw] name
479
+ # @return [String]
480
+ # Required. Name of media card.
481
+ # @!attribute [rw] description
482
+ # @return [String]
483
+ # Optional. Description of media card.
484
+ # @!attribute [rw] large_image
485
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image]
486
+ # Optional. Image to display above media content.
487
+ # @!attribute [rw] icon
488
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image]
489
+ # Optional. Icon to display above media content.
490
+ # @!attribute [rw] content_url
491
+ # @return [String]
492
+ # Required. Url where the media is stored.
493
+ class ResponseMediaObject; end
494
+
495
+ # Format of response media type.
496
+ module ResponseMediaType
497
+ # Unspecified.
498
+ RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0
499
+
500
+ # Response media type is audio.
501
+ AUDIO = 1
502
+ end
503
+ end
504
+
505
+ # Browse Carousel Card for Actions on Google.
506
+ # https://developers.google.com/actions/assistant/responses#browsing_carousel
507
+ # @!attribute [rw] items
508
+ # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem>]
509
+ # Required. List of items in the Browse Carousel Card. Minimum of two
510
+ # items, maximum of ten.
511
+ # @!attribute [rw] image_display_options
512
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::ImageDisplayOptions]
513
+ # Optional. Settings for displaying the image. Applies to every image in
514
+ # {Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard#items items}.
515
+ class BrowseCarouselCard
516
+ # Browsing carousel tile
517
+ # @!attribute [rw] open_uri_action
518
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction]
519
+ # Required. Action to present to the user.
520
+ # @!attribute [rw] title
521
+ # @return [String]
522
+ # Required. Title of the carousel item. Maximum of two lines of text.
523
+ # @!attribute [rw] description
524
+ # @return [String]
525
+ # Optional. Description of the carousel item. Maximum of four lines of
526
+ # text.
527
+ # @!attribute [rw] image
528
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image]
529
+ # Optional. Hero image for the carousel item.
530
+ # @!attribute [rw] footer
531
+ # @return [String]
532
+ # Optional. Text that appears at the bottom of the Browse Carousel
533
+ # Card. Maximum of one line of text.
534
+ class BrowseCarouselCardItem
535
+ # Actions on Google action to open a given url.
536
+ # @!attribute [rw] url
537
+ # @return [String]
538
+ # Required. URL
539
+ # @!attribute [rw] url_type_hint
540
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint]
541
+ # Optional. Specifies the type of viewer that is used when opening
542
+ # the URL. Defaults to opening via web browser.
543
+ class OpenUrlAction
544
+ # Type of the URI.
545
+ module UrlTypeHint
546
+ # Unspecified
547
+ URL_TYPE_HINT_UNSPECIFIED = 0
548
+
549
+ # Url would be an amp action
550
+ AMP_ACTION = 1
551
+
552
+ # URL that points directly to AMP content, or to a canonical URL
553
+ # which refers to AMP content via <link rel="amphtml">.
554
+ AMP_CONTENT = 2
555
+ end
556
+ end
557
+ end
558
+
559
+ # Image display options for Actions on Google. This should be used for
560
+ # when the image's aspect ratio does not match the image container's
561
+ # aspect ratio.
562
+ module ImageDisplayOptions
563
+ # Fill the gaps between the image and the image container with gray
564
+ # bars.
565
+ IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0
566
+
567
+ # Fill the gaps between the image and the image container with gray
568
+ # bars.
569
+ GRAY = 1
570
+
571
+ # Fill the gaps between the image and the image container with white
572
+ # bars.
573
+ WHITE = 2
574
+
575
+ # Image is scaled such that the image width and height match or exceed
576
+ # the container dimensions. This may crop the top and bottom of the
577
+ # image if the scaled image height is greater than the container
578
+ # height, or crop the left and right of the image if the scaled image
579
+ # width is greater than the container width. This is similar to "Zoom
580
+ # Mode" on a widescreen TV when playing a 4:3 video.
581
+ CROPPED = 3
582
+
583
+ # Pad the gaps between image and image frame with a blurred copy of the
584
+ # same image.
585
+ BLURRED_BACKGROUND = 4
586
+ end
587
+ end
588
+
589
+ # Table card for Actions on Google.
590
+ # @!attribute [rw] title
591
+ # @return [String]
592
+ # Required. Title of the card.
593
+ # @!attribute [rw] subtitle
594
+ # @return [String]
595
+ # Optional. Subtitle to the title.
596
+ # @!attribute [rw] image
597
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image]
598
+ # Optional. Image which should be displayed on the card.
599
+ # @!attribute [rw] column_properties
600
+ # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties>]
601
+ # Optional. Display properties for the columns in this table.
602
+ # @!attribute [rw] rows
603
+ # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow>]
604
+ # Optional. Rows in this table of data.
605
+ # @!attribute [rw] buttons
606
+ # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard::Button>]
607
+ # Optional. List of buttons for the card.
608
+ class TableCard; end
609
+
610
+ # Column properties for {Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}.
611
+ # @!attribute [rw] header
612
+ # @return [String]
613
+ # Required. Column heading.
614
+ # @!attribute [rw] horizontal_alignment
615
+ # @return [Google::Cloud::Dialogflow::V2::Intent::Message::ColumnProperties::HorizontalAlignment]
616
+ # Optional. Defines text alignment for all cells in this column.
617
+ class ColumnProperties
618
+ # Text alignments within a cell.
619
+ module HorizontalAlignment
620
+ # Text is aligned to the leading edge of the column.
621
+ HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0
622
+
623
+ # Text is aligned to the leading edge of the column.
624
+ LEADING = 1
625
+
626
+ # Text is centered in the column.
627
+ CENTER = 2
628
+
629
+ # Text is aligned to the trailing edge of the column.
630
+ TRAILING = 3
631
+ end
632
+ end
633
+
634
+ # Row of {Google::Cloud::Dialogflow::V2::Intent::Message::TableCard TableCard}.
635
+ # @!attribute [rw] cells
636
+ # @return [Array<Google::Cloud::Dialogflow::V2::Intent::Message::TableCardCell>]
637
+ # Optional. List of cells that make up this row.
638
+ # @!attribute [rw] divider_after
639
+ # @return [true, false]
640
+ # Optional. Whether to add a visual divider after this row.
641
+ class TableCardRow; end
642
+
643
+ # Cell of {Google::Cloud::Dialogflow::V2::Intent::Message::TableCardRow TableCardRow}.
644
+ # @!attribute [rw] text
645
+ # @return [String]
646
+ # Required. Text in this cell.
647
+ class TableCardCell; end
648
+
460
649
  # Represents different platforms that a rich message can be intended for.
461
650
  module Platform
462
651
  # Not specified.
@@ -77,6 +77,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
77
77
  optional :link_out_suggestion, :message, 10, "google.cloud.dialogflow.v2.Intent.Message.LinkOutSuggestion"
78
78
  optional :list_select, :message, 11, "google.cloud.dialogflow.v2.Intent.Message.ListSelect"
79
79
  optional :carousel_select, :message, 12, "google.cloud.dialogflow.v2.Intent.Message.CarouselSelect"
80
+ optional :browse_carousel_card, :message, 22, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard"
81
+ optional :table_card, :message, 23, "google.cloud.dialogflow.v2.Intent.Message.TableCard"
82
+ optional :media_content, :message, 24, "google.cloud.dialogflow.v2.Intent.Message.MediaContent"
80
83
  end
81
84
  end
82
85
  add_message "google.cloud.dialogflow.v2.Intent.Message.Text" do
@@ -156,6 +159,75 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
156
159
  optional :key, :string, 1
157
160
  repeated :synonyms, :string, 2
158
161
  end
162
+ add_message "google.cloud.dialogflow.v2.Intent.Message.MediaContent" do
163
+ optional :media_type, :enum, 1, "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType"
164
+ repeated :media_objects, :message, 2, "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject"
165
+ end
166
+ add_message "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject" do
167
+ optional :name, :string, 1
168
+ optional :description, :string, 2
169
+ optional :content_url, :string, 5
170
+ oneof :image do
171
+ optional :large_image, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.Image"
172
+ optional :icon, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
173
+ end
174
+ end
175
+ add_enum "google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType" do
176
+ value :RESPONSE_MEDIA_TYPE_UNSPECIFIED, 0
177
+ value :AUDIO, 1
178
+ end
179
+ add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard" do
180
+ repeated :items, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem"
181
+ optional :image_display_options, :enum, 2, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions"
182
+ end
183
+ add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem" do
184
+ optional :open_uri_action, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction"
185
+ optional :title, :string, 2
186
+ optional :description, :string, 3
187
+ optional :image, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.Image"
188
+ optional :footer, :string, 5
189
+ end
190
+ add_message "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction" do
191
+ optional :url, :string, 1
192
+ optional :url_type_hint, :enum, 3, "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint"
193
+ end
194
+ add_enum "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint" do
195
+ value :URL_TYPE_HINT_UNSPECIFIED, 0
196
+ value :AMP_ACTION, 1
197
+ value :AMP_CONTENT, 2
198
+ end
199
+ add_enum "google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions" do
200
+ value :IMAGE_DISPLAY_OPTIONS_UNSPECIFIED, 0
201
+ value :GRAY, 1
202
+ value :WHITE, 2
203
+ value :CROPPED, 3
204
+ value :BLURRED_BACKGROUND, 4
205
+ end
206
+ add_message "google.cloud.dialogflow.v2.Intent.Message.TableCard" do
207
+ optional :title, :string, 1
208
+ optional :subtitle, :string, 2
209
+ optional :image, :message, 3, "google.cloud.dialogflow.v2.Intent.Message.Image"
210
+ repeated :column_properties, :message, 4, "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties"
211
+ repeated :rows, :message, 5, "google.cloud.dialogflow.v2.Intent.Message.TableCardRow"
212
+ repeated :buttons, :message, 6, "google.cloud.dialogflow.v2.Intent.Message.BasicCard.Button"
213
+ end
214
+ add_message "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties" do
215
+ optional :header, :string, 1
216
+ optional :horizontal_alignment, :enum, 2, "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment"
217
+ end
218
+ add_enum "google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment" do
219
+ value :HORIZONTAL_ALIGNMENT_UNSPECIFIED, 0
220
+ value :LEADING, 1
221
+ value :CENTER, 2
222
+ value :TRAILING, 3
223
+ end
224
+ add_message "google.cloud.dialogflow.v2.Intent.Message.TableCardRow" do
225
+ repeated :cells, :message, 1, "google.cloud.dialogflow.v2.Intent.Message.TableCardCell"
226
+ optional :divider_after, :bool, 2
227
+ end
228
+ add_message "google.cloud.dialogflow.v2.Intent.Message.TableCardCell" do
229
+ optional :text, :string, 1
230
+ end
159
231
  add_enum "google.cloud.dialogflow.v2.Intent.Message.Platform" do
160
232
  value :PLATFORM_UNSPECIFIED, 0
161
233
  value :FACEBOOK, 1
@@ -262,6 +334,19 @@ module Google
262
334
  Intent::Message::CarouselSelect = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.CarouselSelect").msgclass
263
335
  Intent::Message::CarouselSelect::Item = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.CarouselSelect.Item").msgclass
264
336
  Intent::Message::SelectItemInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo").msgclass
337
+ Intent::Message::MediaContent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.MediaContent").msgclass
338
+ Intent::Message::MediaContent::ResponseMediaObject = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject").msgclass
339
+ Intent::Message::MediaContent::ResponseMediaType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType").enummodule
340
+ Intent::Message::BrowseCarouselCard = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard").msgclass
341
+ Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem").msgclass
342
+ Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction").msgclass
343
+ Intent::Message::BrowseCarouselCard::BrowseCarouselCardItem::OpenUrlAction::UrlTypeHint = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint").enummodule
344
+ Intent::Message::BrowseCarouselCard::ImageDisplayOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.ImageDisplayOptions").enummodule
345
+ Intent::Message::TableCard = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.TableCard").msgclass
346
+ Intent::Message::ColumnProperties = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.ColumnProperties").msgclass
347
+ Intent::Message::ColumnProperties::HorizontalAlignment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.ColumnProperties.HorizontalAlignment").enummodule
348
+ Intent::Message::TableCardRow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.TableCardRow").msgclass
349
+ Intent::Message::TableCardCell = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.TableCardCell").msgclass
265
350
  Intent::Message::Platform = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.Message.Platform").enummodule
266
351
  Intent::FollowupIntentInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.FollowupIntentInfo").msgclass
267
352
  Intent::WebhookState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Intent.WebhookState").enummodule
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dialogflow
19
- VERSION = "0.10.0".freeze
19
+ VERSION = "0.11.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax