docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/dialogflow_v2.projects.agent.intents.html b/docs/dyn/dialogflow_v2.projects.agent.intents.html
index 57a646a..012afa4 100644
--- a/docs/dyn/dialogflow_v2.projects.agent.intents.html
+++ b/docs/dyn/dialogflow_v2.projects.agent.intents.html
@@ -189,6 +189,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -196,8 +202,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -219,6 +266,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -227,6 +275,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -236,7 +285,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -248,10 +296,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -282,22 +330,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -308,6 +350,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -322,8 +370,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -337,6 +383,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -348,71 +396,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -422,12 +422,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -436,6 +436,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -456,6 +461,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -463,31 +471,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -503,6 +494,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
},
@@ -519,15 +519,6 @@
{ # This resource represents a long-running operation that is the result of a
# network API call.
- "metadata": { # Service-specific metadata associated with the operation. It typically
- # contains progress information and common metadata such as create time.
- # Some services might not provide such metadata. Any method that returns a
- # long-running operation should document the metadata type, if any.
- "a_key": "", # Properties of the object. Contains field @type with type URL.
- },
- "done": True or False, # If the value is `false`, it means the operation is still in progress.
- # If `true`, the operation is completed, and either `error` or `response` is
- # available.
"response": { # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
@@ -559,6 +550,15 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "metadata": { # Service-specific metadata associated with the operation. It typically
+ # contains progress information and common metadata such as create time.
+ # Some services might not provide such metadata. Any method that returns a
+ # long-running operation should document the metadata type, if any.
+ "a_key": "", # Properties of the object. Contains field @type with type URL.
+ },
+ "done": True or False, # If the value is `false`, it means the operation is still in progress.
+ # If `true`, the operation is completed, and either `error` or `response` is
+ # available.
}</pre>
</div>
@@ -656,6 +656,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -663,8 +669,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -686,6 +733,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -694,6 +742,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -703,7 +752,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -715,10 +763,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -749,22 +797,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -775,6 +817,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -789,8 +837,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -804,6 +850,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -815,71 +863,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -889,12 +889,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -903,6 +903,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -923,6 +928,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -930,31 +938,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -970,6 +961,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
},
@@ -993,15 +993,6 @@
{ # This resource represents a long-running operation that is the result of a
# network API call.
- "metadata": { # Service-specific metadata associated with the operation. It typically
- # contains progress information and common metadata such as create time.
- # Some services might not provide such metadata. Any method that returns a
- # long-running operation should document the metadata type, if any.
- "a_key": "", # Properties of the object. Contains field @type with type URL.
- },
- "done": True or False, # If the value is `false`, it means the operation is still in progress.
- # If `true`, the operation is completed, and either `error` or `response` is
- # available.
"response": { # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is
# `google.protobuf.Empty`. If the original method is standard
@@ -1033,6 +1024,15 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "metadata": { # Service-specific metadata associated with the operation. It typically
+ # contains progress information and common metadata such as create time.
+ # Some services might not provide such metadata. Any method that returns a
+ # long-running operation should document the metadata type, if any.
+ "a_key": "", # Properties of the object. Contains field @type with type URL.
+ },
+ "done": True or False, # If the value is `false`, it means the operation is still in progress.
+ # If `true`, the operation is completed, and either `error` or `response` is
+ # available.
}</pre>
</div>
@@ -1121,6 +1121,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -1128,8 +1134,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -1151,6 +1198,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -1159,6 +1207,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -1168,7 +1217,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -1180,10 +1228,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -1214,22 +1262,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -1240,6 +1282,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -1254,8 +1302,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -1269,6 +1315,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -1280,71 +1328,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -1354,12 +1354,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -1368,6 +1368,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -1388,6 +1393,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -1395,31 +1403,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -1435,6 +1426,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
}
@@ -1528,6 +1528,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -1535,8 +1541,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -1558,6 +1605,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -1566,6 +1614,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -1575,7 +1624,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -1587,10 +1635,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -1621,22 +1669,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -1647,6 +1689,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -1661,8 +1709,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -1676,6 +1722,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -1687,71 +1735,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -1761,12 +1761,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -1775,6 +1775,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -1795,6 +1800,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -1802,31 +1810,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -1842,6 +1833,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
}</pre>
@@ -1971,6 +1971,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -1978,8 +1984,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -2001,6 +2048,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -2009,6 +2057,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -2018,7 +2067,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -2030,10 +2078,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -2064,22 +2112,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -2090,6 +2132,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -2104,8 +2152,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -2119,6 +2165,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -2130,71 +2178,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -2204,12 +2204,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -2218,6 +2218,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -2238,6 +2243,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -2245,31 +2253,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -2285,6 +2276,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
}</pre>
@@ -2392,6 +2392,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -2399,8 +2405,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -2422,6 +2469,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -2430,6 +2478,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -2439,7 +2488,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -2451,10 +2499,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -2485,22 +2533,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -2511,6 +2553,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -2525,8 +2573,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -2540,6 +2586,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -2551,71 +2599,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -2625,12 +2625,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -2639,6 +2639,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -2659,6 +2664,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -2666,31 +2674,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -2706,6 +2697,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
},
@@ -2816,6 +2816,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -2823,8 +2829,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -2846,6 +2893,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -2854,6 +2902,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -2863,7 +2912,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -2875,10 +2923,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -2909,22 +2957,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -2935,6 +2977,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -2949,8 +2997,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -2964,6 +3010,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -2975,71 +3023,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -3049,12 +3049,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -3063,6 +3063,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -3083,6 +3088,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -3090,31 +3098,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -3130,6 +3121,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
}
@@ -3224,6 +3224,12 @@
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
"A String",
],
+ "action": "A String", # Optional. The name of the action associated with the intent.
+ # Note: The action name must not contain whitespaces.
+ "name": "A String", # Optional. The unique identifier of this intent.
+ # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
+ # methods.
+ # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
"messages": [ # Optional. The collection of rich messages corresponding to the
# `Response` field in the Dialogflow console.
{ # A rich response message.
@@ -3231,8 +3237,49 @@
# For more information, see
# [Rich response
# messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages).
+ "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
+ "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
+ "mediaObjects": [ # Required. List of media objects.
+ { # Response media object for media content card.
+ "name": "A String", # Required. Name of media card.
+ "description": "A String", # Optional. Description of media card.
+ "contentUrl": "A String", # Required. Url where the media is stored.
+ "icon": { # The image response message. # Optional. Icon to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "largeImage": { # The image response message. # Optional. Image to display above media content.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ },
+ ],
+ },
+ "image": { # The image response message. # The image response.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
+ "payload": { # A custom platform-specific response.
+ "a_key": "", # Properties of the object.
+ },
+ "text": { # The text response message. # The text response.
+ "text": [ # Optional. The collection of the agent's responses.
+ "A String",
+ ],
+ },
+ "platform": "A String", # Optional. The platform that this message is intended for.
+ "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
+ "suggestions": [ # Required. The list of suggested replies.
+ { # The suggestion chip message that the user can tap to quickly post a reply
+ # to the conversation.
+ "title": "A String", # Required. The text shown the in the suggestion chip.
+ },
+ ],
+ },
"listSelect": { # The card for presenting a list of options to select from. # The list card response for Actions on Google.
- "title": "A String", # Optional. The overall title of the list.
"subtitle": "A String", # Optional. Subtitle of the list.
"items": [ # Required. List items.
{ # An item in the list.
@@ -3254,6 +3301,7 @@
},
},
],
+ "title": "A String", # Optional. The overall title of the list.
},
"quickReplies": { # The quick replies response message. # The quick replies response.
"title": "A String", # Optional. The title of the collection of quick replies.
@@ -3262,6 +3310,7 @@
],
},
"card": { # The card response message. # The card response.
+ "imageUri": "A String", # Optional. The public URI to an image file for the card.
"title": "A String", # Optional. The title of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # Contains information about a button.
@@ -3271,7 +3320,6 @@
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
- "imageUri": "A String", # Optional. The public URI to an image file for the card.
},
"basicCard": { # The basic card message. Useful for displaying information. # The basic card response for Actions on Google.
"title": "A String", # Optional. The title of the card.
@@ -3283,10 +3331,10 @@
"formattedText": "A String", # Required, unless image is present. The body text of the card.
"buttons": [ # Optional. The collection of card buttons.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
"subtitle": "A String", # Optional. The subtitle of the card.
@@ -3317,22 +3365,16 @@
},
"buttons": [ # Optional. List of buttons for the card.
{ # The button object that appears at the bottom of a card.
+ "title": "A String", # Required. The title of the button.
"openUriAction": { # Opens the given URI. # Required. Action to take when a user taps on the button.
"uri": "A String", # Required. The HTTP or HTTPS scheme URI.
},
- "title": "A String", # Required. The title of the button.
},
],
},
"carouselSelect": { # The card for presenting a carousel of options to select from. # The carousel card response for Actions on Google.
"items": [ # Required. Carousel items.
{ # An item in the carousel.
- "title": "A String", # Required. Title of the carousel item.
- "image": { # The image response message. # Optional. The image to display.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
"description": "A String", # Optional. The body text of the card.
"info": { # Additional info about the select item for when it is triggered in a # Required. Additional info about the option item.
# dialog.
@@ -3343,6 +3385,12 @@
"key": "A String", # Required. A unique key that will be sent back to the agent if this
# response is given.
},
+ "title": "A String", # Required. Title of the carousel item.
+ "image": { # The image response message. # Optional. The image to display.
+ "imageUri": "A String", # Optional. The public URI to an image file.
+ "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
+ # e.g., screen readers.
+ },
},
],
},
@@ -3357,8 +3405,6 @@
"items": [ # Required. List of items in the Browse Carousel Card. Minimum of two
# items, maximum of ten.
{ # Browsing carousel tile
- "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
- # text.
"openUriAction": { # Actions on Google action to open a given url. # Required. Action to present to the user.
"urlTypeHint": "A String", # Optional. Specifies the type of viewer that is used when opening
# the URL. Defaults to opening via web browser.
@@ -3372,6 +3418,8 @@
"accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
# e.g., screen readers.
},
+ "description": "A String", # Optional. Description of the carousel item. Maximum of four lines of
+ # text.
},
],
"imageDisplayOptions": "A String", # Optional. Settings for displaying the image. Applies to every image in
@@ -3383,71 +3431,23 @@
# `SimpleResponse`.
"simpleResponses": [ # Required. The list of simple responses.
{ # The simple response message containing speech or text.
- "displayText": "A String", # Optional. The text to display.
"textToSpeech": "A String", # One of text_to_speech or ssml must be provided. The plain text of the
# speech output. Mutually exclusive with ssml.
"ssml": "A String", # One of text_to_speech or ssml must be provided. Structured spoken
# response to the user in the SSML format. Mutually exclusive with
# text_to_speech.
+ "displayText": "A String", # Optional. The text to display.
},
],
},
- "mediaContent": { # The media content card for Actions on Google. # The media content card for Actions on Google.
- "mediaType": "A String", # Optional. What type of media is the content (ie "audio").
- "mediaObjects": [ # Required. List of media objects.
- { # Response media object for media content card.
- "icon": { # The image response message. # Optional. Icon to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "largeImage": { # The image response message. # Optional. Image to display above media content.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "name": "A String", # Required. Name of media card.
- "description": "A String", # Optional. Description of media card.
- "contentUrl": "A String", # Required. Url where the media is stored.
- },
- ],
- },
- "image": { # The image response message. # The image response.
- "imageUri": "A String", # Optional. The public URI to an image file.
- "accessibilityText": "A String", # Optional. A text description of the image to be used for accessibility,
- # e.g., screen readers.
- },
- "payload": { # A custom platform-specific response.
- "a_key": "", # Properties of the object.
- },
- "text": { # The text response message. # The text response.
- "text": [ # Optional. The collection of the agent's responses.
- "A String",
- ],
- },
- "suggestions": { # The collection of suggestions. # The suggestion chips for Actions on Google.
- "suggestions": [ # Required. The list of suggested replies.
- { # The suggestion chip message that the user can tap to quickly post a reply
- # to the conversation.
- "title": "A String", # Required. The text shown the in the suggestion chip.
- },
- ],
- },
- "platform": "A String", # Optional. The platform that this message is intended for.
},
],
- "name": "A String", # Optional. The unique identifier of this intent.
- # Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
- # methods.
- # Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
- "action": "A String", # Optional. The name of the action associated with the intent.
- # Note: The action name must not contain whitespaces.
+ "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"inputContextNames": [ # Optional. The list of context names required for this intent to be
# triggered.
# Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
"A String",
],
- "webhookState": "A String", # Optional. Indicates whether webhooks are enabled for the intent.
"followupIntentInfo": [ # Read-only. Information about all followup intents that have this intent as
# a direct or indirect parent. We populate this field only in the output.
{ # Represents a single followup intent in the chain.
@@ -3457,12 +3457,12 @@
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
},
],
- "displayName": "A String", # Required. The name of this intent.
"rootFollowupIntentName": "A String", # Read-only. The unique identifier of the root intent in the chain of
# followup intents. It identifies the correct followup intents chain for
# this intent. We populate this field only in the output.
#
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
+ "displayName": "A String", # Required. The name of this intent.
"mlDisabled": True or False, # Optional. Indicates whether Machine Learning is disabled for the intent.
# Note: If `ml_disabled` setting is set to true, then this intent is not
# taken into account during inference in `ML ONLY` match mode. Also,
@@ -3471,6 +3471,11 @@
"trainingPhrases": [ # Optional. The collection of examples that the agent is
# trained on.
{ # Represents an example that the agent is trained on.
+ "name": "A String", # Output only. The unique identifier of this training phrase.
+ "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
+ # the intent. Each time a developer adds an existing sample by editing an
+ # intent or training, this counter is increased.
+ "type": "A String", # Required. The type of the training phrase.
"parts": [ # Required. The ordered list of training phrase parts.
# The parts are concatenated in order to form the training phrase.
#
@@ -3491,6 +3496,9 @@
# and the `entity_type`, `alias`, and `user_defined` fields are all
# set.
{ # Represents a part of a training phrase.
+ "text": "A String", # Required. The text for this part.
+ "entityType": "A String", # Optional. The entity type name prefixed with `@`.
+ # This field is required for annotated parts of the training phrase.
"alias": "A String", # Optional. The parameter name for the value extracted from the
# annotated part of the example.
# This field is required for annotated parts of the training phrase.
@@ -3498,31 +3506,14 @@
# This field is set to true when the Dialogflow Console is used to
# manually annotate the part. When creating an annotated part with the
# API, you must set this to true.
- "text": "A String", # Required. The text for this part.
- "entityType": "A String", # Optional. The entity type name prefixed with `@`.
- # This field is required for annotated parts of the training phrase.
},
],
- "name": "A String", # Output only. The unique identifier of this training phrase.
- "timesAddedCount": 42, # Optional. Indicates how many times this example was added to
- # the intent. Each time a developer adds an existing sample by editing an
- # intent or training, this counter is increased.
- "type": "A String", # Required. The type of the training phrase.
},
],
"resetContexts": True or False, # Optional. Indicates whether to delete all contexts in the current
# session when this intent is matched.
"parameters": [ # Optional. The collection of parameters associated with the intent.
{ # Represents intent parameters.
- "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
- # whether the intent cannot be completed without collecting the parameter
- # value.
- "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
- # result.
- # Default values can be extracted from contexts by using the following
- # syntax: `#context_name.parameter_name`.
- "name": "A String", # The unique identifier of this parameter.
- "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
"value": "A String", # Optional. The definition of the parameter value. It can be:
#
# - a constant string,
@@ -3538,6 +3529,15 @@
# user in order to collect a value for the parameter.
"A String",
],
+ "mandatory": True or False, # Optional. Indicates whether the parameter is required. That is,
+ # whether the intent cannot be completed without collecting the parameter
+ # value.
+ "defaultValue": "A String", # Optional. The default value to use when the `value` yields an empty
+ # result.
+ # Default values can be extracted from contexts by using the following
+ # syntax: `#context_name.parameter_name`.
+ "name": "A String", # The unique identifier of this parameter.
+ "isList": True or False, # Optional. Indicates whether the parameter represents a list of values.
},
],
}</pre>