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