1
1
# -*- coding: utf-8 -*-
2
2
#
3
- # Copyright 2019 Google LLC
3
+ # Copyright 2020 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -103,7 +103,7 @@ class OutputAudioEncoding(enum.IntEnum):
103
103
OUTPUT_AUDIO_ENCODING_UNSPECIFIED (int): Not specified.
104
104
OUTPUT_AUDIO_ENCODING_LINEAR_16 (int): Uncompressed 16-bit signed little-endian samples (Linear PCM).
105
105
Audio content returned as LINEAR16 also contains a WAV header.
106
- OUTPUT_AUDIO_ENCODING_MP3 (int): MP3 audio.
106
+ OUTPUT_AUDIO_ENCODING_MP3 (int): MP3 audio at 32kbps .
107
107
OUTPUT_AUDIO_ENCODING_OGG_OPUS (int): Opus encoded audio wrapped in an ogg container. The result will be a
108
108
file which can be played natively on Android, and in browsers (at least
109
109
Chrome and Firefox). The quality of the encoding is considerably higher
@@ -206,7 +206,7 @@ class MatchMode(enum.IntEnum):
206
206
MATCH_MODE_HYBRID (int): Best for agents with a small number of examples in intents and/or wide
207
207
use of templates syntax and composite entities.
208
208
MATCH_MODE_ML_ONLY (int): Can be used for agents with a large number of examples in intents,
209
- especially the ones using @sys.any or very large developer entities.
209
+ especially the ones using @sys.any or very large custom entities.
210
210
"""
211
211
212
212
MATCH_MODE_UNSPECIFIED = 0
@@ -252,9 +252,9 @@ class Kind(enum.IntEnum):
252
252
253
253
Attributes:
254
254
KIND_UNSPECIFIED (int): Not specified. This value should be never used.
255
- KIND_MAP (int): Map entity types allow mapping of a group of synonyms to a canonical
255
+ KIND_MAP (int): Map entity types allow mapping of a group of synonyms to a reference
256
256
value.
257
- KIND_LIST (int): List entity types contain a set of entries that do not map to canonical
257
+ KIND_LIST (int): List entity types contain a set of entries that do not map to reference
258
258
values. However, list entity types can contain references to other entity
259
259
types (with or without aliases).
260
260
KIND_REGEXP (int): Regexp entity types allow to specify regular expressions in entries
@@ -393,6 +393,83 @@ class Platform(enum.IntEnum):
393
393
ACTIONS_ON_GOOGLE = 8
394
394
GOOGLE_HANGOUTS = 11
395
395
396
+ class MediaContent (object ):
397
+ class ResponseMediaType (enum .IntEnum ):
398
+ """
399
+ Format of response media type.
400
+
401
+ Attributes:
402
+ RESPONSE_MEDIA_TYPE_UNSPECIFIED (int): Unspecified.
403
+ AUDIO (int): Response media type is audio.
404
+ """
405
+
406
+ RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0
407
+ AUDIO = 1
408
+
409
+ class BrowseCarouselCard (object ):
410
+ class ImageDisplayOptions (enum .IntEnum ):
411
+ """
412
+ Image display options for Actions on Google. This should be used for
413
+ when the image's aspect ratio does not match the image container's
414
+ aspect ratio.
415
+
416
+ Attributes:
417
+ IMAGE_DISPLAY_OPTIONS_UNSPECIFIED (int): Fill the gaps between the image and the image container with gray
418
+ bars.
419
+ GRAY (int): Fill the gaps between the image and the image container with gray
420
+ bars.
421
+ WHITE (int): Fill the gaps between the image and the image container with white
422
+ bars.
423
+ CROPPED (int): Image is scaled such that the image width and height match or exceed
424
+ the container dimensions. This may crop the top and bottom of the
425
+ image if the scaled image height is greater than the container
426
+ height, or crop the left and right of the image if the scaled image
427
+ width is greater than the container width. This is similar to "Zoom
428
+ Mode" on a widescreen TV when playing a 4:3 video.
429
+ BLURRED_BACKGROUND (int): Pad the gaps between image and image frame with a blurred copy of the
430
+ same image.
431
+ """
432
+
433
+ IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0
434
+ GRAY = 1
435
+ WHITE = 2
436
+ CROPPED = 3
437
+ BLURRED_BACKGROUND = 4
438
+
439
+ class BrowseCarouselCardItem (object ):
440
+ class OpenUrlAction (object ):
441
+ class UrlTypeHint (enum .IntEnum ):
442
+ """
443
+ Type of the URI.
444
+
445
+ Attributes:
446
+ URL_TYPE_HINT_UNSPECIFIED (int): Unspecified
447
+ AMP_ACTION (int): Url would be an amp action
448
+ AMP_CONTENT (int): URL that points directly to AMP content, or to a canonical URL
449
+ which refers to AMP content via <link rel="amphtml">.
450
+ """
451
+
452
+ URL_TYPE_HINT_UNSPECIFIED = 0
453
+ AMP_ACTION = 1
454
+ AMP_CONTENT = 2
455
+
456
+ class ColumnProperties (object ):
457
+ class HorizontalAlignment (enum .IntEnum ):
458
+ """
459
+ Text alignments within a cell.
460
+
461
+ Attributes:
462
+ HORIZONTAL_ALIGNMENT_UNSPECIFIED (int): Text is aligned to the leading edge of the column.
463
+ LEADING (int): Text is aligned to the leading edge of the column.
464
+ CENTER (int): Text is centered in the column.
465
+ TRAILING (int): Text is aligned to the trailing edge of the column.
466
+ """
467
+
468
+ HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0
469
+ LEADING = 1
470
+ CENTER = 2
471
+ TRAILING = 3
472
+
396
473
397
474
class SessionEntityType (object ):
398
475
class EntityOverrideMode (enum .IntEnum ):
@@ -402,16 +479,16 @@ class EntityOverrideMode(enum.IntEnum):
402
479
Attributes:
403
480
ENTITY_OVERRIDE_MODE_UNSPECIFIED (int): Not specified. This value should be never used.
404
481
ENTITY_OVERRIDE_MODE_OVERRIDE (int): The collection of session entities overrides the collection of entities
405
- in the corresponding developer entity type.
482
+ in the corresponding custom entity type.
406
483
ENTITY_OVERRIDE_MODE_SUPPLEMENT (int): The collection of session entities extends the collection of entities in
407
- the corresponding developer entity type.
484
+ the corresponding custom entity type.
408
485
409
486
Note: Even in this override mode calls to ``ListSessionEntityTypes``,
410
487
``GetSessionEntityType``, ``CreateSessionEntityType`` and
411
488
``UpdateSessionEntityType`` only return the additional entities added in
412
489
this session entity type. If you want to get the supplemented list,
413
- please call ``EntityTypes.GetEntityType`` on the developer entity type
414
- and merge.
490
+ please call ``EntityTypes.GetEntityType`` on the custom entity type and
491
+ merge.
415
492
"""
416
493
417
494
ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0
0 commit comments