static_content_prompt.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.actions.sdk.v2.interactionmodel.prompt;
  16. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_card_prompt.proto";
  17. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_browse_prompt.proto";
  18. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_prompt.proto";
  19. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto";
  20. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_list_prompt.proto";
  21. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_media_prompt.proto";
  22. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.proto";
  23. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "StaticContentPromptProto";
  26. option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt";
  27. // A placeholder for the Content part of a StaticPrompt.
  28. message StaticContentPrompt {
  29. // Only one type of content can be present in a Prompt.
  30. oneof content {
  31. // A basic card.
  32. StaticCardPrompt card = 1;
  33. // An image.
  34. StaticImagePrompt image = 2;
  35. // Table card.
  36. StaticTablePrompt table = 3;
  37. // Response indicating a set of media to be played.
  38. StaticMediaPrompt media = 4;
  39. // A card for presenting a list of options to select from.
  40. StaticListPrompt list = 5;
  41. // A card presenting a list of options to select from.
  42. StaticCollectionPrompt collection = 6;
  43. // A card presenting a collection of web pages to open.
  44. StaticCollectionBrowsePrompt collection_browse = 7;
  45. }
  46. }