xref: /aosp_15_r20/external/openscreen/cast/cast_core/api/core/cast_core_service.proto (revision 3f982cf4871df8771c9d4abe6e9a6f8d829b2736)
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.core;
9
10import "cast/cast_core/api/common/runtime_metadata.proto";
11
12option optimize_for = LITE_RUNTIME;
13
14// CastCore service.
15service CastCoreService {
16  // Registers a Cast Runtime. Usually called by platform.
17  rpc RegisterRuntime(RegisterRuntimeRequest) returns (RegisterRuntimeResponse);
18
19  // Unregisters a Cast Runtime. Usually called by platform.
20  rpc UnregisterRuntime(UnregisterRuntimeRequest)
21      returns (UnregisterRuntimeResponse);
22}
23
24message RegisterRuntimeRequest {
25  // DEPRECATED.
26  string runtime_id = 1 [deprecated = true];
27  // Metadata about the runtime.
28  cast.common.RuntimeMetadata runtime_metadata = 2;
29}
30
31message RegisterRuntimeResponse {
32  // A randomly generated runtime ID. Cast Core will use this ID to reference a
33  // particular Runtime.
34  string runtime_id = 1;
35}
36
37message UnregisterRuntimeRequest {
38  // Runtime ID.
39  string runtime_id = 1;
40}
41
42message UnregisterRuntimeResponse {}
43