1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package batch
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 Volume struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44
45
46
47
48
49
50
51
52 Source isVolume_Source `protobuf_oneof:"source"`
53
54 MountPath string `protobuf:"bytes,4,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
55
56
57
58
59
60
61
62
63
64 MountOptions []string `protobuf:"bytes,5,rep,name=mount_options,json=mountOptions,proto3" json:"mount_options,omitempty"`
65 }
66
67 func (x *Volume) Reset() {
68 *x = Volume{}
69 if protoimpl.UnsafeEnabled {
70 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[0]
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 ms.StoreMessageInfo(mi)
73 }
74 }
75
76 func (x *Volume) String() string {
77 return protoimpl.X.MessageStringOf(x)
78 }
79
80 func (*Volume) ProtoMessage() {}
81
82 func (x *Volume) ProtoReflect() protoreflect.Message {
83 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[0]
84 if protoimpl.UnsafeEnabled && x != nil {
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 if ms.LoadMessageInfo() == nil {
87 ms.StoreMessageInfo(mi)
88 }
89 return ms
90 }
91 return mi.MessageOf(x)
92 }
93
94
95 func (*Volume) Descriptor() ([]byte, []int) {
96 return file_google_cloud_batch_v1alpha_volume_proto_rawDescGZIP(), []int{0}
97 }
98
99 func (m *Volume) GetSource() isVolume_Source {
100 if m != nil {
101 return m.Source
102 }
103 return nil
104 }
105
106 func (x *Volume) GetNfs() *NFS {
107 if x, ok := x.GetSource().(*Volume_Nfs); ok {
108 return x.Nfs
109 }
110 return nil
111 }
112
113
114 func (x *Volume) GetPd() *PD {
115 if x, ok := x.GetSource().(*Volume_Pd); ok {
116 return x.Pd
117 }
118 return nil
119 }
120
121 func (x *Volume) GetGcs() *GCS {
122 if x, ok := x.GetSource().(*Volume_Gcs); ok {
123 return x.Gcs
124 }
125 return nil
126 }
127
128 func (x *Volume) GetDeviceName() string {
129 if x, ok := x.GetSource().(*Volume_DeviceName); ok {
130 return x.DeviceName
131 }
132 return ""
133 }
134
135 func (x *Volume) GetMountPath() string {
136 if x != nil {
137 return x.MountPath
138 }
139 return ""
140 }
141
142 func (x *Volume) GetMountOptions() []string {
143 if x != nil {
144 return x.MountOptions
145 }
146 return nil
147 }
148
149 type isVolume_Source interface {
150 isVolume_Source()
151 }
152
153 type Volume_Nfs struct {
154
155
156 Nfs *NFS `protobuf:"bytes,1,opt,name=nfs,proto3,oneof"`
157 }
158
159 type Volume_Pd struct {
160
161
162
163 Pd *PD `protobuf:"bytes,2,opt,name=pd,proto3,oneof"`
164 }
165
166 type Volume_Gcs struct {
167
168 Gcs *GCS `protobuf:"bytes,3,opt,name=gcs,proto3,oneof"`
169 }
170
171 type Volume_DeviceName struct {
172
173
174
175
176
177 DeviceName string `protobuf:"bytes,6,opt,name=device_name,json=deviceName,proto3,oneof"`
178 }
179
180 func (*Volume_Nfs) isVolume_Source() {}
181
182 func (*Volume_Pd) isVolume_Source() {}
183
184 func (*Volume_Gcs) isVolume_Source() {}
185
186 func (*Volume_DeviceName) isVolume_Source() {}
187
188
189 type NFS struct {
190 state protoimpl.MessageState
191 sizeCache protoimpl.SizeCache
192 unknownFields protoimpl.UnknownFields
193
194
195 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
196
197 RemotePath string `protobuf:"bytes,2,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"`
198 }
199
200 func (x *NFS) Reset() {
201 *x = NFS{}
202 if protoimpl.UnsafeEnabled {
203 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[1]
204 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
205 ms.StoreMessageInfo(mi)
206 }
207 }
208
209 func (x *NFS) String() string {
210 return protoimpl.X.MessageStringOf(x)
211 }
212
213 func (*NFS) ProtoMessage() {}
214
215 func (x *NFS) ProtoReflect() protoreflect.Message {
216 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[1]
217 if protoimpl.UnsafeEnabled && x != nil {
218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
219 if ms.LoadMessageInfo() == nil {
220 ms.StoreMessageInfo(mi)
221 }
222 return ms
223 }
224 return mi.MessageOf(x)
225 }
226
227
228 func (*NFS) Descriptor() ([]byte, []int) {
229 return file_google_cloud_batch_v1alpha_volume_proto_rawDescGZIP(), []int{1}
230 }
231
232 func (x *NFS) GetServer() string {
233 if x != nil {
234 return x.Server
235 }
236 return ""
237 }
238
239 func (x *NFS) GetRemotePath() string {
240 if x != nil {
241 return x.RemotePath
242 }
243 return ""
244 }
245
246
247 type PD struct {
248 state protoimpl.MessageState
249 sizeCache protoimpl.SizeCache
250 unknownFields protoimpl.UnknownFields
251
252
253 Disk string `protobuf:"bytes,1,opt,name=disk,proto3" json:"disk,omitempty"`
254
255 Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
256
257
258
259
260
261
262 Existing bool `protobuf:"varint,3,opt,name=existing,proto3" json:"existing,omitempty"`
263 }
264
265 func (x *PD) Reset() {
266 *x = PD{}
267 if protoimpl.UnsafeEnabled {
268 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[2]
269 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
270 ms.StoreMessageInfo(mi)
271 }
272 }
273
274 func (x *PD) String() string {
275 return protoimpl.X.MessageStringOf(x)
276 }
277
278 func (*PD) ProtoMessage() {}
279
280 func (x *PD) ProtoReflect() protoreflect.Message {
281 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[2]
282 if protoimpl.UnsafeEnabled && x != nil {
283 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
284 if ms.LoadMessageInfo() == nil {
285 ms.StoreMessageInfo(mi)
286 }
287 return ms
288 }
289 return mi.MessageOf(x)
290 }
291
292
293 func (*PD) Descriptor() ([]byte, []int) {
294 return file_google_cloud_batch_v1alpha_volume_proto_rawDescGZIP(), []int{2}
295 }
296
297 func (x *PD) GetDisk() string {
298 if x != nil {
299 return x.Disk
300 }
301 return ""
302 }
303
304 func (x *PD) GetDevice() string {
305 if x != nil {
306 return x.Device
307 }
308 return ""
309 }
310
311
312 func (x *PD) GetExisting() bool {
313 if x != nil {
314 return x.Existing
315 }
316 return false
317 }
318
319
320 type GCS struct {
321 state protoimpl.MessageState
322 sizeCache protoimpl.SizeCache
323 unknownFields protoimpl.UnknownFields
324
325
326
327 RemotePath string `protobuf:"bytes,1,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"`
328 }
329
330 func (x *GCS) Reset() {
331 *x = GCS{}
332 if protoimpl.UnsafeEnabled {
333 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[3]
334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
335 ms.StoreMessageInfo(mi)
336 }
337 }
338
339 func (x *GCS) String() string {
340 return protoimpl.X.MessageStringOf(x)
341 }
342
343 func (*GCS) ProtoMessage() {}
344
345 func (x *GCS) ProtoReflect() protoreflect.Message {
346 mi := &file_google_cloud_batch_v1alpha_volume_proto_msgTypes[3]
347 if protoimpl.UnsafeEnabled && x != nil {
348 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
349 if ms.LoadMessageInfo() == nil {
350 ms.StoreMessageInfo(mi)
351 }
352 return ms
353 }
354 return mi.MessageOf(x)
355 }
356
357
358 func (*GCS) Descriptor() ([]byte, []int) {
359 return file_google_cloud_batch_v1alpha_volume_proto_rawDescGZIP(), []int{3}
360 }
361
362 func (x *GCS) GetRemotePath() string {
363 if x != nil {
364 return x.RemotePath
365 }
366 return ""
367 }
368
369 var File_google_cloud_batch_v1alpha_volume_proto protoreflect.FileDescriptor
370
371 var file_google_cloud_batch_v1alpha_volume_proto_rawDesc = []byte{
372 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
373 0x61, 0x74, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x76, 0x6f, 0x6c,
374 0x75, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
375 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31,
376 0x61, 0x6c, 0x70, 0x68, 0x61, 0x22, 0x99, 0x02, 0x0a, 0x06, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65,
377 0x12, 0x33, 0x0a, 0x03, 0x6e, 0x66, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
378 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74,
379 0x63, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4e, 0x46, 0x53, 0x48, 0x00,
380 0x52, 0x03, 0x6e, 0x66, 0x73, 0x12, 0x34, 0x0a, 0x02, 0x70, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
381 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
382 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50,
383 0x44, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x02, 0x70, 0x64, 0x12, 0x33, 0x0a, 0x03, 0x67,
384 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
385 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31,
386 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x43, 0x53, 0x48, 0x00, 0x52, 0x03, 0x67, 0x63, 0x73,
387 0x12, 0x21, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
388 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e,
389 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74,
390 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61,
391 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69,
392 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
393 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
394 0x65, 0x22, 0x3e, 0x0a, 0x03, 0x4e, 0x46, 0x53, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76,
395 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
396 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18,
397 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x74,
398 0x68, 0x22, 0x50, 0x0a, 0x02, 0x50, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x69, 0x73, 0x6b, 0x18,
399 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x73, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x64,
400 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76,
401 0x69, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18,
402 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x65, 0x78, 0x69, 0x73, 0x74,
403 0x69, 0x6e, 0x67, 0x22, 0x26, 0x0a, 0x03, 0x47, 0x43, 0x53, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65,
404 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
405 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x42, 0xd0, 0x01, 0x0a, 0x1e,
406 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
407 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0b,
408 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67,
409 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
410 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
411 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68,
412 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x62, 0x61, 0x74, 0x63, 0x68, 0xa2, 0x02,
413 0x03, 0x47, 0x43, 0x42, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
414 0x6f, 0x75, 0x64, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x56, 0x31, 0x41, 0x6c, 0x70, 0x68,
415 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
416 0x5c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xea, 0x02,
417 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a,
418 0x42, 0x61, 0x74, 0x63, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06,
419 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
420 }
421
422 var (
423 file_google_cloud_batch_v1alpha_volume_proto_rawDescOnce sync.Once
424 file_google_cloud_batch_v1alpha_volume_proto_rawDescData = file_google_cloud_batch_v1alpha_volume_proto_rawDesc
425 )
426
427 func file_google_cloud_batch_v1alpha_volume_proto_rawDescGZIP() []byte {
428 file_google_cloud_batch_v1alpha_volume_proto_rawDescOnce.Do(func() {
429 file_google_cloud_batch_v1alpha_volume_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_batch_v1alpha_volume_proto_rawDescData)
430 })
431 return file_google_cloud_batch_v1alpha_volume_proto_rawDescData
432 }
433
434 var file_google_cloud_batch_v1alpha_volume_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
435 var file_google_cloud_batch_v1alpha_volume_proto_goTypes = []interface{}{
436 (*Volume)(nil),
437 (*NFS)(nil),
438 (*PD)(nil),
439 (*GCS)(nil),
440 }
441 var file_google_cloud_batch_v1alpha_volume_proto_depIdxs = []int32{
442 1,
443 2,
444 3,
445 3,
446 3,
447 3,
448 3,
449 0,
450 }
451
452 func init() { file_google_cloud_batch_v1alpha_volume_proto_init() }
453 func file_google_cloud_batch_v1alpha_volume_proto_init() {
454 if File_google_cloud_batch_v1alpha_volume_proto != nil {
455 return
456 }
457 if !protoimpl.UnsafeEnabled {
458 file_google_cloud_batch_v1alpha_volume_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
459 switch v := v.(*Volume); i {
460 case 0:
461 return &v.state
462 case 1:
463 return &v.sizeCache
464 case 2:
465 return &v.unknownFields
466 default:
467 return nil
468 }
469 }
470 file_google_cloud_batch_v1alpha_volume_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
471 switch v := v.(*NFS); i {
472 case 0:
473 return &v.state
474 case 1:
475 return &v.sizeCache
476 case 2:
477 return &v.unknownFields
478 default:
479 return nil
480 }
481 }
482 file_google_cloud_batch_v1alpha_volume_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
483 switch v := v.(*PD); i {
484 case 0:
485 return &v.state
486 case 1:
487 return &v.sizeCache
488 case 2:
489 return &v.unknownFields
490 default:
491 return nil
492 }
493 }
494 file_google_cloud_batch_v1alpha_volume_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
495 switch v := v.(*GCS); i {
496 case 0:
497 return &v.state
498 case 1:
499 return &v.sizeCache
500 case 2:
501 return &v.unknownFields
502 default:
503 return nil
504 }
505 }
506 }
507 file_google_cloud_batch_v1alpha_volume_proto_msgTypes[0].OneofWrappers = []interface{}{
508 (*Volume_Nfs)(nil),
509 (*Volume_Pd)(nil),
510 (*Volume_Gcs)(nil),
511 (*Volume_DeviceName)(nil),
512 }
513 type x struct{}
514 out := protoimpl.TypeBuilder{
515 File: protoimpl.DescBuilder{
516 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
517 RawDescriptor: file_google_cloud_batch_v1alpha_volume_proto_rawDesc,
518 NumEnums: 0,
519 NumMessages: 4,
520 NumExtensions: 0,
521 NumServices: 0,
522 },
523 GoTypes: file_google_cloud_batch_v1alpha_volume_proto_goTypes,
524 DependencyIndexes: file_google_cloud_batch_v1alpha_volume_proto_depIdxs,
525 MessageInfos: file_google_cloud_batch_v1alpha_volume_proto_msgTypes,
526 }.Build()
527 File_google_cloud_batch_v1alpha_volume_proto = out.File
528 file_google_cloud_batch_v1alpha_volume_proto_rawDesc = nil
529 file_google_cloud_batch_v1alpha_volume_proto_goTypes = nil
530 file_google_cloud_batch_v1alpha_volume_proto_depIdxs = nil
531 }
532
View as plain text