static_card_prompt.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_image_prompt.proto";
  17. import "google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto";
  18. import "google/api/field_behavior.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "StaticCardPromptProto";
  22. option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt";
  23. // A basic card for displaying some information, e.g. an image and/or text.
  24. message StaticCardPrompt {
  25. // Optional. Overall title of the card.
  26. string title = 1 [(google.api.field_behavior) = OPTIONAL];
  27. // Optional. Subtitle of the card.
  28. string subtitle = 2 [(google.api.field_behavior) = OPTIONAL];
  29. // Required. Body text of the card which is needed unless image is present. Supports a
  30. // limited set of markdown syntax for formatting.
  31. string text = 3 [(google.api.field_behavior) = REQUIRED];
  32. // Optional. A hero image for the card. The height is fixed to 192dp.
  33. StaticImagePrompt image = 4 [(google.api.field_behavior) = OPTIONAL];
  34. // Optional. How the image background will be filled.
  35. StaticImagePrompt.ImageFill image_fill = 5 [(google.api.field_behavior) = OPTIONAL];
  36. // Optional. A clickable button to be shown in the Card.
  37. StaticLinkPrompt button = 6 [(google.api.field_behavior) = OPTIONAL];
  38. }