1/*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16syntax = "proto2";
17
18message LogRequest {
19  optional ClientInfo client_info = 1;
20  optional int32 log_source = 2;
21  optional int64 request_time_ms = 4;
22  repeated LogEvent log_event = 3;
23  optional string log_source_name = 5;
24}
25
26message ClientInfo {
27  optional int32 client_type = 1;
28}
29
30// TODO(moelsherif) : This message is not used yet. It will be used to send back the next request wait time.
31message LogResponse {
32  optional int64 next_request_wait_millis = 1;
33}
34
35message LogEvent {
36  optional int64 event_time_ms = 1;
37  optional bytes source_extension = 6;
38}
39