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 TrafficSplit_ShardBy int32
40
41 const (
42
43 TrafficSplit_UNSPECIFIED TrafficSplit_ShardBy = 0
44
45
46 TrafficSplit_COOKIE TrafficSplit_ShardBy = 1
47
48
49 TrafficSplit_IP TrafficSplit_ShardBy = 2
50
51
52
53 TrafficSplit_RANDOM TrafficSplit_ShardBy = 3
54 )
55
56
57 var (
58 TrafficSplit_ShardBy_name = map[int32]string{
59 0: "UNSPECIFIED",
60 1: "COOKIE",
61 2: "IP",
62 3: "RANDOM",
63 }
64 TrafficSplit_ShardBy_value = map[string]int32{
65 "UNSPECIFIED": 0,
66 "COOKIE": 1,
67 "IP": 2,
68 "RANDOM": 3,
69 }
70 )
71
72 func (x TrafficSplit_ShardBy) Enum() *TrafficSplit_ShardBy {
73 p := new(TrafficSplit_ShardBy)
74 *p = x
75 return p
76 }
77
78 func (x TrafficSplit_ShardBy) String() string {
79 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
80 }
81
82 func (TrafficSplit_ShardBy) Descriptor() protoreflect.EnumDescriptor {
83 return file_google_appengine_v1beta_service_proto_enumTypes[0].Descriptor()
84 }
85
86 func (TrafficSplit_ShardBy) Type() protoreflect.EnumType {
87 return &file_google_appengine_v1beta_service_proto_enumTypes[0]
88 }
89
90 func (x TrafficSplit_ShardBy) Number() protoreflect.EnumNumber {
91 return protoreflect.EnumNumber(x)
92 }
93
94
95 func (TrafficSplit_ShardBy) EnumDescriptor() ([]byte, []int) {
96 return file_google_appengine_v1beta_service_proto_rawDescGZIP(), []int{1, 0}
97 }
98
99
100
101
102
103
104
105
106 type Service struct {
107 state protoimpl.MessageState
108 sizeCache protoimpl.SizeCache
109 unknownFields protoimpl.UnknownFields
110
111
112
113
114
115 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
116
117
118
119
120 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
121
122
123 Split *TrafficSplit `protobuf:"bytes,3,opt,name=split,proto3" json:"split,omitempty"`
124
125 NetworkSettings *NetworkSettings `protobuf:"bytes,6,opt,name=network_settings,json=networkSettings,proto3" json:"network_settings,omitempty"`
126 }
127
128 func (x *Service) Reset() {
129 *x = Service{}
130 if protoimpl.UnsafeEnabled {
131 mi := &file_google_appengine_v1beta_service_proto_msgTypes[0]
132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133 ms.StoreMessageInfo(mi)
134 }
135 }
136
137 func (x *Service) String() string {
138 return protoimpl.X.MessageStringOf(x)
139 }
140
141 func (*Service) ProtoMessage() {}
142
143 func (x *Service) ProtoReflect() protoreflect.Message {
144 mi := &file_google_appengine_v1beta_service_proto_msgTypes[0]
145 if protoimpl.UnsafeEnabled && x != nil {
146 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
147 if ms.LoadMessageInfo() == nil {
148 ms.StoreMessageInfo(mi)
149 }
150 return ms
151 }
152 return mi.MessageOf(x)
153 }
154
155
156 func (*Service) Descriptor() ([]byte, []int) {
157 return file_google_appengine_v1beta_service_proto_rawDescGZIP(), []int{0}
158 }
159
160 func (x *Service) GetName() string {
161 if x != nil {
162 return x.Name
163 }
164 return ""
165 }
166
167 func (x *Service) GetId() string {
168 if x != nil {
169 return x.Id
170 }
171 return ""
172 }
173
174 func (x *Service) GetSplit() *TrafficSplit {
175 if x != nil {
176 return x.Split
177 }
178 return nil
179 }
180
181 func (x *Service) GetNetworkSettings() *NetworkSettings {
182 if x != nil {
183 return x.NetworkSettings
184 }
185 return nil
186 }
187
188
189
190 type TrafficSplit struct {
191 state protoimpl.MessageState
192 sizeCache protoimpl.SizeCache
193 unknownFields protoimpl.UnknownFields
194
195
196
197
198 ShardBy TrafficSplit_ShardBy `protobuf:"varint,1,opt,name=shard_by,json=shardBy,proto3,enum=google.appengine.v1beta.TrafficSplit_ShardBy" json:"shard_by,omitempty"`
199
200
201
202
203
204
205
206
207 Allocations map[string]float64 `protobuf:"bytes,2,rep,name=allocations,proto3" json:"allocations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3"`
208 }
209
210 func (x *TrafficSplit) Reset() {
211 *x = TrafficSplit{}
212 if protoimpl.UnsafeEnabled {
213 mi := &file_google_appengine_v1beta_service_proto_msgTypes[1]
214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
215 ms.StoreMessageInfo(mi)
216 }
217 }
218
219 func (x *TrafficSplit) String() string {
220 return protoimpl.X.MessageStringOf(x)
221 }
222
223 func (*TrafficSplit) ProtoMessage() {}
224
225 func (x *TrafficSplit) ProtoReflect() protoreflect.Message {
226 mi := &file_google_appengine_v1beta_service_proto_msgTypes[1]
227 if protoimpl.UnsafeEnabled && x != nil {
228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
229 if ms.LoadMessageInfo() == nil {
230 ms.StoreMessageInfo(mi)
231 }
232 return ms
233 }
234 return mi.MessageOf(x)
235 }
236
237
238 func (*TrafficSplit) Descriptor() ([]byte, []int) {
239 return file_google_appengine_v1beta_service_proto_rawDescGZIP(), []int{1}
240 }
241
242 func (x *TrafficSplit) GetShardBy() TrafficSplit_ShardBy {
243 if x != nil {
244 return x.ShardBy
245 }
246 return TrafficSplit_UNSPECIFIED
247 }
248
249 func (x *TrafficSplit) GetAllocations() map[string]float64 {
250 if x != nil {
251 return x.Allocations
252 }
253 return nil
254 }
255
256 var File_google_appengine_v1beta_service_proto protoreflect.FileDescriptor
257
258 var file_google_appengine_v1beta_service_proto_rawDesc = []byte{
259 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69,
260 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
261 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
262 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
263 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69,
264 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
265 0x6b, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
266 0x22, 0xbf, 0x01, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04,
267 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
268 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
269 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
270 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69,
271 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69,
272 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x52, 0x05, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x12, 0x53, 0x0a,
273 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
274 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
275 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
276 0x61, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
277 0x73, 0x52, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
278 0x67, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, 0x70,
279 0x6c, 0x69, 0x74, 0x12, 0x48, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x62, 0x79, 0x18,
280 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
281 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e,
282 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x2e, 0x53, 0x68, 0x61,
283 0x72, 0x64, 0x42, 0x79, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x79, 0x12, 0x58, 0x0a,
284 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03,
285 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x65,
286 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x61,
287 0x66, 0x66, 0x69, 0x63, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61,
288 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6c, 0x6c, 0x6f,
289 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
290 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
291 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
292 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61,
293 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3a, 0x0a, 0x07, 0x53, 0x68, 0x61, 0x72, 0x64,
294 0x42, 0x79, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
295 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4f, 0x4f, 0x4b, 0x49, 0x45, 0x10, 0x01, 0x12,
296 0x06, 0x0a, 0x02, 0x49, 0x50, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x41, 0x4e, 0x44, 0x4f,
297 0x4d, 0x10, 0x03, 0x42, 0xd2, 0x01, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
298 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x62,
299 0x65, 0x74, 0x61, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
300 0x6f, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
301 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
302 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e,
303 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x3b, 0x61, 0x70, 0x70, 0x65,
304 0x6e, 0x67, 0x69, 0x6e, 0x65, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
305 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x56,
306 0x31, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
307 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5c, 0x56,
308 0x31, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
309 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65,
310 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
311 }
312
313 var (
314 file_google_appengine_v1beta_service_proto_rawDescOnce sync.Once
315 file_google_appengine_v1beta_service_proto_rawDescData = file_google_appengine_v1beta_service_proto_rawDesc
316 )
317
318 func file_google_appengine_v1beta_service_proto_rawDescGZIP() []byte {
319 file_google_appengine_v1beta_service_proto_rawDescOnce.Do(func() {
320 file_google_appengine_v1beta_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_appengine_v1beta_service_proto_rawDescData)
321 })
322 return file_google_appengine_v1beta_service_proto_rawDescData
323 }
324
325 var file_google_appengine_v1beta_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
326 var file_google_appengine_v1beta_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
327 var file_google_appengine_v1beta_service_proto_goTypes = []interface{}{
328 (TrafficSplit_ShardBy)(0),
329 (*Service)(nil),
330 (*TrafficSplit)(nil),
331 nil,
332 (*NetworkSettings)(nil),
333 }
334 var file_google_appengine_v1beta_service_proto_depIdxs = []int32{
335 2,
336 4,
337 0,
338 3,
339 4,
340 4,
341 4,
342 4,
343 0,
344 }
345
346 func init() { file_google_appengine_v1beta_service_proto_init() }
347 func file_google_appengine_v1beta_service_proto_init() {
348 if File_google_appengine_v1beta_service_proto != nil {
349 return
350 }
351 file_google_appengine_v1beta_network_settings_proto_init()
352 if !protoimpl.UnsafeEnabled {
353 file_google_appengine_v1beta_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
354 switch v := v.(*Service); i {
355 case 0:
356 return &v.state
357 case 1:
358 return &v.sizeCache
359 case 2:
360 return &v.unknownFields
361 default:
362 return nil
363 }
364 }
365 file_google_appengine_v1beta_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
366 switch v := v.(*TrafficSplit); i {
367 case 0:
368 return &v.state
369 case 1:
370 return &v.sizeCache
371 case 2:
372 return &v.unknownFields
373 default:
374 return nil
375 }
376 }
377 }
378 type x struct{}
379 out := protoimpl.TypeBuilder{
380 File: protoimpl.DescBuilder{
381 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
382 RawDescriptor: file_google_appengine_v1beta_service_proto_rawDesc,
383 NumEnums: 1,
384 NumMessages: 3,
385 NumExtensions: 0,
386 NumServices: 0,
387 },
388 GoTypes: file_google_appengine_v1beta_service_proto_goTypes,
389 DependencyIndexes: file_google_appengine_v1beta_service_proto_depIdxs,
390 EnumInfos: file_google_appengine_v1beta_service_proto_enumTypes,
391 MessageInfos: file_google_appengine_v1beta_service_proto_msgTypes,
392 }.Build()
393 File_google_appengine_v1beta_service_proto = out.File
394 file_google_appengine_v1beta_service_proto_rawDesc = nil
395 file_google_appengine_v1beta_service_proto_goTypes = nil
396 file_google_appengine_v1beta_service_proto_depIdxs = nil
397 }
398
View as plain text