1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package serviceconfig
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40
41
42
43
44 type Control struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49
50
51
52 Environment string `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"`
53
54 MethodPolicies []*MethodPolicy `protobuf:"bytes,4,rep,name=method_policies,json=methodPolicies,proto3" json:"method_policies,omitempty"`
55 }
56
57 func (x *Control) Reset() {
58 *x = Control{}
59 if protoimpl.UnsafeEnabled {
60 mi := &file_google_api_control_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64 }
65
66 func (x *Control) String() string {
67 return protoimpl.X.MessageStringOf(x)
68 }
69
70 func (*Control) ProtoMessage() {}
71
72 func (x *Control) ProtoReflect() protoreflect.Message {
73 mi := &file_google_api_control_proto_msgTypes[0]
74 if protoimpl.UnsafeEnabled && x != nil {
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 if ms.LoadMessageInfo() == nil {
77 ms.StoreMessageInfo(mi)
78 }
79 return ms
80 }
81 return mi.MessageOf(x)
82 }
83
84
85 func (*Control) Descriptor() ([]byte, []int) {
86 return file_google_api_control_proto_rawDescGZIP(), []int{0}
87 }
88
89 func (x *Control) GetEnvironment() string {
90 if x != nil {
91 return x.Environment
92 }
93 return ""
94 }
95
96 func (x *Control) GetMethodPolicies() []*MethodPolicy {
97 if x != nil {
98 return x.MethodPolicies
99 }
100 return nil
101 }
102
103 var File_google_api_control_proto protoreflect.FileDescriptor
104
105 var file_google_api_control_proto_rawDesc = []byte{
106 0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e,
107 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67,
108 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
109 0x70, 0x69, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
110 0x6e, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e,
111 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
112 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x0f,
113 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18,
114 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
115 0x70, 0x69, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
116 0x0e, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42,
117 0x6e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
118 0x69, 0x42, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
119 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
120 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
121 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72,
122 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69,
123 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62,
124 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
125 }
126
127 var (
128 file_google_api_control_proto_rawDescOnce sync.Once
129 file_google_api_control_proto_rawDescData = file_google_api_control_proto_rawDesc
130 )
131
132 func file_google_api_control_proto_rawDescGZIP() []byte {
133 file_google_api_control_proto_rawDescOnce.Do(func() {
134 file_google_api_control_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_control_proto_rawDescData)
135 })
136 return file_google_api_control_proto_rawDescData
137 }
138
139 var file_google_api_control_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
140 var file_google_api_control_proto_goTypes = []interface{}{
141 (*Control)(nil),
142 (*MethodPolicy)(nil),
143 }
144 var file_google_api_control_proto_depIdxs = []int32{
145 1,
146 1,
147 1,
148 1,
149 1,
150 0,
151 }
152
153 func init() { file_google_api_control_proto_init() }
154 func file_google_api_control_proto_init() {
155 if File_google_api_control_proto != nil {
156 return
157 }
158 file_google_api_policy_proto_init()
159 if !protoimpl.UnsafeEnabled {
160 file_google_api_control_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
161 switch v := v.(*Control); i {
162 case 0:
163 return &v.state
164 case 1:
165 return &v.sizeCache
166 case 2:
167 return &v.unknownFields
168 default:
169 return nil
170 }
171 }
172 }
173 type x struct{}
174 out := protoimpl.TypeBuilder{
175 File: protoimpl.DescBuilder{
176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
177 RawDescriptor: file_google_api_control_proto_rawDesc,
178 NumEnums: 0,
179 NumMessages: 1,
180 NumExtensions: 0,
181 NumServices: 0,
182 },
183 GoTypes: file_google_api_control_proto_goTypes,
184 DependencyIndexes: file_google_api_control_proto_depIdxs,
185 MessageInfos: file_google_api_control_proto_msgTypes,
186 }.Build()
187 File_google_api_control_proto = out.File
188 file_google_api_control_proto_rawDesc = nil
189 file_google_api_control_proto_goTypes = nil
190 file_google_api_control_proto_depIdxs = nil
191 }
192
View as plain text