1// Copyright 2021 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.26.0 18// protoc v3.12.2 19// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto 20 21package datacatalog 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 _ "google.golang.org/genproto/googleapis/api/annotations" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37) 38 39// Describes a Cloud Storage fileset entry. 40type GcsFilesetSpec struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // Required. Patterns to identify a set of files in Google Cloud Storage. 46 // 47 // For more information, see [Wildcard Names] 48 // (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 49 // 50 // Note: Currently, bucket wildcards are not supported. 51 // 52 // Examples of valid `file_patterns`: 53 // 54 // * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 55 // directory 56 // * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 57 // and all subdirectories 58 // * `gs://bucket_name/file*`: matches files prefixed by `file` in 59 // `bucket_name` 60 // * `gs://bucket_name/??.txt`: matches files with two characters followed by 61 // `.txt` in `bucket_name` 62 // * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 63 // vowel character followed by `.txt` in 64 // `bucket_name` 65 // * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 66 // or `m` followed by `.txt` in `bucket_name` 67 // * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 68 // the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 69 // * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 70 // 71 // You can combine wildcards to match complex sets of files, for example: 72 // 73 // `gs://bucket_name/[a-m]??.j*g` 74 FilePatterns []string `protobuf:"bytes,1,rep,name=file_patterns,json=filePatterns,proto3" json:"file_patterns,omitempty"` 75 // Output only. Sample files contained in this fileset, not all files 76 // contained in this fileset are represented here. 77 SampleGcsFileSpecs []*GcsFileSpec `protobuf:"bytes,2,rep,name=sample_gcs_file_specs,json=sampleGcsFileSpecs,proto3" json:"sample_gcs_file_specs,omitempty"` 78} 79 80func (x *GcsFilesetSpec) Reset() { 81 *x = GcsFilesetSpec{} 82 if protoimpl.UnsafeEnabled { 83 mi := &file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes[0] 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 ms.StoreMessageInfo(mi) 86 } 87} 88 89func (x *GcsFilesetSpec) String() string { 90 return protoimpl.X.MessageStringOf(x) 91} 92 93func (*GcsFilesetSpec) ProtoMessage() {} 94 95func (x *GcsFilesetSpec) ProtoReflect() protoreflect.Message { 96 mi := &file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes[0] 97 if protoimpl.UnsafeEnabled && x != nil { 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 if ms.LoadMessageInfo() == nil { 100 ms.StoreMessageInfo(mi) 101 } 102 return ms 103 } 104 return mi.MessageOf(x) 105} 106 107// Deprecated: Use GcsFilesetSpec.ProtoReflect.Descriptor instead. 108func (*GcsFilesetSpec) Descriptor() ([]byte, []int) { 109 return file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescGZIP(), []int{0} 110} 111 112func (x *GcsFilesetSpec) GetFilePatterns() []string { 113 if x != nil { 114 return x.FilePatterns 115 } 116 return nil 117} 118 119func (x *GcsFilesetSpec) GetSampleGcsFileSpecs() []*GcsFileSpec { 120 if x != nil { 121 return x.SampleGcsFileSpecs 122 } 123 return nil 124} 125 126// Specification of a single file in Cloud Storage. 127type GcsFileSpec struct { 128 state protoimpl.MessageState 129 sizeCache protoimpl.SizeCache 130 unknownFields protoimpl.UnknownFields 131 132 // Required. Full file path. Example: `gs://bucket_name/a/b.txt`. 133 FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` 134 // Output only. Creation, modification, and expiration timestamps of a Cloud Storage file. 135 GcsTimestamps *SystemTimestamps `protobuf:"bytes,2,opt,name=gcs_timestamps,json=gcsTimestamps,proto3" json:"gcs_timestamps,omitempty"` 136 // Output only. File size in bytes. 137 SizeBytes int64 `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"` 138} 139 140func (x *GcsFileSpec) Reset() { 141 *x = GcsFileSpec{} 142 if protoimpl.UnsafeEnabled { 143 mi := &file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes[1] 144 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 145 ms.StoreMessageInfo(mi) 146 } 147} 148 149func (x *GcsFileSpec) String() string { 150 return protoimpl.X.MessageStringOf(x) 151} 152 153func (*GcsFileSpec) ProtoMessage() {} 154 155func (x *GcsFileSpec) ProtoReflect() protoreflect.Message { 156 mi := &file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes[1] 157 if protoimpl.UnsafeEnabled && x != nil { 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 if ms.LoadMessageInfo() == nil { 160 ms.StoreMessageInfo(mi) 161 } 162 return ms 163 } 164 return mi.MessageOf(x) 165} 166 167// Deprecated: Use GcsFileSpec.ProtoReflect.Descriptor instead. 168func (*GcsFileSpec) Descriptor() ([]byte, []int) { 169 return file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescGZIP(), []int{1} 170} 171 172func (x *GcsFileSpec) GetFilePath() string { 173 if x != nil { 174 return x.FilePath 175 } 176 return "" 177} 178 179func (x *GcsFileSpec) GetGcsTimestamps() *SystemTimestamps { 180 if x != nil { 181 return x.GcsTimestamps 182 } 183 return nil 184} 185 186func (x *GcsFileSpec) GetSizeBytes() int64 { 187 if x != nil { 188 return x.SizeBytes 189 } 190 return 0 191} 192 193var File_google_cloud_datacatalog_v1_gcs_fileset_spec_proto protoreflect.FileDescriptor 194 195var file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDesc = []byte{ 196 0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 197 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x63, 198 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 199 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 200 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 201 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 202 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 203 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 204 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x76, 0x31, 0x2f, 205 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 206 0x22, 0x9c, 0x01, 0x0a, 0x0e, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x65, 0x74, 0x53, 207 0x70, 0x65, 0x63, 0x12, 0x28, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x74, 208 0x65, 0x72, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 209 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 0x60, 0x0a, 210 0x15, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 211 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 212 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 213 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x46, 0x69, 214 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x73, 0x61, 0x6d, 215 0x70, 0x6c, 0x65, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x73, 0x22, 216 0xae, 0x01, 0x0a, 0x0b, 0x47, 0x63, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 217 0x20, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 218 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 219 0x68, 0x12, 0x59, 0x0a, 0x0e, 0x67, 0x63, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 220 0x6d, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 221 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 222 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x54, 0x69, 223 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x67, 224 0x63, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x12, 0x22, 0x0a, 0x0a, 225 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 226 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 227 0x42, 0xcb, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 228 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 229 0x67, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 230 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 231 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 232 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 233 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xf8, 0x01, 234 0x01, 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 235 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x56, 0x31, 0xca, 236 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 237 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1e, 238 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 239 0x61, 0x74, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 240 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 241} 242 243var ( 244 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescOnce sync.Once 245 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescData = file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDesc 246) 247 248func file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescGZIP() []byte { 249 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescOnce.Do(func() { 250 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescData) 251 }) 252 return file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDescData 253} 254 255var file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 256var file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_goTypes = []interface{}{ 257 (*GcsFilesetSpec)(nil), // 0: google.cloud.datacatalog.v1.GcsFilesetSpec 258 (*GcsFileSpec)(nil), // 1: google.cloud.datacatalog.v1.GcsFileSpec 259 (*SystemTimestamps)(nil), // 2: google.cloud.datacatalog.v1.SystemTimestamps 260} 261var file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_depIdxs = []int32{ 262 1, // 0: google.cloud.datacatalog.v1.GcsFilesetSpec.sample_gcs_file_specs:type_name -> google.cloud.datacatalog.v1.GcsFileSpec 263 2, // 1: google.cloud.datacatalog.v1.GcsFileSpec.gcs_timestamps:type_name -> google.cloud.datacatalog.v1.SystemTimestamps 264 2, // [2:2] is the sub-list for method output_type 265 2, // [2:2] is the sub-list for method input_type 266 2, // [2:2] is the sub-list for extension type_name 267 2, // [2:2] is the sub-list for extension extendee 268 0, // [0:2] is the sub-list for field type_name 269} 270 271func init() { file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_init() } 272func file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_init() { 273 if File_google_cloud_datacatalog_v1_gcs_fileset_spec_proto != nil { 274 return 275 } 276 file_google_cloud_datacatalog_v1_timestamps_proto_init() 277 if !protoimpl.UnsafeEnabled { 278 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 279 switch v := v.(*GcsFilesetSpec); i { 280 case 0: 281 return &v.state 282 case 1: 283 return &v.sizeCache 284 case 2: 285 return &v.unknownFields 286 default: 287 return nil 288 } 289 } 290 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 291 switch v := v.(*GcsFileSpec); i { 292 case 0: 293 return &v.state 294 case 1: 295 return &v.sizeCache 296 case 2: 297 return &v.unknownFields 298 default: 299 return nil 300 } 301 } 302 } 303 type x struct{} 304 out := protoimpl.TypeBuilder{ 305 File: protoimpl.DescBuilder{ 306 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 307 RawDescriptor: file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDesc, 308 NumEnums: 0, 309 NumMessages: 2, 310 NumExtensions: 0, 311 NumServices: 0, 312 }, 313 GoTypes: file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_goTypes, 314 DependencyIndexes: file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_depIdxs, 315 MessageInfos: file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_msgTypes, 316 }.Build() 317 File_google_cloud_datacatalog_v1_gcs_fileset_spec_proto = out.File 318 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_rawDesc = nil 319 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_goTypes = nil 320 file_google_cloud_datacatalog_v1_gcs_fileset_spec_proto_depIdxs = nil 321} 322