• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6//     http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14syntax = "proto3";
15
16option java_package = "ohos.devtools.datasources.transport.grpc.service";
17option optimize_for = LITE_RUNTIME;
18
19message Test {
20    int32 number = 1;
21    uint64 tv_nsec = 2;
22    string name = 3;
23    bool is_test = 4;
24    enum State {
25        INITED = 0;
26        REGISTERED = 1;
27    };
28    State state = 5;
29    oneof event {
30        int32 alloc_event = 6;
31        string free_event = 7;
32    }
33}
34
35message NumberTest {
36    repeated int32 numberText = 1;
37}
38
39message Fixed64Test {
40    repeated double fixed64NumberText = 1;
41}
42
43message Fixed32Test {
44    repeated float fixed32NumberText = 1;
45}
46
47message CpuInfoTest {
48    repeated Test test = 1;
49}
50message TestParser {
51    int32 count = 1;
52    CpuInfoTest cores = 2;
53    NumberTest numberTest = 3;
54    Fixed64Test fixed64Test = 4;
55    Fixed32Test fixed32Test = 5;
56}
57