// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 // protoc v4.25.7 // source: google/cloud/batch/v1/volume.proto package batchpb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // Volume describes a volume and parameters for it to be mounted to a VM. type Volume struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The source for the volume. // // Types that are assignable to Source: // // *Volume_Nfs // *Volume_Gcs // *Volume_DeviceName Source isVolume_Source `protobuf_oneof:"source"` // The mount path for the volume, e.g. /mnt/disks/share. MountPath string `protobuf:"bytes,4,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"` // Mount options vary based on the type of storage volume: // // * For a Cloud Storage bucket, all the mount options provided // by // // the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) // are supported. // - For an existing persistent disk, all mount options provided by the // [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) // except writing are supported. This is due to restrictions of // [multi-writer // mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). // - For any other disk or a Network File System (NFS), all the // mount options provided by the `mount` command are supported. MountOptions []string `protobuf:"bytes,5,rep,name=mount_options,json=mountOptions,proto3" json:"mount_options,omitempty"` } func (x *Volume) Reset() { *x = Volume{} mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Volume) String() string { return protoimpl.X.MessageStringOf(x) } func (*Volume) ProtoMessage() {} func (x *Volume) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Volume.ProtoReflect.Descriptor instead. func (*Volume) Descriptor() ([]byte, []int) { return file_google_cloud_batch_v1_volume_proto_rawDescGZIP(), []int{0} } func (m *Volume) GetSource() isVolume_Source { if m != nil { return m.Source } return nil } func (x *Volume) GetNfs() *NFS { if x, ok := x.GetSource().(*Volume_Nfs); ok { return x.Nfs } return nil } func (x *Volume) GetGcs() *GCS { if x, ok := x.GetSource().(*Volume_Gcs); ok { return x.Gcs } return nil } func (x *Volume) GetDeviceName() string { if x, ok := x.GetSource().(*Volume_DeviceName); ok { return x.DeviceName } return "" } func (x *Volume) GetMountPath() string { if x != nil { return x.MountPath } return "" } func (x *Volume) GetMountOptions() []string { if x != nil { return x.MountOptions } return nil } type isVolume_Source interface { isVolume_Source() } type Volume_Nfs struct { // A Network File System (NFS) volume. For example, a // Filestore file share. Nfs *NFS `protobuf:"bytes,1,opt,name=nfs,proto3,oneof"` } type Volume_Gcs struct { // A Google Cloud Storage (GCS) volume. Gcs *GCS `protobuf:"bytes,3,opt,name=gcs,proto3,oneof"` } type Volume_DeviceName struct { // Device name of an attached disk volume, which should align with a // device_name specified by // job.allocation_policy.instances[0].policy.disks[i].device_name or // defined by the given instance template in // job.allocation_policy.instances[0].instance_template. DeviceName string `protobuf:"bytes,6,opt,name=device_name,json=deviceName,proto3,oneof"` } func (*Volume_Nfs) isVolume_Source() {} func (*Volume_Gcs) isVolume_Source() {} func (*Volume_DeviceName) isVolume_Source() {} // Represents an NFS volume. type NFS struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The IP address of the NFS. Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // Remote source path exported from the NFS, e.g., "/share". RemotePath string `protobuf:"bytes,2,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"` } func (x *NFS) Reset() { *x = NFS{} mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NFS) String() string { return protoimpl.X.MessageStringOf(x) } func (*NFS) ProtoMessage() {} func (x *NFS) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use NFS.ProtoReflect.Descriptor instead. func (*NFS) Descriptor() ([]byte, []int) { return file_google_cloud_batch_v1_volume_proto_rawDescGZIP(), []int{1} } func (x *NFS) GetServer() string { if x != nil { return x.Server } return "" } func (x *NFS) GetRemotePath() string { if x != nil { return x.RemotePath } return "" } // Represents a Google Cloud Storage volume. type GCS struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Remote path, either a bucket name or a subdirectory of a bucket, e.g.: // bucket_name, bucket_name/subdirectory/ RemotePath string `protobuf:"bytes,1,opt,name=remote_path,json=remotePath,proto3" json:"remote_path,omitempty"` } func (x *GCS) Reset() { *x = GCS{} mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GCS) String() string { return protoimpl.X.MessageStringOf(x) } func (*GCS) ProtoMessage() {} func (x *GCS) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_batch_v1_volume_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GCS.ProtoReflect.Descriptor instead. func (*GCS) Descriptor() ([]byte, []int) { return file_google_cloud_batch_v1_volume_proto_rawDescGZIP(), []int{2} } func (x *GCS) GetRemotePath() string { if x != nil { return x.RemotePath } return "" } var File_google_cloud_batch_v1_volume_proto protoreflect.FileDescriptor var file_google_cloud_batch_v1_volume_proto_rawDesc = []byte{ 0x0a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x22, 0xd9, 0x01, 0x0a, 0x06, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x03, 0x6e, 0x66, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x46, 0x53, 0x48, 0x00, 0x52, 0x03, 0x6e, 0x66, 0x73, 0x12, 0x2e, 0x0a, 0x03, 0x67, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x43, 0x53, 0x48, 0x00, 0x52, 0x03, 0x67, 0x63, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x3e, 0x0a, 0x03, 0x4e, 0x46, 0x53, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x26, 0x0a, 0x03, 0x47, 0x43, 0x53, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x42, 0xac, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x70, 0x62, 0x3b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x42, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_google_cloud_batch_v1_volume_proto_rawDescOnce sync.Once file_google_cloud_batch_v1_volume_proto_rawDescData = file_google_cloud_batch_v1_volume_proto_rawDesc ) func file_google_cloud_batch_v1_volume_proto_rawDescGZIP() []byte { file_google_cloud_batch_v1_volume_proto_rawDescOnce.Do(func() { file_google_cloud_batch_v1_volume_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_batch_v1_volume_proto_rawDescData) }) return file_google_cloud_batch_v1_volume_proto_rawDescData } var file_google_cloud_batch_v1_volume_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_google_cloud_batch_v1_volume_proto_goTypes = []any{ (*Volume)(nil), // 0: google.cloud.batch.v1.Volume (*NFS)(nil), // 1: google.cloud.batch.v1.NFS (*GCS)(nil), // 2: google.cloud.batch.v1.GCS } var file_google_cloud_batch_v1_volume_proto_depIdxs = []int32{ 1, // 0: google.cloud.batch.v1.Volume.nfs:type_name -> google.cloud.batch.v1.NFS 2, // 1: google.cloud.batch.v1.Volume.gcs:type_name -> google.cloud.batch.v1.GCS 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_google_cloud_batch_v1_volume_proto_init() } func file_google_cloud_batch_v1_volume_proto_init() { if File_google_cloud_batch_v1_volume_proto != nil { return } file_google_cloud_batch_v1_volume_proto_msgTypes[0].OneofWrappers = []any{ (*Volume_Nfs)(nil), (*Volume_Gcs)(nil), (*Volume_DeviceName)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_cloud_batch_v1_volume_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, GoTypes: file_google_cloud_batch_v1_volume_proto_goTypes, DependencyIndexes: file_google_cloud_batch_v1_volume_proto_depIdxs, MessageInfos: file_google_cloud_batch_v1_volume_proto_msgTypes, }.Build() File_google_cloud_batch_v1_volume_proto = out.File file_google_cloud_batch_v1_volume_proto_rawDesc = nil file_google_cloud_batch_v1_volume_proto_goTypes = nil file_google_cloud_batch_v1_volume_proto_depIdxs = nil }