1// Copyright Istio Authors
2//
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/*
16Overview of what myapa is etc..
17*/
18syntax = "proto3";
19
20/*
21Additional overview of what myapa is etc..
22*/
23package istio.mixer.adapter.MyApa;
24
25import "mixer/adapter/model/v1beta1/extensions.proto";
26import "policy/v1beta1/type.proto";
27
28option (istio.mixer.adapter.model.v1beta1.template_variety) = TEMPLATE_VARIETY_ATTRIBUTE_GENERATOR;
29
30/* myapa template is ..
31*/
32message Template {
33    int64 int64Primitive = 1;
34
35    bool boolPrimitive = 2;
36
37    double doublePrimitive = 3;
38
39    string stringPrimitive = 4;
40
41    map<string, int64> dimensionsFixedInt64ValueDType = 5;
42
43    istio.policy.v1beta1.TimeStamp timeStamp = 6;
44
45    istio.policy.v1beta1.Duration duration = 7;
46
47    map<string, Resource3> res3_map = 8;
48}
49
50message OutputTemplate {
51
52    int64 int64Primitive = 1;
53
54    bool boolPrimitive = 2;
55
56    double doublePrimitive = 3;
57
58    string stringPrimitive = 4;
59
60    istio.policy.v1beta1.TimeStamp timeStamp = 6;
61
62    istio.policy.v1beta1.Duration duration = 7;
63}
64
65
66message Resource1 {
67    string str = 1;
68    istio.mixer.adapter.MyApa.Resource1 self_ref_res1 = 3;
69    Resource2 resRef2 = 2;
70}
71
72message Resource2 {
73    string str = 1;
74    Resource3 res3 = 2;
75    map<string, Resource3> res3_map = 3;
76}
77
78// resource3 comment
79message Resource3 {
80
81    int64 int64Primitive = 1;
82
83    bool boolPrimitive = 2;
84
85    double doublePrimitive = 3;
86
87    string stringPrimitive = 4;
88
89    map<string, int64> dimensionsFixedInt64ValueDType = 5;
90
91    istio.policy.v1beta1.TimeStamp timeStamp = 6;
92
93    istio.policy.v1beta1.Duration duration = 7;
94}
95