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/talent/v4/job_service.proto 18 19 package com.google.cloud.talent.v4; 20 21 /** 22 * 23 * 24 * <pre> 25 * The result of 26 * [JobService.BatchCreateJobs][google.cloud.talent.v4.JobService.BatchCreateJobs]. 27 * It's used to replace 28 * [google.longrunning.Operation.response][google.longrunning.Operation.response] 29 * in case of success. 30 * </pre> 31 * 32 * Protobuf type {@code google.cloud.talent.v4.BatchCreateJobsResponse} 33 */ 34 public final class BatchCreateJobsResponse extends com.google.protobuf.GeneratedMessageV3 35 implements 36 // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.BatchCreateJobsResponse) 37 BatchCreateJobsResponseOrBuilder { 38 private static final long serialVersionUID = 0L; 39 // Use BatchCreateJobsResponse.newBuilder() to construct. BatchCreateJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)40 private BatchCreateJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 41 super(builder); 42 } 43 BatchCreateJobsResponse()44 private BatchCreateJobsResponse() { 45 jobResults_ = java.util.Collections.emptyList(); 46 } 47 48 @java.lang.Override 49 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)50 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 51 return new BatchCreateJobsResponse(); 52 } 53 54 @java.lang.Override getUnknownFields()55 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 56 return this.unknownFields; 57 } 58 getDescriptor()59 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 60 return com.google.cloud.talent.v4.JobServiceProto 61 .internal_static_google_cloud_talent_v4_BatchCreateJobsResponse_descriptor; 62 } 63 64 @java.lang.Override 65 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()66 internalGetFieldAccessorTable() { 67 return com.google.cloud.talent.v4.JobServiceProto 68 .internal_static_google_cloud_talent_v4_BatchCreateJobsResponse_fieldAccessorTable 69 .ensureFieldAccessorsInitialized( 70 com.google.cloud.talent.v4.BatchCreateJobsResponse.class, 71 com.google.cloud.talent.v4.BatchCreateJobsResponse.Builder.class); 72 } 73 74 public static final int JOB_RESULTS_FIELD_NUMBER = 1; 75 76 @SuppressWarnings("serial") 77 private java.util.List<com.google.cloud.talent.v4.JobResult> jobResults_; 78 /** 79 * 80 * 81 * <pre> 82 * List of job mutation results from a batch create operation. It can change 83 * until operation status is FINISHED, FAILED or CANCELLED. 84 * </pre> 85 * 86 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 87 */ 88 @java.lang.Override getJobResultsList()89 public java.util.List<com.google.cloud.talent.v4.JobResult> getJobResultsList() { 90 return jobResults_; 91 } 92 /** 93 * 94 * 95 * <pre> 96 * List of job mutation results from a batch create operation. It can change 97 * until operation status is FINISHED, FAILED or CANCELLED. 98 * </pre> 99 * 100 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 101 */ 102 @java.lang.Override 103 public java.util.List<? extends com.google.cloud.talent.v4.JobResultOrBuilder> getJobResultsOrBuilderList()104 getJobResultsOrBuilderList() { 105 return jobResults_; 106 } 107 /** 108 * 109 * 110 * <pre> 111 * List of job mutation results from a batch create operation. It can change 112 * until operation status is FINISHED, FAILED or CANCELLED. 113 * </pre> 114 * 115 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 116 */ 117 @java.lang.Override getJobResultsCount()118 public int getJobResultsCount() { 119 return jobResults_.size(); 120 } 121 /** 122 * 123 * 124 * <pre> 125 * List of job mutation results from a batch create operation. It can change 126 * until operation status is FINISHED, FAILED or CANCELLED. 127 * </pre> 128 * 129 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 130 */ 131 @java.lang.Override getJobResults(int index)132 public com.google.cloud.talent.v4.JobResult getJobResults(int index) { 133 return jobResults_.get(index); 134 } 135 /** 136 * 137 * 138 * <pre> 139 * List of job mutation results from a batch create operation. It can change 140 * until operation status is FINISHED, FAILED or CANCELLED. 141 * </pre> 142 * 143 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 144 */ 145 @java.lang.Override getJobResultsOrBuilder(int index)146 public com.google.cloud.talent.v4.JobResultOrBuilder getJobResultsOrBuilder(int index) { 147 return jobResults_.get(index); 148 } 149 150 private byte memoizedIsInitialized = -1; 151 152 @java.lang.Override isInitialized()153 public final boolean isInitialized() { 154 byte isInitialized = memoizedIsInitialized; 155 if (isInitialized == 1) return true; 156 if (isInitialized == 0) return false; 157 158 memoizedIsInitialized = 1; 159 return true; 160 } 161 162 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)163 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 164 for (int i = 0; i < jobResults_.size(); i++) { 165 output.writeMessage(1, jobResults_.get(i)); 166 } 167 getUnknownFields().writeTo(output); 168 } 169 170 @java.lang.Override getSerializedSize()171 public int getSerializedSize() { 172 int size = memoizedSize; 173 if (size != -1) return size; 174 175 size = 0; 176 for (int i = 0; i < jobResults_.size(); i++) { 177 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobResults_.get(i)); 178 } 179 size += getUnknownFields().getSerializedSize(); 180 memoizedSize = size; 181 return size; 182 } 183 184 @java.lang.Override equals(final java.lang.Object obj)185 public boolean equals(final java.lang.Object obj) { 186 if (obj == this) { 187 return true; 188 } 189 if (!(obj instanceof com.google.cloud.talent.v4.BatchCreateJobsResponse)) { 190 return super.equals(obj); 191 } 192 com.google.cloud.talent.v4.BatchCreateJobsResponse other = 193 (com.google.cloud.talent.v4.BatchCreateJobsResponse) obj; 194 195 if (!getJobResultsList().equals(other.getJobResultsList())) return false; 196 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 197 return true; 198 } 199 200 @java.lang.Override hashCode()201 public int hashCode() { 202 if (memoizedHashCode != 0) { 203 return memoizedHashCode; 204 } 205 int hash = 41; 206 hash = (19 * hash) + getDescriptor().hashCode(); 207 if (getJobResultsCount() > 0) { 208 hash = (37 * hash) + JOB_RESULTS_FIELD_NUMBER; 209 hash = (53 * hash) + getJobResultsList().hashCode(); 210 } 211 hash = (29 * hash) + getUnknownFields().hashCode(); 212 memoizedHashCode = hash; 213 return hash; 214 } 215 parseFrom( java.nio.ByteBuffer data)216 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 217 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 218 return PARSER.parseFrom(data); 219 } 220 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)221 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 222 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 223 throws com.google.protobuf.InvalidProtocolBufferException { 224 return PARSER.parseFrom(data, extensionRegistry); 225 } 226 parseFrom( com.google.protobuf.ByteString data)227 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 228 com.google.protobuf.ByteString data) 229 throws com.google.protobuf.InvalidProtocolBufferException { 230 return PARSER.parseFrom(data); 231 } 232 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)233 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 234 com.google.protobuf.ByteString data, 235 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 236 throws com.google.protobuf.InvalidProtocolBufferException { 237 return PARSER.parseFrom(data, extensionRegistry); 238 } 239 parseFrom(byte[] data)240 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom(byte[] data) 241 throws com.google.protobuf.InvalidProtocolBufferException { 242 return PARSER.parseFrom(data); 243 } 244 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)245 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 246 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 247 throws com.google.protobuf.InvalidProtocolBufferException { 248 return PARSER.parseFrom(data, extensionRegistry); 249 } 250 parseFrom( java.io.InputStream input)251 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 252 java.io.InputStream input) throws java.io.IOException { 253 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 254 } 255 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)256 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 257 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 258 throws java.io.IOException { 259 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 260 PARSER, input, extensionRegistry); 261 } 262 parseDelimitedFrom( java.io.InputStream input)263 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseDelimitedFrom( 264 java.io.InputStream input) throws java.io.IOException { 265 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 266 } 267 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)268 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseDelimitedFrom( 269 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 270 throws java.io.IOException { 271 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 272 PARSER, input, extensionRegistry); 273 } 274 parseFrom( com.google.protobuf.CodedInputStream input)275 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 276 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 277 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 278 } 279 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)280 public static com.google.cloud.talent.v4.BatchCreateJobsResponse parseFrom( 281 com.google.protobuf.CodedInputStream input, 282 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 283 throws java.io.IOException { 284 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 285 PARSER, input, extensionRegistry); 286 } 287 288 @java.lang.Override newBuilderForType()289 public Builder newBuilderForType() { 290 return newBuilder(); 291 } 292 newBuilder()293 public static Builder newBuilder() { 294 return DEFAULT_INSTANCE.toBuilder(); 295 } 296 newBuilder(com.google.cloud.talent.v4.BatchCreateJobsResponse prototype)297 public static Builder newBuilder(com.google.cloud.talent.v4.BatchCreateJobsResponse prototype) { 298 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 299 } 300 301 @java.lang.Override toBuilder()302 public Builder toBuilder() { 303 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 304 } 305 306 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)307 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 308 Builder builder = new Builder(parent); 309 return builder; 310 } 311 /** 312 * 313 * 314 * <pre> 315 * The result of 316 * [JobService.BatchCreateJobs][google.cloud.talent.v4.JobService.BatchCreateJobs]. 317 * It's used to replace 318 * [google.longrunning.Operation.response][google.longrunning.Operation.response] 319 * in case of success. 320 * </pre> 321 * 322 * Protobuf type {@code google.cloud.talent.v4.BatchCreateJobsResponse} 323 */ 324 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 325 implements 326 // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.BatchCreateJobsResponse) 327 com.google.cloud.talent.v4.BatchCreateJobsResponseOrBuilder { getDescriptor()328 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 329 return com.google.cloud.talent.v4.JobServiceProto 330 .internal_static_google_cloud_talent_v4_BatchCreateJobsResponse_descriptor; 331 } 332 333 @java.lang.Override 334 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()335 internalGetFieldAccessorTable() { 336 return com.google.cloud.talent.v4.JobServiceProto 337 .internal_static_google_cloud_talent_v4_BatchCreateJobsResponse_fieldAccessorTable 338 .ensureFieldAccessorsInitialized( 339 com.google.cloud.talent.v4.BatchCreateJobsResponse.class, 340 com.google.cloud.talent.v4.BatchCreateJobsResponse.Builder.class); 341 } 342 343 // Construct using com.google.cloud.talent.v4.BatchCreateJobsResponse.newBuilder() Builder()344 private Builder() {} 345 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)346 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 347 super(parent); 348 } 349 350 @java.lang.Override clear()351 public Builder clear() { 352 super.clear(); 353 bitField0_ = 0; 354 if (jobResultsBuilder_ == null) { 355 jobResults_ = java.util.Collections.emptyList(); 356 } else { 357 jobResults_ = null; 358 jobResultsBuilder_.clear(); 359 } 360 bitField0_ = (bitField0_ & ~0x00000001); 361 return this; 362 } 363 364 @java.lang.Override getDescriptorForType()365 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 366 return com.google.cloud.talent.v4.JobServiceProto 367 .internal_static_google_cloud_talent_v4_BatchCreateJobsResponse_descriptor; 368 } 369 370 @java.lang.Override getDefaultInstanceForType()371 public com.google.cloud.talent.v4.BatchCreateJobsResponse getDefaultInstanceForType() { 372 return com.google.cloud.talent.v4.BatchCreateJobsResponse.getDefaultInstance(); 373 } 374 375 @java.lang.Override build()376 public com.google.cloud.talent.v4.BatchCreateJobsResponse build() { 377 com.google.cloud.talent.v4.BatchCreateJobsResponse result = buildPartial(); 378 if (!result.isInitialized()) { 379 throw newUninitializedMessageException(result); 380 } 381 return result; 382 } 383 384 @java.lang.Override buildPartial()385 public com.google.cloud.talent.v4.BatchCreateJobsResponse buildPartial() { 386 com.google.cloud.talent.v4.BatchCreateJobsResponse result = 387 new com.google.cloud.talent.v4.BatchCreateJobsResponse(this); 388 buildPartialRepeatedFields(result); 389 if (bitField0_ != 0) { 390 buildPartial0(result); 391 } 392 onBuilt(); 393 return result; 394 } 395 buildPartialRepeatedFields( com.google.cloud.talent.v4.BatchCreateJobsResponse result)396 private void buildPartialRepeatedFields( 397 com.google.cloud.talent.v4.BatchCreateJobsResponse result) { 398 if (jobResultsBuilder_ == null) { 399 if (((bitField0_ & 0x00000001) != 0)) { 400 jobResults_ = java.util.Collections.unmodifiableList(jobResults_); 401 bitField0_ = (bitField0_ & ~0x00000001); 402 } 403 result.jobResults_ = jobResults_; 404 } else { 405 result.jobResults_ = jobResultsBuilder_.build(); 406 } 407 } 408 buildPartial0(com.google.cloud.talent.v4.BatchCreateJobsResponse result)409 private void buildPartial0(com.google.cloud.talent.v4.BatchCreateJobsResponse result) { 410 int from_bitField0_ = bitField0_; 411 } 412 413 @java.lang.Override clone()414 public Builder clone() { 415 return super.clone(); 416 } 417 418 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)419 public Builder setField( 420 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 421 return super.setField(field, value); 422 } 423 424 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)425 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 426 return super.clearField(field); 427 } 428 429 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)430 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 431 return super.clearOneof(oneof); 432 } 433 434 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)435 public Builder setRepeatedField( 436 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 437 return super.setRepeatedField(field, index, value); 438 } 439 440 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)441 public Builder addRepeatedField( 442 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 443 return super.addRepeatedField(field, value); 444 } 445 446 @java.lang.Override mergeFrom(com.google.protobuf.Message other)447 public Builder mergeFrom(com.google.protobuf.Message other) { 448 if (other instanceof com.google.cloud.talent.v4.BatchCreateJobsResponse) { 449 return mergeFrom((com.google.cloud.talent.v4.BatchCreateJobsResponse) other); 450 } else { 451 super.mergeFrom(other); 452 return this; 453 } 454 } 455 mergeFrom(com.google.cloud.talent.v4.BatchCreateJobsResponse other)456 public Builder mergeFrom(com.google.cloud.talent.v4.BatchCreateJobsResponse other) { 457 if (other == com.google.cloud.talent.v4.BatchCreateJobsResponse.getDefaultInstance()) 458 return this; 459 if (jobResultsBuilder_ == null) { 460 if (!other.jobResults_.isEmpty()) { 461 if (jobResults_.isEmpty()) { 462 jobResults_ = other.jobResults_; 463 bitField0_ = (bitField0_ & ~0x00000001); 464 } else { 465 ensureJobResultsIsMutable(); 466 jobResults_.addAll(other.jobResults_); 467 } 468 onChanged(); 469 } 470 } else { 471 if (!other.jobResults_.isEmpty()) { 472 if (jobResultsBuilder_.isEmpty()) { 473 jobResultsBuilder_.dispose(); 474 jobResultsBuilder_ = null; 475 jobResults_ = other.jobResults_; 476 bitField0_ = (bitField0_ & ~0x00000001); 477 jobResultsBuilder_ = 478 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 479 ? getJobResultsFieldBuilder() 480 : null; 481 } else { 482 jobResultsBuilder_.addAllMessages(other.jobResults_); 483 } 484 } 485 } 486 this.mergeUnknownFields(other.getUnknownFields()); 487 onChanged(); 488 return this; 489 } 490 491 @java.lang.Override isInitialized()492 public final boolean isInitialized() { 493 return true; 494 } 495 496 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)497 public Builder mergeFrom( 498 com.google.protobuf.CodedInputStream input, 499 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 500 throws java.io.IOException { 501 if (extensionRegistry == null) { 502 throw new java.lang.NullPointerException(); 503 } 504 try { 505 boolean done = false; 506 while (!done) { 507 int tag = input.readTag(); 508 switch (tag) { 509 case 0: 510 done = true; 511 break; 512 case 10: 513 { 514 com.google.cloud.talent.v4.JobResult m = 515 input.readMessage( 516 com.google.cloud.talent.v4.JobResult.parser(), extensionRegistry); 517 if (jobResultsBuilder_ == null) { 518 ensureJobResultsIsMutable(); 519 jobResults_.add(m); 520 } else { 521 jobResultsBuilder_.addMessage(m); 522 } 523 break; 524 } // case 10 525 default: 526 { 527 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 528 done = true; // was an endgroup tag 529 } 530 break; 531 } // default: 532 } // switch (tag) 533 } // while (!done) 534 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 535 throw e.unwrapIOException(); 536 } finally { 537 onChanged(); 538 } // finally 539 return this; 540 } 541 542 private int bitField0_; 543 544 private java.util.List<com.google.cloud.talent.v4.JobResult> jobResults_ = 545 java.util.Collections.emptyList(); 546 ensureJobResultsIsMutable()547 private void ensureJobResultsIsMutable() { 548 if (!((bitField0_ & 0x00000001) != 0)) { 549 jobResults_ = new java.util.ArrayList<com.google.cloud.talent.v4.JobResult>(jobResults_); 550 bitField0_ |= 0x00000001; 551 } 552 } 553 554 private com.google.protobuf.RepeatedFieldBuilderV3< 555 com.google.cloud.talent.v4.JobResult, 556 com.google.cloud.talent.v4.JobResult.Builder, 557 com.google.cloud.talent.v4.JobResultOrBuilder> 558 jobResultsBuilder_; 559 560 /** 561 * 562 * 563 * <pre> 564 * List of job mutation results from a batch create operation. It can change 565 * until operation status is FINISHED, FAILED or CANCELLED. 566 * </pre> 567 * 568 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 569 */ getJobResultsList()570 public java.util.List<com.google.cloud.talent.v4.JobResult> getJobResultsList() { 571 if (jobResultsBuilder_ == null) { 572 return java.util.Collections.unmodifiableList(jobResults_); 573 } else { 574 return jobResultsBuilder_.getMessageList(); 575 } 576 } 577 /** 578 * 579 * 580 * <pre> 581 * List of job mutation results from a batch create operation. It can change 582 * until operation status is FINISHED, FAILED or CANCELLED. 583 * </pre> 584 * 585 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 586 */ getJobResultsCount()587 public int getJobResultsCount() { 588 if (jobResultsBuilder_ == null) { 589 return jobResults_.size(); 590 } else { 591 return jobResultsBuilder_.getCount(); 592 } 593 } 594 /** 595 * 596 * 597 * <pre> 598 * List of job mutation results from a batch create operation. It can change 599 * until operation status is FINISHED, FAILED or CANCELLED. 600 * </pre> 601 * 602 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 603 */ getJobResults(int index)604 public com.google.cloud.talent.v4.JobResult getJobResults(int index) { 605 if (jobResultsBuilder_ == null) { 606 return jobResults_.get(index); 607 } else { 608 return jobResultsBuilder_.getMessage(index); 609 } 610 } 611 /** 612 * 613 * 614 * <pre> 615 * List of job mutation results from a batch create operation. It can change 616 * until operation status is FINISHED, FAILED or CANCELLED. 617 * </pre> 618 * 619 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 620 */ setJobResults(int index, com.google.cloud.talent.v4.JobResult value)621 public Builder setJobResults(int index, com.google.cloud.talent.v4.JobResult value) { 622 if (jobResultsBuilder_ == null) { 623 if (value == null) { 624 throw new NullPointerException(); 625 } 626 ensureJobResultsIsMutable(); 627 jobResults_.set(index, value); 628 onChanged(); 629 } else { 630 jobResultsBuilder_.setMessage(index, value); 631 } 632 return this; 633 } 634 /** 635 * 636 * 637 * <pre> 638 * List of job mutation results from a batch create operation. It can change 639 * until operation status is FINISHED, FAILED or CANCELLED. 640 * </pre> 641 * 642 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 643 */ setJobResults( int index, com.google.cloud.talent.v4.JobResult.Builder builderForValue)644 public Builder setJobResults( 645 int index, com.google.cloud.talent.v4.JobResult.Builder builderForValue) { 646 if (jobResultsBuilder_ == null) { 647 ensureJobResultsIsMutable(); 648 jobResults_.set(index, builderForValue.build()); 649 onChanged(); 650 } else { 651 jobResultsBuilder_.setMessage(index, builderForValue.build()); 652 } 653 return this; 654 } 655 /** 656 * 657 * 658 * <pre> 659 * List of job mutation results from a batch create operation. It can change 660 * until operation status is FINISHED, FAILED or CANCELLED. 661 * </pre> 662 * 663 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 664 */ addJobResults(com.google.cloud.talent.v4.JobResult value)665 public Builder addJobResults(com.google.cloud.talent.v4.JobResult value) { 666 if (jobResultsBuilder_ == null) { 667 if (value == null) { 668 throw new NullPointerException(); 669 } 670 ensureJobResultsIsMutable(); 671 jobResults_.add(value); 672 onChanged(); 673 } else { 674 jobResultsBuilder_.addMessage(value); 675 } 676 return this; 677 } 678 /** 679 * 680 * 681 * <pre> 682 * List of job mutation results from a batch create operation. It can change 683 * until operation status is FINISHED, FAILED or CANCELLED. 684 * </pre> 685 * 686 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 687 */ addJobResults(int index, com.google.cloud.talent.v4.JobResult value)688 public Builder addJobResults(int index, com.google.cloud.talent.v4.JobResult value) { 689 if (jobResultsBuilder_ == null) { 690 if (value == null) { 691 throw new NullPointerException(); 692 } 693 ensureJobResultsIsMutable(); 694 jobResults_.add(index, value); 695 onChanged(); 696 } else { 697 jobResultsBuilder_.addMessage(index, value); 698 } 699 return this; 700 } 701 /** 702 * 703 * 704 * <pre> 705 * List of job mutation results from a batch create operation. It can change 706 * until operation status is FINISHED, FAILED or CANCELLED. 707 * </pre> 708 * 709 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 710 */ addJobResults(com.google.cloud.talent.v4.JobResult.Builder builderForValue)711 public Builder addJobResults(com.google.cloud.talent.v4.JobResult.Builder builderForValue) { 712 if (jobResultsBuilder_ == null) { 713 ensureJobResultsIsMutable(); 714 jobResults_.add(builderForValue.build()); 715 onChanged(); 716 } else { 717 jobResultsBuilder_.addMessage(builderForValue.build()); 718 } 719 return this; 720 } 721 /** 722 * 723 * 724 * <pre> 725 * List of job mutation results from a batch create operation. It can change 726 * until operation status is FINISHED, FAILED or CANCELLED. 727 * </pre> 728 * 729 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 730 */ addJobResults( int index, com.google.cloud.talent.v4.JobResult.Builder builderForValue)731 public Builder addJobResults( 732 int index, com.google.cloud.talent.v4.JobResult.Builder builderForValue) { 733 if (jobResultsBuilder_ == null) { 734 ensureJobResultsIsMutable(); 735 jobResults_.add(index, builderForValue.build()); 736 onChanged(); 737 } else { 738 jobResultsBuilder_.addMessage(index, builderForValue.build()); 739 } 740 return this; 741 } 742 /** 743 * 744 * 745 * <pre> 746 * List of job mutation results from a batch create operation. It can change 747 * until operation status is FINISHED, FAILED or CANCELLED. 748 * </pre> 749 * 750 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 751 */ addAllJobResults( java.lang.Iterable<? extends com.google.cloud.talent.v4.JobResult> values)752 public Builder addAllJobResults( 753 java.lang.Iterable<? extends com.google.cloud.talent.v4.JobResult> values) { 754 if (jobResultsBuilder_ == null) { 755 ensureJobResultsIsMutable(); 756 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobResults_); 757 onChanged(); 758 } else { 759 jobResultsBuilder_.addAllMessages(values); 760 } 761 return this; 762 } 763 /** 764 * 765 * 766 * <pre> 767 * List of job mutation results from a batch create operation. It can change 768 * until operation status is FINISHED, FAILED or CANCELLED. 769 * </pre> 770 * 771 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 772 */ clearJobResults()773 public Builder clearJobResults() { 774 if (jobResultsBuilder_ == null) { 775 jobResults_ = java.util.Collections.emptyList(); 776 bitField0_ = (bitField0_ & ~0x00000001); 777 onChanged(); 778 } else { 779 jobResultsBuilder_.clear(); 780 } 781 return this; 782 } 783 /** 784 * 785 * 786 * <pre> 787 * List of job mutation results from a batch create operation. It can change 788 * until operation status is FINISHED, FAILED or CANCELLED. 789 * </pre> 790 * 791 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 792 */ removeJobResults(int index)793 public Builder removeJobResults(int index) { 794 if (jobResultsBuilder_ == null) { 795 ensureJobResultsIsMutable(); 796 jobResults_.remove(index); 797 onChanged(); 798 } else { 799 jobResultsBuilder_.remove(index); 800 } 801 return this; 802 } 803 /** 804 * 805 * 806 * <pre> 807 * List of job mutation results from a batch create operation. It can change 808 * until operation status is FINISHED, FAILED or CANCELLED. 809 * </pre> 810 * 811 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 812 */ getJobResultsBuilder(int index)813 public com.google.cloud.talent.v4.JobResult.Builder getJobResultsBuilder(int index) { 814 return getJobResultsFieldBuilder().getBuilder(index); 815 } 816 /** 817 * 818 * 819 * <pre> 820 * List of job mutation results from a batch create operation. It can change 821 * until operation status is FINISHED, FAILED or CANCELLED. 822 * </pre> 823 * 824 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 825 */ getJobResultsOrBuilder(int index)826 public com.google.cloud.talent.v4.JobResultOrBuilder getJobResultsOrBuilder(int index) { 827 if (jobResultsBuilder_ == null) { 828 return jobResults_.get(index); 829 } else { 830 return jobResultsBuilder_.getMessageOrBuilder(index); 831 } 832 } 833 /** 834 * 835 * 836 * <pre> 837 * List of job mutation results from a batch create operation. It can change 838 * until operation status is FINISHED, FAILED or CANCELLED. 839 * </pre> 840 * 841 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 842 */ 843 public java.util.List<? extends com.google.cloud.talent.v4.JobResultOrBuilder> getJobResultsOrBuilderList()844 getJobResultsOrBuilderList() { 845 if (jobResultsBuilder_ != null) { 846 return jobResultsBuilder_.getMessageOrBuilderList(); 847 } else { 848 return java.util.Collections.unmodifiableList(jobResults_); 849 } 850 } 851 /** 852 * 853 * 854 * <pre> 855 * List of job mutation results from a batch create operation. It can change 856 * until operation status is FINISHED, FAILED or CANCELLED. 857 * </pre> 858 * 859 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 860 */ addJobResultsBuilder()861 public com.google.cloud.talent.v4.JobResult.Builder addJobResultsBuilder() { 862 return getJobResultsFieldBuilder() 863 .addBuilder(com.google.cloud.talent.v4.JobResult.getDefaultInstance()); 864 } 865 /** 866 * 867 * 868 * <pre> 869 * List of job mutation results from a batch create operation. It can change 870 * until operation status is FINISHED, FAILED or CANCELLED. 871 * </pre> 872 * 873 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 874 */ addJobResultsBuilder(int index)875 public com.google.cloud.talent.v4.JobResult.Builder addJobResultsBuilder(int index) { 876 return getJobResultsFieldBuilder() 877 .addBuilder(index, com.google.cloud.talent.v4.JobResult.getDefaultInstance()); 878 } 879 /** 880 * 881 * 882 * <pre> 883 * List of job mutation results from a batch create operation. It can change 884 * until operation status is FINISHED, FAILED or CANCELLED. 885 * </pre> 886 * 887 * <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code> 888 */ getJobResultsBuilderList()889 public java.util.List<com.google.cloud.talent.v4.JobResult.Builder> getJobResultsBuilderList() { 890 return getJobResultsFieldBuilder().getBuilderList(); 891 } 892 893 private com.google.protobuf.RepeatedFieldBuilderV3< 894 com.google.cloud.talent.v4.JobResult, 895 com.google.cloud.talent.v4.JobResult.Builder, 896 com.google.cloud.talent.v4.JobResultOrBuilder> getJobResultsFieldBuilder()897 getJobResultsFieldBuilder() { 898 if (jobResultsBuilder_ == null) { 899 jobResultsBuilder_ = 900 new com.google.protobuf.RepeatedFieldBuilderV3< 901 com.google.cloud.talent.v4.JobResult, 902 com.google.cloud.talent.v4.JobResult.Builder, 903 com.google.cloud.talent.v4.JobResultOrBuilder>( 904 jobResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); 905 jobResults_ = null; 906 } 907 return jobResultsBuilder_; 908 } 909 910 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)911 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 912 return super.setUnknownFields(unknownFields); 913 } 914 915 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)916 public final Builder mergeUnknownFields( 917 final com.google.protobuf.UnknownFieldSet unknownFields) { 918 return super.mergeUnknownFields(unknownFields); 919 } 920 921 // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.BatchCreateJobsResponse) 922 } 923 924 // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.BatchCreateJobsResponse) 925 private static final com.google.cloud.talent.v4.BatchCreateJobsResponse DEFAULT_INSTANCE; 926 927 static { 928 DEFAULT_INSTANCE = new com.google.cloud.talent.v4.BatchCreateJobsResponse(); 929 } 930 getDefaultInstance()931 public static com.google.cloud.talent.v4.BatchCreateJobsResponse getDefaultInstance() { 932 return DEFAULT_INSTANCE; 933 } 934 935 private static final com.google.protobuf.Parser<BatchCreateJobsResponse> PARSER = 936 new com.google.protobuf.AbstractParser<BatchCreateJobsResponse>() { 937 @java.lang.Override 938 public BatchCreateJobsResponse parsePartialFrom( 939 com.google.protobuf.CodedInputStream input, 940 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 941 throws com.google.protobuf.InvalidProtocolBufferException { 942 Builder builder = newBuilder(); 943 try { 944 builder.mergeFrom(input, extensionRegistry); 945 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 946 throw e.setUnfinishedMessage(builder.buildPartial()); 947 } catch (com.google.protobuf.UninitializedMessageException e) { 948 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 949 } catch (java.io.IOException e) { 950 throw new com.google.protobuf.InvalidProtocolBufferException(e) 951 .setUnfinishedMessage(builder.buildPartial()); 952 } 953 return builder.buildPartial(); 954 } 955 }; 956 parser()957 public static com.google.protobuf.Parser<BatchCreateJobsResponse> parser() { 958 return PARSER; 959 } 960 961 @java.lang.Override getParserForType()962 public com.google.protobuf.Parser<BatchCreateJobsResponse> getParserForType() { 963 return PARSER; 964 } 965 966 @java.lang.Override getDefaultInstanceForType()967 public com.google.cloud.talent.v4.BatchCreateJobsResponse getDefaultInstanceForType() { 968 return DEFAULT_INSTANCE; 969 } 970 } 971