// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.actions.sdk.v2.conversation;

option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation";
option java_multiple_files = true;
option java_outer_classname = "LinkProto";
option java_package = "com.google.actions.sdk.v2.conversation";

// Link content.
message Link {
  // Name of the link
  string name = 1;

  // What happens when a user opens the link
  OpenUrl open = 2;
}

// Action taken when a user opens a link.
message OpenUrl {
  // The url field which could be any of:
  // - http/https urls for opening an App-linked App or a webpage
  string url = 1;

  // Indicates a hint for the url type.
  UrlHint hint = 2;
}

// Different types of url hints.
enum UrlHint {
  // Unspecified
  LINK_UNSPECIFIED = 0;

  // URL that points directly to AMP content, or to a canonical URL
  // which refers to AMP content via <link rel="amphtml">.
  AMP = 1;
}
