Debian Codegraph @

batch/apiv1/batchpb/volume.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/batch/v1/volume.proto
20
21 package batchpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Volume describes a volume and parameters for it to be mounted to a VM.
38 type Volume struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // The source for the volume.
44 //
45 // Types that are assignable to Source:
46 //
47 // *Volume_Nfs
48 // *Volume_Gcs
49 // *Volume_DeviceName
50 Source isVolume_Source `protobuf_oneof:"source"`
51 // The mount path for the volume, e.g. /mnt/disks/share.
52 MountPath string `protobuf:"bytes,4,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
53 // Mount options vary based on the type of storage volume:
54 //
55 // * For a Cloud Storage bucket, all the mount options provided
56 // by
57 //
58 // the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
59 // are supported.
60 // - For an existing persistent disk, all mount options provided by the
61 // [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
62 // except writing are supported. This is due to restrictions of
63 // [multi-writer
64 // mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
65 // - For any other disk or a Network File System (NFS), all the
66 // mount options provided by the `mount` command are supported.
67 MountOptions []string `protobuf:"bytes,5,rep,name=mount_options,json=mountOptions,proto3" json:"mount_options,omitempty"`
68 }
69
70 func (x *Volume) Reset() {
71 *x = Volume{}
72 mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[0]
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 ms.StoreMessageInfo(mi)
75 }
76
77 func (x *Volume) String() string {
78 return protoimpl.X.MessageStringOf(x)
79 }
80
81 func (*Volume) ProtoMessage() {}
82
83 func (x *Volume) ProtoReflect() protoreflect.Message {
84 mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[0]
85 if x != nil {
86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
87 if ms.LoadMessageInfo() == nil {
88 ms.StoreMessageInfo(mi)
89 }
90 return ms
91 }
92 return mi.MessageOf(x)
93 }
94
95 // Deprecated: Use Volume.ProtoReflect.Descriptor instead.
96 func (*Volume) Descriptor() ([]byte, []int) {
97 return file_google_cloud_batch_v1_volume_proto_rawDescGZIP(), []int{0}
98 }
99
100 func (m *Volume) GetSource() isVolume_Source {
101 if m != nil {
102 return m.Source
103 }
104 return nil
105 }
106
107 func (x *Volume) GetNfs() *NFS {
108 if x, ok := x.GetSource().(*Volume_Nfs); ok {
109 return x.Nfs
110 }
111 return nil
112 }
113
114 func (x *Volume) GetGcs() *GCS {
115 if x, ok := x.GetSource().(*Volume_Gcs); ok {
116 return x.Gcs
117 }
118 return nil
119 }
120
121 func (x *Volume) GetDeviceName() string {
122 if x, ok := x.GetSource().(*Volume_DeviceName); ok {
123 return x.DeviceName
124 }
125 return ""
126 }
127
128 func (x *Volume) GetMountPath() string {
129 if x != nil {
130 return x.MountPath
131 }
132 return ""
133 }
134
135 func (x *Volume) GetMountOptions() []string {
136 if x != nil {
137 return x.MountOptions
138 }
139 return nil
140 }
141
142 type isVolume_Source interface {
143 isVolume_Source()
144 }
145
146 type Volume_Nfs struct {
147 // A Network File System (NFS) volume. For example, a
148 // Filestore file share.
149 Nfs *NFS `protobuf:"bytes,1,opt,name=nfs,proto3,oneof"`
150 }
151
152 type Volume_Gcs struct {
153 // A Google Cloud Storage (GCS) volume.
154 Gcs *GCS `protobuf:"bytes,3,opt,name=gcs,proto3,oneof"`
155 }
156
157 type Volume_DeviceName struct {
158 // Device name of an attached disk volume, which should align with a
159 // device_name specified by
160 // job.allocation_policy.instances[0].policy.disks[i].device_name or
161 // defined by the given instance template in
162 // job.allocation_policy.instances[0].instance_template.
163 DeviceName string `protobuf:"bytes,6,opt,name=device_name,json=deviceName,proto3,oneof"`
164 }
165
166 func (*Volume_Nfs) isVolume_Source() {}
167
168 func (*Volume_Gcs) isVolume_Source() {}
169
170 func (*Volume_DeviceName) isVolume_Source() {}
171
172 // Represents an NFS volume.
173 type NFS struct {
174 state protoimpl.MessageState
175 sizeCache protoimpl.SizeCache
176 unknownFields protoimpl.UnknownFields
177
178 // The IP address of the NFS.
179 Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
180 // Remote source path exported from the NFS, e.g., "/share".
181 RemotePath string `protobuf:"bytes,2,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"`
182 }
183
184 func (x *NFS) Reset() {
185 *x = NFS{}
186 mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[1]
187 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
188 ms.StoreMessageInfo(mi)
189 }
190
191 func (x *NFS) String() string {
192 return protoimpl.X.MessageStringOf(x)
193 }
194
195 func (*NFS) ProtoMessage() {}
196
197 func (x *NFS) ProtoReflect() protoreflect.Message {
198 mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[1]
199 if x != nil {
200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
201 if ms.LoadMessageInfo() == nil {
202 ms.StoreMessageInfo(mi)
203 }
204 return ms
205 }
206 return mi.MessageOf(x)
207 }
208
209 // Deprecated: Use NFS.ProtoReflect.Descriptor instead.
210 func (*NFS) Descriptor() ([]byte, []int) {
211 return file_google_cloud_batch_v1_volume_proto_rawDescGZIP(), []int{1}
212 }
213
214 func (x *NFS) GetServer() string {
215 if x != nil {
216 return x.Server
217 }
218 return ""
219 }
220
221 func (x *NFS) GetRemotePath() string {
222 if x != nil {
223 return x.RemotePath
224 }
225 return ""
226 }
227
228 // Represents a Google Cloud Storage volume.
229 type GCS struct {
230 state protoimpl.MessageState
231 sizeCache protoimpl.SizeCache
232 unknownFields protoimpl.UnknownFields
233
234 // Remote path, either a bucket name or a subdirectory of a bucket, e.g.:
235 // bucket_name, bucket_name/subdirectory/
236 RemotePath string `protobuf:"bytes,1,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"`
237 }
238
239 func (x *GCS) Reset() {
240 *x = GCS{}
241 mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[2]
242 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
243 ms.StoreMessageInfo(mi)
244 }
245
246 func (x *GCS) String() string {
247 return protoimpl.X.MessageStringOf(x)
248 }
249
250 func (*GCS) ProtoMessage() {}
251
252 func (x *GCS) ProtoReflect() protoreflect.Message {
253 mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[2]
254 if x != nil {
255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
256 if ms.LoadMessageInfo() == nil {
257 ms.StoreMessageInfo(mi)
258 }
259 return ms
260 }
261 return mi.MessageOf(x)
262 }
263
264 // Deprecated: Use GCS.ProtoReflect.Descriptor instead.
265 func (*GCS) Descriptor() ([]byte, []int) {
266 return file_google_cloud_batch_v1_volume_proto_rawDescGZIP(), []int{2}
267 }
268
269 func (x *GCS) GetRemotePath() string {
270 if x != nil {
271 return x.RemotePath
272 }
273 return ""
274 }
275
276 var File_google_cloud_batch_v1_volume_proto protoreflect.FileDescriptor
277
278 var file_google_cloud_batch_v1_volume_proto_rawDesc = []byte{
279 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
280 0x61, 0x74, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x70,
281 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
282 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x22, 0xd9, 0x01, 0x0a, 0x06,
283 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x6e, 0x66, 0x73, 0x18, 0x01, 0x20,
284 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
285 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x53, 0x48,
286 0x00, 0x52, 0x03, 0x6e, 0x66, 0x73, 0x12, 0x2e, 0x0a, 0x03, 0x67, 0x63, 0x73, 0x18, 0x03, 0x20,
287 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
288 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x43, 0x53, 0x48,
289 0x00, 0x52, 0x03, 0x67, 0x63, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
290 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x64,
291 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x75,
292 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d,
293 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x75, 0x6e,
294 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52,
295 0x0c, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x08, 0x0a,
296 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x3e, 0x0a, 0x03, 0x4e, 0x46, 0x53, 0x12, 0x16,
297 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
298 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65,
299 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d,
300 0x6f, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x26, 0x0a, 0x03, 0x47, 0x43, 0x53, 0x12, 0x1f,
301 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20,
302 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x42,
303 0xac, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
304 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x56,
305 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6c,
306 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
307 0x6f, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x62, 0x61,
308 0x74, 0x63, 0x68, 0x70, 0x62, 0x3b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x70, 0x62, 0xa2, 0x02, 0x03,
309 0x47, 0x43, 0x42, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
310 0x75, 0x64, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f,
311 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x42, 0x61, 0x74, 0x63, 0x68,
312 0x5c, 0x56, 0x31, 0xea, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
313 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
314 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
315 }
316
317 var (
318 file_google_cloud_batch_v1_volume_proto_rawDescOnce sync.Once
319 file_google_cloud_batch_v1_volume_proto_rawDescData = file_google_cloud_batch_v1_volume_proto_rawDesc
320 )
321
322 func file_google_cloud_batch_v1_volume_proto_rawDescGZIP() []byte {
323 file_google_cloud_batch_v1_volume_proto_rawDescOnce.Do(func() {
324 file_google_cloud_batch_v1_volume_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_batch_v1_volume_proto_rawDescData)
325 })
326 return file_google_cloud_batch_v1_volume_proto_rawDescData
327 }
328
329 var file_google_cloud_batch_v1_volume_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
330 var file_google_cloud_batch_v1_volume_proto_goTypes = []any{
331 (*Volume)(nil), // 0: google.cloud.batch.v1.Volume
332 (*NFS)(nil), // 1: google.cloud.batch.v1.NFS
333 (*GCS)(nil), // 2: google.cloud.batch.v1.GCS
334 }
335 var file_google_cloud_batch_v1_volume_proto_depIdxs = []int32{
336 1, // 0: google.cloud.batch.v1.Volume.nfs:type_name -> google.cloud.batch.v1.NFS
337 2, // 1: google.cloud.batch.v1.Volume.gcs:type_name -> google.cloud.batch.v1.GCS
338 2, // [2:2] is the sub-list for method output_type
339 2, // [2:2] is the sub-list for method input_type
340 2, // [2:2] is the sub-list for extension type_name
341 2, // [2:2] is the sub-list for extension extendee
342 0, // [0:2] is the sub-list for field type_name
343 }
344
345 func init() { file_google_cloud_batch_v1_volume_proto_init() }
346 func file_google_cloud_batch_v1_volume_proto_init() {
347 if File_google_cloud_batch_v1_volume_proto != nil {
348 return
349 }
350 file_google_cloud_batch_v1_volume_proto_msgTypes[0].OneofWrappers = []any{
351 (*Volume_Nfs)(nil),
352 (*Volume_Gcs)(nil),
353 (*Volume_DeviceName)(nil),
354 }
355 type x struct{}
356 out := protoimpl.TypeBuilder{
357 File: protoimpl.DescBuilder{
358 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
359 RawDescriptor: file_google_cloud_batch_v1_volume_proto_rawDesc,
360 NumEnums: 0,
361 NumMessages: 3,
362 NumExtensions: 0,
363 NumServices: 0,
364 },
365 GoTypes: file_google_cloud_batch_v1_volume_proto_goTypes,
366 DependencyIndexes: file_google_cloud_batch_v1_volume_proto_depIdxs,
367 MessageInfos: file_google_cloud_batch_v1_volume_proto_msgTypes,
368 }.Build()
369 File_google_cloud_batch_v1_volume_proto = out.File
370 file_google_cloud_batch_v1_volume_proto_rawDesc = nil
371 file_google_cloud_batch_v1_volume_proto_goTypes = nil
372 file_google_cloud_batch_v1_volume_proto_depIdxs = nil
373 }