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