1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package appengine
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 type FirewallRule_Action int32
40
41 const (
42 FirewallRule_UNSPECIFIED_ACTION FirewallRule_Action = 0
43
44 FirewallRule_ALLOW FirewallRule_Action = 1
45
46 FirewallRule_DENY FirewallRule_Action = 2
47 )
48
49
50 var (
51 FirewallRule_Action_name = map[int32]string{
52 0: "UNSPECIFIED_ACTION",
53 1: "ALLOW",
54 2: "DENY",
55 }
56 FirewallRule_Action_value = map[string]int32{
57 "UNSPECIFIED_ACTION": 0,
58 "ALLOW": 1,
59 "DENY": 2,
60 }
61 )
62
63 func (x FirewallRule_Action) Enum() *FirewallRule_Action {
64 p := new(FirewallRule_Action)
65 *p = x
66 return p
67 }
68
69 func (x FirewallRule_Action) String() string {
70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71 }
72
73 func (FirewallRule_Action) Descriptor() protoreflect.EnumDescriptor {
74 return file_google_appengine_v1beta_firewall_proto_enumTypes[0].Descriptor()
75 }
76
77 func (FirewallRule_Action) Type() protoreflect.EnumType {
78 return &file_google_appengine_v1beta_firewall_proto_enumTypes[0]
79 }
80
81 func (x FirewallRule_Action) Number() protoreflect.EnumNumber {
82 return protoreflect.EnumNumber(x)
83 }
84
85
86 func (FirewallRule_Action) EnumDescriptor() ([]byte, []int) {
87 return file_google_appengine_v1beta_firewall_proto_rawDescGZIP(), []int{0, 0}
88 }
89
90
91
92 type FirewallRule struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97
98
99
100
101
102
103 Priority int32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"`
104
105 Action FirewallRule_Action `protobuf:"varint,2,opt,name=action,proto3,enum=google.appengine.v1beta.FirewallRule_Action" json:"action,omitempty"`
106
107
108
109
110
111
112
113
114
115
116
117 SourceRange string `protobuf:"bytes,3,opt,name=source_range,json=sourceRange,proto3" json:"source_range,omitempty"`
118
119
120 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
121 }
122
123 func (x *FirewallRule) Reset() {
124 *x = FirewallRule{}
125 if protoimpl.UnsafeEnabled {
126 mi := &file_google_appengine_v1beta_firewall_proto_msgTypes[0]
127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128 ms.StoreMessageInfo(mi)
129 }
130 }
131
132 func (x *FirewallRule) String() string {
133 return protoimpl.X.MessageStringOf(x)
134 }
135
136 func (*FirewallRule) ProtoMessage() {}
137
138 func (x *FirewallRule) ProtoReflect() protoreflect.Message {
139 mi := &file_google_appengine_v1beta_firewall_proto_msgTypes[0]
140 if protoimpl.UnsafeEnabled && x != nil {
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 if ms.LoadMessageInfo() == nil {
143 ms.StoreMessageInfo(mi)
144 }
145 return ms
146 }
147 return mi.MessageOf(x)
148 }
149
150
151 func (*FirewallRule) Descriptor() ([]byte, []int) {
152 return file_google_appengine_v1beta_firewall_proto_rawDescGZIP(), []int{0}
153 }
154
155 func (x *FirewallRule) GetPriority() int32 {
156 if x != nil {
157 return x.Priority
158 }
159 return 0
160 }
161
162 func (x *FirewallRule) GetAction() FirewallRule_Action {
163 if x != nil {
164 return x.Action
165 }
166 return FirewallRule_UNSPECIFIED_ACTION
167 }
168
169 func (x *FirewallRule) GetSourceRange() string {
170 if x != nil {
171 return x.SourceRange
172 }
173 return ""
174 }
175
176 func (x *FirewallRule) GetDescription() string {
177 if x != nil {
178 return x.Description
179 }
180 return ""
181 }
182
183 var File_google_appengine_v1beta_firewall_proto protoreflect.FileDescriptor
184
185 var file_google_appengine_v1beta_firewall_proto_rawDesc = []byte{
186 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69,
187 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61,
188 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
189 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
190 0x61, 0x22, 0xec, 0x01, 0x0a, 0x0c, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x52, 0x75,
191 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01,
192 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x44,
193 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c,
194 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e,
195 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c,
196 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63,
197 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72,
198 0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72,
199 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
200 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
201 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74,
202 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
203 0x45, 0x44, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41,
204 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x4e, 0x59, 0x10, 0x02,
205 0x42, 0xdc, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
206 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
207 0x2e, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x42, 0x0d, 0x46, 0x69, 0x72, 0x65, 0x77,
208 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67,
209 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
210 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
211 0x73, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65,
212 0x74, 0x61, 0x3b, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0xaa, 0x02, 0x1d, 0x47,
213 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x45,
214 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1d, 0x47,
215 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x70, 0x70, 0x45,
216 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x20, 0x47,
217 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x70,
218 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62,
219 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
220 }
221
222 var (
223 file_google_appengine_v1beta_firewall_proto_rawDescOnce sync.Once
224 file_google_appengine_v1beta_firewall_proto_rawDescData = file_google_appengine_v1beta_firewall_proto_rawDesc
225 )
226
227 func file_google_appengine_v1beta_firewall_proto_rawDescGZIP() []byte {
228 file_google_appengine_v1beta_firewall_proto_rawDescOnce.Do(func() {
229 file_google_appengine_v1beta_firewall_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_appengine_v1beta_firewall_proto_rawDescData)
230 })
231 return file_google_appengine_v1beta_firewall_proto_rawDescData
232 }
233
234 var file_google_appengine_v1beta_firewall_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
235 var file_google_appengine_v1beta_firewall_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
236 var file_google_appengine_v1beta_firewall_proto_goTypes = []interface{}{
237 (FirewallRule_Action)(0),
238 (*FirewallRule)(nil),
239 }
240 var file_google_appengine_v1beta_firewall_proto_depIdxs = []int32{
241 0,
242 1,
243 1,
244 1,
245 1,
246 0,
247 }
248
249 func init() { file_google_appengine_v1beta_firewall_proto_init() }
250 func file_google_appengine_v1beta_firewall_proto_init() {
251 if File_google_appengine_v1beta_firewall_proto != nil {
252 return
253 }
254 if !protoimpl.UnsafeEnabled {
255 file_google_appengine_v1beta_firewall_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
256 switch v := v.(*FirewallRule); i {
257 case 0:
258 return &v.state
259 case 1:
260 return &v.sizeCache
261 case 2:
262 return &v.unknownFields
263 default:
264 return nil
265 }
266 }
267 }
268 type x struct{}
269 out := protoimpl.TypeBuilder{
270 File: protoimpl.DescBuilder{
271 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
272 RawDescriptor: file_google_appengine_v1beta_firewall_proto_rawDesc,
273 NumEnums: 1,
274 NumMessages: 1,
275 NumExtensions: 0,
276 NumServices: 0,
277 },
278 GoTypes: file_google_appengine_v1beta_firewall_proto_goTypes,
279 DependencyIndexes: file_google_appengine_v1beta_firewall_proto_depIdxs,
280 EnumInfos: file_google_appengine_v1beta_firewall_proto_enumTypes,
281 MessageInfos: file_google_appengine_v1beta_firewall_proto_msgTypes,
282 }.Build()
283 File_google_appengine_v1beta_firewall_proto = out.File
284 file_google_appengine_v1beta_firewall_proto_rawDesc = nil
285 file_google_appengine_v1beta_firewall_proto_goTypes = nil
286 file_google_appengine_v1beta_firewall_proto_depIdxs = nil
287 }
288
View as plain text