blob: 89ca7bff2df725f362ef7617b9649ecd0183d3e7 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto3";
option optimize_for = LITE_RUNTIME;
package video_tutorials.proto;
// Represents the feature where the video tutorial targeted to.
enum FeatureType {
INVALID = 0;
SUMMARY = 1;
CHROME_INTRO = 2;
DOWNLOAD = 3;
SEARCH = 4;
VOICE_SEARCH = 5;
// For test only.
TEST = 9999999;
}
// A group of video tutorials with same language.
message VideoTutorialGroup {
// Language of the video.
string language = 1;
// A list of video tutorials metadata.
repeated VideoTutorial tutorials = 2;
}
// Metadata of a video tutorial.
message VideoTutorial {
// Type of feature where this video tutorial targeted.
FeatureType feature = 1;
// The user visible description of this video tutorial.
string title = 2;
// The complete URL for the video.
string video_url = 3;
// The URL of the video for sharing.
string share_url = 4;
// The URL of the video poster. Shown while the video is loading in the
// player.
string poster_url = 5;
// The URL of this video's caption.
string caption_url = 6;
// Duration of the video in seconds.
int64 video_length = 7;
// The URL of the animated thumbnail. Shown in the IPH cards.
string animated_gif_url = 8;
// The URL of the thumbnail image. Shown in the video list.
string thumbnail_url = 9;
}
// Response from the server containing tutorial groups for all languages.
message ServerResponse {
// Tutorials for all available languages.
repeated VideoTutorialGroup tutorial_groups = 1;
}