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