card.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/image.proto";
  17. import "google/actions/sdk/v2/conversation/prompt/content/link.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "CardProto";
  21. option java_package = "com.google.actions.sdk.v2.conversation";
  22. // A basic card for displaying some information, e.g. an image and/or text.
  23. message Card {
  24. // Overall title of the card.
  25. // Optional.
  26. string title = 1;
  27. // Optional.
  28. string subtitle = 2;
  29. // Body text of the card.
  30. // Supports a limited set of markdown syntax for formatting.
  31. // Required, unless image is present.
  32. string text = 3;
  33. // A hero image for the card. The height is fixed to 192dp.
  34. // Optional.
  35. Image image = 4;
  36. // How the image background will be filled. Optional.
  37. Image.ImageFill image_fill = 5;
  38. // Button.
  39. // Optional.
  40. Link button = 6;
  41. }