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/vision/v1/product_search_service.proto 18 19 package com.google.cloud.vision.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Metadata for the batch operations such as the current state. 26 * This is included in the `metadata` field of the `Operation` returned by the 27 * `GetOperation` call of the `google::longrunning::Operations` service. 28 * </pre> 29 * 30 * Protobuf type {@code google.cloud.vision.v1.BatchOperationMetadata} 31 */ 32 public final class BatchOperationMetadata extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.cloud.vision.v1.BatchOperationMetadata) 35 BatchOperationMetadataOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use BatchOperationMetadata.newBuilder() to construct. BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private BatchOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 BatchOperationMetadata()42 private BatchOperationMetadata() { 43 state_ = 0; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new BatchOperationMetadata(); 50 } 51 52 @java.lang.Override getUnknownFields()53 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 54 return this.unknownFields; 55 } 56 getDescriptor()57 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 58 return com.google.cloud.vision.v1.ProductSearchServiceProto 59 .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor; 60 } 61 62 @java.lang.Override 63 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()64 internalGetFieldAccessorTable() { 65 return com.google.cloud.vision.v1.ProductSearchServiceProto 66 .internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.cloud.vision.v1.BatchOperationMetadata.class, 69 com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class); 70 } 71 72 /** 73 * 74 * 75 * <pre> 76 * Enumerates the possible states that the batch request can be in. 77 * </pre> 78 * 79 * Protobuf enum {@code google.cloud.vision.v1.BatchOperationMetadata.State} 80 */ 81 public enum State implements com.google.protobuf.ProtocolMessageEnum { 82 /** 83 * 84 * 85 * <pre> 86 * Invalid. 87 * </pre> 88 * 89 * <code>STATE_UNSPECIFIED = 0;</code> 90 */ 91 STATE_UNSPECIFIED(0), 92 /** 93 * 94 * 95 * <pre> 96 * Request is actively being processed. 97 * </pre> 98 * 99 * <code>PROCESSING = 1;</code> 100 */ 101 PROCESSING(1), 102 /** 103 * 104 * 105 * <pre> 106 * The request is done and at least one item has been successfully 107 * processed. 108 * </pre> 109 * 110 * <code>SUCCESSFUL = 2;</code> 111 */ 112 SUCCESSFUL(2), 113 /** 114 * 115 * 116 * <pre> 117 * The request is done and no item has been successfully processed. 118 * </pre> 119 * 120 * <code>FAILED = 3;</code> 121 */ 122 FAILED(3), 123 /** 124 * 125 * 126 * <pre> 127 * The request is done after the longrunning.Operations.CancelOperation has 128 * been called by the user. Any records that were processed before the 129 * cancel command are output as specified in the request. 130 * </pre> 131 * 132 * <code>CANCELLED = 4;</code> 133 */ 134 CANCELLED(4), 135 UNRECOGNIZED(-1), 136 ; 137 138 /** 139 * 140 * 141 * <pre> 142 * Invalid. 143 * </pre> 144 * 145 * <code>STATE_UNSPECIFIED = 0;</code> 146 */ 147 public static final int STATE_UNSPECIFIED_VALUE = 0; 148 /** 149 * 150 * 151 * <pre> 152 * Request is actively being processed. 153 * </pre> 154 * 155 * <code>PROCESSING = 1;</code> 156 */ 157 public static final int PROCESSING_VALUE = 1; 158 /** 159 * 160 * 161 * <pre> 162 * The request is done and at least one item has been successfully 163 * processed. 164 * </pre> 165 * 166 * <code>SUCCESSFUL = 2;</code> 167 */ 168 public static final int SUCCESSFUL_VALUE = 2; 169 /** 170 * 171 * 172 * <pre> 173 * The request is done and no item has been successfully processed. 174 * </pre> 175 * 176 * <code>FAILED = 3;</code> 177 */ 178 public static final int FAILED_VALUE = 3; 179 /** 180 * 181 * 182 * <pre> 183 * The request is done after the longrunning.Operations.CancelOperation has 184 * been called by the user. Any records that were processed before the 185 * cancel command are output as specified in the request. 186 * </pre> 187 * 188 * <code>CANCELLED = 4;</code> 189 */ 190 public static final int CANCELLED_VALUE = 4; 191 getNumber()192 public final int getNumber() { 193 if (this == UNRECOGNIZED) { 194 throw new java.lang.IllegalArgumentException( 195 "Can't get the number of an unknown enum value."); 196 } 197 return value; 198 } 199 200 /** 201 * @param value The numeric wire value of the corresponding enum entry. 202 * @return The enum associated with the given numeric wire value. 203 * @deprecated Use {@link #forNumber(int)} instead. 204 */ 205 @java.lang.Deprecated valueOf(int value)206 public static State valueOf(int value) { 207 return forNumber(value); 208 } 209 210 /** 211 * @param value The numeric wire value of the corresponding enum entry. 212 * @return The enum associated with the given numeric wire value. 213 */ forNumber(int value)214 public static State forNumber(int value) { 215 switch (value) { 216 case 0: 217 return STATE_UNSPECIFIED; 218 case 1: 219 return PROCESSING; 220 case 2: 221 return SUCCESSFUL; 222 case 3: 223 return FAILED; 224 case 4: 225 return CANCELLED; 226 default: 227 return null; 228 } 229 } 230 internalGetValueMap()231 public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { 232 return internalValueMap; 233 } 234 235 private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = 236 new com.google.protobuf.Internal.EnumLiteMap<State>() { 237 public State findValueByNumber(int number) { 238 return State.forNumber(number); 239 } 240 }; 241 getValueDescriptor()242 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 243 if (this == UNRECOGNIZED) { 244 throw new java.lang.IllegalStateException( 245 "Can't get the descriptor of an unrecognized enum value."); 246 } 247 return getDescriptor().getValues().get(ordinal()); 248 } 249 getDescriptorForType()250 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 251 return getDescriptor(); 252 } 253 getDescriptor()254 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 255 return com.google.cloud.vision.v1.BatchOperationMetadata.getDescriptor() 256 .getEnumTypes() 257 .get(0); 258 } 259 260 private static final State[] VALUES = values(); 261 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)262 public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 263 if (desc.getType() != getDescriptor()) { 264 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 265 } 266 if (desc.getIndex() == -1) { 267 return UNRECOGNIZED; 268 } 269 return VALUES[desc.getIndex()]; 270 } 271 272 private final int value; 273 State(int value)274 private State(int value) { 275 this.value = value; 276 } 277 278 // @@protoc_insertion_point(enum_scope:google.cloud.vision.v1.BatchOperationMetadata.State) 279 } 280 281 public static final int STATE_FIELD_NUMBER = 1; 282 private int state_ = 0; 283 /** 284 * 285 * 286 * <pre> 287 * The current state of the batch operation. 288 * </pre> 289 * 290 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 291 * 292 * @return The enum numeric value on the wire for state. 293 */ 294 @java.lang.Override getStateValue()295 public int getStateValue() { 296 return state_; 297 } 298 /** 299 * 300 * 301 * <pre> 302 * The current state of the batch operation. 303 * </pre> 304 * 305 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 306 * 307 * @return The state. 308 */ 309 @java.lang.Override getState()310 public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { 311 com.google.cloud.vision.v1.BatchOperationMetadata.State result = 312 com.google.cloud.vision.v1.BatchOperationMetadata.State.forNumber(state_); 313 return result == null 314 ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED 315 : result; 316 } 317 318 public static final int SUBMIT_TIME_FIELD_NUMBER = 2; 319 private com.google.protobuf.Timestamp submitTime_; 320 /** 321 * 322 * 323 * <pre> 324 * The time when the batch request was submitted to the server. 325 * </pre> 326 * 327 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 328 * 329 * @return Whether the submitTime field is set. 330 */ 331 @java.lang.Override hasSubmitTime()332 public boolean hasSubmitTime() { 333 return submitTime_ != null; 334 } 335 /** 336 * 337 * 338 * <pre> 339 * The time when the batch request was submitted to the server. 340 * </pre> 341 * 342 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 343 * 344 * @return The submitTime. 345 */ 346 @java.lang.Override getSubmitTime()347 public com.google.protobuf.Timestamp getSubmitTime() { 348 return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; 349 } 350 /** 351 * 352 * 353 * <pre> 354 * The time when the batch request was submitted to the server. 355 * </pre> 356 * 357 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 358 */ 359 @java.lang.Override getSubmitTimeOrBuilder()360 public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { 361 return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; 362 } 363 364 public static final int END_TIME_FIELD_NUMBER = 3; 365 private com.google.protobuf.Timestamp endTime_; 366 /** 367 * 368 * 369 * <pre> 370 * The time when the batch request is finished and 371 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 372 * </pre> 373 * 374 * <code>.google.protobuf.Timestamp end_time = 3;</code> 375 * 376 * @return Whether the endTime field is set. 377 */ 378 @java.lang.Override hasEndTime()379 public boolean hasEndTime() { 380 return endTime_ != null; 381 } 382 /** 383 * 384 * 385 * <pre> 386 * The time when the batch request is finished and 387 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 388 * </pre> 389 * 390 * <code>.google.protobuf.Timestamp end_time = 3;</code> 391 * 392 * @return The endTime. 393 */ 394 @java.lang.Override getEndTime()395 public com.google.protobuf.Timestamp getEndTime() { 396 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 397 } 398 /** 399 * 400 * 401 * <pre> 402 * The time when the batch request is finished and 403 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 404 * </pre> 405 * 406 * <code>.google.protobuf.Timestamp end_time = 3;</code> 407 */ 408 @java.lang.Override getEndTimeOrBuilder()409 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 410 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 411 } 412 413 private byte memoizedIsInitialized = -1; 414 415 @java.lang.Override isInitialized()416 public final boolean isInitialized() { 417 byte isInitialized = memoizedIsInitialized; 418 if (isInitialized == 1) return true; 419 if (isInitialized == 0) return false; 420 421 memoizedIsInitialized = 1; 422 return true; 423 } 424 425 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)426 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 427 if (state_ 428 != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { 429 output.writeEnum(1, state_); 430 } 431 if (submitTime_ != null) { 432 output.writeMessage(2, getSubmitTime()); 433 } 434 if (endTime_ != null) { 435 output.writeMessage(3, getEndTime()); 436 } 437 getUnknownFields().writeTo(output); 438 } 439 440 @java.lang.Override getSerializedSize()441 public int getSerializedSize() { 442 int size = memoizedSize; 443 if (size != -1) return size; 444 445 size = 0; 446 if (state_ 447 != com.google.cloud.vision.v1.BatchOperationMetadata.State.STATE_UNSPECIFIED.getNumber()) { 448 size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); 449 } 450 if (submitTime_ != null) { 451 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubmitTime()); 452 } 453 if (endTime_ != null) { 454 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); 455 } 456 size += getUnknownFields().getSerializedSize(); 457 memoizedSize = size; 458 return size; 459 } 460 461 @java.lang.Override equals(final java.lang.Object obj)462 public boolean equals(final java.lang.Object obj) { 463 if (obj == this) { 464 return true; 465 } 466 if (!(obj instanceof com.google.cloud.vision.v1.BatchOperationMetadata)) { 467 return super.equals(obj); 468 } 469 com.google.cloud.vision.v1.BatchOperationMetadata other = 470 (com.google.cloud.vision.v1.BatchOperationMetadata) obj; 471 472 if (state_ != other.state_) return false; 473 if (hasSubmitTime() != other.hasSubmitTime()) return false; 474 if (hasSubmitTime()) { 475 if (!getSubmitTime().equals(other.getSubmitTime())) return false; 476 } 477 if (hasEndTime() != other.hasEndTime()) return false; 478 if (hasEndTime()) { 479 if (!getEndTime().equals(other.getEndTime())) return false; 480 } 481 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 482 return true; 483 } 484 485 @java.lang.Override hashCode()486 public int hashCode() { 487 if (memoizedHashCode != 0) { 488 return memoizedHashCode; 489 } 490 int hash = 41; 491 hash = (19 * hash) + getDescriptor().hashCode(); 492 hash = (37 * hash) + STATE_FIELD_NUMBER; 493 hash = (53 * hash) + state_; 494 if (hasSubmitTime()) { 495 hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; 496 hash = (53 * hash) + getSubmitTime().hashCode(); 497 } 498 if (hasEndTime()) { 499 hash = (37 * hash) + END_TIME_FIELD_NUMBER; 500 hash = (53 * hash) + getEndTime().hashCode(); 501 } 502 hash = (29 * hash) + getUnknownFields().hashCode(); 503 memoizedHashCode = hash; 504 return hash; 505 } 506 parseFrom( java.nio.ByteBuffer data)507 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 508 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 509 return PARSER.parseFrom(data); 510 } 511 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)512 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 513 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 514 throws com.google.protobuf.InvalidProtocolBufferException { 515 return PARSER.parseFrom(data, extensionRegistry); 516 } 517 parseFrom( com.google.protobuf.ByteString data)518 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 519 com.google.protobuf.ByteString data) 520 throws com.google.protobuf.InvalidProtocolBufferException { 521 return PARSER.parseFrom(data); 522 } 523 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)524 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 525 com.google.protobuf.ByteString data, 526 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 527 throws com.google.protobuf.InvalidProtocolBufferException { 528 return PARSER.parseFrom(data, extensionRegistry); 529 } 530 parseFrom(byte[] data)531 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom(byte[] data) 532 throws com.google.protobuf.InvalidProtocolBufferException { 533 return PARSER.parseFrom(data); 534 } 535 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)536 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 537 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 538 throws com.google.protobuf.InvalidProtocolBufferException { 539 return PARSER.parseFrom(data, extensionRegistry); 540 } 541 parseFrom( java.io.InputStream input)542 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 543 java.io.InputStream input) throws java.io.IOException { 544 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 545 } 546 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)547 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 548 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 549 throws java.io.IOException { 550 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 551 PARSER, input, extensionRegistry); 552 } 553 parseDelimitedFrom( java.io.InputStream input)554 public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom( 555 java.io.InputStream input) throws java.io.IOException { 556 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 557 } 558 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)559 public static com.google.cloud.vision.v1.BatchOperationMetadata parseDelimitedFrom( 560 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 561 throws java.io.IOException { 562 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 563 PARSER, input, extensionRegistry); 564 } 565 parseFrom( com.google.protobuf.CodedInputStream input)566 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 567 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 568 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 569 } 570 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)571 public static com.google.cloud.vision.v1.BatchOperationMetadata parseFrom( 572 com.google.protobuf.CodedInputStream input, 573 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 574 throws java.io.IOException { 575 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 576 PARSER, input, extensionRegistry); 577 } 578 579 @java.lang.Override newBuilderForType()580 public Builder newBuilderForType() { 581 return newBuilder(); 582 } 583 newBuilder()584 public static Builder newBuilder() { 585 return DEFAULT_INSTANCE.toBuilder(); 586 } 587 newBuilder(com.google.cloud.vision.v1.BatchOperationMetadata prototype)588 public static Builder newBuilder(com.google.cloud.vision.v1.BatchOperationMetadata prototype) { 589 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 590 } 591 592 @java.lang.Override toBuilder()593 public Builder toBuilder() { 594 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 595 } 596 597 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)598 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 599 Builder builder = new Builder(parent); 600 return builder; 601 } 602 /** 603 * 604 * 605 * <pre> 606 * Metadata for the batch operations such as the current state. 607 * This is included in the `metadata` field of the `Operation` returned by the 608 * `GetOperation` call of the `google::longrunning::Operations` service. 609 * </pre> 610 * 611 * Protobuf type {@code google.cloud.vision.v1.BatchOperationMetadata} 612 */ 613 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 614 implements 615 // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1.BatchOperationMetadata) 616 com.google.cloud.vision.v1.BatchOperationMetadataOrBuilder { getDescriptor()617 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 618 return com.google.cloud.vision.v1.ProductSearchServiceProto 619 .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor; 620 } 621 622 @java.lang.Override 623 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()624 internalGetFieldAccessorTable() { 625 return com.google.cloud.vision.v1.ProductSearchServiceProto 626 .internal_static_google_cloud_vision_v1_BatchOperationMetadata_fieldAccessorTable 627 .ensureFieldAccessorsInitialized( 628 com.google.cloud.vision.v1.BatchOperationMetadata.class, 629 com.google.cloud.vision.v1.BatchOperationMetadata.Builder.class); 630 } 631 632 // Construct using com.google.cloud.vision.v1.BatchOperationMetadata.newBuilder() Builder()633 private Builder() {} 634 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)635 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 636 super(parent); 637 } 638 639 @java.lang.Override clear()640 public Builder clear() { 641 super.clear(); 642 bitField0_ = 0; 643 state_ = 0; 644 submitTime_ = null; 645 if (submitTimeBuilder_ != null) { 646 submitTimeBuilder_.dispose(); 647 submitTimeBuilder_ = null; 648 } 649 endTime_ = null; 650 if (endTimeBuilder_ != null) { 651 endTimeBuilder_.dispose(); 652 endTimeBuilder_ = null; 653 } 654 return this; 655 } 656 657 @java.lang.Override getDescriptorForType()658 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 659 return com.google.cloud.vision.v1.ProductSearchServiceProto 660 .internal_static_google_cloud_vision_v1_BatchOperationMetadata_descriptor; 661 } 662 663 @java.lang.Override getDefaultInstanceForType()664 public com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstanceForType() { 665 return com.google.cloud.vision.v1.BatchOperationMetadata.getDefaultInstance(); 666 } 667 668 @java.lang.Override build()669 public com.google.cloud.vision.v1.BatchOperationMetadata build() { 670 com.google.cloud.vision.v1.BatchOperationMetadata result = buildPartial(); 671 if (!result.isInitialized()) { 672 throw newUninitializedMessageException(result); 673 } 674 return result; 675 } 676 677 @java.lang.Override buildPartial()678 public com.google.cloud.vision.v1.BatchOperationMetadata buildPartial() { 679 com.google.cloud.vision.v1.BatchOperationMetadata result = 680 new com.google.cloud.vision.v1.BatchOperationMetadata(this); 681 if (bitField0_ != 0) { 682 buildPartial0(result); 683 } 684 onBuilt(); 685 return result; 686 } 687 buildPartial0(com.google.cloud.vision.v1.BatchOperationMetadata result)688 private void buildPartial0(com.google.cloud.vision.v1.BatchOperationMetadata result) { 689 int from_bitField0_ = bitField0_; 690 if (((from_bitField0_ & 0x00000001) != 0)) { 691 result.state_ = state_; 692 } 693 if (((from_bitField0_ & 0x00000002) != 0)) { 694 result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); 695 } 696 if (((from_bitField0_ & 0x00000004) != 0)) { 697 result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); 698 } 699 } 700 701 @java.lang.Override clone()702 public Builder clone() { 703 return super.clone(); 704 } 705 706 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)707 public Builder setField( 708 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 709 return super.setField(field, value); 710 } 711 712 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)713 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 714 return super.clearField(field); 715 } 716 717 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)718 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 719 return super.clearOneof(oneof); 720 } 721 722 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)723 public Builder setRepeatedField( 724 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 725 return super.setRepeatedField(field, index, value); 726 } 727 728 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)729 public Builder addRepeatedField( 730 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 731 return super.addRepeatedField(field, value); 732 } 733 734 @java.lang.Override mergeFrom(com.google.protobuf.Message other)735 public Builder mergeFrom(com.google.protobuf.Message other) { 736 if (other instanceof com.google.cloud.vision.v1.BatchOperationMetadata) { 737 return mergeFrom((com.google.cloud.vision.v1.BatchOperationMetadata) other); 738 } else { 739 super.mergeFrom(other); 740 return this; 741 } 742 } 743 mergeFrom(com.google.cloud.vision.v1.BatchOperationMetadata other)744 public Builder mergeFrom(com.google.cloud.vision.v1.BatchOperationMetadata other) { 745 if (other == com.google.cloud.vision.v1.BatchOperationMetadata.getDefaultInstance()) 746 return this; 747 if (other.state_ != 0) { 748 setStateValue(other.getStateValue()); 749 } 750 if (other.hasSubmitTime()) { 751 mergeSubmitTime(other.getSubmitTime()); 752 } 753 if (other.hasEndTime()) { 754 mergeEndTime(other.getEndTime()); 755 } 756 this.mergeUnknownFields(other.getUnknownFields()); 757 onChanged(); 758 return this; 759 } 760 761 @java.lang.Override isInitialized()762 public final boolean isInitialized() { 763 return true; 764 } 765 766 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)767 public Builder mergeFrom( 768 com.google.protobuf.CodedInputStream input, 769 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 770 throws java.io.IOException { 771 if (extensionRegistry == null) { 772 throw new java.lang.NullPointerException(); 773 } 774 try { 775 boolean done = false; 776 while (!done) { 777 int tag = input.readTag(); 778 switch (tag) { 779 case 0: 780 done = true; 781 break; 782 case 8: 783 { 784 state_ = input.readEnum(); 785 bitField0_ |= 0x00000001; 786 break; 787 } // case 8 788 case 18: 789 { 790 input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); 791 bitField0_ |= 0x00000002; 792 break; 793 } // case 18 794 case 26: 795 { 796 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); 797 bitField0_ |= 0x00000004; 798 break; 799 } // case 26 800 default: 801 { 802 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 803 done = true; // was an endgroup tag 804 } 805 break; 806 } // default: 807 } // switch (tag) 808 } // while (!done) 809 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 810 throw e.unwrapIOException(); 811 } finally { 812 onChanged(); 813 } // finally 814 return this; 815 } 816 817 private int bitField0_; 818 819 private int state_ = 0; 820 /** 821 * 822 * 823 * <pre> 824 * The current state of the batch operation. 825 * </pre> 826 * 827 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 828 * 829 * @return The enum numeric value on the wire for state. 830 */ 831 @java.lang.Override getStateValue()832 public int getStateValue() { 833 return state_; 834 } 835 /** 836 * 837 * 838 * <pre> 839 * The current state of the batch operation. 840 * </pre> 841 * 842 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 843 * 844 * @param value The enum numeric value on the wire for state to set. 845 * @return This builder for chaining. 846 */ setStateValue(int value)847 public Builder setStateValue(int value) { 848 state_ = value; 849 bitField0_ |= 0x00000001; 850 onChanged(); 851 return this; 852 } 853 /** 854 * 855 * 856 * <pre> 857 * The current state of the batch operation. 858 * </pre> 859 * 860 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 861 * 862 * @return The state. 863 */ 864 @java.lang.Override getState()865 public com.google.cloud.vision.v1.BatchOperationMetadata.State getState() { 866 com.google.cloud.vision.v1.BatchOperationMetadata.State result = 867 com.google.cloud.vision.v1.BatchOperationMetadata.State.forNumber(state_); 868 return result == null 869 ? com.google.cloud.vision.v1.BatchOperationMetadata.State.UNRECOGNIZED 870 : result; 871 } 872 /** 873 * 874 * 875 * <pre> 876 * The current state of the batch operation. 877 * </pre> 878 * 879 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 880 * 881 * @param value The state to set. 882 * @return This builder for chaining. 883 */ setState(com.google.cloud.vision.v1.BatchOperationMetadata.State value)884 public Builder setState(com.google.cloud.vision.v1.BatchOperationMetadata.State value) { 885 if (value == null) { 886 throw new NullPointerException(); 887 } 888 bitField0_ |= 0x00000001; 889 state_ = value.getNumber(); 890 onChanged(); 891 return this; 892 } 893 /** 894 * 895 * 896 * <pre> 897 * The current state of the batch operation. 898 * </pre> 899 * 900 * <code>.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;</code> 901 * 902 * @return This builder for chaining. 903 */ clearState()904 public Builder clearState() { 905 bitField0_ = (bitField0_ & ~0x00000001); 906 state_ = 0; 907 onChanged(); 908 return this; 909 } 910 911 private com.google.protobuf.Timestamp submitTime_; 912 private com.google.protobuf.SingleFieldBuilderV3< 913 com.google.protobuf.Timestamp, 914 com.google.protobuf.Timestamp.Builder, 915 com.google.protobuf.TimestampOrBuilder> 916 submitTimeBuilder_; 917 /** 918 * 919 * 920 * <pre> 921 * The time when the batch request was submitted to the server. 922 * </pre> 923 * 924 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 925 * 926 * @return Whether the submitTime field is set. 927 */ hasSubmitTime()928 public boolean hasSubmitTime() { 929 return ((bitField0_ & 0x00000002) != 0); 930 } 931 /** 932 * 933 * 934 * <pre> 935 * The time when the batch request was submitted to the server. 936 * </pre> 937 * 938 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 939 * 940 * @return The submitTime. 941 */ getSubmitTime()942 public com.google.protobuf.Timestamp getSubmitTime() { 943 if (submitTimeBuilder_ == null) { 944 return submitTime_ == null 945 ? com.google.protobuf.Timestamp.getDefaultInstance() 946 : submitTime_; 947 } else { 948 return submitTimeBuilder_.getMessage(); 949 } 950 } 951 /** 952 * 953 * 954 * <pre> 955 * The time when the batch request was submitted to the server. 956 * </pre> 957 * 958 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 959 */ setSubmitTime(com.google.protobuf.Timestamp value)960 public Builder setSubmitTime(com.google.protobuf.Timestamp value) { 961 if (submitTimeBuilder_ == null) { 962 if (value == null) { 963 throw new NullPointerException(); 964 } 965 submitTime_ = value; 966 } else { 967 submitTimeBuilder_.setMessage(value); 968 } 969 bitField0_ |= 0x00000002; 970 onChanged(); 971 return this; 972 } 973 /** 974 * 975 * 976 * <pre> 977 * The time when the batch request was submitted to the server. 978 * </pre> 979 * 980 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 981 */ setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue)982 public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { 983 if (submitTimeBuilder_ == null) { 984 submitTime_ = builderForValue.build(); 985 } else { 986 submitTimeBuilder_.setMessage(builderForValue.build()); 987 } 988 bitField0_ |= 0x00000002; 989 onChanged(); 990 return this; 991 } 992 /** 993 * 994 * 995 * <pre> 996 * The time when the batch request was submitted to the server. 997 * </pre> 998 * 999 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 1000 */ mergeSubmitTime(com.google.protobuf.Timestamp value)1001 public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { 1002 if (submitTimeBuilder_ == null) { 1003 if (((bitField0_ & 0x00000002) != 0) 1004 && submitTime_ != null 1005 && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1006 getSubmitTimeBuilder().mergeFrom(value); 1007 } else { 1008 submitTime_ = value; 1009 } 1010 } else { 1011 submitTimeBuilder_.mergeFrom(value); 1012 } 1013 bitField0_ |= 0x00000002; 1014 onChanged(); 1015 return this; 1016 } 1017 /** 1018 * 1019 * 1020 * <pre> 1021 * The time when the batch request was submitted to the server. 1022 * </pre> 1023 * 1024 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 1025 */ clearSubmitTime()1026 public Builder clearSubmitTime() { 1027 bitField0_ = (bitField0_ & ~0x00000002); 1028 submitTime_ = null; 1029 if (submitTimeBuilder_ != null) { 1030 submitTimeBuilder_.dispose(); 1031 submitTimeBuilder_ = null; 1032 } 1033 onChanged(); 1034 return this; 1035 } 1036 /** 1037 * 1038 * 1039 * <pre> 1040 * The time when the batch request was submitted to the server. 1041 * </pre> 1042 * 1043 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 1044 */ getSubmitTimeBuilder()1045 public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { 1046 bitField0_ |= 0x00000002; 1047 onChanged(); 1048 return getSubmitTimeFieldBuilder().getBuilder(); 1049 } 1050 /** 1051 * 1052 * 1053 * <pre> 1054 * The time when the batch request was submitted to the server. 1055 * </pre> 1056 * 1057 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 1058 */ getSubmitTimeOrBuilder()1059 public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { 1060 if (submitTimeBuilder_ != null) { 1061 return submitTimeBuilder_.getMessageOrBuilder(); 1062 } else { 1063 return submitTime_ == null 1064 ? com.google.protobuf.Timestamp.getDefaultInstance() 1065 : submitTime_; 1066 } 1067 } 1068 /** 1069 * 1070 * 1071 * <pre> 1072 * The time when the batch request was submitted to the server. 1073 * </pre> 1074 * 1075 * <code>.google.protobuf.Timestamp submit_time = 2;</code> 1076 */ 1077 private com.google.protobuf.SingleFieldBuilderV3< 1078 com.google.protobuf.Timestamp, 1079 com.google.protobuf.Timestamp.Builder, 1080 com.google.protobuf.TimestampOrBuilder> getSubmitTimeFieldBuilder()1081 getSubmitTimeFieldBuilder() { 1082 if (submitTimeBuilder_ == null) { 1083 submitTimeBuilder_ = 1084 new com.google.protobuf.SingleFieldBuilderV3< 1085 com.google.protobuf.Timestamp, 1086 com.google.protobuf.Timestamp.Builder, 1087 com.google.protobuf.TimestampOrBuilder>( 1088 getSubmitTime(), getParentForChildren(), isClean()); 1089 submitTime_ = null; 1090 } 1091 return submitTimeBuilder_; 1092 } 1093 1094 private com.google.protobuf.Timestamp endTime_; 1095 private com.google.protobuf.SingleFieldBuilderV3< 1096 com.google.protobuf.Timestamp, 1097 com.google.protobuf.Timestamp.Builder, 1098 com.google.protobuf.TimestampOrBuilder> 1099 endTimeBuilder_; 1100 /** 1101 * 1102 * 1103 * <pre> 1104 * The time when the batch request is finished and 1105 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1106 * </pre> 1107 * 1108 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1109 * 1110 * @return Whether the endTime field is set. 1111 */ hasEndTime()1112 public boolean hasEndTime() { 1113 return ((bitField0_ & 0x00000004) != 0); 1114 } 1115 /** 1116 * 1117 * 1118 * <pre> 1119 * The time when the batch request is finished and 1120 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1121 * </pre> 1122 * 1123 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1124 * 1125 * @return The endTime. 1126 */ getEndTime()1127 public com.google.protobuf.Timestamp getEndTime() { 1128 if (endTimeBuilder_ == null) { 1129 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1130 } else { 1131 return endTimeBuilder_.getMessage(); 1132 } 1133 } 1134 /** 1135 * 1136 * 1137 * <pre> 1138 * The time when the batch request is finished and 1139 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1140 * </pre> 1141 * 1142 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1143 */ setEndTime(com.google.protobuf.Timestamp value)1144 public Builder setEndTime(com.google.protobuf.Timestamp value) { 1145 if (endTimeBuilder_ == null) { 1146 if (value == null) { 1147 throw new NullPointerException(); 1148 } 1149 endTime_ = value; 1150 } else { 1151 endTimeBuilder_.setMessage(value); 1152 } 1153 bitField0_ |= 0x00000004; 1154 onChanged(); 1155 return this; 1156 } 1157 /** 1158 * 1159 * 1160 * <pre> 1161 * The time when the batch request is finished and 1162 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1163 * </pre> 1164 * 1165 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1166 */ setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)1167 public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { 1168 if (endTimeBuilder_ == null) { 1169 endTime_ = builderForValue.build(); 1170 } else { 1171 endTimeBuilder_.setMessage(builderForValue.build()); 1172 } 1173 bitField0_ |= 0x00000004; 1174 onChanged(); 1175 return this; 1176 } 1177 /** 1178 * 1179 * 1180 * <pre> 1181 * The time when the batch request is finished and 1182 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1183 * </pre> 1184 * 1185 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1186 */ mergeEndTime(com.google.protobuf.Timestamp value)1187 public Builder mergeEndTime(com.google.protobuf.Timestamp value) { 1188 if (endTimeBuilder_ == null) { 1189 if (((bitField0_ & 0x00000004) != 0) 1190 && endTime_ != null 1191 && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 1192 getEndTimeBuilder().mergeFrom(value); 1193 } else { 1194 endTime_ = value; 1195 } 1196 } else { 1197 endTimeBuilder_.mergeFrom(value); 1198 } 1199 bitField0_ |= 0x00000004; 1200 onChanged(); 1201 return this; 1202 } 1203 /** 1204 * 1205 * 1206 * <pre> 1207 * The time when the batch request is finished and 1208 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1209 * </pre> 1210 * 1211 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1212 */ clearEndTime()1213 public Builder clearEndTime() { 1214 bitField0_ = (bitField0_ & ~0x00000004); 1215 endTime_ = null; 1216 if (endTimeBuilder_ != null) { 1217 endTimeBuilder_.dispose(); 1218 endTimeBuilder_ = null; 1219 } 1220 onChanged(); 1221 return this; 1222 } 1223 /** 1224 * 1225 * 1226 * <pre> 1227 * The time when the batch request is finished and 1228 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1229 * </pre> 1230 * 1231 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1232 */ getEndTimeBuilder()1233 public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { 1234 bitField0_ |= 0x00000004; 1235 onChanged(); 1236 return getEndTimeFieldBuilder().getBuilder(); 1237 } 1238 /** 1239 * 1240 * 1241 * <pre> 1242 * The time when the batch request is finished and 1243 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1244 * </pre> 1245 * 1246 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1247 */ getEndTimeOrBuilder()1248 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 1249 if (endTimeBuilder_ != null) { 1250 return endTimeBuilder_.getMessageOrBuilder(); 1251 } else { 1252 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1253 } 1254 } 1255 /** 1256 * 1257 * 1258 * <pre> 1259 * The time when the batch request is finished and 1260 * [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true. 1261 * </pre> 1262 * 1263 * <code>.google.protobuf.Timestamp end_time = 3;</code> 1264 */ 1265 private com.google.protobuf.SingleFieldBuilderV3< 1266 com.google.protobuf.Timestamp, 1267 com.google.protobuf.Timestamp.Builder, 1268 com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder()1269 getEndTimeFieldBuilder() { 1270 if (endTimeBuilder_ == null) { 1271 endTimeBuilder_ = 1272 new com.google.protobuf.SingleFieldBuilderV3< 1273 com.google.protobuf.Timestamp, 1274 com.google.protobuf.Timestamp.Builder, 1275 com.google.protobuf.TimestampOrBuilder>( 1276 getEndTime(), getParentForChildren(), isClean()); 1277 endTime_ = null; 1278 } 1279 return endTimeBuilder_; 1280 } 1281 1282 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1283 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1284 return super.setUnknownFields(unknownFields); 1285 } 1286 1287 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1288 public final Builder mergeUnknownFields( 1289 final com.google.protobuf.UnknownFieldSet unknownFields) { 1290 return super.mergeUnknownFields(unknownFields); 1291 } 1292 1293 // @@protoc_insertion_point(builder_scope:google.cloud.vision.v1.BatchOperationMetadata) 1294 } 1295 1296 // @@protoc_insertion_point(class_scope:google.cloud.vision.v1.BatchOperationMetadata) 1297 private static final com.google.cloud.vision.v1.BatchOperationMetadata DEFAULT_INSTANCE; 1298 1299 static { 1300 DEFAULT_INSTANCE = new com.google.cloud.vision.v1.BatchOperationMetadata(); 1301 } 1302 getDefaultInstance()1303 public static com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstance() { 1304 return DEFAULT_INSTANCE; 1305 } 1306 1307 private static final com.google.protobuf.Parser<BatchOperationMetadata> PARSER = 1308 new com.google.protobuf.AbstractParser<BatchOperationMetadata>() { 1309 @java.lang.Override 1310 public BatchOperationMetadata parsePartialFrom( 1311 com.google.protobuf.CodedInputStream input, 1312 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1313 throws com.google.protobuf.InvalidProtocolBufferException { 1314 Builder builder = newBuilder(); 1315 try { 1316 builder.mergeFrom(input, extensionRegistry); 1317 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1318 throw e.setUnfinishedMessage(builder.buildPartial()); 1319 } catch (com.google.protobuf.UninitializedMessageException e) { 1320 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1321 } catch (java.io.IOException e) { 1322 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1323 .setUnfinishedMessage(builder.buildPartial()); 1324 } 1325 return builder.buildPartial(); 1326 } 1327 }; 1328 parser()1329 public static com.google.protobuf.Parser<BatchOperationMetadata> parser() { 1330 return PARSER; 1331 } 1332 1333 @java.lang.Override getParserForType()1334 public com.google.protobuf.Parser<BatchOperationMetadata> getParserForType() { 1335 return PARSER; 1336 } 1337 1338 @java.lang.Override getDefaultInstanceForType()1339 public com.google.cloud.vision.v1.BatchOperationMetadata getDefaultInstanceForType() { 1340 return DEFAULT_INSTANCE; 1341 } 1342 } 1343