content.proto 1.9 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.conversation;
  16. import "google/actions/sdk/v2/conversation/prompt/content/canvas.proto";
  17. import "google/actions/sdk/v2/conversation/prompt/content/card.proto";
  18. import "google/actions/sdk/v2/conversation/prompt/content/collection.proto";
  19. import "google/actions/sdk/v2/conversation/prompt/content/image.proto";
  20. import "google/actions/sdk/v2/conversation/prompt/content/list.proto";
  21. import "google/actions/sdk/v2/conversation/prompt/content/media.proto";
  22. import "google/actions/sdk/v2/conversation/prompt/content/table.proto";
  23. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "ContentProto";
  26. option java_package = "com.google.actions.sdk.v2.conversation";
  27. // Content to be shown.
  28. message Content {
  29. // Content.
  30. oneof content {
  31. // A basic card.
  32. Card card = 1;
  33. // An image.
  34. Image image = 2;
  35. // Table card.
  36. Table table = 3;
  37. // Response indicating a set of media to be played.
  38. Media media = 4;
  39. // A response to be used for interactive canvas experience.
  40. Canvas canvas = 5 [deprecated = true];
  41. // A card presenting a collection of options to select from.
  42. Collection collection = 6;
  43. // A card presenting a list of options to select from.
  44. List list = 7;
  45. }
  46. }