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
19option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt";
20option java_multiple_files = true;
21option java_outer_classname = "StaticLinkPromptProto";
22option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt";
23
24// Defines a link which will be displayed as a suggestion chip and can be opened
25// by the user.
26message StaticLinkPrompt {
27  // Name of the link
28  string name = 1;
29
30  // Defines behavior when the user opens the link.
31  OpenUrl open = 2;
32}
33
34// Defines behavior when the user opens the link.
35message OpenUrl {
36  // The url field which could be any of:
37  // - http/https urls for opening an App-linked App or a webpage
38  string url = 1;
39
40  // Indicates a hint for the url type.
41  UrlHint hint = 2;
42}
43
44// Different types of url hints.
45enum UrlHint {
46  // Unspecified
47  HINT_UNSPECIFIED = 0;
48
49  // URL that points directly to AMP content, or to a canonical URL
50  // which refers to AMP content via `<link rel="amphtml">`.
51  AMP = 1;
52}
53