1// Copyright 2021 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4// 5// **** DO NOT EDIT - this file was automatically generated. **** 6syntax = "proto3"; 7 8package cast.platform; 9 10import "cast/cast_core/api/common/service_info.proto"; 11 12option optimize_for = LITE_RUNTIME; 13 14// Platform service. Implemented and hosted by Platform. 15service PlatformService { 16 // Starts a runtime. Called by CastCoreService which endpoint is fetched from 17 // the ServerContext. 18 rpc StartRuntime(StartRuntimeRequest) returns (StartRuntimeResponse); 19 20 // Stops a runtime. 21 rpc StopRuntime(StopRuntimeRequest) returns (StopRuntimeResponse); 22 23 // Gets device info. 24 rpc GetDeviceInfo(GetDeviceInfoRequest) returns (GetDeviceInfoResponse); 25} 26 27message StartRuntimeRequest { 28 // Cast Runtime ID assigned in CastCoreService.RegisterRuntime. 29 string runtime_id = 1; 30 // gRPC endpoint Cast Runtime must run on. 31 cast.common.ServiceInfo runtime_service_info = 2; 32} 33 34message StartRuntimeResponse {} 35 36message StopRuntimeRequest { 37 string runtime_id = 1; 38} 39 40message StopRuntimeResponse {} 41 42message GetDeviceInfoRequest {} 43 44message GetDeviceInfoResponse { 45 // TODO: Add device information that Cast needs. Below is an approximation of 46 // such information. 47 bool has_surface = 1; 48} 49