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/automl/v1beta1/io.proto 18 19 package com.google.cloud.automl.v1beta1; 20 21 /** 22 * 23 * 24 * <pre> 25 * * For Translation: 26 * CSV file `translation.csv`, with each line in format: 27 * ML_USE,GCS_FILE_PATH 28 * GCS_FILE_PATH leads to a .TSV file which describes examples that have 29 * given ML_USE, using the following row format per line: 30 * TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target 31 * language) 32 * * For Tables: 33 * Output depends on whether the dataset was imported from GCS or 34 * BigQuery. 35 * GCS case: 36 * [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination] 37 * must be set. Exported are CSV file(s) `tables_1.csv`, 38 * `tables_2.csv`,...,`tables_N.csv` with each having as header line 39 * the table's column names, and all other lines contain values for 40 * the header columns. 41 * BigQuery case: 42 * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] 43 * pointing to a BigQuery project must be set. In the given project a 44 * new dataset will be created with name 45 * `export_data_<automl-dataset-display-name>_<timestamp-of-export-call>` 46 * where <automl-dataset-display-name> will be made 47 * BigQuery-dataset-name compatible (e.g. most special characters will 48 * become underscores), and timestamp will be in 49 * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that 50 * dataset a new table called `primary_table` will be created, and 51 * filled with precisely the same data as this obtained on import. 52 * </pre> 53 * 54 * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig} 55 */ 56 public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3 57 implements 58 // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.OutputConfig) 59 OutputConfigOrBuilder { 60 private static final long serialVersionUID = 0L; 61 // Use OutputConfig.newBuilder() to construct. OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)62 private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 63 super(builder); 64 } 65 OutputConfig()66 private OutputConfig() {} 67 68 @java.lang.Override 69 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)70 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 71 return new OutputConfig(); 72 } 73 74 @java.lang.Override getUnknownFields()75 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 76 return this.unknownFields; 77 } 78 getDescriptor()79 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 80 return com.google.cloud.automl.v1beta1.Io 81 .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; 82 } 83 84 @java.lang.Override 85 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()86 internalGetFieldAccessorTable() { 87 return com.google.cloud.automl.v1beta1.Io 88 .internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable 89 .ensureFieldAccessorsInitialized( 90 com.google.cloud.automl.v1beta1.OutputConfig.class, 91 com.google.cloud.automl.v1beta1.OutputConfig.Builder.class); 92 } 93 94 private int destinationCase_ = 0; 95 private java.lang.Object destination_; 96 97 public enum DestinationCase 98 implements 99 com.google.protobuf.Internal.EnumLite, 100 com.google.protobuf.AbstractMessage.InternalOneOfEnum { 101 GCS_DESTINATION(1), 102 BIGQUERY_DESTINATION(2), 103 DESTINATION_NOT_SET(0); 104 private final int value; 105 DestinationCase(int value)106 private DestinationCase(int value) { 107 this.value = value; 108 } 109 /** 110 * @param value The number of the enum to look for. 111 * @return The enum associated with the given number. 112 * @deprecated Use {@link #forNumber(int)} instead. 113 */ 114 @java.lang.Deprecated valueOf(int value)115 public static DestinationCase valueOf(int value) { 116 return forNumber(value); 117 } 118 forNumber(int value)119 public static DestinationCase forNumber(int value) { 120 switch (value) { 121 case 1: 122 return GCS_DESTINATION; 123 case 2: 124 return BIGQUERY_DESTINATION; 125 case 0: 126 return DESTINATION_NOT_SET; 127 default: 128 return null; 129 } 130 } 131 getNumber()132 public int getNumber() { 133 return this.value; 134 } 135 }; 136 getDestinationCase()137 public DestinationCase getDestinationCase() { 138 return DestinationCase.forNumber(destinationCase_); 139 } 140 141 public static final int GCS_DESTINATION_FIELD_NUMBER = 1; 142 /** 143 * 144 * 145 * <pre> 146 * The Google Cloud Storage location where the output is to be written to. 147 * For Image Object Detection, Text Extraction, Video Classification and 148 * Tables, in the given directory a new directory will be created with name: 149 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 150 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 151 * output will be written into that directory. 152 * </pre> 153 * 154 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 155 * 156 * @return Whether the gcsDestination field is set. 157 */ 158 @java.lang.Override hasGcsDestination()159 public boolean hasGcsDestination() { 160 return destinationCase_ == 1; 161 } 162 /** 163 * 164 * 165 * <pre> 166 * The Google Cloud Storage location where the output is to be written to. 167 * For Image Object Detection, Text Extraction, Video Classification and 168 * Tables, in the given directory a new directory will be created with name: 169 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 170 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 171 * output will be written into that directory. 172 * </pre> 173 * 174 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 175 * 176 * @return The gcsDestination. 177 */ 178 @java.lang.Override getGcsDestination()179 public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { 180 if (destinationCase_ == 1) { 181 return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; 182 } 183 return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); 184 } 185 /** 186 * 187 * 188 * <pre> 189 * The Google Cloud Storage location where the output is to be written to. 190 * For Image Object Detection, Text Extraction, Video Classification and 191 * Tables, in the given directory a new directory will be created with name: 192 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 193 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 194 * output will be written into that directory. 195 * </pre> 196 * 197 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 198 */ 199 @java.lang.Override getGcsDestinationOrBuilder()200 public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { 201 if (destinationCase_ == 1) { 202 return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; 203 } 204 return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); 205 } 206 207 public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; 208 /** 209 * 210 * 211 * <pre> 212 * The BigQuery location where the output is to be written to. 213 * </pre> 214 * 215 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 216 * 217 * @return Whether the bigqueryDestination field is set. 218 */ 219 @java.lang.Override hasBigqueryDestination()220 public boolean hasBigqueryDestination() { 221 return destinationCase_ == 2; 222 } 223 /** 224 * 225 * 226 * <pre> 227 * The BigQuery location where the output is to be written to. 228 * </pre> 229 * 230 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 231 * 232 * @return The bigqueryDestination. 233 */ 234 @java.lang.Override getBigqueryDestination()235 public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { 236 if (destinationCase_ == 2) { 237 return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; 238 } 239 return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); 240 } 241 /** 242 * 243 * 244 * <pre> 245 * The BigQuery location where the output is to be written to. 246 * </pre> 247 * 248 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 249 */ 250 @java.lang.Override 251 public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder()252 getBigqueryDestinationOrBuilder() { 253 if (destinationCase_ == 2) { 254 return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; 255 } 256 return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); 257 } 258 259 private byte memoizedIsInitialized = -1; 260 261 @java.lang.Override isInitialized()262 public final boolean isInitialized() { 263 byte isInitialized = memoizedIsInitialized; 264 if (isInitialized == 1) return true; 265 if (isInitialized == 0) return false; 266 267 memoizedIsInitialized = 1; 268 return true; 269 } 270 271 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)272 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 273 if (destinationCase_ == 1) { 274 output.writeMessage(1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); 275 } 276 if (destinationCase_ == 2) { 277 output.writeMessage(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); 278 } 279 getUnknownFields().writeTo(output); 280 } 281 282 @java.lang.Override getSerializedSize()283 public int getSerializedSize() { 284 int size = memoizedSize; 285 if (size != -1) return size; 286 287 size = 0; 288 if (destinationCase_ == 1) { 289 size += 290 com.google.protobuf.CodedOutputStream.computeMessageSize( 291 1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); 292 } 293 if (destinationCase_ == 2) { 294 size += 295 com.google.protobuf.CodedOutputStream.computeMessageSize( 296 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); 297 } 298 size += getUnknownFields().getSerializedSize(); 299 memoizedSize = size; 300 return size; 301 } 302 303 @java.lang.Override equals(final java.lang.Object obj)304 public boolean equals(final java.lang.Object obj) { 305 if (obj == this) { 306 return true; 307 } 308 if (!(obj instanceof com.google.cloud.automl.v1beta1.OutputConfig)) { 309 return super.equals(obj); 310 } 311 com.google.cloud.automl.v1beta1.OutputConfig other = 312 (com.google.cloud.automl.v1beta1.OutputConfig) obj; 313 314 if (!getDestinationCase().equals(other.getDestinationCase())) return false; 315 switch (destinationCase_) { 316 case 1: 317 if (!getGcsDestination().equals(other.getGcsDestination())) return false; 318 break; 319 case 2: 320 if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; 321 break; 322 case 0: 323 default: 324 } 325 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 326 return true; 327 } 328 329 @java.lang.Override hashCode()330 public int hashCode() { 331 if (memoizedHashCode != 0) { 332 return memoizedHashCode; 333 } 334 int hash = 41; 335 hash = (19 * hash) + getDescriptor().hashCode(); 336 switch (destinationCase_) { 337 case 1: 338 hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; 339 hash = (53 * hash) + getGcsDestination().hashCode(); 340 break; 341 case 2: 342 hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; 343 hash = (53 * hash) + getBigqueryDestination().hashCode(); 344 break; 345 case 0: 346 default: 347 } 348 hash = (29 * hash) + getUnknownFields().hashCode(); 349 memoizedHashCode = hash; 350 return hash; 351 } 352 parseFrom(java.nio.ByteBuffer data)353 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(java.nio.ByteBuffer data) 354 throws com.google.protobuf.InvalidProtocolBufferException { 355 return PARSER.parseFrom(data); 356 } 357 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)358 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 359 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 360 throws com.google.protobuf.InvalidProtocolBufferException { 361 return PARSER.parseFrom(data, extensionRegistry); 362 } 363 parseFrom( com.google.protobuf.ByteString data)364 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 365 com.google.protobuf.ByteString data) 366 throws com.google.protobuf.InvalidProtocolBufferException { 367 return PARSER.parseFrom(data); 368 } 369 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)370 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 371 com.google.protobuf.ByteString data, 372 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 373 throws com.google.protobuf.InvalidProtocolBufferException { 374 return PARSER.parseFrom(data, extensionRegistry); 375 } 376 parseFrom(byte[] data)377 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(byte[] data) 378 throws com.google.protobuf.InvalidProtocolBufferException { 379 return PARSER.parseFrom(data); 380 } 381 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)382 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 383 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 384 throws com.google.protobuf.InvalidProtocolBufferException { 385 return PARSER.parseFrom(data, extensionRegistry); 386 } 387 parseFrom(java.io.InputStream input)388 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom(java.io.InputStream input) 389 throws java.io.IOException { 390 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 391 } 392 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)393 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 394 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 395 throws java.io.IOException { 396 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 397 PARSER, input, extensionRegistry); 398 } 399 parseDelimitedFrom( java.io.InputStream input)400 public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom( 401 java.io.InputStream input) throws java.io.IOException { 402 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 403 } 404 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)405 public static com.google.cloud.automl.v1beta1.OutputConfig parseDelimitedFrom( 406 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 407 throws java.io.IOException { 408 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 409 PARSER, input, extensionRegistry); 410 } 411 parseFrom( com.google.protobuf.CodedInputStream input)412 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 413 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 414 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 415 } 416 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)417 public static com.google.cloud.automl.v1beta1.OutputConfig parseFrom( 418 com.google.protobuf.CodedInputStream input, 419 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 420 throws java.io.IOException { 421 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 422 PARSER, input, extensionRegistry); 423 } 424 425 @java.lang.Override newBuilderForType()426 public Builder newBuilderForType() { 427 return newBuilder(); 428 } 429 newBuilder()430 public static Builder newBuilder() { 431 return DEFAULT_INSTANCE.toBuilder(); 432 } 433 newBuilder(com.google.cloud.automl.v1beta1.OutputConfig prototype)434 public static Builder newBuilder(com.google.cloud.automl.v1beta1.OutputConfig prototype) { 435 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 436 } 437 438 @java.lang.Override toBuilder()439 public Builder toBuilder() { 440 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 441 } 442 443 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)444 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 445 Builder builder = new Builder(parent); 446 return builder; 447 } 448 /** 449 * 450 * 451 * <pre> 452 * * For Translation: 453 * CSV file `translation.csv`, with each line in format: 454 * ML_USE,GCS_FILE_PATH 455 * GCS_FILE_PATH leads to a .TSV file which describes examples that have 456 * given ML_USE, using the following row format per line: 457 * TEXT_SNIPPET (in source language) \t TEXT_SNIPPET (in target 458 * language) 459 * * For Tables: 460 * Output depends on whether the dataset was imported from GCS or 461 * BigQuery. 462 * GCS case: 463 * [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination] 464 * must be set. Exported are CSV file(s) `tables_1.csv`, 465 * `tables_2.csv`,...,`tables_N.csv` with each having as header line 466 * the table's column names, and all other lines contain values for 467 * the header columns. 468 * BigQuery case: 469 * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] 470 * pointing to a BigQuery project must be set. In the given project a 471 * new dataset will be created with name 472 * `export_data_<automl-dataset-display-name>_<timestamp-of-export-call>` 473 * where <automl-dataset-display-name> will be made 474 * BigQuery-dataset-name compatible (e.g. most special characters will 475 * become underscores), and timestamp will be in 476 * YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that 477 * dataset a new table called `primary_table` will be created, and 478 * filled with precisely the same data as this obtained on import. 479 * </pre> 480 * 481 * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig} 482 */ 483 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 484 implements 485 // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.OutputConfig) 486 com.google.cloud.automl.v1beta1.OutputConfigOrBuilder { getDescriptor()487 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 488 return com.google.cloud.automl.v1beta1.Io 489 .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; 490 } 491 492 @java.lang.Override 493 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()494 internalGetFieldAccessorTable() { 495 return com.google.cloud.automl.v1beta1.Io 496 .internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable 497 .ensureFieldAccessorsInitialized( 498 com.google.cloud.automl.v1beta1.OutputConfig.class, 499 com.google.cloud.automl.v1beta1.OutputConfig.Builder.class); 500 } 501 502 // Construct using com.google.cloud.automl.v1beta1.OutputConfig.newBuilder() Builder()503 private Builder() {} 504 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)505 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 506 super(parent); 507 } 508 509 @java.lang.Override clear()510 public Builder clear() { 511 super.clear(); 512 bitField0_ = 0; 513 if (gcsDestinationBuilder_ != null) { 514 gcsDestinationBuilder_.clear(); 515 } 516 if (bigqueryDestinationBuilder_ != null) { 517 bigqueryDestinationBuilder_.clear(); 518 } 519 destinationCase_ = 0; 520 destination_ = null; 521 return this; 522 } 523 524 @java.lang.Override getDescriptorForType()525 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 526 return com.google.cloud.automl.v1beta1.Io 527 .internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; 528 } 529 530 @java.lang.Override getDefaultInstanceForType()531 public com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstanceForType() { 532 return com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance(); 533 } 534 535 @java.lang.Override build()536 public com.google.cloud.automl.v1beta1.OutputConfig build() { 537 com.google.cloud.automl.v1beta1.OutputConfig result = buildPartial(); 538 if (!result.isInitialized()) { 539 throw newUninitializedMessageException(result); 540 } 541 return result; 542 } 543 544 @java.lang.Override buildPartial()545 public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() { 546 com.google.cloud.automl.v1beta1.OutputConfig result = 547 new com.google.cloud.automl.v1beta1.OutputConfig(this); 548 if (bitField0_ != 0) { 549 buildPartial0(result); 550 } 551 buildPartialOneofs(result); 552 onBuilt(); 553 return result; 554 } 555 buildPartial0(com.google.cloud.automl.v1beta1.OutputConfig result)556 private void buildPartial0(com.google.cloud.automl.v1beta1.OutputConfig result) { 557 int from_bitField0_ = bitField0_; 558 } 559 buildPartialOneofs(com.google.cloud.automl.v1beta1.OutputConfig result)560 private void buildPartialOneofs(com.google.cloud.automl.v1beta1.OutputConfig result) { 561 result.destinationCase_ = destinationCase_; 562 result.destination_ = this.destination_; 563 if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) { 564 result.destination_ = gcsDestinationBuilder_.build(); 565 } 566 if (destinationCase_ == 2 && bigqueryDestinationBuilder_ != null) { 567 result.destination_ = bigqueryDestinationBuilder_.build(); 568 } 569 } 570 571 @java.lang.Override clone()572 public Builder clone() { 573 return super.clone(); 574 } 575 576 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)577 public Builder setField( 578 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 579 return super.setField(field, value); 580 } 581 582 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)583 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 584 return super.clearField(field); 585 } 586 587 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)588 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 589 return super.clearOneof(oneof); 590 } 591 592 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)593 public Builder setRepeatedField( 594 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 595 return super.setRepeatedField(field, index, value); 596 } 597 598 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)599 public Builder addRepeatedField( 600 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 601 return super.addRepeatedField(field, value); 602 } 603 604 @java.lang.Override mergeFrom(com.google.protobuf.Message other)605 public Builder mergeFrom(com.google.protobuf.Message other) { 606 if (other instanceof com.google.cloud.automl.v1beta1.OutputConfig) { 607 return mergeFrom((com.google.cloud.automl.v1beta1.OutputConfig) other); 608 } else { 609 super.mergeFrom(other); 610 return this; 611 } 612 } 613 mergeFrom(com.google.cloud.automl.v1beta1.OutputConfig other)614 public Builder mergeFrom(com.google.cloud.automl.v1beta1.OutputConfig other) { 615 if (other == com.google.cloud.automl.v1beta1.OutputConfig.getDefaultInstance()) return this; 616 switch (other.getDestinationCase()) { 617 case GCS_DESTINATION: 618 { 619 mergeGcsDestination(other.getGcsDestination()); 620 break; 621 } 622 case BIGQUERY_DESTINATION: 623 { 624 mergeBigqueryDestination(other.getBigqueryDestination()); 625 break; 626 } 627 case DESTINATION_NOT_SET: 628 { 629 break; 630 } 631 } 632 this.mergeUnknownFields(other.getUnknownFields()); 633 onChanged(); 634 return this; 635 } 636 637 @java.lang.Override isInitialized()638 public final boolean isInitialized() { 639 return true; 640 } 641 642 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)643 public Builder mergeFrom( 644 com.google.protobuf.CodedInputStream input, 645 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 646 throws java.io.IOException { 647 if (extensionRegistry == null) { 648 throw new java.lang.NullPointerException(); 649 } 650 try { 651 boolean done = false; 652 while (!done) { 653 int tag = input.readTag(); 654 switch (tag) { 655 case 0: 656 done = true; 657 break; 658 case 10: 659 { 660 input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); 661 destinationCase_ = 1; 662 break; 663 } // case 10 664 case 18: 665 { 666 input.readMessage( 667 getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); 668 destinationCase_ = 2; 669 break; 670 } // case 18 671 default: 672 { 673 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 674 done = true; // was an endgroup tag 675 } 676 break; 677 } // default: 678 } // switch (tag) 679 } // while (!done) 680 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 681 throw e.unwrapIOException(); 682 } finally { 683 onChanged(); 684 } // finally 685 return this; 686 } 687 688 private int destinationCase_ = 0; 689 private java.lang.Object destination_; 690 getDestinationCase()691 public DestinationCase getDestinationCase() { 692 return DestinationCase.forNumber(destinationCase_); 693 } 694 clearDestination()695 public Builder clearDestination() { 696 destinationCase_ = 0; 697 destination_ = null; 698 onChanged(); 699 return this; 700 } 701 702 private int bitField0_; 703 704 private com.google.protobuf.SingleFieldBuilderV3< 705 com.google.cloud.automl.v1beta1.GcsDestination, 706 com.google.cloud.automl.v1beta1.GcsDestination.Builder, 707 com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder> 708 gcsDestinationBuilder_; 709 /** 710 * 711 * 712 * <pre> 713 * The Google Cloud Storage location where the output is to be written to. 714 * For Image Object Detection, Text Extraction, Video Classification and 715 * Tables, in the given directory a new directory will be created with name: 716 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 717 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 718 * output will be written into that directory. 719 * </pre> 720 * 721 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 722 * 723 * @return Whether the gcsDestination field is set. 724 */ 725 @java.lang.Override hasGcsDestination()726 public boolean hasGcsDestination() { 727 return destinationCase_ == 1; 728 } 729 /** 730 * 731 * 732 * <pre> 733 * The Google Cloud Storage location where the output is to be written to. 734 * For Image Object Detection, Text Extraction, Video Classification and 735 * Tables, in the given directory a new directory will be created with name: 736 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 737 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 738 * output will be written into that directory. 739 * </pre> 740 * 741 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 742 * 743 * @return The gcsDestination. 744 */ 745 @java.lang.Override getGcsDestination()746 public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { 747 if (gcsDestinationBuilder_ == null) { 748 if (destinationCase_ == 1) { 749 return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; 750 } 751 return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); 752 } else { 753 if (destinationCase_ == 1) { 754 return gcsDestinationBuilder_.getMessage(); 755 } 756 return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); 757 } 758 } 759 /** 760 * 761 * 762 * <pre> 763 * The Google Cloud Storage location where the output is to be written to. 764 * For Image Object Detection, Text Extraction, Video Classification and 765 * Tables, in the given directory a new directory will be created with name: 766 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 767 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 768 * output will be written into that directory. 769 * </pre> 770 * 771 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 772 */ setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value)773 public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value) { 774 if (gcsDestinationBuilder_ == null) { 775 if (value == null) { 776 throw new NullPointerException(); 777 } 778 destination_ = value; 779 onChanged(); 780 } else { 781 gcsDestinationBuilder_.setMessage(value); 782 } 783 destinationCase_ = 1; 784 return this; 785 } 786 /** 787 * 788 * 789 * <pre> 790 * The Google Cloud Storage location where the output is to be written to. 791 * For Image Object Detection, Text Extraction, Video Classification and 792 * Tables, in the given directory a new directory will be created with name: 793 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 794 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 795 * output will be written into that directory. 796 * </pre> 797 * 798 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 799 */ setGcsDestination( com.google.cloud.automl.v1beta1.GcsDestination.Builder builderForValue)800 public Builder setGcsDestination( 801 com.google.cloud.automl.v1beta1.GcsDestination.Builder builderForValue) { 802 if (gcsDestinationBuilder_ == null) { 803 destination_ = builderForValue.build(); 804 onChanged(); 805 } else { 806 gcsDestinationBuilder_.setMessage(builderForValue.build()); 807 } 808 destinationCase_ = 1; 809 return this; 810 } 811 /** 812 * 813 * 814 * <pre> 815 * The Google Cloud Storage location where the output is to be written to. 816 * For Image Object Detection, Text Extraction, Video Classification and 817 * Tables, in the given directory a new directory will be created with name: 818 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 819 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 820 * output will be written into that directory. 821 * </pre> 822 * 823 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 824 */ mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value)825 public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value) { 826 if (gcsDestinationBuilder_ == null) { 827 if (destinationCase_ == 1 828 && destination_ 829 != com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance()) { 830 destination_ = 831 com.google.cloud.automl.v1beta1.GcsDestination.newBuilder( 832 (com.google.cloud.automl.v1beta1.GcsDestination) destination_) 833 .mergeFrom(value) 834 .buildPartial(); 835 } else { 836 destination_ = value; 837 } 838 onChanged(); 839 } else { 840 if (destinationCase_ == 1) { 841 gcsDestinationBuilder_.mergeFrom(value); 842 } else { 843 gcsDestinationBuilder_.setMessage(value); 844 } 845 } 846 destinationCase_ = 1; 847 return this; 848 } 849 /** 850 * 851 * 852 * <pre> 853 * The Google Cloud Storage location where the output is to be written to. 854 * For Image Object Detection, Text Extraction, Video Classification and 855 * Tables, in the given directory a new directory will be created with name: 856 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 857 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 858 * output will be written into that directory. 859 * </pre> 860 * 861 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 862 */ clearGcsDestination()863 public Builder clearGcsDestination() { 864 if (gcsDestinationBuilder_ == null) { 865 if (destinationCase_ == 1) { 866 destinationCase_ = 0; 867 destination_ = null; 868 onChanged(); 869 } 870 } else { 871 if (destinationCase_ == 1) { 872 destinationCase_ = 0; 873 destination_ = null; 874 } 875 gcsDestinationBuilder_.clear(); 876 } 877 return this; 878 } 879 /** 880 * 881 * 882 * <pre> 883 * The Google Cloud Storage location where the output is to be written to. 884 * For Image Object Detection, Text Extraction, Video Classification and 885 * Tables, in the given directory a new directory will be created with name: 886 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 887 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 888 * output will be written into that directory. 889 * </pre> 890 * 891 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 892 */ getGcsDestinationBuilder()893 public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { 894 return getGcsDestinationFieldBuilder().getBuilder(); 895 } 896 /** 897 * 898 * 899 * <pre> 900 * The Google Cloud Storage location where the output is to be written to. 901 * For Image Object Detection, Text Extraction, Video Classification and 902 * Tables, in the given directory a new directory will be created with name: 903 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 904 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 905 * output will be written into that directory. 906 * </pre> 907 * 908 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 909 */ 910 @java.lang.Override getGcsDestinationOrBuilder()911 public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { 912 if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) { 913 return gcsDestinationBuilder_.getMessageOrBuilder(); 914 } else { 915 if (destinationCase_ == 1) { 916 return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; 917 } 918 return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); 919 } 920 } 921 /** 922 * 923 * 924 * <pre> 925 * The Google Cloud Storage location where the output is to be written to. 926 * For Image Object Detection, Text Extraction, Video Classification and 927 * Tables, in the given directory a new directory will be created with name: 928 * export_data-<dataset-display-name>-<timestamp-of-export-call> where 929 * timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export 930 * output will be written into that directory. 931 * </pre> 932 * 933 * <code>.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;</code> 934 */ 935 private com.google.protobuf.SingleFieldBuilderV3< 936 com.google.cloud.automl.v1beta1.GcsDestination, 937 com.google.cloud.automl.v1beta1.GcsDestination.Builder, 938 com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder> getGcsDestinationFieldBuilder()939 getGcsDestinationFieldBuilder() { 940 if (gcsDestinationBuilder_ == null) { 941 if (!(destinationCase_ == 1)) { 942 destination_ = com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); 943 } 944 gcsDestinationBuilder_ = 945 new com.google.protobuf.SingleFieldBuilderV3< 946 com.google.cloud.automl.v1beta1.GcsDestination, 947 com.google.cloud.automl.v1beta1.GcsDestination.Builder, 948 com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder>( 949 (com.google.cloud.automl.v1beta1.GcsDestination) destination_, 950 getParentForChildren(), 951 isClean()); 952 destination_ = null; 953 } 954 destinationCase_ = 1; 955 onChanged(); 956 return gcsDestinationBuilder_; 957 } 958 959 private com.google.protobuf.SingleFieldBuilderV3< 960 com.google.cloud.automl.v1beta1.BigQueryDestination, 961 com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, 962 com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> 963 bigqueryDestinationBuilder_; 964 /** 965 * 966 * 967 * <pre> 968 * The BigQuery location where the output is to be written to. 969 * </pre> 970 * 971 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 972 * 973 * @return Whether the bigqueryDestination field is set. 974 */ 975 @java.lang.Override hasBigqueryDestination()976 public boolean hasBigqueryDestination() { 977 return destinationCase_ == 2; 978 } 979 /** 980 * 981 * 982 * <pre> 983 * The BigQuery location where the output is to be written to. 984 * </pre> 985 * 986 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 987 * 988 * @return The bigqueryDestination. 989 */ 990 @java.lang.Override getBigqueryDestination()991 public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { 992 if (bigqueryDestinationBuilder_ == null) { 993 if (destinationCase_ == 2) { 994 return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; 995 } 996 return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); 997 } else { 998 if (destinationCase_ == 2) { 999 return bigqueryDestinationBuilder_.getMessage(); 1000 } 1001 return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); 1002 } 1003 } 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * The BigQuery location where the output is to be written to. 1009 * </pre> 1010 * 1011 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1012 */ setBigqueryDestination( com.google.cloud.automl.v1beta1.BigQueryDestination value)1013 public Builder setBigqueryDestination( 1014 com.google.cloud.automl.v1beta1.BigQueryDestination value) { 1015 if (bigqueryDestinationBuilder_ == null) { 1016 if (value == null) { 1017 throw new NullPointerException(); 1018 } 1019 destination_ = value; 1020 onChanged(); 1021 } else { 1022 bigqueryDestinationBuilder_.setMessage(value); 1023 } 1024 destinationCase_ = 2; 1025 return this; 1026 } 1027 /** 1028 * 1029 * 1030 * <pre> 1031 * The BigQuery location where the output is to be written to. 1032 * </pre> 1033 * 1034 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1035 */ setBigqueryDestination( com.google.cloud.automl.v1beta1.BigQueryDestination.Builder builderForValue)1036 public Builder setBigqueryDestination( 1037 com.google.cloud.automl.v1beta1.BigQueryDestination.Builder builderForValue) { 1038 if (bigqueryDestinationBuilder_ == null) { 1039 destination_ = builderForValue.build(); 1040 onChanged(); 1041 } else { 1042 bigqueryDestinationBuilder_.setMessage(builderForValue.build()); 1043 } 1044 destinationCase_ = 2; 1045 return this; 1046 } 1047 /** 1048 * 1049 * 1050 * <pre> 1051 * The BigQuery location where the output is to be written to. 1052 * </pre> 1053 * 1054 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1055 */ mergeBigqueryDestination( com.google.cloud.automl.v1beta1.BigQueryDestination value)1056 public Builder mergeBigqueryDestination( 1057 com.google.cloud.automl.v1beta1.BigQueryDestination value) { 1058 if (bigqueryDestinationBuilder_ == null) { 1059 if (destinationCase_ == 2 1060 && destination_ 1061 != com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) { 1062 destination_ = 1063 com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder( 1064 (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) 1065 .mergeFrom(value) 1066 .buildPartial(); 1067 } else { 1068 destination_ = value; 1069 } 1070 onChanged(); 1071 } else { 1072 if (destinationCase_ == 2) { 1073 bigqueryDestinationBuilder_.mergeFrom(value); 1074 } else { 1075 bigqueryDestinationBuilder_.setMessage(value); 1076 } 1077 } 1078 destinationCase_ = 2; 1079 return this; 1080 } 1081 /** 1082 * 1083 * 1084 * <pre> 1085 * The BigQuery location where the output is to be written to. 1086 * </pre> 1087 * 1088 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1089 */ clearBigqueryDestination()1090 public Builder clearBigqueryDestination() { 1091 if (bigqueryDestinationBuilder_ == null) { 1092 if (destinationCase_ == 2) { 1093 destinationCase_ = 0; 1094 destination_ = null; 1095 onChanged(); 1096 } 1097 } else { 1098 if (destinationCase_ == 2) { 1099 destinationCase_ = 0; 1100 destination_ = null; 1101 } 1102 bigqueryDestinationBuilder_.clear(); 1103 } 1104 return this; 1105 } 1106 /** 1107 * 1108 * 1109 * <pre> 1110 * The BigQuery location where the output is to be written to. 1111 * </pre> 1112 * 1113 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1114 */ 1115 public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder getBigqueryDestinationBuilder()1116 getBigqueryDestinationBuilder() { 1117 return getBigqueryDestinationFieldBuilder().getBuilder(); 1118 } 1119 /** 1120 * 1121 * 1122 * <pre> 1123 * The BigQuery location where the output is to be written to. 1124 * </pre> 1125 * 1126 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1127 */ 1128 @java.lang.Override 1129 public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder()1130 getBigqueryDestinationOrBuilder() { 1131 if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { 1132 return bigqueryDestinationBuilder_.getMessageOrBuilder(); 1133 } else { 1134 if (destinationCase_ == 2) { 1135 return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; 1136 } 1137 return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); 1138 } 1139 } 1140 /** 1141 * 1142 * 1143 * <pre> 1144 * The BigQuery location where the output is to be written to. 1145 * </pre> 1146 * 1147 * <code>.google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2;</code> 1148 */ 1149 private com.google.protobuf.SingleFieldBuilderV3< 1150 com.google.cloud.automl.v1beta1.BigQueryDestination, 1151 com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, 1152 com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> getBigqueryDestinationFieldBuilder()1153 getBigqueryDestinationFieldBuilder() { 1154 if (bigqueryDestinationBuilder_ == null) { 1155 if (!(destinationCase_ == 2)) { 1156 destination_ = com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); 1157 } 1158 bigqueryDestinationBuilder_ = 1159 new com.google.protobuf.SingleFieldBuilderV3< 1160 com.google.cloud.automl.v1beta1.BigQueryDestination, 1161 com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, 1162 com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder>( 1163 (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_, 1164 getParentForChildren(), 1165 isClean()); 1166 destination_ = null; 1167 } 1168 destinationCase_ = 2; 1169 onChanged(); 1170 return bigqueryDestinationBuilder_; 1171 } 1172 1173 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1174 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1175 return super.setUnknownFields(unknownFields); 1176 } 1177 1178 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1179 public final Builder mergeUnknownFields( 1180 final com.google.protobuf.UnknownFieldSet unknownFields) { 1181 return super.mergeUnknownFields(unknownFields); 1182 } 1183 1184 // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.OutputConfig) 1185 } 1186 1187 // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.OutputConfig) 1188 private static final com.google.cloud.automl.v1beta1.OutputConfig DEFAULT_INSTANCE; 1189 1190 static { 1191 DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.OutputConfig(); 1192 } 1193 getDefaultInstance()1194 public static com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstance() { 1195 return DEFAULT_INSTANCE; 1196 } 1197 1198 private static final com.google.protobuf.Parser<OutputConfig> PARSER = 1199 new com.google.protobuf.AbstractParser<OutputConfig>() { 1200 @java.lang.Override 1201 public OutputConfig parsePartialFrom( 1202 com.google.protobuf.CodedInputStream input, 1203 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1204 throws com.google.protobuf.InvalidProtocolBufferException { 1205 Builder builder = newBuilder(); 1206 try { 1207 builder.mergeFrom(input, extensionRegistry); 1208 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1209 throw e.setUnfinishedMessage(builder.buildPartial()); 1210 } catch (com.google.protobuf.UninitializedMessageException e) { 1211 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1212 } catch (java.io.IOException e) { 1213 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1214 .setUnfinishedMessage(builder.buildPartial()); 1215 } 1216 return builder.buildPartial(); 1217 } 1218 }; 1219 parser()1220 public static com.google.protobuf.Parser<OutputConfig> parser() { 1221 return PARSER; 1222 } 1223 1224 @java.lang.Override getParserForType()1225 public com.google.protobuf.Parser<OutputConfig> getParserForType() { 1226 return PARSER; 1227 } 1228 1229 @java.lang.Override getDefaultInstanceForType()1230 public com.google.cloud.automl.v1beta1.OutputConfig getDefaultInstanceForType() { 1231 return DEFAULT_INSTANCE; 1232 } 1233 } 1234