1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto 18 19 package com.google.cloud.datacatalog.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Describes a Cloud Storage fileset entry. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.datacatalog.v1.GcsFilesetSpec} 29 */ 30 public final class GcsFilesetSpec extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFilesetSpec) 33 GcsFilesetSpecOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use GcsFilesetSpec.newBuilder() to construct. GcsFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private GcsFilesetSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 GcsFilesetSpec()40 private GcsFilesetSpec() { 41 filePatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; 42 sampleGcsFileSpecs_ = java.util.Collections.emptyList(); 43 } 44 45 @java.lang.Override 46 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)47 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 48 return new GcsFilesetSpec(); 49 } 50 51 @java.lang.Override getUnknownFields()52 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 53 return this.unknownFields; 54 } 55 getDescriptor()56 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 57 return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass 58 .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor; 59 } 60 61 @java.lang.Override 62 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()63 internalGetFieldAccessorTable() { 64 return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass 65 .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable 66 .ensureFieldAccessorsInitialized( 67 com.google.cloud.datacatalog.v1.GcsFilesetSpec.class, 68 com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder.class); 69 } 70 71 public static final int FILE_PATTERNS_FIELD_NUMBER = 1; 72 73 @SuppressWarnings("serial") 74 private com.google.protobuf.LazyStringList filePatterns_; 75 /** 76 * 77 * 78 * <pre> 79 * Required. Patterns to identify a set of files in Google Cloud Storage. 80 * For more information, see [Wildcard Names] 81 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 82 * Note: Currently, bucket wildcards are not supported. 83 * Examples of valid `file_patterns`: 84 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 85 * directory 86 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 87 * and all subdirectories 88 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 89 * `bucket_name` 90 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 91 * `.txt` in `bucket_name` 92 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 93 * vowel character followed by `.txt` in 94 * `bucket_name` 95 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 96 * or `m` followed by `.txt` in `bucket_name` 97 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 98 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 99 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 100 * You can combine wildcards to match complex sets of files, for example: 101 * `gs://bucket_name/[a-m]??.j*g` 102 * </pre> 103 * 104 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 105 * 106 * @return A list containing the filePatterns. 107 */ getFilePatternsList()108 public com.google.protobuf.ProtocolStringList getFilePatternsList() { 109 return filePatterns_; 110 } 111 /** 112 * 113 * 114 * <pre> 115 * Required. Patterns to identify a set of files in Google Cloud Storage. 116 * For more information, see [Wildcard Names] 117 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 118 * Note: Currently, bucket wildcards are not supported. 119 * Examples of valid `file_patterns`: 120 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 121 * directory 122 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 123 * and all subdirectories 124 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 125 * `bucket_name` 126 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 127 * `.txt` in `bucket_name` 128 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 129 * vowel character followed by `.txt` in 130 * `bucket_name` 131 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 132 * or `m` followed by `.txt` in `bucket_name` 133 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 134 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 135 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 136 * You can combine wildcards to match complex sets of files, for example: 137 * `gs://bucket_name/[a-m]??.j*g` 138 * </pre> 139 * 140 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 141 * 142 * @return The count of filePatterns. 143 */ getFilePatternsCount()144 public int getFilePatternsCount() { 145 return filePatterns_.size(); 146 } 147 /** 148 * 149 * 150 * <pre> 151 * Required. Patterns to identify a set of files in Google Cloud Storage. 152 * For more information, see [Wildcard Names] 153 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 154 * Note: Currently, bucket wildcards are not supported. 155 * Examples of valid `file_patterns`: 156 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 157 * directory 158 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 159 * and all subdirectories 160 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 161 * `bucket_name` 162 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 163 * `.txt` in `bucket_name` 164 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 165 * vowel character followed by `.txt` in 166 * `bucket_name` 167 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 168 * or `m` followed by `.txt` in `bucket_name` 169 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 170 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 171 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 172 * You can combine wildcards to match complex sets of files, for example: 173 * `gs://bucket_name/[a-m]??.j*g` 174 * </pre> 175 * 176 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 177 * 178 * @param index The index of the element to return. 179 * @return The filePatterns at the given index. 180 */ getFilePatterns(int index)181 public java.lang.String getFilePatterns(int index) { 182 return filePatterns_.get(index); 183 } 184 /** 185 * 186 * 187 * <pre> 188 * Required. Patterns to identify a set of files in Google Cloud Storage. 189 * For more information, see [Wildcard Names] 190 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 191 * Note: Currently, bucket wildcards are not supported. 192 * Examples of valid `file_patterns`: 193 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 194 * directory 195 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 196 * and all subdirectories 197 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 198 * `bucket_name` 199 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 200 * `.txt` in `bucket_name` 201 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 202 * vowel character followed by `.txt` in 203 * `bucket_name` 204 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 205 * or `m` followed by `.txt` in `bucket_name` 206 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 207 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 208 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 209 * You can combine wildcards to match complex sets of files, for example: 210 * `gs://bucket_name/[a-m]??.j*g` 211 * </pre> 212 * 213 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 214 * 215 * @param index The index of the value to return. 216 * @return The bytes of the filePatterns at the given index. 217 */ getFilePatternsBytes(int index)218 public com.google.protobuf.ByteString getFilePatternsBytes(int index) { 219 return filePatterns_.getByteString(index); 220 } 221 222 public static final int SAMPLE_GCS_FILE_SPECS_FIELD_NUMBER = 2; 223 224 @SuppressWarnings("serial") 225 private java.util.List<com.google.cloud.datacatalog.v1.GcsFileSpec> sampleGcsFileSpecs_; 226 /** 227 * 228 * 229 * <pre> 230 * Output only. Sample files contained in this fileset, not all files 231 * contained in this fileset are represented here. 232 * </pre> 233 * 234 * <code> 235 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 236 * </code> 237 */ 238 @java.lang.Override getSampleGcsFileSpecsList()239 public java.util.List<com.google.cloud.datacatalog.v1.GcsFileSpec> getSampleGcsFileSpecsList() { 240 return sampleGcsFileSpecs_; 241 } 242 /** 243 * 244 * 245 * <pre> 246 * Output only. Sample files contained in this fileset, not all files 247 * contained in this fileset are represented here. 248 * </pre> 249 * 250 * <code> 251 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 252 * </code> 253 */ 254 @java.lang.Override 255 public java.util.List<? extends com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> getSampleGcsFileSpecsOrBuilderList()256 getSampleGcsFileSpecsOrBuilderList() { 257 return sampleGcsFileSpecs_; 258 } 259 /** 260 * 261 * 262 * <pre> 263 * Output only. Sample files contained in this fileset, not all files 264 * contained in this fileset are represented here. 265 * </pre> 266 * 267 * <code> 268 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 269 * </code> 270 */ 271 @java.lang.Override getSampleGcsFileSpecsCount()272 public int getSampleGcsFileSpecsCount() { 273 return sampleGcsFileSpecs_.size(); 274 } 275 /** 276 * 277 * 278 * <pre> 279 * Output only. Sample files contained in this fileset, not all files 280 * contained in this fileset are represented here. 281 * </pre> 282 * 283 * <code> 284 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 285 * </code> 286 */ 287 @java.lang.Override getSampleGcsFileSpecs(int index)288 public com.google.cloud.datacatalog.v1.GcsFileSpec getSampleGcsFileSpecs(int index) { 289 return sampleGcsFileSpecs_.get(index); 290 } 291 /** 292 * 293 * 294 * <pre> 295 * Output only. Sample files contained in this fileset, not all files 296 * contained in this fileset are represented here. 297 * </pre> 298 * 299 * <code> 300 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 301 * </code> 302 */ 303 @java.lang.Override getSampleGcsFileSpecsOrBuilder( int index)304 public com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( 305 int index) { 306 return sampleGcsFileSpecs_.get(index); 307 } 308 309 private byte memoizedIsInitialized = -1; 310 311 @java.lang.Override isInitialized()312 public final boolean isInitialized() { 313 byte isInitialized = memoizedIsInitialized; 314 if (isInitialized == 1) return true; 315 if (isInitialized == 0) return false; 316 317 memoizedIsInitialized = 1; 318 return true; 319 } 320 321 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)322 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 323 for (int i = 0; i < filePatterns_.size(); i++) { 324 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePatterns_.getRaw(i)); 325 } 326 for (int i = 0; i < sampleGcsFileSpecs_.size(); i++) { 327 output.writeMessage(2, sampleGcsFileSpecs_.get(i)); 328 } 329 getUnknownFields().writeTo(output); 330 } 331 332 @java.lang.Override getSerializedSize()333 public int getSerializedSize() { 334 int size = memoizedSize; 335 if (size != -1) return size; 336 337 size = 0; 338 { 339 int dataSize = 0; 340 for (int i = 0; i < filePatterns_.size(); i++) { 341 dataSize += computeStringSizeNoTag(filePatterns_.getRaw(i)); 342 } 343 size += dataSize; 344 size += 1 * getFilePatternsList().size(); 345 } 346 for (int i = 0; i < sampleGcsFileSpecs_.size(); i++) { 347 size += 348 com.google.protobuf.CodedOutputStream.computeMessageSize(2, sampleGcsFileSpecs_.get(i)); 349 } 350 size += getUnknownFields().getSerializedSize(); 351 memoizedSize = size; 352 return size; 353 } 354 355 @java.lang.Override equals(final java.lang.Object obj)356 public boolean equals(final java.lang.Object obj) { 357 if (obj == this) { 358 return true; 359 } 360 if (!(obj instanceof com.google.cloud.datacatalog.v1.GcsFilesetSpec)) { 361 return super.equals(obj); 362 } 363 com.google.cloud.datacatalog.v1.GcsFilesetSpec other = 364 (com.google.cloud.datacatalog.v1.GcsFilesetSpec) obj; 365 366 if (!getFilePatternsList().equals(other.getFilePatternsList())) return false; 367 if (!getSampleGcsFileSpecsList().equals(other.getSampleGcsFileSpecsList())) return false; 368 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 369 return true; 370 } 371 372 @java.lang.Override hashCode()373 public int hashCode() { 374 if (memoizedHashCode != 0) { 375 return memoizedHashCode; 376 } 377 int hash = 41; 378 hash = (19 * hash) + getDescriptor().hashCode(); 379 if (getFilePatternsCount() > 0) { 380 hash = (37 * hash) + FILE_PATTERNS_FIELD_NUMBER; 381 hash = (53 * hash) + getFilePatternsList().hashCode(); 382 } 383 if (getSampleGcsFileSpecsCount() > 0) { 384 hash = (37 * hash) + SAMPLE_GCS_FILE_SPECS_FIELD_NUMBER; 385 hash = (53 * hash) + getSampleGcsFileSpecsList().hashCode(); 386 } 387 hash = (29 * hash) + getUnknownFields().hashCode(); 388 memoizedHashCode = hash; 389 return hash; 390 } 391 parseFrom(java.nio.ByteBuffer data)392 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom(java.nio.ByteBuffer data) 393 throws com.google.protobuf.InvalidProtocolBufferException { 394 return PARSER.parseFrom(data); 395 } 396 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)397 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 398 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 399 throws com.google.protobuf.InvalidProtocolBufferException { 400 return PARSER.parseFrom(data, extensionRegistry); 401 } 402 parseFrom( com.google.protobuf.ByteString data)403 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 404 com.google.protobuf.ByteString data) 405 throws com.google.protobuf.InvalidProtocolBufferException { 406 return PARSER.parseFrom(data); 407 } 408 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)409 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 410 com.google.protobuf.ByteString data, 411 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 412 throws com.google.protobuf.InvalidProtocolBufferException { 413 return PARSER.parseFrom(data, extensionRegistry); 414 } 415 parseFrom(byte[] data)416 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom(byte[] data) 417 throws com.google.protobuf.InvalidProtocolBufferException { 418 return PARSER.parseFrom(data); 419 } 420 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)421 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 422 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 423 throws com.google.protobuf.InvalidProtocolBufferException { 424 return PARSER.parseFrom(data, extensionRegistry); 425 } 426 parseFrom(java.io.InputStream input)427 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom(java.io.InputStream input) 428 throws java.io.IOException { 429 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 430 } 431 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)432 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 433 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 434 throws java.io.IOException { 435 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 436 PARSER, input, extensionRegistry); 437 } 438 parseDelimitedFrom( java.io.InputStream input)439 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseDelimitedFrom( 440 java.io.InputStream input) throws java.io.IOException { 441 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 442 } 443 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)444 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseDelimitedFrom( 445 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 446 throws java.io.IOException { 447 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 448 PARSER, input, extensionRegistry); 449 } 450 parseFrom( com.google.protobuf.CodedInputStream input)451 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 452 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 453 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 454 } 455 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)456 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( 457 com.google.protobuf.CodedInputStream input, 458 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 459 throws java.io.IOException { 460 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 461 PARSER, input, extensionRegistry); 462 } 463 464 @java.lang.Override newBuilderForType()465 public Builder newBuilderForType() { 466 return newBuilder(); 467 } 468 newBuilder()469 public static Builder newBuilder() { 470 return DEFAULT_INSTANCE.toBuilder(); 471 } 472 newBuilder(com.google.cloud.datacatalog.v1.GcsFilesetSpec prototype)473 public static Builder newBuilder(com.google.cloud.datacatalog.v1.GcsFilesetSpec prototype) { 474 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 475 } 476 477 @java.lang.Override toBuilder()478 public Builder toBuilder() { 479 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 480 } 481 482 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)483 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 484 Builder builder = new Builder(parent); 485 return builder; 486 } 487 /** 488 * 489 * 490 * <pre> 491 * Describes a Cloud Storage fileset entry. 492 * </pre> 493 * 494 * Protobuf type {@code google.cloud.datacatalog.v1.GcsFilesetSpec} 495 */ 496 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 497 implements 498 // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GcsFilesetSpec) 499 com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder { getDescriptor()500 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 501 return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass 502 .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor; 503 } 504 505 @java.lang.Override 506 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()507 internalGetFieldAccessorTable() { 508 return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass 509 .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable 510 .ensureFieldAccessorsInitialized( 511 com.google.cloud.datacatalog.v1.GcsFilesetSpec.class, 512 com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder.class); 513 } 514 515 // Construct using com.google.cloud.datacatalog.v1.GcsFilesetSpec.newBuilder() Builder()516 private Builder() {} 517 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)518 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 519 super(parent); 520 } 521 522 @java.lang.Override clear()523 public Builder clear() { 524 super.clear(); 525 bitField0_ = 0; 526 filePatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; 527 bitField0_ = (bitField0_ & ~0x00000001); 528 if (sampleGcsFileSpecsBuilder_ == null) { 529 sampleGcsFileSpecs_ = java.util.Collections.emptyList(); 530 } else { 531 sampleGcsFileSpecs_ = null; 532 sampleGcsFileSpecsBuilder_.clear(); 533 } 534 bitField0_ = (bitField0_ & ~0x00000002); 535 return this; 536 } 537 538 @java.lang.Override getDescriptorForType()539 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 540 return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass 541 .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor; 542 } 543 544 @java.lang.Override getDefaultInstanceForType()545 public com.google.cloud.datacatalog.v1.GcsFilesetSpec getDefaultInstanceForType() { 546 return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); 547 } 548 549 @java.lang.Override build()550 public com.google.cloud.datacatalog.v1.GcsFilesetSpec build() { 551 com.google.cloud.datacatalog.v1.GcsFilesetSpec result = buildPartial(); 552 if (!result.isInitialized()) { 553 throw newUninitializedMessageException(result); 554 } 555 return result; 556 } 557 558 @java.lang.Override buildPartial()559 public com.google.cloud.datacatalog.v1.GcsFilesetSpec buildPartial() { 560 com.google.cloud.datacatalog.v1.GcsFilesetSpec result = 561 new com.google.cloud.datacatalog.v1.GcsFilesetSpec(this); 562 buildPartialRepeatedFields(result); 563 if (bitField0_ != 0) { 564 buildPartial0(result); 565 } 566 onBuilt(); 567 return result; 568 } 569 buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.GcsFilesetSpec result)570 private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.GcsFilesetSpec result) { 571 if (((bitField0_ & 0x00000001) != 0)) { 572 filePatterns_ = filePatterns_.getUnmodifiableView(); 573 bitField0_ = (bitField0_ & ~0x00000001); 574 } 575 result.filePatterns_ = filePatterns_; 576 if (sampleGcsFileSpecsBuilder_ == null) { 577 if (((bitField0_ & 0x00000002) != 0)) { 578 sampleGcsFileSpecs_ = java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); 579 bitField0_ = (bitField0_ & ~0x00000002); 580 } 581 result.sampleGcsFileSpecs_ = sampleGcsFileSpecs_; 582 } else { 583 result.sampleGcsFileSpecs_ = sampleGcsFileSpecsBuilder_.build(); 584 } 585 } 586 buildPartial0(com.google.cloud.datacatalog.v1.GcsFilesetSpec result)587 private void buildPartial0(com.google.cloud.datacatalog.v1.GcsFilesetSpec result) { 588 int from_bitField0_ = bitField0_; 589 } 590 591 @java.lang.Override clone()592 public Builder clone() { 593 return super.clone(); 594 } 595 596 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)597 public Builder setField( 598 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 599 return super.setField(field, value); 600 } 601 602 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)603 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 604 return super.clearField(field); 605 } 606 607 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)608 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 609 return super.clearOneof(oneof); 610 } 611 612 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)613 public Builder setRepeatedField( 614 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 615 return super.setRepeatedField(field, index, value); 616 } 617 618 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)619 public Builder addRepeatedField( 620 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 621 return super.addRepeatedField(field, value); 622 } 623 624 @java.lang.Override mergeFrom(com.google.protobuf.Message other)625 public Builder mergeFrom(com.google.protobuf.Message other) { 626 if (other instanceof com.google.cloud.datacatalog.v1.GcsFilesetSpec) { 627 return mergeFrom((com.google.cloud.datacatalog.v1.GcsFilesetSpec) other); 628 } else { 629 super.mergeFrom(other); 630 return this; 631 } 632 } 633 mergeFrom(com.google.cloud.datacatalog.v1.GcsFilesetSpec other)634 public Builder mergeFrom(com.google.cloud.datacatalog.v1.GcsFilesetSpec other) { 635 if (other == com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance()) return this; 636 if (!other.filePatterns_.isEmpty()) { 637 if (filePatterns_.isEmpty()) { 638 filePatterns_ = other.filePatterns_; 639 bitField0_ = (bitField0_ & ~0x00000001); 640 } else { 641 ensureFilePatternsIsMutable(); 642 filePatterns_.addAll(other.filePatterns_); 643 } 644 onChanged(); 645 } 646 if (sampleGcsFileSpecsBuilder_ == null) { 647 if (!other.sampleGcsFileSpecs_.isEmpty()) { 648 if (sampleGcsFileSpecs_.isEmpty()) { 649 sampleGcsFileSpecs_ = other.sampleGcsFileSpecs_; 650 bitField0_ = (bitField0_ & ~0x00000002); 651 } else { 652 ensureSampleGcsFileSpecsIsMutable(); 653 sampleGcsFileSpecs_.addAll(other.sampleGcsFileSpecs_); 654 } 655 onChanged(); 656 } 657 } else { 658 if (!other.sampleGcsFileSpecs_.isEmpty()) { 659 if (sampleGcsFileSpecsBuilder_.isEmpty()) { 660 sampleGcsFileSpecsBuilder_.dispose(); 661 sampleGcsFileSpecsBuilder_ = null; 662 sampleGcsFileSpecs_ = other.sampleGcsFileSpecs_; 663 bitField0_ = (bitField0_ & ~0x00000002); 664 sampleGcsFileSpecsBuilder_ = 665 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 666 ? getSampleGcsFileSpecsFieldBuilder() 667 : null; 668 } else { 669 sampleGcsFileSpecsBuilder_.addAllMessages(other.sampleGcsFileSpecs_); 670 } 671 } 672 } 673 this.mergeUnknownFields(other.getUnknownFields()); 674 onChanged(); 675 return this; 676 } 677 678 @java.lang.Override isInitialized()679 public final boolean isInitialized() { 680 return true; 681 } 682 683 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)684 public Builder mergeFrom( 685 com.google.protobuf.CodedInputStream input, 686 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 687 throws java.io.IOException { 688 if (extensionRegistry == null) { 689 throw new java.lang.NullPointerException(); 690 } 691 try { 692 boolean done = false; 693 while (!done) { 694 int tag = input.readTag(); 695 switch (tag) { 696 case 0: 697 done = true; 698 break; 699 case 10: 700 { 701 java.lang.String s = input.readStringRequireUtf8(); 702 ensureFilePatternsIsMutable(); 703 filePatterns_.add(s); 704 break; 705 } // case 10 706 case 18: 707 { 708 com.google.cloud.datacatalog.v1.GcsFileSpec m = 709 input.readMessage( 710 com.google.cloud.datacatalog.v1.GcsFileSpec.parser(), extensionRegistry); 711 if (sampleGcsFileSpecsBuilder_ == null) { 712 ensureSampleGcsFileSpecsIsMutable(); 713 sampleGcsFileSpecs_.add(m); 714 } else { 715 sampleGcsFileSpecsBuilder_.addMessage(m); 716 } 717 break; 718 } // case 18 719 default: 720 { 721 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 722 done = true; // was an endgroup tag 723 } 724 break; 725 } // default: 726 } // switch (tag) 727 } // while (!done) 728 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 729 throw e.unwrapIOException(); 730 } finally { 731 onChanged(); 732 } // finally 733 return this; 734 } 735 736 private int bitField0_; 737 738 private com.google.protobuf.LazyStringList filePatterns_ = 739 com.google.protobuf.LazyStringArrayList.EMPTY; 740 ensureFilePatternsIsMutable()741 private void ensureFilePatternsIsMutable() { 742 if (!((bitField0_ & 0x00000001) != 0)) { 743 filePatterns_ = new com.google.protobuf.LazyStringArrayList(filePatterns_); 744 bitField0_ |= 0x00000001; 745 } 746 } 747 /** 748 * 749 * 750 * <pre> 751 * Required. Patterns to identify a set of files in Google Cloud Storage. 752 * For more information, see [Wildcard Names] 753 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 754 * Note: Currently, bucket wildcards are not supported. 755 * Examples of valid `file_patterns`: 756 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 757 * directory 758 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 759 * and all subdirectories 760 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 761 * `bucket_name` 762 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 763 * `.txt` in `bucket_name` 764 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 765 * vowel character followed by `.txt` in 766 * `bucket_name` 767 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 768 * or `m` followed by `.txt` in `bucket_name` 769 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 770 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 771 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 772 * You can combine wildcards to match complex sets of files, for example: 773 * `gs://bucket_name/[a-m]??.j*g` 774 * </pre> 775 * 776 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 777 * 778 * @return A list containing the filePatterns. 779 */ getFilePatternsList()780 public com.google.protobuf.ProtocolStringList getFilePatternsList() { 781 return filePatterns_.getUnmodifiableView(); 782 } 783 /** 784 * 785 * 786 * <pre> 787 * Required. Patterns to identify a set of files in Google Cloud Storage. 788 * For more information, see [Wildcard Names] 789 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 790 * Note: Currently, bucket wildcards are not supported. 791 * Examples of valid `file_patterns`: 792 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 793 * directory 794 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 795 * and all subdirectories 796 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 797 * `bucket_name` 798 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 799 * `.txt` in `bucket_name` 800 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 801 * vowel character followed by `.txt` in 802 * `bucket_name` 803 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 804 * or `m` followed by `.txt` in `bucket_name` 805 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 806 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 807 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 808 * You can combine wildcards to match complex sets of files, for example: 809 * `gs://bucket_name/[a-m]??.j*g` 810 * </pre> 811 * 812 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 813 * 814 * @return The count of filePatterns. 815 */ getFilePatternsCount()816 public int getFilePatternsCount() { 817 return filePatterns_.size(); 818 } 819 /** 820 * 821 * 822 * <pre> 823 * Required. Patterns to identify a set of files in Google Cloud Storage. 824 * For more information, see [Wildcard Names] 825 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 826 * Note: Currently, bucket wildcards are not supported. 827 * Examples of valid `file_patterns`: 828 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 829 * directory 830 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 831 * and all subdirectories 832 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 833 * `bucket_name` 834 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 835 * `.txt` in `bucket_name` 836 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 837 * vowel character followed by `.txt` in 838 * `bucket_name` 839 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 840 * or `m` followed by `.txt` in `bucket_name` 841 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 842 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 843 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 844 * You can combine wildcards to match complex sets of files, for example: 845 * `gs://bucket_name/[a-m]??.j*g` 846 * </pre> 847 * 848 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 849 * 850 * @param index The index of the element to return. 851 * @return The filePatterns at the given index. 852 */ getFilePatterns(int index)853 public java.lang.String getFilePatterns(int index) { 854 return filePatterns_.get(index); 855 } 856 /** 857 * 858 * 859 * <pre> 860 * Required. Patterns to identify a set of files in Google Cloud Storage. 861 * For more information, see [Wildcard Names] 862 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 863 * Note: Currently, bucket wildcards are not supported. 864 * Examples of valid `file_patterns`: 865 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 866 * directory 867 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 868 * and all subdirectories 869 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 870 * `bucket_name` 871 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 872 * `.txt` in `bucket_name` 873 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 874 * vowel character followed by `.txt` in 875 * `bucket_name` 876 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 877 * or `m` followed by `.txt` in `bucket_name` 878 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 879 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 880 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 881 * You can combine wildcards to match complex sets of files, for example: 882 * `gs://bucket_name/[a-m]??.j*g` 883 * </pre> 884 * 885 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 886 * 887 * @param index The index of the value to return. 888 * @return The bytes of the filePatterns at the given index. 889 */ getFilePatternsBytes(int index)890 public com.google.protobuf.ByteString getFilePatternsBytes(int index) { 891 return filePatterns_.getByteString(index); 892 } 893 /** 894 * 895 * 896 * <pre> 897 * Required. Patterns to identify a set of files in Google Cloud Storage. 898 * For more information, see [Wildcard Names] 899 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 900 * Note: Currently, bucket wildcards are not supported. 901 * Examples of valid `file_patterns`: 902 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 903 * directory 904 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 905 * and all subdirectories 906 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 907 * `bucket_name` 908 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 909 * `.txt` in `bucket_name` 910 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 911 * vowel character followed by `.txt` in 912 * `bucket_name` 913 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 914 * or `m` followed by `.txt` in `bucket_name` 915 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 916 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 917 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 918 * You can combine wildcards to match complex sets of files, for example: 919 * `gs://bucket_name/[a-m]??.j*g` 920 * </pre> 921 * 922 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 923 * 924 * @param index The index to set the value at. 925 * @param value The filePatterns to set. 926 * @return This builder for chaining. 927 */ setFilePatterns(int index, java.lang.String value)928 public Builder setFilePatterns(int index, java.lang.String value) { 929 if (value == null) { 930 throw new NullPointerException(); 931 } 932 ensureFilePatternsIsMutable(); 933 filePatterns_.set(index, value); 934 onChanged(); 935 return this; 936 } 937 /** 938 * 939 * 940 * <pre> 941 * Required. Patterns to identify a set of files in Google Cloud Storage. 942 * For more information, see [Wildcard Names] 943 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 944 * Note: Currently, bucket wildcards are not supported. 945 * Examples of valid `file_patterns`: 946 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 947 * directory 948 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 949 * and all subdirectories 950 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 951 * `bucket_name` 952 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 953 * `.txt` in `bucket_name` 954 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 955 * vowel character followed by `.txt` in 956 * `bucket_name` 957 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 958 * or `m` followed by `.txt` in `bucket_name` 959 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 960 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 961 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 962 * You can combine wildcards to match complex sets of files, for example: 963 * `gs://bucket_name/[a-m]??.j*g` 964 * </pre> 965 * 966 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 967 * 968 * @param value The filePatterns to add. 969 * @return This builder for chaining. 970 */ addFilePatterns(java.lang.String value)971 public Builder addFilePatterns(java.lang.String value) { 972 if (value == null) { 973 throw new NullPointerException(); 974 } 975 ensureFilePatternsIsMutable(); 976 filePatterns_.add(value); 977 onChanged(); 978 return this; 979 } 980 /** 981 * 982 * 983 * <pre> 984 * Required. Patterns to identify a set of files in Google Cloud Storage. 985 * For more information, see [Wildcard Names] 986 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 987 * Note: Currently, bucket wildcards are not supported. 988 * Examples of valid `file_patterns`: 989 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 990 * directory 991 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 992 * and all subdirectories 993 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 994 * `bucket_name` 995 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 996 * `.txt` in `bucket_name` 997 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 998 * vowel character followed by `.txt` in 999 * `bucket_name` 1000 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 1001 * or `m` followed by `.txt` in `bucket_name` 1002 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 1003 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 1004 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 1005 * You can combine wildcards to match complex sets of files, for example: 1006 * `gs://bucket_name/[a-m]??.j*g` 1007 * </pre> 1008 * 1009 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1010 * 1011 * @param values The filePatterns to add. 1012 * @return This builder for chaining. 1013 */ addAllFilePatterns(java.lang.Iterable<java.lang.String> values)1014 public Builder addAllFilePatterns(java.lang.Iterable<java.lang.String> values) { 1015 ensureFilePatternsIsMutable(); 1016 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePatterns_); 1017 onChanged(); 1018 return this; 1019 } 1020 /** 1021 * 1022 * 1023 * <pre> 1024 * Required. Patterns to identify a set of files in Google Cloud Storage. 1025 * For more information, see [Wildcard Names] 1026 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 1027 * Note: Currently, bucket wildcards are not supported. 1028 * Examples of valid `file_patterns`: 1029 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 1030 * directory 1031 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 1032 * and all subdirectories 1033 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 1034 * `bucket_name` 1035 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 1036 * `.txt` in `bucket_name` 1037 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 1038 * vowel character followed by `.txt` in 1039 * `bucket_name` 1040 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 1041 * or `m` followed by `.txt` in `bucket_name` 1042 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 1043 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 1044 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 1045 * You can combine wildcards to match complex sets of files, for example: 1046 * `gs://bucket_name/[a-m]??.j*g` 1047 * </pre> 1048 * 1049 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1050 * 1051 * @return This builder for chaining. 1052 */ clearFilePatterns()1053 public Builder clearFilePatterns() { 1054 filePatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1055 bitField0_ = (bitField0_ & ~0x00000001); 1056 onChanged(); 1057 return this; 1058 } 1059 /** 1060 * 1061 * 1062 * <pre> 1063 * Required. Patterns to identify a set of files in Google Cloud Storage. 1064 * For more information, see [Wildcard Names] 1065 * (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). 1066 * Note: Currently, bucket wildcards are not supported. 1067 * Examples of valid `file_patterns`: 1068 * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` 1069 * directory 1070 * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` 1071 * and all subdirectories 1072 * * `gs://bucket_name/file*`: matches files prefixed by `file` in 1073 * `bucket_name` 1074 * * `gs://bucket_name/??.txt`: matches files with two characters followed by 1075 * `.txt` in `bucket_name` 1076 * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single 1077 * vowel character followed by `.txt` in 1078 * `bucket_name` 1079 * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... 1080 * or `m` followed by `.txt` in `bucket_name` 1081 * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match 1082 * the `a/*/b` pattern, such as `a/c/b`, `a/d/b` 1083 * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` 1084 * You can combine wildcards to match complex sets of files, for example: 1085 * `gs://bucket_name/[a-m]??.j*g` 1086 * </pre> 1087 * 1088 * <code>repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED];</code> 1089 * 1090 * @param value The bytes of the filePatterns to add. 1091 * @return This builder for chaining. 1092 */ addFilePatternsBytes(com.google.protobuf.ByteString value)1093 public Builder addFilePatternsBytes(com.google.protobuf.ByteString value) { 1094 if (value == null) { 1095 throw new NullPointerException(); 1096 } 1097 checkByteStringIsUtf8(value); 1098 ensureFilePatternsIsMutable(); 1099 filePatterns_.add(value); 1100 onChanged(); 1101 return this; 1102 } 1103 1104 private java.util.List<com.google.cloud.datacatalog.v1.GcsFileSpec> sampleGcsFileSpecs_ = 1105 java.util.Collections.emptyList(); 1106 ensureSampleGcsFileSpecsIsMutable()1107 private void ensureSampleGcsFileSpecsIsMutable() { 1108 if (!((bitField0_ & 0x00000002) != 0)) { 1109 sampleGcsFileSpecs_ = 1110 new java.util.ArrayList<com.google.cloud.datacatalog.v1.GcsFileSpec>( 1111 sampleGcsFileSpecs_); 1112 bitField0_ |= 0x00000002; 1113 } 1114 } 1115 1116 private com.google.protobuf.RepeatedFieldBuilderV3< 1117 com.google.cloud.datacatalog.v1.GcsFileSpec, 1118 com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, 1119 com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> 1120 sampleGcsFileSpecsBuilder_; 1121 1122 /** 1123 * 1124 * 1125 * <pre> 1126 * Output only. Sample files contained in this fileset, not all files 1127 * contained in this fileset are represented here. 1128 * </pre> 1129 * 1130 * <code> 1131 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1132 * </code> 1133 */ getSampleGcsFileSpecsList()1134 public java.util.List<com.google.cloud.datacatalog.v1.GcsFileSpec> getSampleGcsFileSpecsList() { 1135 if (sampleGcsFileSpecsBuilder_ == null) { 1136 return java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); 1137 } else { 1138 return sampleGcsFileSpecsBuilder_.getMessageList(); 1139 } 1140 } 1141 /** 1142 * 1143 * 1144 * <pre> 1145 * Output only. Sample files contained in this fileset, not all files 1146 * contained in this fileset are represented here. 1147 * </pre> 1148 * 1149 * <code> 1150 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1151 * </code> 1152 */ getSampleGcsFileSpecsCount()1153 public int getSampleGcsFileSpecsCount() { 1154 if (sampleGcsFileSpecsBuilder_ == null) { 1155 return sampleGcsFileSpecs_.size(); 1156 } else { 1157 return sampleGcsFileSpecsBuilder_.getCount(); 1158 } 1159 } 1160 /** 1161 * 1162 * 1163 * <pre> 1164 * Output only. Sample files contained in this fileset, not all files 1165 * contained in this fileset are represented here. 1166 * </pre> 1167 * 1168 * <code> 1169 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1170 * </code> 1171 */ getSampleGcsFileSpecs(int index)1172 public com.google.cloud.datacatalog.v1.GcsFileSpec getSampleGcsFileSpecs(int index) { 1173 if (sampleGcsFileSpecsBuilder_ == null) { 1174 return sampleGcsFileSpecs_.get(index); 1175 } else { 1176 return sampleGcsFileSpecsBuilder_.getMessage(index); 1177 } 1178 } 1179 /** 1180 * 1181 * 1182 * <pre> 1183 * Output only. Sample files contained in this fileset, not all files 1184 * contained in this fileset are represented here. 1185 * </pre> 1186 * 1187 * <code> 1188 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1189 * </code> 1190 */ setSampleGcsFileSpecs( int index, com.google.cloud.datacatalog.v1.GcsFileSpec value)1191 public Builder setSampleGcsFileSpecs( 1192 int index, com.google.cloud.datacatalog.v1.GcsFileSpec value) { 1193 if (sampleGcsFileSpecsBuilder_ == null) { 1194 if (value == null) { 1195 throw new NullPointerException(); 1196 } 1197 ensureSampleGcsFileSpecsIsMutable(); 1198 sampleGcsFileSpecs_.set(index, value); 1199 onChanged(); 1200 } else { 1201 sampleGcsFileSpecsBuilder_.setMessage(index, value); 1202 } 1203 return this; 1204 } 1205 /** 1206 * 1207 * 1208 * <pre> 1209 * Output only. Sample files contained in this fileset, not all files 1210 * contained in this fileset are represented here. 1211 * </pre> 1212 * 1213 * <code> 1214 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1215 * </code> 1216 */ setSampleGcsFileSpecs( int index, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue)1217 public Builder setSampleGcsFileSpecs( 1218 int index, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue) { 1219 if (sampleGcsFileSpecsBuilder_ == null) { 1220 ensureSampleGcsFileSpecsIsMutable(); 1221 sampleGcsFileSpecs_.set(index, builderForValue.build()); 1222 onChanged(); 1223 } else { 1224 sampleGcsFileSpecsBuilder_.setMessage(index, builderForValue.build()); 1225 } 1226 return this; 1227 } 1228 /** 1229 * 1230 * 1231 * <pre> 1232 * Output only. Sample files contained in this fileset, not all files 1233 * contained in this fileset are represented here. 1234 * </pre> 1235 * 1236 * <code> 1237 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1238 * </code> 1239 */ addSampleGcsFileSpecs(com.google.cloud.datacatalog.v1.GcsFileSpec value)1240 public Builder addSampleGcsFileSpecs(com.google.cloud.datacatalog.v1.GcsFileSpec value) { 1241 if (sampleGcsFileSpecsBuilder_ == null) { 1242 if (value == null) { 1243 throw new NullPointerException(); 1244 } 1245 ensureSampleGcsFileSpecsIsMutable(); 1246 sampleGcsFileSpecs_.add(value); 1247 onChanged(); 1248 } else { 1249 sampleGcsFileSpecsBuilder_.addMessage(value); 1250 } 1251 return this; 1252 } 1253 /** 1254 * 1255 * 1256 * <pre> 1257 * Output only. Sample files contained in this fileset, not all files 1258 * contained in this fileset are represented here. 1259 * </pre> 1260 * 1261 * <code> 1262 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1263 * </code> 1264 */ addSampleGcsFileSpecs( int index, com.google.cloud.datacatalog.v1.GcsFileSpec value)1265 public Builder addSampleGcsFileSpecs( 1266 int index, com.google.cloud.datacatalog.v1.GcsFileSpec value) { 1267 if (sampleGcsFileSpecsBuilder_ == null) { 1268 if (value == null) { 1269 throw new NullPointerException(); 1270 } 1271 ensureSampleGcsFileSpecsIsMutable(); 1272 sampleGcsFileSpecs_.add(index, value); 1273 onChanged(); 1274 } else { 1275 sampleGcsFileSpecsBuilder_.addMessage(index, value); 1276 } 1277 return this; 1278 } 1279 /** 1280 * 1281 * 1282 * <pre> 1283 * Output only. Sample files contained in this fileset, not all files 1284 * contained in this fileset are represented here. 1285 * </pre> 1286 * 1287 * <code> 1288 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1289 * </code> 1290 */ addSampleGcsFileSpecs( com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue)1291 public Builder addSampleGcsFileSpecs( 1292 com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue) { 1293 if (sampleGcsFileSpecsBuilder_ == null) { 1294 ensureSampleGcsFileSpecsIsMutable(); 1295 sampleGcsFileSpecs_.add(builderForValue.build()); 1296 onChanged(); 1297 } else { 1298 sampleGcsFileSpecsBuilder_.addMessage(builderForValue.build()); 1299 } 1300 return this; 1301 } 1302 /** 1303 * 1304 * 1305 * <pre> 1306 * Output only. Sample files contained in this fileset, not all files 1307 * contained in this fileset are represented here. 1308 * </pre> 1309 * 1310 * <code> 1311 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1312 * </code> 1313 */ addSampleGcsFileSpecs( int index, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue)1314 public Builder addSampleGcsFileSpecs( 1315 int index, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue) { 1316 if (sampleGcsFileSpecsBuilder_ == null) { 1317 ensureSampleGcsFileSpecsIsMutable(); 1318 sampleGcsFileSpecs_.add(index, builderForValue.build()); 1319 onChanged(); 1320 } else { 1321 sampleGcsFileSpecsBuilder_.addMessage(index, builderForValue.build()); 1322 } 1323 return this; 1324 } 1325 /** 1326 * 1327 * 1328 * <pre> 1329 * Output only. Sample files contained in this fileset, not all files 1330 * contained in this fileset are represented here. 1331 * </pre> 1332 * 1333 * <code> 1334 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1335 * </code> 1336 */ addAllSampleGcsFileSpecs( java.lang.Iterable<? extends com.google.cloud.datacatalog.v1.GcsFileSpec> values)1337 public Builder addAllSampleGcsFileSpecs( 1338 java.lang.Iterable<? extends com.google.cloud.datacatalog.v1.GcsFileSpec> values) { 1339 if (sampleGcsFileSpecsBuilder_ == null) { 1340 ensureSampleGcsFileSpecsIsMutable(); 1341 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleGcsFileSpecs_); 1342 onChanged(); 1343 } else { 1344 sampleGcsFileSpecsBuilder_.addAllMessages(values); 1345 } 1346 return this; 1347 } 1348 /** 1349 * 1350 * 1351 * <pre> 1352 * Output only. Sample files contained in this fileset, not all files 1353 * contained in this fileset are represented here. 1354 * </pre> 1355 * 1356 * <code> 1357 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1358 * </code> 1359 */ clearSampleGcsFileSpecs()1360 public Builder clearSampleGcsFileSpecs() { 1361 if (sampleGcsFileSpecsBuilder_ == null) { 1362 sampleGcsFileSpecs_ = java.util.Collections.emptyList(); 1363 bitField0_ = (bitField0_ & ~0x00000002); 1364 onChanged(); 1365 } else { 1366 sampleGcsFileSpecsBuilder_.clear(); 1367 } 1368 return this; 1369 } 1370 /** 1371 * 1372 * 1373 * <pre> 1374 * Output only. Sample files contained in this fileset, not all files 1375 * contained in this fileset are represented here. 1376 * </pre> 1377 * 1378 * <code> 1379 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1380 * </code> 1381 */ removeSampleGcsFileSpecs(int index)1382 public Builder removeSampleGcsFileSpecs(int index) { 1383 if (sampleGcsFileSpecsBuilder_ == null) { 1384 ensureSampleGcsFileSpecsIsMutable(); 1385 sampleGcsFileSpecs_.remove(index); 1386 onChanged(); 1387 } else { 1388 sampleGcsFileSpecsBuilder_.remove(index); 1389 } 1390 return this; 1391 } 1392 /** 1393 * 1394 * 1395 * <pre> 1396 * Output only. Sample files contained in this fileset, not all files 1397 * contained in this fileset are represented here. 1398 * </pre> 1399 * 1400 * <code> 1401 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1402 * </code> 1403 */ getSampleGcsFileSpecsBuilder( int index)1404 public com.google.cloud.datacatalog.v1.GcsFileSpec.Builder getSampleGcsFileSpecsBuilder( 1405 int index) { 1406 return getSampleGcsFileSpecsFieldBuilder().getBuilder(index); 1407 } 1408 /** 1409 * 1410 * 1411 * <pre> 1412 * Output only. Sample files contained in this fileset, not all files 1413 * contained in this fileset are represented here. 1414 * </pre> 1415 * 1416 * <code> 1417 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1418 * </code> 1419 */ getSampleGcsFileSpecsOrBuilder( int index)1420 public com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( 1421 int index) { 1422 if (sampleGcsFileSpecsBuilder_ == null) { 1423 return sampleGcsFileSpecs_.get(index); 1424 } else { 1425 return sampleGcsFileSpecsBuilder_.getMessageOrBuilder(index); 1426 } 1427 } 1428 /** 1429 * 1430 * 1431 * <pre> 1432 * Output only. Sample files contained in this fileset, not all files 1433 * contained in this fileset are represented here. 1434 * </pre> 1435 * 1436 * <code> 1437 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1438 * </code> 1439 */ 1440 public java.util.List<? extends com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> getSampleGcsFileSpecsOrBuilderList()1441 getSampleGcsFileSpecsOrBuilderList() { 1442 if (sampleGcsFileSpecsBuilder_ != null) { 1443 return sampleGcsFileSpecsBuilder_.getMessageOrBuilderList(); 1444 } else { 1445 return java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); 1446 } 1447 } 1448 /** 1449 * 1450 * 1451 * <pre> 1452 * Output only. Sample files contained in this fileset, not all files 1453 * contained in this fileset are represented here. 1454 * </pre> 1455 * 1456 * <code> 1457 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1458 * </code> 1459 */ addSampleGcsFileSpecsBuilder()1460 public com.google.cloud.datacatalog.v1.GcsFileSpec.Builder addSampleGcsFileSpecsBuilder() { 1461 return getSampleGcsFileSpecsFieldBuilder() 1462 .addBuilder(com.google.cloud.datacatalog.v1.GcsFileSpec.getDefaultInstance()); 1463 } 1464 /** 1465 * 1466 * 1467 * <pre> 1468 * Output only. Sample files contained in this fileset, not all files 1469 * contained in this fileset are represented here. 1470 * </pre> 1471 * 1472 * <code> 1473 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1474 * </code> 1475 */ addSampleGcsFileSpecsBuilder( int index)1476 public com.google.cloud.datacatalog.v1.GcsFileSpec.Builder addSampleGcsFileSpecsBuilder( 1477 int index) { 1478 return getSampleGcsFileSpecsFieldBuilder() 1479 .addBuilder(index, com.google.cloud.datacatalog.v1.GcsFileSpec.getDefaultInstance()); 1480 } 1481 /** 1482 * 1483 * 1484 * <pre> 1485 * Output only. Sample files contained in this fileset, not all files 1486 * contained in this fileset are represented here. 1487 * </pre> 1488 * 1489 * <code> 1490 * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1491 * </code> 1492 */ 1493 public java.util.List<com.google.cloud.datacatalog.v1.GcsFileSpec.Builder> getSampleGcsFileSpecsBuilderList()1494 getSampleGcsFileSpecsBuilderList() { 1495 return getSampleGcsFileSpecsFieldBuilder().getBuilderList(); 1496 } 1497 1498 private com.google.protobuf.RepeatedFieldBuilderV3< 1499 com.google.cloud.datacatalog.v1.GcsFileSpec, 1500 com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, 1501 com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> getSampleGcsFileSpecsFieldBuilder()1502 getSampleGcsFileSpecsFieldBuilder() { 1503 if (sampleGcsFileSpecsBuilder_ == null) { 1504 sampleGcsFileSpecsBuilder_ = 1505 new com.google.protobuf.RepeatedFieldBuilderV3< 1506 com.google.cloud.datacatalog.v1.GcsFileSpec, 1507 com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, 1508 com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder>( 1509 sampleGcsFileSpecs_, 1510 ((bitField0_ & 0x00000002) != 0), 1511 getParentForChildren(), 1512 isClean()); 1513 sampleGcsFileSpecs_ = null; 1514 } 1515 return sampleGcsFileSpecsBuilder_; 1516 } 1517 1518 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1519 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1520 return super.setUnknownFields(unknownFields); 1521 } 1522 1523 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1524 public final Builder mergeUnknownFields( 1525 final com.google.protobuf.UnknownFieldSet unknownFields) { 1526 return super.mergeUnknownFields(unknownFields); 1527 } 1528 1529 // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GcsFilesetSpec) 1530 } 1531 1532 // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GcsFilesetSpec) 1533 private static final com.google.cloud.datacatalog.v1.GcsFilesetSpec DEFAULT_INSTANCE; 1534 1535 static { 1536 DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GcsFilesetSpec(); 1537 } 1538 getDefaultInstance()1539 public static com.google.cloud.datacatalog.v1.GcsFilesetSpec getDefaultInstance() { 1540 return DEFAULT_INSTANCE; 1541 } 1542 1543 private static final com.google.protobuf.Parser<GcsFilesetSpec> PARSER = 1544 new com.google.protobuf.AbstractParser<GcsFilesetSpec>() { 1545 @java.lang.Override 1546 public GcsFilesetSpec parsePartialFrom( 1547 com.google.protobuf.CodedInputStream input, 1548 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1549 throws com.google.protobuf.InvalidProtocolBufferException { 1550 Builder builder = newBuilder(); 1551 try { 1552 builder.mergeFrom(input, extensionRegistry); 1553 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1554 throw e.setUnfinishedMessage(builder.buildPartial()); 1555 } catch (com.google.protobuf.UninitializedMessageException e) { 1556 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1557 } catch (java.io.IOException e) { 1558 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1559 .setUnfinishedMessage(builder.buildPartial()); 1560 } 1561 return builder.buildPartial(); 1562 } 1563 }; 1564 parser()1565 public static com.google.protobuf.Parser<GcsFilesetSpec> parser() { 1566 return PARSER; 1567 } 1568 1569 @java.lang.Override getParserForType()1570 public com.google.protobuf.Parser<GcsFilesetSpec> getParserForType() { 1571 return PARSER; 1572 } 1573 1574 @java.lang.Override getDefaultInstanceForType()1575 public com.google.cloud.datacatalog.v1.GcsFilesetSpec getDefaultInstanceForType() { 1576 return DEFAULT_INSTANCE; 1577 } 1578 } 1579