| // Copyright 2018 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // gRPC API exposed by the diagnostics_processor daemon. Normally the consumer |
| // of the API is the diagnosticsd daemon. |
| |
| syntax = "proto3"; |
| |
| package diagnostics.grpc_api; |
| |
| import "common.proto"; |
| |
| service DiagnosticsProcessor { |
| // Called when a message is sent by the diagnostics UI extension (hosted by |
| // the browser). |
| rpc HandleMessageFromUi(HandleMessageFromUiRequest) |
| returns (HandleMessageFromUiResponse) {} |
| } |
| |
| // Parameters for the HandleMessageFromUi RPC. |
| message HandleMessageFromUiRequest { |
| // Message contents, as sent by the diagnostics UI extension. Should be a |
| // valid JSON string. |
| string json_message = 1; |
| } |
| |
| // Return value of the HandleMessageFromUi RPC. |
| message HandleMessageFromUiResponse { |
| // Response message contents, as sent by the diagnostics_processor daemon. |
| // When set, should be a valid JSON string. |
| string response_json_message = 1; |
| } |