• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16syntax = "proto3";
17package protoPanda;
18
19import "annotation.proto";
20import "assemblyType.proto";
21
22message Metadata {
23    repeated bytes set_attributes = 1;
24    message Attributes {
25        bytes key = 1;
26        repeated bytes value = 2;
27    }
28    repeated Attributes attributes = 2;
29}
30
31message AnnotationMetadata {
32    Metadata father = 1;
33    repeated AnnotationData annotations = 2;
34}
35
36message ItemMetadata {
37    AnnotationMetadata father = 1;
38    uint32 accessFlags = 2;
39}
40
41message RecordMetadata {
42    ItemMetadata father = 1;
43}
44
45message FieldMetadata {
46    ItemMetadata father = 1;
47    Type fieldType = 2;
48    optional ScalarValue value = 3;
49}
50
51message FunctionMetadata {
52    ItemMetadata father = 1;
53}
54
55message ParamMetadata {
56    AnnotationMetadata father = 1;
57}
58