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/aiplatform/v1/completion_stats.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Success and error statistics of processing multiple entities 26 * (for example, DataItems or structured data rows) in batch. 27 * </pre> 28 * 29 * Protobuf type {@code google.cloud.aiplatform.v1.CompletionStats} 30 */ 31 public final class CompletionStats extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CompletionStats) 34 CompletionStatsOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use CompletionStats.newBuilder() to construct. CompletionStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private CompletionStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 CompletionStats()41 private CompletionStats() {} 42 43 @java.lang.Override 44 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)45 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 46 return new CompletionStats(); 47 } 48 49 @java.lang.Override getUnknownFields()50 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 51 return this.unknownFields; 52 } 53 getDescriptor()54 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 55 return com.google.cloud.aiplatform.v1.CompletionStatsProto 56 .internal_static_google_cloud_aiplatform_v1_CompletionStats_descriptor; 57 } 58 59 @java.lang.Override 60 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()61 internalGetFieldAccessorTable() { 62 return com.google.cloud.aiplatform.v1.CompletionStatsProto 63 .internal_static_google_cloud_aiplatform_v1_CompletionStats_fieldAccessorTable 64 .ensureFieldAccessorsInitialized( 65 com.google.cloud.aiplatform.v1.CompletionStats.class, 66 com.google.cloud.aiplatform.v1.CompletionStats.Builder.class); 67 } 68 69 public static final int SUCCESSFUL_COUNT_FIELD_NUMBER = 1; 70 private long successfulCount_ = 0L; 71 /** 72 * 73 * 74 * <pre> 75 * Output only. The number of entities that had been processed successfully. 76 * </pre> 77 * 78 * <code>int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 79 * 80 * @return The successfulCount. 81 */ 82 @java.lang.Override getSuccessfulCount()83 public long getSuccessfulCount() { 84 return successfulCount_; 85 } 86 87 public static final int FAILED_COUNT_FIELD_NUMBER = 2; 88 private long failedCount_ = 0L; 89 /** 90 * 91 * 92 * <pre> 93 * Output only. The number of entities for which any error was encountered. 94 * </pre> 95 * 96 * <code>int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 97 * 98 * @return The failedCount. 99 */ 100 @java.lang.Override getFailedCount()101 public long getFailedCount() { 102 return failedCount_; 103 } 104 105 public static final int INCOMPLETE_COUNT_FIELD_NUMBER = 3; 106 private long incompleteCount_ = 0L; 107 /** 108 * 109 * 110 * <pre> 111 * Output only. In cases when enough errors are encountered a job, pipeline, 112 * or operation may be failed as a whole. Below is the number of entities for 113 * which the processing had not been finished (either in successful or failed 114 * state). Set to -1 if the number is unknown (for example, the operation 115 * failed before the total entity number could be collected). 116 * </pre> 117 * 118 * <code>int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 119 * 120 * @return The incompleteCount. 121 */ 122 @java.lang.Override getIncompleteCount()123 public long getIncompleteCount() { 124 return incompleteCount_; 125 } 126 127 public static final int SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER = 5; 128 private long successfulForecastPointCount_ = 0L; 129 /** 130 * 131 * 132 * <pre> 133 * Output only. The number of the successful forecast points that are 134 * generated by the forecasting model. This is ONLY used by the forecasting 135 * batch prediction. 136 * </pre> 137 * 138 * <code>int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 139 * </code> 140 * 141 * @return The successfulForecastPointCount. 142 */ 143 @java.lang.Override getSuccessfulForecastPointCount()144 public long getSuccessfulForecastPointCount() { 145 return successfulForecastPointCount_; 146 } 147 148 private byte memoizedIsInitialized = -1; 149 150 @java.lang.Override isInitialized()151 public final boolean isInitialized() { 152 byte isInitialized = memoizedIsInitialized; 153 if (isInitialized == 1) return true; 154 if (isInitialized == 0) return false; 155 156 memoizedIsInitialized = 1; 157 return true; 158 } 159 160 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)161 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 162 if (successfulCount_ != 0L) { 163 output.writeInt64(1, successfulCount_); 164 } 165 if (failedCount_ != 0L) { 166 output.writeInt64(2, failedCount_); 167 } 168 if (incompleteCount_ != 0L) { 169 output.writeInt64(3, incompleteCount_); 170 } 171 if (successfulForecastPointCount_ != 0L) { 172 output.writeInt64(5, successfulForecastPointCount_); 173 } 174 getUnknownFields().writeTo(output); 175 } 176 177 @java.lang.Override getSerializedSize()178 public int getSerializedSize() { 179 int size = memoizedSize; 180 if (size != -1) return size; 181 182 size = 0; 183 if (successfulCount_ != 0L) { 184 size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, successfulCount_); 185 } 186 if (failedCount_ != 0L) { 187 size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, failedCount_); 188 } 189 if (incompleteCount_ != 0L) { 190 size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, incompleteCount_); 191 } 192 if (successfulForecastPointCount_ != 0L) { 193 size += 194 com.google.protobuf.CodedOutputStream.computeInt64Size(5, successfulForecastPointCount_); 195 } 196 size += getUnknownFields().getSerializedSize(); 197 memoizedSize = size; 198 return size; 199 } 200 201 @java.lang.Override equals(final java.lang.Object obj)202 public boolean equals(final java.lang.Object obj) { 203 if (obj == this) { 204 return true; 205 } 206 if (!(obj instanceof com.google.cloud.aiplatform.v1.CompletionStats)) { 207 return super.equals(obj); 208 } 209 com.google.cloud.aiplatform.v1.CompletionStats other = 210 (com.google.cloud.aiplatform.v1.CompletionStats) obj; 211 212 if (getSuccessfulCount() != other.getSuccessfulCount()) return false; 213 if (getFailedCount() != other.getFailedCount()) return false; 214 if (getIncompleteCount() != other.getIncompleteCount()) return false; 215 if (getSuccessfulForecastPointCount() != other.getSuccessfulForecastPointCount()) return false; 216 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 217 return true; 218 } 219 220 @java.lang.Override hashCode()221 public int hashCode() { 222 if (memoizedHashCode != 0) { 223 return memoizedHashCode; 224 } 225 int hash = 41; 226 hash = (19 * hash) + getDescriptor().hashCode(); 227 hash = (37 * hash) + SUCCESSFUL_COUNT_FIELD_NUMBER; 228 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessfulCount()); 229 hash = (37 * hash) + FAILED_COUNT_FIELD_NUMBER; 230 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedCount()); 231 hash = (37 * hash) + INCOMPLETE_COUNT_FIELD_NUMBER; 232 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIncompleteCount()); 233 hash = (37 * hash) + SUCCESSFUL_FORECAST_POINT_COUNT_FIELD_NUMBER; 234 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessfulForecastPointCount()); 235 hash = (29 * hash) + getUnknownFields().hashCode(); 236 memoizedHashCode = hash; 237 return hash; 238 } 239 parseFrom(java.nio.ByteBuffer data)240 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom(java.nio.ByteBuffer data) 241 throws com.google.protobuf.InvalidProtocolBufferException { 242 return PARSER.parseFrom(data); 243 } 244 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)245 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 246 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 247 throws com.google.protobuf.InvalidProtocolBufferException { 248 return PARSER.parseFrom(data, extensionRegistry); 249 } 250 parseFrom( com.google.protobuf.ByteString data)251 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 252 com.google.protobuf.ByteString data) 253 throws com.google.protobuf.InvalidProtocolBufferException { 254 return PARSER.parseFrom(data); 255 } 256 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)257 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 258 com.google.protobuf.ByteString data, 259 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 260 throws com.google.protobuf.InvalidProtocolBufferException { 261 return PARSER.parseFrom(data, extensionRegistry); 262 } 263 parseFrom(byte[] data)264 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom(byte[] data) 265 throws com.google.protobuf.InvalidProtocolBufferException { 266 return PARSER.parseFrom(data); 267 } 268 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)269 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 270 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 271 throws com.google.protobuf.InvalidProtocolBufferException { 272 return PARSER.parseFrom(data, extensionRegistry); 273 } 274 parseFrom(java.io.InputStream input)275 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom(java.io.InputStream input) 276 throws java.io.IOException { 277 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 278 } 279 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)280 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 281 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 282 throws java.io.IOException { 283 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 284 PARSER, input, extensionRegistry); 285 } 286 parseDelimitedFrom( java.io.InputStream input)287 public static com.google.cloud.aiplatform.v1.CompletionStats parseDelimitedFrom( 288 java.io.InputStream input) throws java.io.IOException { 289 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 290 } 291 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)292 public static com.google.cloud.aiplatform.v1.CompletionStats parseDelimitedFrom( 293 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 294 throws java.io.IOException { 295 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 296 PARSER, input, extensionRegistry); 297 } 298 parseFrom( com.google.protobuf.CodedInputStream input)299 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 300 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 301 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 302 } 303 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)304 public static com.google.cloud.aiplatform.v1.CompletionStats parseFrom( 305 com.google.protobuf.CodedInputStream input, 306 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 307 throws java.io.IOException { 308 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 309 PARSER, input, extensionRegistry); 310 } 311 312 @java.lang.Override newBuilderForType()313 public Builder newBuilderForType() { 314 return newBuilder(); 315 } 316 newBuilder()317 public static Builder newBuilder() { 318 return DEFAULT_INSTANCE.toBuilder(); 319 } 320 newBuilder(com.google.cloud.aiplatform.v1.CompletionStats prototype)321 public static Builder newBuilder(com.google.cloud.aiplatform.v1.CompletionStats prototype) { 322 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 323 } 324 325 @java.lang.Override toBuilder()326 public Builder toBuilder() { 327 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 328 } 329 330 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)331 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 332 Builder builder = new Builder(parent); 333 return builder; 334 } 335 /** 336 * 337 * 338 * <pre> 339 * Success and error statistics of processing multiple entities 340 * (for example, DataItems or structured data rows) in batch. 341 * </pre> 342 * 343 * Protobuf type {@code google.cloud.aiplatform.v1.CompletionStats} 344 */ 345 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 346 implements 347 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CompletionStats) 348 com.google.cloud.aiplatform.v1.CompletionStatsOrBuilder { getDescriptor()349 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 350 return com.google.cloud.aiplatform.v1.CompletionStatsProto 351 .internal_static_google_cloud_aiplatform_v1_CompletionStats_descriptor; 352 } 353 354 @java.lang.Override 355 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()356 internalGetFieldAccessorTable() { 357 return com.google.cloud.aiplatform.v1.CompletionStatsProto 358 .internal_static_google_cloud_aiplatform_v1_CompletionStats_fieldAccessorTable 359 .ensureFieldAccessorsInitialized( 360 com.google.cloud.aiplatform.v1.CompletionStats.class, 361 com.google.cloud.aiplatform.v1.CompletionStats.Builder.class); 362 } 363 364 // Construct using com.google.cloud.aiplatform.v1.CompletionStats.newBuilder() Builder()365 private Builder() {} 366 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)367 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 368 super(parent); 369 } 370 371 @java.lang.Override clear()372 public Builder clear() { 373 super.clear(); 374 bitField0_ = 0; 375 successfulCount_ = 0L; 376 failedCount_ = 0L; 377 incompleteCount_ = 0L; 378 successfulForecastPointCount_ = 0L; 379 return this; 380 } 381 382 @java.lang.Override getDescriptorForType()383 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 384 return com.google.cloud.aiplatform.v1.CompletionStatsProto 385 .internal_static_google_cloud_aiplatform_v1_CompletionStats_descriptor; 386 } 387 388 @java.lang.Override getDefaultInstanceForType()389 public com.google.cloud.aiplatform.v1.CompletionStats getDefaultInstanceForType() { 390 return com.google.cloud.aiplatform.v1.CompletionStats.getDefaultInstance(); 391 } 392 393 @java.lang.Override build()394 public com.google.cloud.aiplatform.v1.CompletionStats build() { 395 com.google.cloud.aiplatform.v1.CompletionStats result = buildPartial(); 396 if (!result.isInitialized()) { 397 throw newUninitializedMessageException(result); 398 } 399 return result; 400 } 401 402 @java.lang.Override buildPartial()403 public com.google.cloud.aiplatform.v1.CompletionStats buildPartial() { 404 com.google.cloud.aiplatform.v1.CompletionStats result = 405 new com.google.cloud.aiplatform.v1.CompletionStats(this); 406 if (bitField0_ != 0) { 407 buildPartial0(result); 408 } 409 onBuilt(); 410 return result; 411 } 412 buildPartial0(com.google.cloud.aiplatform.v1.CompletionStats result)413 private void buildPartial0(com.google.cloud.aiplatform.v1.CompletionStats result) { 414 int from_bitField0_ = bitField0_; 415 if (((from_bitField0_ & 0x00000001) != 0)) { 416 result.successfulCount_ = successfulCount_; 417 } 418 if (((from_bitField0_ & 0x00000002) != 0)) { 419 result.failedCount_ = failedCount_; 420 } 421 if (((from_bitField0_ & 0x00000004) != 0)) { 422 result.incompleteCount_ = incompleteCount_; 423 } 424 if (((from_bitField0_ & 0x00000008) != 0)) { 425 result.successfulForecastPointCount_ = successfulForecastPointCount_; 426 } 427 } 428 429 @java.lang.Override clone()430 public Builder clone() { 431 return super.clone(); 432 } 433 434 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)435 public Builder setField( 436 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 437 return super.setField(field, value); 438 } 439 440 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)441 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 442 return super.clearField(field); 443 } 444 445 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)446 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 447 return super.clearOneof(oneof); 448 } 449 450 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)451 public Builder setRepeatedField( 452 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 453 return super.setRepeatedField(field, index, value); 454 } 455 456 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)457 public Builder addRepeatedField( 458 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 459 return super.addRepeatedField(field, value); 460 } 461 462 @java.lang.Override mergeFrom(com.google.protobuf.Message other)463 public Builder mergeFrom(com.google.protobuf.Message other) { 464 if (other instanceof com.google.cloud.aiplatform.v1.CompletionStats) { 465 return mergeFrom((com.google.cloud.aiplatform.v1.CompletionStats) other); 466 } else { 467 super.mergeFrom(other); 468 return this; 469 } 470 } 471 mergeFrom(com.google.cloud.aiplatform.v1.CompletionStats other)472 public Builder mergeFrom(com.google.cloud.aiplatform.v1.CompletionStats other) { 473 if (other == com.google.cloud.aiplatform.v1.CompletionStats.getDefaultInstance()) return this; 474 if (other.getSuccessfulCount() != 0L) { 475 setSuccessfulCount(other.getSuccessfulCount()); 476 } 477 if (other.getFailedCount() != 0L) { 478 setFailedCount(other.getFailedCount()); 479 } 480 if (other.getIncompleteCount() != 0L) { 481 setIncompleteCount(other.getIncompleteCount()); 482 } 483 if (other.getSuccessfulForecastPointCount() != 0L) { 484 setSuccessfulForecastPointCount(other.getSuccessfulForecastPointCount()); 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 8: 513 { 514 successfulCount_ = input.readInt64(); 515 bitField0_ |= 0x00000001; 516 break; 517 } // case 8 518 case 16: 519 { 520 failedCount_ = input.readInt64(); 521 bitField0_ |= 0x00000002; 522 break; 523 } // case 16 524 case 24: 525 { 526 incompleteCount_ = input.readInt64(); 527 bitField0_ |= 0x00000004; 528 break; 529 } // case 24 530 case 40: 531 { 532 successfulForecastPointCount_ = input.readInt64(); 533 bitField0_ |= 0x00000008; 534 break; 535 } // case 40 536 default: 537 { 538 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 539 done = true; // was an endgroup tag 540 } 541 break; 542 } // default: 543 } // switch (tag) 544 } // while (!done) 545 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 546 throw e.unwrapIOException(); 547 } finally { 548 onChanged(); 549 } // finally 550 return this; 551 } 552 553 private int bitField0_; 554 555 private long successfulCount_; 556 /** 557 * 558 * 559 * <pre> 560 * Output only. The number of entities that had been processed successfully. 561 * </pre> 562 * 563 * <code>int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 564 * 565 * @return The successfulCount. 566 */ 567 @java.lang.Override getSuccessfulCount()568 public long getSuccessfulCount() { 569 return successfulCount_; 570 } 571 /** 572 * 573 * 574 * <pre> 575 * Output only. The number of entities that had been processed successfully. 576 * </pre> 577 * 578 * <code>int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 579 * 580 * @param value The successfulCount to set. 581 * @return This builder for chaining. 582 */ setSuccessfulCount(long value)583 public Builder setSuccessfulCount(long value) { 584 585 successfulCount_ = value; 586 bitField0_ |= 0x00000001; 587 onChanged(); 588 return this; 589 } 590 /** 591 * 592 * 593 * <pre> 594 * Output only. The number of entities that had been processed successfully. 595 * </pre> 596 * 597 * <code>int64 successful_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 598 * 599 * @return This builder for chaining. 600 */ clearSuccessfulCount()601 public Builder clearSuccessfulCount() { 602 bitField0_ = (bitField0_ & ~0x00000001); 603 successfulCount_ = 0L; 604 onChanged(); 605 return this; 606 } 607 608 private long failedCount_; 609 /** 610 * 611 * 612 * <pre> 613 * Output only. The number of entities for which any error was encountered. 614 * </pre> 615 * 616 * <code>int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 617 * 618 * @return The failedCount. 619 */ 620 @java.lang.Override getFailedCount()621 public long getFailedCount() { 622 return failedCount_; 623 } 624 /** 625 * 626 * 627 * <pre> 628 * Output only. The number of entities for which any error was encountered. 629 * </pre> 630 * 631 * <code>int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 632 * 633 * @param value The failedCount to set. 634 * @return This builder for chaining. 635 */ setFailedCount(long value)636 public Builder setFailedCount(long value) { 637 638 failedCount_ = value; 639 bitField0_ |= 0x00000002; 640 onChanged(); 641 return this; 642 } 643 /** 644 * 645 * 646 * <pre> 647 * Output only. The number of entities for which any error was encountered. 648 * </pre> 649 * 650 * <code>int64 failed_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 651 * 652 * @return This builder for chaining. 653 */ clearFailedCount()654 public Builder clearFailedCount() { 655 bitField0_ = (bitField0_ & ~0x00000002); 656 failedCount_ = 0L; 657 onChanged(); 658 return this; 659 } 660 661 private long incompleteCount_; 662 /** 663 * 664 * 665 * <pre> 666 * Output only. In cases when enough errors are encountered a job, pipeline, 667 * or operation may be failed as a whole. Below is the number of entities for 668 * which the processing had not been finished (either in successful or failed 669 * state). Set to -1 if the number is unknown (for example, the operation 670 * failed before the total entity number could be collected). 671 * </pre> 672 * 673 * <code>int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 674 * 675 * @return The incompleteCount. 676 */ 677 @java.lang.Override getIncompleteCount()678 public long getIncompleteCount() { 679 return incompleteCount_; 680 } 681 /** 682 * 683 * 684 * <pre> 685 * Output only. In cases when enough errors are encountered a job, pipeline, 686 * or operation may be failed as a whole. Below is the number of entities for 687 * which the processing had not been finished (either in successful or failed 688 * state). Set to -1 if the number is unknown (for example, the operation 689 * failed before the total entity number could be collected). 690 * </pre> 691 * 692 * <code>int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 693 * 694 * @param value The incompleteCount to set. 695 * @return This builder for chaining. 696 */ setIncompleteCount(long value)697 public Builder setIncompleteCount(long value) { 698 699 incompleteCount_ = value; 700 bitField0_ |= 0x00000004; 701 onChanged(); 702 return this; 703 } 704 /** 705 * 706 * 707 * <pre> 708 * Output only. In cases when enough errors are encountered a job, pipeline, 709 * or operation may be failed as a whole. Below is the number of entities for 710 * which the processing had not been finished (either in successful or failed 711 * state). Set to -1 if the number is unknown (for example, the operation 712 * failed before the total entity number could be collected). 713 * </pre> 714 * 715 * <code>int64 incomplete_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 716 * 717 * @return This builder for chaining. 718 */ clearIncompleteCount()719 public Builder clearIncompleteCount() { 720 bitField0_ = (bitField0_ & ~0x00000004); 721 incompleteCount_ = 0L; 722 onChanged(); 723 return this; 724 } 725 726 private long successfulForecastPointCount_; 727 /** 728 * 729 * 730 * <pre> 731 * Output only. The number of the successful forecast points that are 732 * generated by the forecasting model. This is ONLY used by the forecasting 733 * batch prediction. 734 * </pre> 735 * 736 * <code>int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 737 * </code> 738 * 739 * @return The successfulForecastPointCount. 740 */ 741 @java.lang.Override getSuccessfulForecastPointCount()742 public long getSuccessfulForecastPointCount() { 743 return successfulForecastPointCount_; 744 } 745 /** 746 * 747 * 748 * <pre> 749 * Output only. The number of the successful forecast points that are 750 * generated by the forecasting model. This is ONLY used by the forecasting 751 * batch prediction. 752 * </pre> 753 * 754 * <code>int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 755 * </code> 756 * 757 * @param value The successfulForecastPointCount to set. 758 * @return This builder for chaining. 759 */ setSuccessfulForecastPointCount(long value)760 public Builder setSuccessfulForecastPointCount(long value) { 761 762 successfulForecastPointCount_ = value; 763 bitField0_ |= 0x00000008; 764 onChanged(); 765 return this; 766 } 767 /** 768 * 769 * 770 * <pre> 771 * Output only. The number of the successful forecast points that are 772 * generated by the forecasting model. This is ONLY used by the forecasting 773 * batch prediction. 774 * </pre> 775 * 776 * <code>int64 successful_forecast_point_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 777 * </code> 778 * 779 * @return This builder for chaining. 780 */ clearSuccessfulForecastPointCount()781 public Builder clearSuccessfulForecastPointCount() { 782 bitField0_ = (bitField0_ & ~0x00000008); 783 successfulForecastPointCount_ = 0L; 784 onChanged(); 785 return this; 786 } 787 788 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)789 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 790 return super.setUnknownFields(unknownFields); 791 } 792 793 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)794 public final Builder mergeUnknownFields( 795 final com.google.protobuf.UnknownFieldSet unknownFields) { 796 return super.mergeUnknownFields(unknownFields); 797 } 798 799 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CompletionStats) 800 } 801 802 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CompletionStats) 803 private static final com.google.cloud.aiplatform.v1.CompletionStats DEFAULT_INSTANCE; 804 805 static { 806 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CompletionStats(); 807 } 808 getDefaultInstance()809 public static com.google.cloud.aiplatform.v1.CompletionStats getDefaultInstance() { 810 return DEFAULT_INSTANCE; 811 } 812 813 private static final com.google.protobuf.Parser<CompletionStats> PARSER = 814 new com.google.protobuf.AbstractParser<CompletionStats>() { 815 @java.lang.Override 816 public CompletionStats parsePartialFrom( 817 com.google.protobuf.CodedInputStream input, 818 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 819 throws com.google.protobuf.InvalidProtocolBufferException { 820 Builder builder = newBuilder(); 821 try { 822 builder.mergeFrom(input, extensionRegistry); 823 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 824 throw e.setUnfinishedMessage(builder.buildPartial()); 825 } catch (com.google.protobuf.UninitializedMessageException e) { 826 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 827 } catch (java.io.IOException e) { 828 throw new com.google.protobuf.InvalidProtocolBufferException(e) 829 .setUnfinishedMessage(builder.buildPartial()); 830 } 831 return builder.buildPartial(); 832 } 833 }; 834 parser()835 public static com.google.protobuf.Parser<CompletionStats> parser() { 836 return PARSER; 837 } 838 839 @java.lang.Override getParserForType()840 public com.google.protobuf.Parser<CompletionStats> getParserForType() { 841 return PARSER; 842 } 843 844 @java.lang.Override getDefaultInstanceForType()845 public com.google.cloud.aiplatform.v1.CompletionStats getDefaultInstanceForType() { 846 return DEFAULT_INSTANCE; 847 } 848 } 849