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/model_evaluation.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A collection of metrics calculated by comparing Model's predictions on all of 26 * the test data against annotations from the test data. 27 * </pre> 28 * 29 * Protobuf type {@code google.cloud.aiplatform.v1.ModelEvaluation} 30 */ 31 public final class ModelEvaluation extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModelEvaluation) 34 ModelEvaluationOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use ModelEvaluation.newBuilder() to construct. ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 38 super(builder); 39 } 40 ModelEvaluation()41 private ModelEvaluation() { 42 name_ = ""; 43 displayName_ = ""; 44 metricsSchemaUri_ = ""; 45 sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; 46 dataItemSchemaUri_ = ""; 47 annotationSchemaUri_ = ""; 48 explanationSpecs_ = java.util.Collections.emptyList(); 49 } 50 51 @java.lang.Override 52 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)53 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 54 return new ModelEvaluation(); 55 } 56 57 @java.lang.Override getUnknownFields()58 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 59 return this.unknownFields; 60 } 61 getDescriptor()62 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 63 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 64 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_descriptor; 65 } 66 67 @java.lang.Override 68 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()69 internalGetFieldAccessorTable() { 70 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 71 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_fieldAccessorTable 72 .ensureFieldAccessorsInitialized( 73 com.google.cloud.aiplatform.v1.ModelEvaluation.class, 74 com.google.cloud.aiplatform.v1.ModelEvaluation.Builder.class); 75 } 76 77 public interface ModelEvaluationExplanationSpecOrBuilder 78 extends 79 // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) 80 com.google.protobuf.MessageOrBuilder { 81 82 /** 83 * 84 * 85 * <pre> 86 * Explanation type. 87 * For AutoML Image Classification models, possible values are: 88 * * `image-integrated-gradients` 89 * * `image-xrai` 90 * </pre> 91 * 92 * <code>string explanation_type = 1;</code> 93 * 94 * @return The explanationType. 95 */ getExplanationType()96 java.lang.String getExplanationType(); 97 /** 98 * 99 * 100 * <pre> 101 * Explanation type. 102 * For AutoML Image Classification models, possible values are: 103 * * `image-integrated-gradients` 104 * * `image-xrai` 105 * </pre> 106 * 107 * <code>string explanation_type = 1;</code> 108 * 109 * @return The bytes for explanationType. 110 */ getExplanationTypeBytes()111 com.google.protobuf.ByteString getExplanationTypeBytes(); 112 113 /** 114 * 115 * 116 * <pre> 117 * Explanation spec details. 118 * </pre> 119 * 120 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 121 * 122 * @return Whether the explanationSpec field is set. 123 */ hasExplanationSpec()124 boolean hasExplanationSpec(); 125 /** 126 * 127 * 128 * <pre> 129 * Explanation spec details. 130 * </pre> 131 * 132 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 133 * 134 * @return The explanationSpec. 135 */ getExplanationSpec()136 com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec(); 137 /** 138 * 139 * 140 * <pre> 141 * Explanation spec details. 142 * </pre> 143 * 144 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 145 */ getExplanationSpecOrBuilder()146 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder(); 147 } 148 /** 149 * Protobuf type {@code google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} 150 */ 151 public static final class ModelEvaluationExplanationSpec 152 extends com.google.protobuf.GeneratedMessageV3 153 implements 154 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) 155 ModelEvaluationExplanationSpecOrBuilder { 156 private static final long serialVersionUID = 0L; 157 // Use ModelEvaluationExplanationSpec.newBuilder() to construct. ModelEvaluationExplanationSpec( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)158 private ModelEvaluationExplanationSpec( 159 com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 160 super(builder); 161 } 162 ModelEvaluationExplanationSpec()163 private ModelEvaluationExplanationSpec() { 164 explanationType_ = ""; 165 } 166 167 @java.lang.Override 168 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)169 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 170 return new ModelEvaluationExplanationSpec(); 171 } 172 173 @java.lang.Override getUnknownFields()174 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 175 return this.unknownFields; 176 } 177 getDescriptor()178 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 179 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 180 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_ModelEvaluationExplanationSpec_descriptor; 181 } 182 183 @java.lang.Override 184 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()185 internalGetFieldAccessorTable() { 186 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 187 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_ModelEvaluationExplanationSpec_fieldAccessorTable 188 .ensureFieldAccessorsInitialized( 189 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.class, 190 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder 191 .class); 192 } 193 194 public static final int EXPLANATION_TYPE_FIELD_NUMBER = 1; 195 196 @SuppressWarnings("serial") 197 private volatile java.lang.Object explanationType_ = ""; 198 /** 199 * 200 * 201 * <pre> 202 * Explanation type. 203 * For AutoML Image Classification models, possible values are: 204 * * `image-integrated-gradients` 205 * * `image-xrai` 206 * </pre> 207 * 208 * <code>string explanation_type = 1;</code> 209 * 210 * @return The explanationType. 211 */ 212 @java.lang.Override getExplanationType()213 public java.lang.String getExplanationType() { 214 java.lang.Object ref = explanationType_; 215 if (ref instanceof java.lang.String) { 216 return (java.lang.String) ref; 217 } else { 218 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 219 java.lang.String s = bs.toStringUtf8(); 220 explanationType_ = s; 221 return s; 222 } 223 } 224 /** 225 * 226 * 227 * <pre> 228 * Explanation type. 229 * For AutoML Image Classification models, possible values are: 230 * * `image-integrated-gradients` 231 * * `image-xrai` 232 * </pre> 233 * 234 * <code>string explanation_type = 1;</code> 235 * 236 * @return The bytes for explanationType. 237 */ 238 @java.lang.Override getExplanationTypeBytes()239 public com.google.protobuf.ByteString getExplanationTypeBytes() { 240 java.lang.Object ref = explanationType_; 241 if (ref instanceof java.lang.String) { 242 com.google.protobuf.ByteString b = 243 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 244 explanationType_ = b; 245 return b; 246 } else { 247 return (com.google.protobuf.ByteString) ref; 248 } 249 } 250 251 public static final int EXPLANATION_SPEC_FIELD_NUMBER = 2; 252 private com.google.cloud.aiplatform.v1.ExplanationSpec explanationSpec_; 253 /** 254 * 255 * 256 * <pre> 257 * Explanation spec details. 258 * </pre> 259 * 260 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 261 * 262 * @return Whether the explanationSpec field is set. 263 */ 264 @java.lang.Override hasExplanationSpec()265 public boolean hasExplanationSpec() { 266 return explanationSpec_ != null; 267 } 268 /** 269 * 270 * 271 * <pre> 272 * Explanation spec details. 273 * </pre> 274 * 275 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 276 * 277 * @return The explanationSpec. 278 */ 279 @java.lang.Override getExplanationSpec()280 public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { 281 return explanationSpec_ == null 282 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 283 : explanationSpec_; 284 } 285 /** 286 * 287 * 288 * <pre> 289 * Explanation spec details. 290 * </pre> 291 * 292 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 293 */ 294 @java.lang.Override getExplanationSpecOrBuilder()295 public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { 296 return explanationSpec_ == null 297 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 298 : explanationSpec_; 299 } 300 301 private byte memoizedIsInitialized = -1; 302 303 @java.lang.Override isInitialized()304 public final boolean isInitialized() { 305 byte isInitialized = memoizedIsInitialized; 306 if (isInitialized == 1) return true; 307 if (isInitialized == 0) return false; 308 309 memoizedIsInitialized = 1; 310 return true; 311 } 312 313 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)314 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 315 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explanationType_)) { 316 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, explanationType_); 317 } 318 if (explanationSpec_ != null) { 319 output.writeMessage(2, getExplanationSpec()); 320 } 321 getUnknownFields().writeTo(output); 322 } 323 324 @java.lang.Override getSerializedSize()325 public int getSerializedSize() { 326 int size = memoizedSize; 327 if (size != -1) return size; 328 329 size = 0; 330 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explanationType_)) { 331 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, explanationType_); 332 } 333 if (explanationSpec_ != null) { 334 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExplanationSpec()); 335 } 336 size += getUnknownFields().getSerializedSize(); 337 memoizedSize = size; 338 return size; 339 } 340 341 @java.lang.Override equals(final java.lang.Object obj)342 public boolean equals(final java.lang.Object obj) { 343 if (obj == this) { 344 return true; 345 } 346 if (!(obj 347 instanceof 348 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec)) { 349 return super.equals(obj); 350 } 351 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec other = 352 (com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) obj; 353 354 if (!getExplanationType().equals(other.getExplanationType())) return false; 355 if (hasExplanationSpec() != other.hasExplanationSpec()) return false; 356 if (hasExplanationSpec()) { 357 if (!getExplanationSpec().equals(other.getExplanationSpec())) return false; 358 } 359 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 360 return true; 361 } 362 363 @java.lang.Override hashCode()364 public int hashCode() { 365 if (memoizedHashCode != 0) { 366 return memoizedHashCode; 367 } 368 int hash = 41; 369 hash = (19 * hash) + getDescriptor().hashCode(); 370 hash = (37 * hash) + EXPLANATION_TYPE_FIELD_NUMBER; 371 hash = (53 * hash) + getExplanationType().hashCode(); 372 if (hasExplanationSpec()) { 373 hash = (37 * hash) + EXPLANATION_SPEC_FIELD_NUMBER; 374 hash = (53 * hash) + getExplanationSpec().hashCode(); 375 } 376 hash = (29 * hash) + getUnknownFields().hashCode(); 377 memoizedHashCode = hash; 378 return hash; 379 } 380 381 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom(java.nio.ByteBuffer data)382 parseFrom(java.nio.ByteBuffer data) 383 throws com.google.protobuf.InvalidProtocolBufferException { 384 return PARSER.parseFrom(data); 385 } 386 387 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)388 parseFrom( 389 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 390 throws com.google.protobuf.InvalidProtocolBufferException { 391 return PARSER.parseFrom(data, extensionRegistry); 392 } 393 394 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom(com.google.protobuf.ByteString data)395 parseFrom(com.google.protobuf.ByteString data) 396 throws com.google.protobuf.InvalidProtocolBufferException { 397 return PARSER.parseFrom(data); 398 } 399 400 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)401 parseFrom( 402 com.google.protobuf.ByteString data, 403 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 404 throws com.google.protobuf.InvalidProtocolBufferException { 405 return PARSER.parseFrom(data, extensionRegistry); 406 } 407 408 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom(byte[] data)409 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { 410 return PARSER.parseFrom(data); 411 } 412 413 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)414 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 415 throws com.google.protobuf.InvalidProtocolBufferException { 416 return PARSER.parseFrom(data, extensionRegistry); 417 } 418 419 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom(java.io.InputStream input)420 parseFrom(java.io.InputStream input) throws java.io.IOException { 421 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 422 } 423 424 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)425 parseFrom( 426 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 427 throws java.io.IOException { 428 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 429 PARSER, input, extensionRegistry); 430 } 431 432 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseDelimitedFrom(java.io.InputStream input)433 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { 434 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 435 } 436 437 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)438 parseDelimitedFrom( 439 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 440 throws java.io.IOException { 441 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 442 PARSER, input, extensionRegistry); 443 } 444 445 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom(com.google.protobuf.CodedInputStream input)446 parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { 447 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 448 } 449 450 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)451 parseFrom( 452 com.google.protobuf.CodedInputStream input, 453 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 454 throws java.io.IOException { 455 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 456 PARSER, input, extensionRegistry); 457 } 458 459 @java.lang.Override newBuilderForType()460 public Builder newBuilderForType() { 461 return newBuilder(); 462 } 463 newBuilder()464 public static Builder newBuilder() { 465 return DEFAULT_INSTANCE.toBuilder(); 466 } 467 newBuilder( com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec prototype)468 public static Builder newBuilder( 469 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec prototype) { 470 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 471 } 472 473 @java.lang.Override toBuilder()474 public Builder toBuilder() { 475 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 476 } 477 478 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)479 protected Builder newBuilderForType( 480 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 481 Builder builder = new Builder(parent); 482 return builder; 483 } 484 /** 485 * Protobuf type {@code 486 * google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} 487 */ 488 public static final class Builder 489 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 490 implements 491 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) 492 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder { getDescriptor()493 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 494 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 495 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_ModelEvaluationExplanationSpec_descriptor; 496 } 497 498 @java.lang.Override 499 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()500 internalGetFieldAccessorTable() { 501 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 502 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_ModelEvaluationExplanationSpec_fieldAccessorTable 503 .ensureFieldAccessorsInitialized( 504 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.class, 505 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec 506 .Builder.class); 507 } 508 509 // Construct using 510 // com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.newBuilder() Builder()511 private Builder() {} 512 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)513 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 514 super(parent); 515 } 516 517 @java.lang.Override clear()518 public Builder clear() { 519 super.clear(); 520 bitField0_ = 0; 521 explanationType_ = ""; 522 explanationSpec_ = null; 523 if (explanationSpecBuilder_ != null) { 524 explanationSpecBuilder_.dispose(); 525 explanationSpecBuilder_ = null; 526 } 527 return this; 528 } 529 530 @java.lang.Override getDescriptorForType()531 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 532 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 533 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_ModelEvaluationExplanationSpec_descriptor; 534 } 535 536 @java.lang.Override 537 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec getDefaultInstanceForType()538 getDefaultInstanceForType() { 539 return com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec 540 .getDefaultInstance(); 541 } 542 543 @java.lang.Override build()544 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec build() { 545 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec result = 546 buildPartial(); 547 if (!result.isInitialized()) { 548 throw newUninitializedMessageException(result); 549 } 550 return result; 551 } 552 553 @java.lang.Override 554 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec buildPartial()555 buildPartial() { 556 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec result = 557 new com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(this); 558 if (bitField0_ != 0) { 559 buildPartial0(result); 560 } 561 onBuilt(); 562 return result; 563 } 564 buildPartial0( com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec result)565 private void buildPartial0( 566 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec result) { 567 int from_bitField0_ = bitField0_; 568 if (((from_bitField0_ & 0x00000001) != 0)) { 569 result.explanationType_ = explanationType_; 570 } 571 if (((from_bitField0_ & 0x00000002) != 0)) { 572 result.explanationSpec_ = 573 explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); 574 } 575 } 576 577 @java.lang.Override clone()578 public Builder clone() { 579 return super.clone(); 580 } 581 582 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)583 public Builder setField( 584 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 585 return super.setField(field, value); 586 } 587 588 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)589 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 590 return super.clearField(field); 591 } 592 593 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)594 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 595 return super.clearOneof(oneof); 596 } 597 598 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)599 public Builder setRepeatedField( 600 com.google.protobuf.Descriptors.FieldDescriptor field, 601 int index, 602 java.lang.Object value) { 603 return super.setRepeatedField(field, index, value); 604 } 605 606 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)607 public Builder addRepeatedField( 608 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 609 return super.addRepeatedField(field, value); 610 } 611 612 @java.lang.Override mergeFrom(com.google.protobuf.Message other)613 public Builder mergeFrom(com.google.protobuf.Message other) { 614 if (other 615 instanceof 616 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) { 617 return mergeFrom( 618 (com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) 619 other); 620 } else { 621 super.mergeFrom(other); 622 return this; 623 } 624 } 625 mergeFrom( com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec other)626 public Builder mergeFrom( 627 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec other) { 628 if (other 629 == com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec 630 .getDefaultInstance()) return this; 631 if (!other.getExplanationType().isEmpty()) { 632 explanationType_ = other.explanationType_; 633 bitField0_ |= 0x00000001; 634 onChanged(); 635 } 636 if (other.hasExplanationSpec()) { 637 mergeExplanationSpec(other.getExplanationSpec()); 638 } 639 this.mergeUnknownFields(other.getUnknownFields()); 640 onChanged(); 641 return this; 642 } 643 644 @java.lang.Override isInitialized()645 public final boolean isInitialized() { 646 return true; 647 } 648 649 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)650 public Builder mergeFrom( 651 com.google.protobuf.CodedInputStream input, 652 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 653 throws java.io.IOException { 654 if (extensionRegistry == null) { 655 throw new java.lang.NullPointerException(); 656 } 657 try { 658 boolean done = false; 659 while (!done) { 660 int tag = input.readTag(); 661 switch (tag) { 662 case 0: 663 done = true; 664 break; 665 case 10: 666 { 667 explanationType_ = input.readStringRequireUtf8(); 668 bitField0_ |= 0x00000001; 669 break; 670 } // case 10 671 case 18: 672 { 673 input.readMessage( 674 getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); 675 bitField0_ |= 0x00000002; 676 break; 677 } // case 18 678 default: 679 { 680 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 681 done = true; // was an endgroup tag 682 } 683 break; 684 } // default: 685 } // switch (tag) 686 } // while (!done) 687 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 688 throw e.unwrapIOException(); 689 } finally { 690 onChanged(); 691 } // finally 692 return this; 693 } 694 695 private int bitField0_; 696 697 private java.lang.Object explanationType_ = ""; 698 /** 699 * 700 * 701 * <pre> 702 * Explanation type. 703 * For AutoML Image Classification models, possible values are: 704 * * `image-integrated-gradients` 705 * * `image-xrai` 706 * </pre> 707 * 708 * <code>string explanation_type = 1;</code> 709 * 710 * @return The explanationType. 711 */ getExplanationType()712 public java.lang.String getExplanationType() { 713 java.lang.Object ref = explanationType_; 714 if (!(ref instanceof java.lang.String)) { 715 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 716 java.lang.String s = bs.toStringUtf8(); 717 explanationType_ = s; 718 return s; 719 } else { 720 return (java.lang.String) ref; 721 } 722 } 723 /** 724 * 725 * 726 * <pre> 727 * Explanation type. 728 * For AutoML Image Classification models, possible values are: 729 * * `image-integrated-gradients` 730 * * `image-xrai` 731 * </pre> 732 * 733 * <code>string explanation_type = 1;</code> 734 * 735 * @return The bytes for explanationType. 736 */ getExplanationTypeBytes()737 public com.google.protobuf.ByteString getExplanationTypeBytes() { 738 java.lang.Object ref = explanationType_; 739 if (ref instanceof String) { 740 com.google.protobuf.ByteString b = 741 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 742 explanationType_ = b; 743 return b; 744 } else { 745 return (com.google.protobuf.ByteString) ref; 746 } 747 } 748 /** 749 * 750 * 751 * <pre> 752 * Explanation type. 753 * For AutoML Image Classification models, possible values are: 754 * * `image-integrated-gradients` 755 * * `image-xrai` 756 * </pre> 757 * 758 * <code>string explanation_type = 1;</code> 759 * 760 * @param value The explanationType to set. 761 * @return This builder for chaining. 762 */ setExplanationType(java.lang.String value)763 public Builder setExplanationType(java.lang.String value) { 764 if (value == null) { 765 throw new NullPointerException(); 766 } 767 explanationType_ = value; 768 bitField0_ |= 0x00000001; 769 onChanged(); 770 return this; 771 } 772 /** 773 * 774 * 775 * <pre> 776 * Explanation type. 777 * For AutoML Image Classification models, possible values are: 778 * * `image-integrated-gradients` 779 * * `image-xrai` 780 * </pre> 781 * 782 * <code>string explanation_type = 1;</code> 783 * 784 * @return This builder for chaining. 785 */ clearExplanationType()786 public Builder clearExplanationType() { 787 explanationType_ = getDefaultInstance().getExplanationType(); 788 bitField0_ = (bitField0_ & ~0x00000001); 789 onChanged(); 790 return this; 791 } 792 /** 793 * 794 * 795 * <pre> 796 * Explanation type. 797 * For AutoML Image Classification models, possible values are: 798 * * `image-integrated-gradients` 799 * * `image-xrai` 800 * </pre> 801 * 802 * <code>string explanation_type = 1;</code> 803 * 804 * @param value The bytes for explanationType to set. 805 * @return This builder for chaining. 806 */ setExplanationTypeBytes(com.google.protobuf.ByteString value)807 public Builder setExplanationTypeBytes(com.google.protobuf.ByteString value) { 808 if (value == null) { 809 throw new NullPointerException(); 810 } 811 checkByteStringIsUtf8(value); 812 explanationType_ = value; 813 bitField0_ |= 0x00000001; 814 onChanged(); 815 return this; 816 } 817 818 private com.google.cloud.aiplatform.v1.ExplanationSpec explanationSpec_; 819 private com.google.protobuf.SingleFieldBuilderV3< 820 com.google.cloud.aiplatform.v1.ExplanationSpec, 821 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder, 822 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder> 823 explanationSpecBuilder_; 824 /** 825 * 826 * 827 * <pre> 828 * Explanation spec details. 829 * </pre> 830 * 831 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 832 * 833 * @return Whether the explanationSpec field is set. 834 */ hasExplanationSpec()835 public boolean hasExplanationSpec() { 836 return ((bitField0_ & 0x00000002) != 0); 837 } 838 /** 839 * 840 * 841 * <pre> 842 * Explanation spec details. 843 * </pre> 844 * 845 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 846 * 847 * @return The explanationSpec. 848 */ getExplanationSpec()849 public com.google.cloud.aiplatform.v1.ExplanationSpec getExplanationSpec() { 850 if (explanationSpecBuilder_ == null) { 851 return explanationSpec_ == null 852 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 853 : explanationSpec_; 854 } else { 855 return explanationSpecBuilder_.getMessage(); 856 } 857 } 858 /** 859 * 860 * 861 * <pre> 862 * Explanation spec details. 863 * </pre> 864 * 865 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 866 */ setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value)867 public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { 868 if (explanationSpecBuilder_ == null) { 869 if (value == null) { 870 throw new NullPointerException(); 871 } 872 explanationSpec_ = value; 873 } else { 874 explanationSpecBuilder_.setMessage(value); 875 } 876 bitField0_ |= 0x00000002; 877 onChanged(); 878 return this; 879 } 880 /** 881 * 882 * 883 * <pre> 884 * Explanation spec details. 885 * </pre> 886 * 887 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 888 */ setExplanationSpec( com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue)889 public Builder setExplanationSpec( 890 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder builderForValue) { 891 if (explanationSpecBuilder_ == null) { 892 explanationSpec_ = builderForValue.build(); 893 } else { 894 explanationSpecBuilder_.setMessage(builderForValue.build()); 895 } 896 bitField0_ |= 0x00000002; 897 onChanged(); 898 return this; 899 } 900 /** 901 * 902 * 903 * <pre> 904 * Explanation spec details. 905 * </pre> 906 * 907 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 908 */ mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value)909 public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { 910 if (explanationSpecBuilder_ == null) { 911 if (((bitField0_ & 0x00000002) != 0) 912 && explanationSpec_ != null 913 && explanationSpec_ 914 != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { 915 getExplanationSpecBuilder().mergeFrom(value); 916 } else { 917 explanationSpec_ = value; 918 } 919 } else { 920 explanationSpecBuilder_.mergeFrom(value); 921 } 922 bitField0_ |= 0x00000002; 923 onChanged(); 924 return this; 925 } 926 /** 927 * 928 * 929 * <pre> 930 * Explanation spec details. 931 * </pre> 932 * 933 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 934 */ clearExplanationSpec()935 public Builder clearExplanationSpec() { 936 bitField0_ = (bitField0_ & ~0x00000002); 937 explanationSpec_ = null; 938 if (explanationSpecBuilder_ != null) { 939 explanationSpecBuilder_.dispose(); 940 explanationSpecBuilder_ = null; 941 } 942 onChanged(); 943 return this; 944 } 945 /** 946 * 947 * 948 * <pre> 949 * Explanation spec details. 950 * </pre> 951 * 952 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 953 */ getExplanationSpecBuilder()954 public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { 955 bitField0_ |= 0x00000002; 956 onChanged(); 957 return getExplanationSpecFieldBuilder().getBuilder(); 958 } 959 /** 960 * 961 * 962 * <pre> 963 * Explanation spec details. 964 * </pre> 965 * 966 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 967 */ getExplanationSpecOrBuilder()968 public com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder getExplanationSpecOrBuilder() { 969 if (explanationSpecBuilder_ != null) { 970 return explanationSpecBuilder_.getMessageOrBuilder(); 971 } else { 972 return explanationSpec_ == null 973 ? com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance() 974 : explanationSpec_; 975 } 976 } 977 /** 978 * 979 * 980 * <pre> 981 * Explanation spec details. 982 * </pre> 983 * 984 * <code>.google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 2;</code> 985 */ 986 private com.google.protobuf.SingleFieldBuilderV3< 987 com.google.cloud.aiplatform.v1.ExplanationSpec, 988 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder, 989 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder> getExplanationSpecFieldBuilder()990 getExplanationSpecFieldBuilder() { 991 if (explanationSpecBuilder_ == null) { 992 explanationSpecBuilder_ = 993 new com.google.protobuf.SingleFieldBuilderV3< 994 com.google.cloud.aiplatform.v1.ExplanationSpec, 995 com.google.cloud.aiplatform.v1.ExplanationSpec.Builder, 996 com.google.cloud.aiplatform.v1.ExplanationSpecOrBuilder>( 997 getExplanationSpec(), getParentForChildren(), isClean()); 998 explanationSpec_ = null; 999 } 1000 return explanationSpecBuilder_; 1001 } 1002 1003 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1004 public final Builder setUnknownFields( 1005 final com.google.protobuf.UnknownFieldSet unknownFields) { 1006 return super.setUnknownFields(unknownFields); 1007 } 1008 1009 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1010 public final Builder mergeUnknownFields( 1011 final com.google.protobuf.UnknownFieldSet unknownFields) { 1012 return super.mergeUnknownFields(unknownFields); 1013 } 1014 1015 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) 1016 } 1017 1018 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) 1019 private static final com.google.cloud.aiplatform.v1.ModelEvaluation 1020 .ModelEvaluationExplanationSpec 1021 DEFAULT_INSTANCE; 1022 1023 static { 1024 DEFAULT_INSTANCE = 1025 new com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); 1026 } 1027 1028 public static com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec getDefaultInstance()1029 getDefaultInstance() { 1030 return DEFAULT_INSTANCE; 1031 } 1032 1033 private static final com.google.protobuf.Parser<ModelEvaluationExplanationSpec> PARSER = 1034 new com.google.protobuf.AbstractParser<ModelEvaluationExplanationSpec>() { 1035 @java.lang.Override 1036 public ModelEvaluationExplanationSpec parsePartialFrom( 1037 com.google.protobuf.CodedInputStream input, 1038 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1039 throws com.google.protobuf.InvalidProtocolBufferException { 1040 Builder builder = newBuilder(); 1041 try { 1042 builder.mergeFrom(input, extensionRegistry); 1043 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1044 throw e.setUnfinishedMessage(builder.buildPartial()); 1045 } catch (com.google.protobuf.UninitializedMessageException e) { 1046 throw e.asInvalidProtocolBufferException() 1047 .setUnfinishedMessage(builder.buildPartial()); 1048 } catch (java.io.IOException e) { 1049 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1050 .setUnfinishedMessage(builder.buildPartial()); 1051 } 1052 return builder.buildPartial(); 1053 } 1054 }; 1055 parser()1056 public static com.google.protobuf.Parser<ModelEvaluationExplanationSpec> parser() { 1057 return PARSER; 1058 } 1059 1060 @java.lang.Override getParserForType()1061 public com.google.protobuf.Parser<ModelEvaluationExplanationSpec> getParserForType() { 1062 return PARSER; 1063 } 1064 1065 @java.lang.Override 1066 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec getDefaultInstanceForType()1067 getDefaultInstanceForType() { 1068 return DEFAULT_INSTANCE; 1069 } 1070 } 1071 1072 public static final int NAME_FIELD_NUMBER = 1; 1073 1074 @SuppressWarnings("serial") 1075 private volatile java.lang.Object name_ = ""; 1076 /** 1077 * 1078 * 1079 * <pre> 1080 * Output only. The resource name of the ModelEvaluation. 1081 * </pre> 1082 * 1083 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1084 * 1085 * @return The name. 1086 */ 1087 @java.lang.Override getName()1088 public java.lang.String getName() { 1089 java.lang.Object ref = name_; 1090 if (ref instanceof java.lang.String) { 1091 return (java.lang.String) ref; 1092 } else { 1093 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1094 java.lang.String s = bs.toStringUtf8(); 1095 name_ = s; 1096 return s; 1097 } 1098 } 1099 /** 1100 * 1101 * 1102 * <pre> 1103 * Output only. The resource name of the ModelEvaluation. 1104 * </pre> 1105 * 1106 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1107 * 1108 * @return The bytes for name. 1109 */ 1110 @java.lang.Override getNameBytes()1111 public com.google.protobuf.ByteString getNameBytes() { 1112 java.lang.Object ref = name_; 1113 if (ref instanceof java.lang.String) { 1114 com.google.protobuf.ByteString b = 1115 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1116 name_ = b; 1117 return b; 1118 } else { 1119 return (com.google.protobuf.ByteString) ref; 1120 } 1121 } 1122 1123 public static final int DISPLAY_NAME_FIELD_NUMBER = 10; 1124 1125 @SuppressWarnings("serial") 1126 private volatile java.lang.Object displayName_ = ""; 1127 /** 1128 * 1129 * 1130 * <pre> 1131 * The display name of the ModelEvaluation. 1132 * </pre> 1133 * 1134 * <code>string display_name = 10;</code> 1135 * 1136 * @return The displayName. 1137 */ 1138 @java.lang.Override getDisplayName()1139 public java.lang.String getDisplayName() { 1140 java.lang.Object ref = displayName_; 1141 if (ref instanceof java.lang.String) { 1142 return (java.lang.String) ref; 1143 } else { 1144 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1145 java.lang.String s = bs.toStringUtf8(); 1146 displayName_ = s; 1147 return s; 1148 } 1149 } 1150 /** 1151 * 1152 * 1153 * <pre> 1154 * The display name of the ModelEvaluation. 1155 * </pre> 1156 * 1157 * <code>string display_name = 10;</code> 1158 * 1159 * @return The bytes for displayName. 1160 */ 1161 @java.lang.Override getDisplayNameBytes()1162 public com.google.protobuf.ByteString getDisplayNameBytes() { 1163 java.lang.Object ref = displayName_; 1164 if (ref instanceof java.lang.String) { 1165 com.google.protobuf.ByteString b = 1166 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1167 displayName_ = b; 1168 return b; 1169 } else { 1170 return (com.google.protobuf.ByteString) ref; 1171 } 1172 } 1173 1174 public static final int METRICS_SCHEMA_URI_FIELD_NUMBER = 2; 1175 1176 @SuppressWarnings("serial") 1177 private volatile java.lang.Object metricsSchemaUri_ = ""; 1178 /** 1179 * 1180 * 1181 * <pre> 1182 * Points to a YAML file stored on Google Cloud Storage describing the 1183 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 1184 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 1185 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1186 * </pre> 1187 * 1188 * <code>string metrics_schema_uri = 2;</code> 1189 * 1190 * @return The metricsSchemaUri. 1191 */ 1192 @java.lang.Override getMetricsSchemaUri()1193 public java.lang.String getMetricsSchemaUri() { 1194 java.lang.Object ref = metricsSchemaUri_; 1195 if (ref instanceof java.lang.String) { 1196 return (java.lang.String) ref; 1197 } else { 1198 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1199 java.lang.String s = bs.toStringUtf8(); 1200 metricsSchemaUri_ = s; 1201 return s; 1202 } 1203 } 1204 /** 1205 * 1206 * 1207 * <pre> 1208 * Points to a YAML file stored on Google Cloud Storage describing the 1209 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 1210 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 1211 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1212 * </pre> 1213 * 1214 * <code>string metrics_schema_uri = 2;</code> 1215 * 1216 * @return The bytes for metricsSchemaUri. 1217 */ 1218 @java.lang.Override getMetricsSchemaUriBytes()1219 public com.google.protobuf.ByteString getMetricsSchemaUriBytes() { 1220 java.lang.Object ref = metricsSchemaUri_; 1221 if (ref instanceof java.lang.String) { 1222 com.google.protobuf.ByteString b = 1223 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1224 metricsSchemaUri_ = b; 1225 return b; 1226 } else { 1227 return (com.google.protobuf.ByteString) ref; 1228 } 1229 } 1230 1231 public static final int METRICS_FIELD_NUMBER = 3; 1232 private com.google.protobuf.Value metrics_; 1233 /** 1234 * 1235 * 1236 * <pre> 1237 * Evaluation metrics of the Model. The schema of the metrics is stored in 1238 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 1239 * </pre> 1240 * 1241 * <code>.google.protobuf.Value metrics = 3;</code> 1242 * 1243 * @return Whether the metrics field is set. 1244 */ 1245 @java.lang.Override hasMetrics()1246 public boolean hasMetrics() { 1247 return metrics_ != null; 1248 } 1249 /** 1250 * 1251 * 1252 * <pre> 1253 * Evaluation metrics of the Model. The schema of the metrics is stored in 1254 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 1255 * </pre> 1256 * 1257 * <code>.google.protobuf.Value metrics = 3;</code> 1258 * 1259 * @return The metrics. 1260 */ 1261 @java.lang.Override getMetrics()1262 public com.google.protobuf.Value getMetrics() { 1263 return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; 1264 } 1265 /** 1266 * 1267 * 1268 * <pre> 1269 * Evaluation metrics of the Model. The schema of the metrics is stored in 1270 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 1271 * </pre> 1272 * 1273 * <code>.google.protobuf.Value metrics = 3;</code> 1274 */ 1275 @java.lang.Override getMetricsOrBuilder()1276 public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { 1277 return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; 1278 } 1279 1280 public static final int CREATE_TIME_FIELD_NUMBER = 4; 1281 private com.google.protobuf.Timestamp createTime_; 1282 /** 1283 * 1284 * 1285 * <pre> 1286 * Output only. Timestamp when this ModelEvaluation was created. 1287 * </pre> 1288 * 1289 * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1290 * </code> 1291 * 1292 * @return Whether the createTime field is set. 1293 */ 1294 @java.lang.Override hasCreateTime()1295 public boolean hasCreateTime() { 1296 return createTime_ != null; 1297 } 1298 /** 1299 * 1300 * 1301 * <pre> 1302 * Output only. Timestamp when this ModelEvaluation was created. 1303 * </pre> 1304 * 1305 * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1306 * </code> 1307 * 1308 * @return The createTime. 1309 */ 1310 @java.lang.Override getCreateTime()1311 public com.google.protobuf.Timestamp getCreateTime() { 1312 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 1313 } 1314 /** 1315 * 1316 * 1317 * <pre> 1318 * Output only. Timestamp when this ModelEvaluation was created. 1319 * </pre> 1320 * 1321 * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1322 * </code> 1323 */ 1324 @java.lang.Override getCreateTimeOrBuilder()1325 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 1326 return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; 1327 } 1328 1329 public static final int SLICE_DIMENSIONS_FIELD_NUMBER = 5; 1330 1331 @SuppressWarnings("serial") 1332 private com.google.protobuf.LazyStringList sliceDimensions_; 1333 /** 1334 * 1335 * 1336 * <pre> 1337 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 1338 * ModelEvaluationSlices. The dimensions can be used as the filter of the 1339 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 1340 * request, in the form of `slice.dimension = <dimension>`. 1341 * </pre> 1342 * 1343 * <code>repeated string slice_dimensions = 5;</code> 1344 * 1345 * @return A list containing the sliceDimensions. 1346 */ getSliceDimensionsList()1347 public com.google.protobuf.ProtocolStringList getSliceDimensionsList() { 1348 return sliceDimensions_; 1349 } 1350 /** 1351 * 1352 * 1353 * <pre> 1354 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 1355 * ModelEvaluationSlices. The dimensions can be used as the filter of the 1356 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 1357 * request, in the form of `slice.dimension = <dimension>`. 1358 * </pre> 1359 * 1360 * <code>repeated string slice_dimensions = 5;</code> 1361 * 1362 * @return The count of sliceDimensions. 1363 */ getSliceDimensionsCount()1364 public int getSliceDimensionsCount() { 1365 return sliceDimensions_.size(); 1366 } 1367 /** 1368 * 1369 * 1370 * <pre> 1371 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 1372 * ModelEvaluationSlices. The dimensions can be used as the filter of the 1373 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 1374 * request, in the form of `slice.dimension = <dimension>`. 1375 * </pre> 1376 * 1377 * <code>repeated string slice_dimensions = 5;</code> 1378 * 1379 * @param index The index of the element to return. 1380 * @return The sliceDimensions at the given index. 1381 */ getSliceDimensions(int index)1382 public java.lang.String getSliceDimensions(int index) { 1383 return sliceDimensions_.get(index); 1384 } 1385 /** 1386 * 1387 * 1388 * <pre> 1389 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 1390 * ModelEvaluationSlices. The dimensions can be used as the filter of the 1391 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 1392 * request, in the form of `slice.dimension = <dimension>`. 1393 * </pre> 1394 * 1395 * <code>repeated string slice_dimensions = 5;</code> 1396 * 1397 * @param index The index of the value to return. 1398 * @return The bytes of the sliceDimensions at the given index. 1399 */ getSliceDimensionsBytes(int index)1400 public com.google.protobuf.ByteString getSliceDimensionsBytes(int index) { 1401 return sliceDimensions_.getByteString(index); 1402 } 1403 1404 public static final int DATA_ITEM_SCHEMA_URI_FIELD_NUMBER = 6; 1405 1406 @SuppressWarnings("serial") 1407 private volatile java.lang.Object dataItemSchemaUri_ = ""; 1408 /** 1409 * 1410 * 1411 * <pre> 1412 * Points to a YAML file stored on Google Cloud Storage describing 1413 * [EvaluatedDataItemView.data_item_payload][] and 1414 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 1415 * The schema is defined as an OpenAPI 3.0.2 [Schema 1416 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1417 * This field is not populated if there are neither EvaluatedDataItemViews nor 1418 * EvaluatedAnnotations under this ModelEvaluation. 1419 * </pre> 1420 * 1421 * <code>string data_item_schema_uri = 6;</code> 1422 * 1423 * @return The dataItemSchemaUri. 1424 */ 1425 @java.lang.Override getDataItemSchemaUri()1426 public java.lang.String getDataItemSchemaUri() { 1427 java.lang.Object ref = dataItemSchemaUri_; 1428 if (ref instanceof java.lang.String) { 1429 return (java.lang.String) ref; 1430 } else { 1431 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1432 java.lang.String s = bs.toStringUtf8(); 1433 dataItemSchemaUri_ = s; 1434 return s; 1435 } 1436 } 1437 /** 1438 * 1439 * 1440 * <pre> 1441 * Points to a YAML file stored on Google Cloud Storage describing 1442 * [EvaluatedDataItemView.data_item_payload][] and 1443 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 1444 * The schema is defined as an OpenAPI 3.0.2 [Schema 1445 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1446 * This field is not populated if there are neither EvaluatedDataItemViews nor 1447 * EvaluatedAnnotations under this ModelEvaluation. 1448 * </pre> 1449 * 1450 * <code>string data_item_schema_uri = 6;</code> 1451 * 1452 * @return The bytes for dataItemSchemaUri. 1453 */ 1454 @java.lang.Override getDataItemSchemaUriBytes()1455 public com.google.protobuf.ByteString getDataItemSchemaUriBytes() { 1456 java.lang.Object ref = dataItemSchemaUri_; 1457 if (ref instanceof java.lang.String) { 1458 com.google.protobuf.ByteString b = 1459 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1460 dataItemSchemaUri_ = b; 1461 return b; 1462 } else { 1463 return (com.google.protobuf.ByteString) ref; 1464 } 1465 } 1466 1467 public static final int ANNOTATION_SCHEMA_URI_FIELD_NUMBER = 7; 1468 1469 @SuppressWarnings("serial") 1470 private volatile java.lang.Object annotationSchemaUri_ = ""; 1471 /** 1472 * 1473 * 1474 * <pre> 1475 * Points to a YAML file stored on Google Cloud Storage describing 1476 * [EvaluatedDataItemView.predictions][], 1477 * [EvaluatedDataItemView.ground_truths][], 1478 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 1479 * and 1480 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 1481 * The schema is defined as an OpenAPI 3.0.2 [Schema 1482 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1483 * This field is not populated if there are neither EvaluatedDataItemViews nor 1484 * EvaluatedAnnotations under this ModelEvaluation. 1485 * </pre> 1486 * 1487 * <code>string annotation_schema_uri = 7;</code> 1488 * 1489 * @return The annotationSchemaUri. 1490 */ 1491 @java.lang.Override getAnnotationSchemaUri()1492 public java.lang.String getAnnotationSchemaUri() { 1493 java.lang.Object ref = annotationSchemaUri_; 1494 if (ref instanceof java.lang.String) { 1495 return (java.lang.String) ref; 1496 } else { 1497 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1498 java.lang.String s = bs.toStringUtf8(); 1499 annotationSchemaUri_ = s; 1500 return s; 1501 } 1502 } 1503 /** 1504 * 1505 * 1506 * <pre> 1507 * Points to a YAML file stored on Google Cloud Storage describing 1508 * [EvaluatedDataItemView.predictions][], 1509 * [EvaluatedDataItemView.ground_truths][], 1510 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 1511 * and 1512 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 1513 * The schema is defined as an OpenAPI 3.0.2 [Schema 1514 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 1515 * This field is not populated if there are neither EvaluatedDataItemViews nor 1516 * EvaluatedAnnotations under this ModelEvaluation. 1517 * </pre> 1518 * 1519 * <code>string annotation_schema_uri = 7;</code> 1520 * 1521 * @return The bytes for annotationSchemaUri. 1522 */ 1523 @java.lang.Override getAnnotationSchemaUriBytes()1524 public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { 1525 java.lang.Object ref = annotationSchemaUri_; 1526 if (ref instanceof java.lang.String) { 1527 com.google.protobuf.ByteString b = 1528 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1529 annotationSchemaUri_ = b; 1530 return b; 1531 } else { 1532 return (com.google.protobuf.ByteString) ref; 1533 } 1534 } 1535 1536 public static final int MODEL_EXPLANATION_FIELD_NUMBER = 8; 1537 private com.google.cloud.aiplatform.v1.ModelExplanation modelExplanation_; 1538 /** 1539 * 1540 * 1541 * <pre> 1542 * Aggregated explanation metrics for the Model's prediction output over the 1543 * data this ModelEvaluation uses. This field is populated only if the Model 1544 * is evaluated with explanations, and only for AutoML tabular Models. 1545 * </pre> 1546 * 1547 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 1548 * 1549 * @return Whether the modelExplanation field is set. 1550 */ 1551 @java.lang.Override hasModelExplanation()1552 public boolean hasModelExplanation() { 1553 return modelExplanation_ != null; 1554 } 1555 /** 1556 * 1557 * 1558 * <pre> 1559 * Aggregated explanation metrics for the Model's prediction output over the 1560 * data this ModelEvaluation uses. This field is populated only if the Model 1561 * is evaluated with explanations, and only for AutoML tabular Models. 1562 * </pre> 1563 * 1564 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 1565 * 1566 * @return The modelExplanation. 1567 */ 1568 @java.lang.Override getModelExplanation()1569 public com.google.cloud.aiplatform.v1.ModelExplanation getModelExplanation() { 1570 return modelExplanation_ == null 1571 ? com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance() 1572 : modelExplanation_; 1573 } 1574 /** 1575 * 1576 * 1577 * <pre> 1578 * Aggregated explanation metrics for the Model's prediction output over the 1579 * data this ModelEvaluation uses. This field is populated only if the Model 1580 * is evaluated with explanations, and only for AutoML tabular Models. 1581 * </pre> 1582 * 1583 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 1584 */ 1585 @java.lang.Override getModelExplanationOrBuilder()1586 public com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder getModelExplanationOrBuilder() { 1587 return modelExplanation_ == null 1588 ? com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance() 1589 : modelExplanation_; 1590 } 1591 1592 public static final int EXPLANATION_SPECS_FIELD_NUMBER = 9; 1593 1594 @SuppressWarnings("serial") 1595 private java.util.List< 1596 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> 1597 explanationSpecs_; 1598 /** 1599 * 1600 * 1601 * <pre> 1602 * Describes the values of 1603 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 1604 * for explaining the predicted values on the evaluated data. 1605 * </pre> 1606 * 1607 * <code> 1608 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 1609 * </code> 1610 */ 1611 @java.lang.Override 1612 public java.util.List< 1613 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> getExplanationSpecsList()1614 getExplanationSpecsList() { 1615 return explanationSpecs_; 1616 } 1617 /** 1618 * 1619 * 1620 * <pre> 1621 * Describes the values of 1622 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 1623 * for explaining the predicted values on the evaluated data. 1624 * </pre> 1625 * 1626 * <code> 1627 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 1628 * </code> 1629 */ 1630 @java.lang.Override 1631 public java.util.List< 1632 ? extends 1633 com.google.cloud.aiplatform.v1.ModelEvaluation 1634 .ModelEvaluationExplanationSpecOrBuilder> getExplanationSpecsOrBuilderList()1635 getExplanationSpecsOrBuilderList() { 1636 return explanationSpecs_; 1637 } 1638 /** 1639 * 1640 * 1641 * <pre> 1642 * Describes the values of 1643 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 1644 * for explaining the predicted values on the evaluated data. 1645 * </pre> 1646 * 1647 * <code> 1648 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 1649 * </code> 1650 */ 1651 @java.lang.Override getExplanationSpecsCount()1652 public int getExplanationSpecsCount() { 1653 return explanationSpecs_.size(); 1654 } 1655 /** 1656 * 1657 * 1658 * <pre> 1659 * Describes the values of 1660 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 1661 * for explaining the predicted values on the evaluated data. 1662 * </pre> 1663 * 1664 * <code> 1665 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 1666 * </code> 1667 */ 1668 @java.lang.Override 1669 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec getExplanationSpecs(int index)1670 getExplanationSpecs(int index) { 1671 return explanationSpecs_.get(index); 1672 } 1673 /** 1674 * 1675 * 1676 * <pre> 1677 * Describes the values of 1678 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 1679 * for explaining the predicted values on the evaluated data. 1680 * </pre> 1681 * 1682 * <code> 1683 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 1684 * </code> 1685 */ 1686 @java.lang.Override 1687 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder getExplanationSpecsOrBuilder(int index)1688 getExplanationSpecsOrBuilder(int index) { 1689 return explanationSpecs_.get(index); 1690 } 1691 1692 public static final int METADATA_FIELD_NUMBER = 11; 1693 private com.google.protobuf.Value metadata_; 1694 /** 1695 * 1696 * 1697 * <pre> 1698 * The metadata of the ModelEvaluation. 1699 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 1700 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 1701 * "evaluation_dataset_path". 1702 * </pre> 1703 * 1704 * <code>.google.protobuf.Value metadata = 11;</code> 1705 * 1706 * @return Whether the metadata field is set. 1707 */ 1708 @java.lang.Override hasMetadata()1709 public boolean hasMetadata() { 1710 return metadata_ != null; 1711 } 1712 /** 1713 * 1714 * 1715 * <pre> 1716 * The metadata of the ModelEvaluation. 1717 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 1718 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 1719 * "evaluation_dataset_path". 1720 * </pre> 1721 * 1722 * <code>.google.protobuf.Value metadata = 11;</code> 1723 * 1724 * @return The metadata. 1725 */ 1726 @java.lang.Override getMetadata()1727 public com.google.protobuf.Value getMetadata() { 1728 return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; 1729 } 1730 /** 1731 * 1732 * 1733 * <pre> 1734 * The metadata of the ModelEvaluation. 1735 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 1736 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 1737 * "evaluation_dataset_path". 1738 * </pre> 1739 * 1740 * <code>.google.protobuf.Value metadata = 11;</code> 1741 */ 1742 @java.lang.Override getMetadataOrBuilder()1743 public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { 1744 return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; 1745 } 1746 1747 private byte memoizedIsInitialized = -1; 1748 1749 @java.lang.Override isInitialized()1750 public final boolean isInitialized() { 1751 byte isInitialized = memoizedIsInitialized; 1752 if (isInitialized == 1) return true; 1753 if (isInitialized == 0) return false; 1754 1755 memoizedIsInitialized = 1; 1756 return true; 1757 } 1758 1759 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1760 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1761 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1762 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 1763 } 1764 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricsSchemaUri_)) { 1765 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricsSchemaUri_); 1766 } 1767 if (metrics_ != null) { 1768 output.writeMessage(3, getMetrics()); 1769 } 1770 if (createTime_ != null) { 1771 output.writeMessage(4, getCreateTime()); 1772 } 1773 for (int i = 0; i < sliceDimensions_.size(); i++) { 1774 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sliceDimensions_.getRaw(i)); 1775 } 1776 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataItemSchemaUri_)) { 1777 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dataItemSchemaUri_); 1778 } 1779 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSchemaUri_)) { 1780 com.google.protobuf.GeneratedMessageV3.writeString(output, 7, annotationSchemaUri_); 1781 } 1782 if (modelExplanation_ != null) { 1783 output.writeMessage(8, getModelExplanation()); 1784 } 1785 for (int i = 0; i < explanationSpecs_.size(); i++) { 1786 output.writeMessage(9, explanationSpecs_.get(i)); 1787 } 1788 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 1789 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, displayName_); 1790 } 1791 if (metadata_ != null) { 1792 output.writeMessage(11, getMetadata()); 1793 } 1794 getUnknownFields().writeTo(output); 1795 } 1796 1797 @java.lang.Override getSerializedSize()1798 public int getSerializedSize() { 1799 int size = memoizedSize; 1800 if (size != -1) return size; 1801 1802 size = 0; 1803 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1804 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 1805 } 1806 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricsSchemaUri_)) { 1807 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricsSchemaUri_); 1808 } 1809 if (metrics_ != null) { 1810 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetrics()); 1811 } 1812 if (createTime_ != null) { 1813 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); 1814 } 1815 { 1816 int dataSize = 0; 1817 for (int i = 0; i < sliceDimensions_.size(); i++) { 1818 dataSize += computeStringSizeNoTag(sliceDimensions_.getRaw(i)); 1819 } 1820 size += dataSize; 1821 size += 1 * getSliceDimensionsList().size(); 1822 } 1823 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataItemSchemaUri_)) { 1824 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dataItemSchemaUri_); 1825 } 1826 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSchemaUri_)) { 1827 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, annotationSchemaUri_); 1828 } 1829 if (modelExplanation_ != null) { 1830 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getModelExplanation()); 1831 } 1832 for (int i = 0; i < explanationSpecs_.size(); i++) { 1833 size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, explanationSpecs_.get(i)); 1834 } 1835 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { 1836 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, displayName_); 1837 } 1838 if (metadata_ != null) { 1839 size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getMetadata()); 1840 } 1841 size += getUnknownFields().getSerializedSize(); 1842 memoizedSize = size; 1843 return size; 1844 } 1845 1846 @java.lang.Override equals(final java.lang.Object obj)1847 public boolean equals(final java.lang.Object obj) { 1848 if (obj == this) { 1849 return true; 1850 } 1851 if (!(obj instanceof com.google.cloud.aiplatform.v1.ModelEvaluation)) { 1852 return super.equals(obj); 1853 } 1854 com.google.cloud.aiplatform.v1.ModelEvaluation other = 1855 (com.google.cloud.aiplatform.v1.ModelEvaluation) obj; 1856 1857 if (!getName().equals(other.getName())) return false; 1858 if (!getDisplayName().equals(other.getDisplayName())) return false; 1859 if (!getMetricsSchemaUri().equals(other.getMetricsSchemaUri())) return false; 1860 if (hasMetrics() != other.hasMetrics()) return false; 1861 if (hasMetrics()) { 1862 if (!getMetrics().equals(other.getMetrics())) return false; 1863 } 1864 if (hasCreateTime() != other.hasCreateTime()) return false; 1865 if (hasCreateTime()) { 1866 if (!getCreateTime().equals(other.getCreateTime())) return false; 1867 } 1868 if (!getSliceDimensionsList().equals(other.getSliceDimensionsList())) return false; 1869 if (!getDataItemSchemaUri().equals(other.getDataItemSchemaUri())) return false; 1870 if (!getAnnotationSchemaUri().equals(other.getAnnotationSchemaUri())) return false; 1871 if (hasModelExplanation() != other.hasModelExplanation()) return false; 1872 if (hasModelExplanation()) { 1873 if (!getModelExplanation().equals(other.getModelExplanation())) return false; 1874 } 1875 if (!getExplanationSpecsList().equals(other.getExplanationSpecsList())) return false; 1876 if (hasMetadata() != other.hasMetadata()) return false; 1877 if (hasMetadata()) { 1878 if (!getMetadata().equals(other.getMetadata())) return false; 1879 } 1880 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1881 return true; 1882 } 1883 1884 @java.lang.Override hashCode()1885 public int hashCode() { 1886 if (memoizedHashCode != 0) { 1887 return memoizedHashCode; 1888 } 1889 int hash = 41; 1890 hash = (19 * hash) + getDescriptor().hashCode(); 1891 hash = (37 * hash) + NAME_FIELD_NUMBER; 1892 hash = (53 * hash) + getName().hashCode(); 1893 hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; 1894 hash = (53 * hash) + getDisplayName().hashCode(); 1895 hash = (37 * hash) + METRICS_SCHEMA_URI_FIELD_NUMBER; 1896 hash = (53 * hash) + getMetricsSchemaUri().hashCode(); 1897 if (hasMetrics()) { 1898 hash = (37 * hash) + METRICS_FIELD_NUMBER; 1899 hash = (53 * hash) + getMetrics().hashCode(); 1900 } 1901 if (hasCreateTime()) { 1902 hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; 1903 hash = (53 * hash) + getCreateTime().hashCode(); 1904 } 1905 if (getSliceDimensionsCount() > 0) { 1906 hash = (37 * hash) + SLICE_DIMENSIONS_FIELD_NUMBER; 1907 hash = (53 * hash) + getSliceDimensionsList().hashCode(); 1908 } 1909 hash = (37 * hash) + DATA_ITEM_SCHEMA_URI_FIELD_NUMBER; 1910 hash = (53 * hash) + getDataItemSchemaUri().hashCode(); 1911 hash = (37 * hash) + ANNOTATION_SCHEMA_URI_FIELD_NUMBER; 1912 hash = (53 * hash) + getAnnotationSchemaUri().hashCode(); 1913 if (hasModelExplanation()) { 1914 hash = (37 * hash) + MODEL_EXPLANATION_FIELD_NUMBER; 1915 hash = (53 * hash) + getModelExplanation().hashCode(); 1916 } 1917 if (getExplanationSpecsCount() > 0) { 1918 hash = (37 * hash) + EXPLANATION_SPECS_FIELD_NUMBER; 1919 hash = (53 * hash) + getExplanationSpecsList().hashCode(); 1920 } 1921 if (hasMetadata()) { 1922 hash = (37 * hash) + METADATA_FIELD_NUMBER; 1923 hash = (53 * hash) + getMetadata().hashCode(); 1924 } 1925 hash = (29 * hash) + getUnknownFields().hashCode(); 1926 memoizedHashCode = hash; 1927 return hash; 1928 } 1929 parseFrom(java.nio.ByteBuffer data)1930 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom(java.nio.ByteBuffer data) 1931 throws com.google.protobuf.InvalidProtocolBufferException { 1932 return PARSER.parseFrom(data); 1933 } 1934 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1935 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1936 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1937 throws com.google.protobuf.InvalidProtocolBufferException { 1938 return PARSER.parseFrom(data, extensionRegistry); 1939 } 1940 parseFrom( com.google.protobuf.ByteString data)1941 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1942 com.google.protobuf.ByteString data) 1943 throws com.google.protobuf.InvalidProtocolBufferException { 1944 return PARSER.parseFrom(data); 1945 } 1946 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1947 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1948 com.google.protobuf.ByteString data, 1949 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1950 throws com.google.protobuf.InvalidProtocolBufferException { 1951 return PARSER.parseFrom(data, extensionRegistry); 1952 } 1953 parseFrom(byte[] data)1954 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom(byte[] data) 1955 throws com.google.protobuf.InvalidProtocolBufferException { 1956 return PARSER.parseFrom(data); 1957 } 1958 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1959 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1960 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1961 throws com.google.protobuf.InvalidProtocolBufferException { 1962 return PARSER.parseFrom(data, extensionRegistry); 1963 } 1964 parseFrom(java.io.InputStream input)1965 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom(java.io.InputStream input) 1966 throws java.io.IOException { 1967 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1968 } 1969 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1970 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1971 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1972 throws java.io.IOException { 1973 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1974 PARSER, input, extensionRegistry); 1975 } 1976 parseDelimitedFrom( java.io.InputStream input)1977 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseDelimitedFrom( 1978 java.io.InputStream input) throws java.io.IOException { 1979 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1980 } 1981 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1982 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseDelimitedFrom( 1983 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1984 throws java.io.IOException { 1985 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1986 PARSER, input, extensionRegistry); 1987 } 1988 parseFrom( com.google.protobuf.CodedInputStream input)1989 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1990 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1991 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1992 } 1993 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1994 public static com.google.cloud.aiplatform.v1.ModelEvaluation parseFrom( 1995 com.google.protobuf.CodedInputStream input, 1996 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1997 throws java.io.IOException { 1998 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1999 PARSER, input, extensionRegistry); 2000 } 2001 2002 @java.lang.Override newBuilderForType()2003 public Builder newBuilderForType() { 2004 return newBuilder(); 2005 } 2006 newBuilder()2007 public static Builder newBuilder() { 2008 return DEFAULT_INSTANCE.toBuilder(); 2009 } 2010 newBuilder(com.google.cloud.aiplatform.v1.ModelEvaluation prototype)2011 public static Builder newBuilder(com.google.cloud.aiplatform.v1.ModelEvaluation prototype) { 2012 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2013 } 2014 2015 @java.lang.Override toBuilder()2016 public Builder toBuilder() { 2017 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2018 } 2019 2020 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2021 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2022 Builder builder = new Builder(parent); 2023 return builder; 2024 } 2025 /** 2026 * 2027 * 2028 * <pre> 2029 * A collection of metrics calculated by comparing Model's predictions on all of 2030 * the test data against annotations from the test data. 2031 * </pre> 2032 * 2033 * Protobuf type {@code google.cloud.aiplatform.v1.ModelEvaluation} 2034 */ 2035 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2036 implements 2037 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ModelEvaluation) 2038 com.google.cloud.aiplatform.v1.ModelEvaluationOrBuilder { getDescriptor()2039 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2040 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 2041 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_descriptor; 2042 } 2043 2044 @java.lang.Override 2045 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2046 internalGetFieldAccessorTable() { 2047 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 2048 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_fieldAccessorTable 2049 .ensureFieldAccessorsInitialized( 2050 com.google.cloud.aiplatform.v1.ModelEvaluation.class, 2051 com.google.cloud.aiplatform.v1.ModelEvaluation.Builder.class); 2052 } 2053 2054 // Construct using com.google.cloud.aiplatform.v1.ModelEvaluation.newBuilder() Builder()2055 private Builder() {} 2056 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2057 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2058 super(parent); 2059 } 2060 2061 @java.lang.Override clear()2062 public Builder clear() { 2063 super.clear(); 2064 bitField0_ = 0; 2065 name_ = ""; 2066 displayName_ = ""; 2067 metricsSchemaUri_ = ""; 2068 metrics_ = null; 2069 if (metricsBuilder_ != null) { 2070 metricsBuilder_.dispose(); 2071 metricsBuilder_ = null; 2072 } 2073 createTime_ = null; 2074 if (createTimeBuilder_ != null) { 2075 createTimeBuilder_.dispose(); 2076 createTimeBuilder_ = null; 2077 } 2078 sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2079 bitField0_ = (bitField0_ & ~0x00000020); 2080 dataItemSchemaUri_ = ""; 2081 annotationSchemaUri_ = ""; 2082 modelExplanation_ = null; 2083 if (modelExplanationBuilder_ != null) { 2084 modelExplanationBuilder_.dispose(); 2085 modelExplanationBuilder_ = null; 2086 } 2087 if (explanationSpecsBuilder_ == null) { 2088 explanationSpecs_ = java.util.Collections.emptyList(); 2089 } else { 2090 explanationSpecs_ = null; 2091 explanationSpecsBuilder_.clear(); 2092 } 2093 bitField0_ = (bitField0_ & ~0x00000200); 2094 metadata_ = null; 2095 if (metadataBuilder_ != null) { 2096 metadataBuilder_.dispose(); 2097 metadataBuilder_ = null; 2098 } 2099 return this; 2100 } 2101 2102 @java.lang.Override getDescriptorForType()2103 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2104 return com.google.cloud.aiplatform.v1.ModelEvaluationProto 2105 .internal_static_google_cloud_aiplatform_v1_ModelEvaluation_descriptor; 2106 } 2107 2108 @java.lang.Override getDefaultInstanceForType()2109 public com.google.cloud.aiplatform.v1.ModelEvaluation getDefaultInstanceForType() { 2110 return com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance(); 2111 } 2112 2113 @java.lang.Override build()2114 public com.google.cloud.aiplatform.v1.ModelEvaluation build() { 2115 com.google.cloud.aiplatform.v1.ModelEvaluation result = buildPartial(); 2116 if (!result.isInitialized()) { 2117 throw newUninitializedMessageException(result); 2118 } 2119 return result; 2120 } 2121 2122 @java.lang.Override buildPartial()2123 public com.google.cloud.aiplatform.v1.ModelEvaluation buildPartial() { 2124 com.google.cloud.aiplatform.v1.ModelEvaluation result = 2125 new com.google.cloud.aiplatform.v1.ModelEvaluation(this); 2126 buildPartialRepeatedFields(result); 2127 if (bitField0_ != 0) { 2128 buildPartial0(result); 2129 } 2130 onBuilt(); 2131 return result; 2132 } 2133 buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.ModelEvaluation result)2134 private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.ModelEvaluation result) { 2135 if (((bitField0_ & 0x00000020) != 0)) { 2136 sliceDimensions_ = sliceDimensions_.getUnmodifiableView(); 2137 bitField0_ = (bitField0_ & ~0x00000020); 2138 } 2139 result.sliceDimensions_ = sliceDimensions_; 2140 if (explanationSpecsBuilder_ == null) { 2141 if (((bitField0_ & 0x00000200) != 0)) { 2142 explanationSpecs_ = java.util.Collections.unmodifiableList(explanationSpecs_); 2143 bitField0_ = (bitField0_ & ~0x00000200); 2144 } 2145 result.explanationSpecs_ = explanationSpecs_; 2146 } else { 2147 result.explanationSpecs_ = explanationSpecsBuilder_.build(); 2148 } 2149 } 2150 buildPartial0(com.google.cloud.aiplatform.v1.ModelEvaluation result)2151 private void buildPartial0(com.google.cloud.aiplatform.v1.ModelEvaluation result) { 2152 int from_bitField0_ = bitField0_; 2153 if (((from_bitField0_ & 0x00000001) != 0)) { 2154 result.name_ = name_; 2155 } 2156 if (((from_bitField0_ & 0x00000002) != 0)) { 2157 result.displayName_ = displayName_; 2158 } 2159 if (((from_bitField0_ & 0x00000004) != 0)) { 2160 result.metricsSchemaUri_ = metricsSchemaUri_; 2161 } 2162 if (((from_bitField0_ & 0x00000008) != 0)) { 2163 result.metrics_ = metricsBuilder_ == null ? metrics_ : metricsBuilder_.build(); 2164 } 2165 if (((from_bitField0_ & 0x00000010) != 0)) { 2166 result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); 2167 } 2168 if (((from_bitField0_ & 0x00000040) != 0)) { 2169 result.dataItemSchemaUri_ = dataItemSchemaUri_; 2170 } 2171 if (((from_bitField0_ & 0x00000080) != 0)) { 2172 result.annotationSchemaUri_ = annotationSchemaUri_; 2173 } 2174 if (((from_bitField0_ & 0x00000100) != 0)) { 2175 result.modelExplanation_ = 2176 modelExplanationBuilder_ == null ? modelExplanation_ : modelExplanationBuilder_.build(); 2177 } 2178 if (((from_bitField0_ & 0x00000400) != 0)) { 2179 result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); 2180 } 2181 } 2182 2183 @java.lang.Override clone()2184 public Builder clone() { 2185 return super.clone(); 2186 } 2187 2188 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2189 public Builder setField( 2190 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2191 return super.setField(field, value); 2192 } 2193 2194 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2195 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2196 return super.clearField(field); 2197 } 2198 2199 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2200 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2201 return super.clearOneof(oneof); 2202 } 2203 2204 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2205 public Builder setRepeatedField( 2206 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2207 return super.setRepeatedField(field, index, value); 2208 } 2209 2210 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2211 public Builder addRepeatedField( 2212 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2213 return super.addRepeatedField(field, value); 2214 } 2215 2216 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2217 public Builder mergeFrom(com.google.protobuf.Message other) { 2218 if (other instanceof com.google.cloud.aiplatform.v1.ModelEvaluation) { 2219 return mergeFrom((com.google.cloud.aiplatform.v1.ModelEvaluation) other); 2220 } else { 2221 super.mergeFrom(other); 2222 return this; 2223 } 2224 } 2225 mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other)2226 public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelEvaluation other) { 2227 if (other == com.google.cloud.aiplatform.v1.ModelEvaluation.getDefaultInstance()) return this; 2228 if (!other.getName().isEmpty()) { 2229 name_ = other.name_; 2230 bitField0_ |= 0x00000001; 2231 onChanged(); 2232 } 2233 if (!other.getDisplayName().isEmpty()) { 2234 displayName_ = other.displayName_; 2235 bitField0_ |= 0x00000002; 2236 onChanged(); 2237 } 2238 if (!other.getMetricsSchemaUri().isEmpty()) { 2239 metricsSchemaUri_ = other.metricsSchemaUri_; 2240 bitField0_ |= 0x00000004; 2241 onChanged(); 2242 } 2243 if (other.hasMetrics()) { 2244 mergeMetrics(other.getMetrics()); 2245 } 2246 if (other.hasCreateTime()) { 2247 mergeCreateTime(other.getCreateTime()); 2248 } 2249 if (!other.sliceDimensions_.isEmpty()) { 2250 if (sliceDimensions_.isEmpty()) { 2251 sliceDimensions_ = other.sliceDimensions_; 2252 bitField0_ = (bitField0_ & ~0x00000020); 2253 } else { 2254 ensureSliceDimensionsIsMutable(); 2255 sliceDimensions_.addAll(other.sliceDimensions_); 2256 } 2257 onChanged(); 2258 } 2259 if (!other.getDataItemSchemaUri().isEmpty()) { 2260 dataItemSchemaUri_ = other.dataItemSchemaUri_; 2261 bitField0_ |= 0x00000040; 2262 onChanged(); 2263 } 2264 if (!other.getAnnotationSchemaUri().isEmpty()) { 2265 annotationSchemaUri_ = other.annotationSchemaUri_; 2266 bitField0_ |= 0x00000080; 2267 onChanged(); 2268 } 2269 if (other.hasModelExplanation()) { 2270 mergeModelExplanation(other.getModelExplanation()); 2271 } 2272 if (explanationSpecsBuilder_ == null) { 2273 if (!other.explanationSpecs_.isEmpty()) { 2274 if (explanationSpecs_.isEmpty()) { 2275 explanationSpecs_ = other.explanationSpecs_; 2276 bitField0_ = (bitField0_ & ~0x00000200); 2277 } else { 2278 ensureExplanationSpecsIsMutable(); 2279 explanationSpecs_.addAll(other.explanationSpecs_); 2280 } 2281 onChanged(); 2282 } 2283 } else { 2284 if (!other.explanationSpecs_.isEmpty()) { 2285 if (explanationSpecsBuilder_.isEmpty()) { 2286 explanationSpecsBuilder_.dispose(); 2287 explanationSpecsBuilder_ = null; 2288 explanationSpecs_ = other.explanationSpecs_; 2289 bitField0_ = (bitField0_ & ~0x00000200); 2290 explanationSpecsBuilder_ = 2291 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2292 ? getExplanationSpecsFieldBuilder() 2293 : null; 2294 } else { 2295 explanationSpecsBuilder_.addAllMessages(other.explanationSpecs_); 2296 } 2297 } 2298 } 2299 if (other.hasMetadata()) { 2300 mergeMetadata(other.getMetadata()); 2301 } 2302 this.mergeUnknownFields(other.getUnknownFields()); 2303 onChanged(); 2304 return this; 2305 } 2306 2307 @java.lang.Override isInitialized()2308 public final boolean isInitialized() { 2309 return true; 2310 } 2311 2312 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2313 public Builder mergeFrom( 2314 com.google.protobuf.CodedInputStream input, 2315 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2316 throws java.io.IOException { 2317 if (extensionRegistry == null) { 2318 throw new java.lang.NullPointerException(); 2319 } 2320 try { 2321 boolean done = false; 2322 while (!done) { 2323 int tag = input.readTag(); 2324 switch (tag) { 2325 case 0: 2326 done = true; 2327 break; 2328 case 10: 2329 { 2330 name_ = input.readStringRequireUtf8(); 2331 bitField0_ |= 0x00000001; 2332 break; 2333 } // case 10 2334 case 18: 2335 { 2336 metricsSchemaUri_ = input.readStringRequireUtf8(); 2337 bitField0_ |= 0x00000004; 2338 break; 2339 } // case 18 2340 case 26: 2341 { 2342 input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); 2343 bitField0_ |= 0x00000008; 2344 break; 2345 } // case 26 2346 case 34: 2347 { 2348 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); 2349 bitField0_ |= 0x00000010; 2350 break; 2351 } // case 34 2352 case 42: 2353 { 2354 java.lang.String s = input.readStringRequireUtf8(); 2355 ensureSliceDimensionsIsMutable(); 2356 sliceDimensions_.add(s); 2357 break; 2358 } // case 42 2359 case 50: 2360 { 2361 dataItemSchemaUri_ = input.readStringRequireUtf8(); 2362 bitField0_ |= 0x00000040; 2363 break; 2364 } // case 50 2365 case 58: 2366 { 2367 annotationSchemaUri_ = input.readStringRequireUtf8(); 2368 bitField0_ |= 0x00000080; 2369 break; 2370 } // case 58 2371 case 66: 2372 { 2373 input.readMessage( 2374 getModelExplanationFieldBuilder().getBuilder(), extensionRegistry); 2375 bitField0_ |= 0x00000100; 2376 break; 2377 } // case 66 2378 case 74: 2379 { 2380 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec m = 2381 input.readMessage( 2382 com.google.cloud.aiplatform.v1.ModelEvaluation 2383 .ModelEvaluationExplanationSpec.parser(), 2384 extensionRegistry); 2385 if (explanationSpecsBuilder_ == null) { 2386 ensureExplanationSpecsIsMutable(); 2387 explanationSpecs_.add(m); 2388 } else { 2389 explanationSpecsBuilder_.addMessage(m); 2390 } 2391 break; 2392 } // case 74 2393 case 82: 2394 { 2395 displayName_ = input.readStringRequireUtf8(); 2396 bitField0_ |= 0x00000002; 2397 break; 2398 } // case 82 2399 case 90: 2400 { 2401 input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); 2402 bitField0_ |= 0x00000400; 2403 break; 2404 } // case 90 2405 default: 2406 { 2407 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2408 done = true; // was an endgroup tag 2409 } 2410 break; 2411 } // default: 2412 } // switch (tag) 2413 } // while (!done) 2414 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2415 throw e.unwrapIOException(); 2416 } finally { 2417 onChanged(); 2418 } // finally 2419 return this; 2420 } 2421 2422 private int bitField0_; 2423 2424 private java.lang.Object name_ = ""; 2425 /** 2426 * 2427 * 2428 * <pre> 2429 * Output only. The resource name of the ModelEvaluation. 2430 * </pre> 2431 * 2432 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2433 * 2434 * @return The name. 2435 */ getName()2436 public java.lang.String getName() { 2437 java.lang.Object ref = name_; 2438 if (!(ref instanceof java.lang.String)) { 2439 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2440 java.lang.String s = bs.toStringUtf8(); 2441 name_ = s; 2442 return s; 2443 } else { 2444 return (java.lang.String) ref; 2445 } 2446 } 2447 /** 2448 * 2449 * 2450 * <pre> 2451 * Output only. The resource name of the ModelEvaluation. 2452 * </pre> 2453 * 2454 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2455 * 2456 * @return The bytes for name. 2457 */ getNameBytes()2458 public com.google.protobuf.ByteString getNameBytes() { 2459 java.lang.Object ref = name_; 2460 if (ref instanceof String) { 2461 com.google.protobuf.ByteString b = 2462 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2463 name_ = b; 2464 return b; 2465 } else { 2466 return (com.google.protobuf.ByteString) ref; 2467 } 2468 } 2469 /** 2470 * 2471 * 2472 * <pre> 2473 * Output only. The resource name of the ModelEvaluation. 2474 * </pre> 2475 * 2476 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2477 * 2478 * @param value The name to set. 2479 * @return This builder for chaining. 2480 */ setName(java.lang.String value)2481 public Builder setName(java.lang.String value) { 2482 if (value == null) { 2483 throw new NullPointerException(); 2484 } 2485 name_ = value; 2486 bitField0_ |= 0x00000001; 2487 onChanged(); 2488 return this; 2489 } 2490 /** 2491 * 2492 * 2493 * <pre> 2494 * Output only. The resource name of the ModelEvaluation. 2495 * </pre> 2496 * 2497 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2498 * 2499 * @return This builder for chaining. 2500 */ clearName()2501 public Builder clearName() { 2502 name_ = getDefaultInstance().getName(); 2503 bitField0_ = (bitField0_ & ~0x00000001); 2504 onChanged(); 2505 return this; 2506 } 2507 /** 2508 * 2509 * 2510 * <pre> 2511 * Output only. The resource name of the ModelEvaluation. 2512 * </pre> 2513 * 2514 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2515 * 2516 * @param value The bytes for name to set. 2517 * @return This builder for chaining. 2518 */ setNameBytes(com.google.protobuf.ByteString value)2519 public Builder setNameBytes(com.google.protobuf.ByteString value) { 2520 if (value == null) { 2521 throw new NullPointerException(); 2522 } 2523 checkByteStringIsUtf8(value); 2524 name_ = value; 2525 bitField0_ |= 0x00000001; 2526 onChanged(); 2527 return this; 2528 } 2529 2530 private java.lang.Object displayName_ = ""; 2531 /** 2532 * 2533 * 2534 * <pre> 2535 * The display name of the ModelEvaluation. 2536 * </pre> 2537 * 2538 * <code>string display_name = 10;</code> 2539 * 2540 * @return The displayName. 2541 */ getDisplayName()2542 public java.lang.String getDisplayName() { 2543 java.lang.Object ref = displayName_; 2544 if (!(ref instanceof java.lang.String)) { 2545 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2546 java.lang.String s = bs.toStringUtf8(); 2547 displayName_ = s; 2548 return s; 2549 } else { 2550 return (java.lang.String) ref; 2551 } 2552 } 2553 /** 2554 * 2555 * 2556 * <pre> 2557 * The display name of the ModelEvaluation. 2558 * </pre> 2559 * 2560 * <code>string display_name = 10;</code> 2561 * 2562 * @return The bytes for displayName. 2563 */ getDisplayNameBytes()2564 public com.google.protobuf.ByteString getDisplayNameBytes() { 2565 java.lang.Object ref = displayName_; 2566 if (ref instanceof String) { 2567 com.google.protobuf.ByteString b = 2568 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2569 displayName_ = b; 2570 return b; 2571 } else { 2572 return (com.google.protobuf.ByteString) ref; 2573 } 2574 } 2575 /** 2576 * 2577 * 2578 * <pre> 2579 * The display name of the ModelEvaluation. 2580 * </pre> 2581 * 2582 * <code>string display_name = 10;</code> 2583 * 2584 * @param value The displayName to set. 2585 * @return This builder for chaining. 2586 */ setDisplayName(java.lang.String value)2587 public Builder setDisplayName(java.lang.String value) { 2588 if (value == null) { 2589 throw new NullPointerException(); 2590 } 2591 displayName_ = value; 2592 bitField0_ |= 0x00000002; 2593 onChanged(); 2594 return this; 2595 } 2596 /** 2597 * 2598 * 2599 * <pre> 2600 * The display name of the ModelEvaluation. 2601 * </pre> 2602 * 2603 * <code>string display_name = 10;</code> 2604 * 2605 * @return This builder for chaining. 2606 */ clearDisplayName()2607 public Builder clearDisplayName() { 2608 displayName_ = getDefaultInstance().getDisplayName(); 2609 bitField0_ = (bitField0_ & ~0x00000002); 2610 onChanged(); 2611 return this; 2612 } 2613 /** 2614 * 2615 * 2616 * <pre> 2617 * The display name of the ModelEvaluation. 2618 * </pre> 2619 * 2620 * <code>string display_name = 10;</code> 2621 * 2622 * @param value The bytes for displayName to set. 2623 * @return This builder for chaining. 2624 */ setDisplayNameBytes(com.google.protobuf.ByteString value)2625 public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 2626 if (value == null) { 2627 throw new NullPointerException(); 2628 } 2629 checkByteStringIsUtf8(value); 2630 displayName_ = value; 2631 bitField0_ |= 0x00000002; 2632 onChanged(); 2633 return this; 2634 } 2635 2636 private java.lang.Object metricsSchemaUri_ = ""; 2637 /** 2638 * 2639 * 2640 * <pre> 2641 * Points to a YAML file stored on Google Cloud Storage describing the 2642 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 2643 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 2644 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 2645 * </pre> 2646 * 2647 * <code>string metrics_schema_uri = 2;</code> 2648 * 2649 * @return The metricsSchemaUri. 2650 */ getMetricsSchemaUri()2651 public java.lang.String getMetricsSchemaUri() { 2652 java.lang.Object ref = metricsSchemaUri_; 2653 if (!(ref instanceof java.lang.String)) { 2654 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2655 java.lang.String s = bs.toStringUtf8(); 2656 metricsSchemaUri_ = s; 2657 return s; 2658 } else { 2659 return (java.lang.String) ref; 2660 } 2661 } 2662 /** 2663 * 2664 * 2665 * <pre> 2666 * Points to a YAML file stored on Google Cloud Storage describing the 2667 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 2668 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 2669 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 2670 * </pre> 2671 * 2672 * <code>string metrics_schema_uri = 2;</code> 2673 * 2674 * @return The bytes for metricsSchemaUri. 2675 */ getMetricsSchemaUriBytes()2676 public com.google.protobuf.ByteString getMetricsSchemaUriBytes() { 2677 java.lang.Object ref = metricsSchemaUri_; 2678 if (ref instanceof String) { 2679 com.google.protobuf.ByteString b = 2680 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2681 metricsSchemaUri_ = b; 2682 return b; 2683 } else { 2684 return (com.google.protobuf.ByteString) ref; 2685 } 2686 } 2687 /** 2688 * 2689 * 2690 * <pre> 2691 * Points to a YAML file stored on Google Cloud Storage describing the 2692 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 2693 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 2694 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 2695 * </pre> 2696 * 2697 * <code>string metrics_schema_uri = 2;</code> 2698 * 2699 * @param value The metricsSchemaUri to set. 2700 * @return This builder for chaining. 2701 */ setMetricsSchemaUri(java.lang.String value)2702 public Builder setMetricsSchemaUri(java.lang.String value) { 2703 if (value == null) { 2704 throw new NullPointerException(); 2705 } 2706 metricsSchemaUri_ = value; 2707 bitField0_ |= 0x00000004; 2708 onChanged(); 2709 return this; 2710 } 2711 /** 2712 * 2713 * 2714 * <pre> 2715 * Points to a YAML file stored on Google Cloud Storage describing the 2716 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 2717 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 2718 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 2719 * </pre> 2720 * 2721 * <code>string metrics_schema_uri = 2;</code> 2722 * 2723 * @return This builder for chaining. 2724 */ clearMetricsSchemaUri()2725 public Builder clearMetricsSchemaUri() { 2726 metricsSchemaUri_ = getDefaultInstance().getMetricsSchemaUri(); 2727 bitField0_ = (bitField0_ & ~0x00000004); 2728 onChanged(); 2729 return this; 2730 } 2731 /** 2732 * 2733 * 2734 * <pre> 2735 * Points to a YAML file stored on Google Cloud Storage describing the 2736 * [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this 2737 * ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema 2738 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 2739 * </pre> 2740 * 2741 * <code>string metrics_schema_uri = 2;</code> 2742 * 2743 * @param value The bytes for metricsSchemaUri to set. 2744 * @return This builder for chaining. 2745 */ setMetricsSchemaUriBytes(com.google.protobuf.ByteString value)2746 public Builder setMetricsSchemaUriBytes(com.google.protobuf.ByteString value) { 2747 if (value == null) { 2748 throw new NullPointerException(); 2749 } 2750 checkByteStringIsUtf8(value); 2751 metricsSchemaUri_ = value; 2752 bitField0_ |= 0x00000004; 2753 onChanged(); 2754 return this; 2755 } 2756 2757 private com.google.protobuf.Value metrics_; 2758 private com.google.protobuf.SingleFieldBuilderV3< 2759 com.google.protobuf.Value, 2760 com.google.protobuf.Value.Builder, 2761 com.google.protobuf.ValueOrBuilder> 2762 metricsBuilder_; 2763 /** 2764 * 2765 * 2766 * <pre> 2767 * Evaluation metrics of the Model. The schema of the metrics is stored in 2768 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2769 * </pre> 2770 * 2771 * <code>.google.protobuf.Value metrics = 3;</code> 2772 * 2773 * @return Whether the metrics field is set. 2774 */ hasMetrics()2775 public boolean hasMetrics() { 2776 return ((bitField0_ & 0x00000008) != 0); 2777 } 2778 /** 2779 * 2780 * 2781 * <pre> 2782 * Evaluation metrics of the Model. The schema of the metrics is stored in 2783 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2784 * </pre> 2785 * 2786 * <code>.google.protobuf.Value metrics = 3;</code> 2787 * 2788 * @return The metrics. 2789 */ getMetrics()2790 public com.google.protobuf.Value getMetrics() { 2791 if (metricsBuilder_ == null) { 2792 return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; 2793 } else { 2794 return metricsBuilder_.getMessage(); 2795 } 2796 } 2797 /** 2798 * 2799 * 2800 * <pre> 2801 * Evaluation metrics of the Model. The schema of the metrics is stored in 2802 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2803 * </pre> 2804 * 2805 * <code>.google.protobuf.Value metrics = 3;</code> 2806 */ setMetrics(com.google.protobuf.Value value)2807 public Builder setMetrics(com.google.protobuf.Value value) { 2808 if (metricsBuilder_ == null) { 2809 if (value == null) { 2810 throw new NullPointerException(); 2811 } 2812 metrics_ = value; 2813 } else { 2814 metricsBuilder_.setMessage(value); 2815 } 2816 bitField0_ |= 0x00000008; 2817 onChanged(); 2818 return this; 2819 } 2820 /** 2821 * 2822 * 2823 * <pre> 2824 * Evaluation metrics of the Model. The schema of the metrics is stored in 2825 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2826 * </pre> 2827 * 2828 * <code>.google.protobuf.Value metrics = 3;</code> 2829 */ setMetrics(com.google.protobuf.Value.Builder builderForValue)2830 public Builder setMetrics(com.google.protobuf.Value.Builder builderForValue) { 2831 if (metricsBuilder_ == null) { 2832 metrics_ = builderForValue.build(); 2833 } else { 2834 metricsBuilder_.setMessage(builderForValue.build()); 2835 } 2836 bitField0_ |= 0x00000008; 2837 onChanged(); 2838 return this; 2839 } 2840 /** 2841 * 2842 * 2843 * <pre> 2844 * Evaluation metrics of the Model. The schema of the metrics is stored in 2845 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2846 * </pre> 2847 * 2848 * <code>.google.protobuf.Value metrics = 3;</code> 2849 */ mergeMetrics(com.google.protobuf.Value value)2850 public Builder mergeMetrics(com.google.protobuf.Value value) { 2851 if (metricsBuilder_ == null) { 2852 if (((bitField0_ & 0x00000008) != 0) 2853 && metrics_ != null 2854 && metrics_ != com.google.protobuf.Value.getDefaultInstance()) { 2855 getMetricsBuilder().mergeFrom(value); 2856 } else { 2857 metrics_ = value; 2858 } 2859 } else { 2860 metricsBuilder_.mergeFrom(value); 2861 } 2862 bitField0_ |= 0x00000008; 2863 onChanged(); 2864 return this; 2865 } 2866 /** 2867 * 2868 * 2869 * <pre> 2870 * Evaluation metrics of the Model. The schema of the metrics is stored in 2871 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2872 * </pre> 2873 * 2874 * <code>.google.protobuf.Value metrics = 3;</code> 2875 */ clearMetrics()2876 public Builder clearMetrics() { 2877 bitField0_ = (bitField0_ & ~0x00000008); 2878 metrics_ = null; 2879 if (metricsBuilder_ != null) { 2880 metricsBuilder_.dispose(); 2881 metricsBuilder_ = null; 2882 } 2883 onChanged(); 2884 return this; 2885 } 2886 /** 2887 * 2888 * 2889 * <pre> 2890 * Evaluation metrics of the Model. The schema of the metrics is stored in 2891 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2892 * </pre> 2893 * 2894 * <code>.google.protobuf.Value metrics = 3;</code> 2895 */ getMetricsBuilder()2896 public com.google.protobuf.Value.Builder getMetricsBuilder() { 2897 bitField0_ |= 0x00000008; 2898 onChanged(); 2899 return getMetricsFieldBuilder().getBuilder(); 2900 } 2901 /** 2902 * 2903 * 2904 * <pre> 2905 * Evaluation metrics of the Model. The schema of the metrics is stored in 2906 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2907 * </pre> 2908 * 2909 * <code>.google.protobuf.Value metrics = 3;</code> 2910 */ getMetricsOrBuilder()2911 public com.google.protobuf.ValueOrBuilder getMetricsOrBuilder() { 2912 if (metricsBuilder_ != null) { 2913 return metricsBuilder_.getMessageOrBuilder(); 2914 } else { 2915 return metrics_ == null ? com.google.protobuf.Value.getDefaultInstance() : metrics_; 2916 } 2917 } 2918 /** 2919 * 2920 * 2921 * <pre> 2922 * Evaluation metrics of the Model. The schema of the metrics is stored in 2923 * [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] 2924 * </pre> 2925 * 2926 * <code>.google.protobuf.Value metrics = 3;</code> 2927 */ 2928 private com.google.protobuf.SingleFieldBuilderV3< 2929 com.google.protobuf.Value, 2930 com.google.protobuf.Value.Builder, 2931 com.google.protobuf.ValueOrBuilder> getMetricsFieldBuilder()2932 getMetricsFieldBuilder() { 2933 if (metricsBuilder_ == null) { 2934 metricsBuilder_ = 2935 new com.google.protobuf.SingleFieldBuilderV3< 2936 com.google.protobuf.Value, 2937 com.google.protobuf.Value.Builder, 2938 com.google.protobuf.ValueOrBuilder>( 2939 getMetrics(), getParentForChildren(), isClean()); 2940 metrics_ = null; 2941 } 2942 return metricsBuilder_; 2943 } 2944 2945 private com.google.protobuf.Timestamp createTime_; 2946 private com.google.protobuf.SingleFieldBuilderV3< 2947 com.google.protobuf.Timestamp, 2948 com.google.protobuf.Timestamp.Builder, 2949 com.google.protobuf.TimestampOrBuilder> 2950 createTimeBuilder_; 2951 /** 2952 * 2953 * 2954 * <pre> 2955 * Output only. Timestamp when this ModelEvaluation was created. 2956 * </pre> 2957 * 2958 * <code> 2959 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2960 * </code> 2961 * 2962 * @return Whether the createTime field is set. 2963 */ hasCreateTime()2964 public boolean hasCreateTime() { 2965 return ((bitField0_ & 0x00000010) != 0); 2966 } 2967 /** 2968 * 2969 * 2970 * <pre> 2971 * Output only. Timestamp when this ModelEvaluation was created. 2972 * </pre> 2973 * 2974 * <code> 2975 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2976 * </code> 2977 * 2978 * @return The createTime. 2979 */ getCreateTime()2980 public com.google.protobuf.Timestamp getCreateTime() { 2981 if (createTimeBuilder_ == null) { 2982 return createTime_ == null 2983 ? com.google.protobuf.Timestamp.getDefaultInstance() 2984 : createTime_; 2985 } else { 2986 return createTimeBuilder_.getMessage(); 2987 } 2988 } 2989 /** 2990 * 2991 * 2992 * <pre> 2993 * Output only. Timestamp when this ModelEvaluation was created. 2994 * </pre> 2995 * 2996 * <code> 2997 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2998 * </code> 2999 */ setCreateTime(com.google.protobuf.Timestamp value)3000 public Builder setCreateTime(com.google.protobuf.Timestamp value) { 3001 if (createTimeBuilder_ == null) { 3002 if (value == null) { 3003 throw new NullPointerException(); 3004 } 3005 createTime_ = value; 3006 } else { 3007 createTimeBuilder_.setMessage(value); 3008 } 3009 bitField0_ |= 0x00000010; 3010 onChanged(); 3011 return this; 3012 } 3013 /** 3014 * 3015 * 3016 * <pre> 3017 * Output only. Timestamp when this ModelEvaluation was created. 3018 * </pre> 3019 * 3020 * <code> 3021 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3022 * </code> 3023 */ setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3024 public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { 3025 if (createTimeBuilder_ == null) { 3026 createTime_ = builderForValue.build(); 3027 } else { 3028 createTimeBuilder_.setMessage(builderForValue.build()); 3029 } 3030 bitField0_ |= 0x00000010; 3031 onChanged(); 3032 return this; 3033 } 3034 /** 3035 * 3036 * 3037 * <pre> 3038 * Output only. Timestamp when this ModelEvaluation was created. 3039 * </pre> 3040 * 3041 * <code> 3042 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3043 * </code> 3044 */ mergeCreateTime(com.google.protobuf.Timestamp value)3045 public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { 3046 if (createTimeBuilder_ == null) { 3047 if (((bitField0_ & 0x00000010) != 0) 3048 && createTime_ != null 3049 && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3050 getCreateTimeBuilder().mergeFrom(value); 3051 } else { 3052 createTime_ = value; 3053 } 3054 } else { 3055 createTimeBuilder_.mergeFrom(value); 3056 } 3057 bitField0_ |= 0x00000010; 3058 onChanged(); 3059 return this; 3060 } 3061 /** 3062 * 3063 * 3064 * <pre> 3065 * Output only. Timestamp when this ModelEvaluation was created. 3066 * </pre> 3067 * 3068 * <code> 3069 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3070 * </code> 3071 */ clearCreateTime()3072 public Builder clearCreateTime() { 3073 bitField0_ = (bitField0_ & ~0x00000010); 3074 createTime_ = null; 3075 if (createTimeBuilder_ != null) { 3076 createTimeBuilder_.dispose(); 3077 createTimeBuilder_ = null; 3078 } 3079 onChanged(); 3080 return this; 3081 } 3082 /** 3083 * 3084 * 3085 * <pre> 3086 * Output only. Timestamp when this ModelEvaluation was created. 3087 * </pre> 3088 * 3089 * <code> 3090 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3091 * </code> 3092 */ getCreateTimeBuilder()3093 public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { 3094 bitField0_ |= 0x00000010; 3095 onChanged(); 3096 return getCreateTimeFieldBuilder().getBuilder(); 3097 } 3098 /** 3099 * 3100 * 3101 * <pre> 3102 * Output only. Timestamp when this ModelEvaluation was created. 3103 * </pre> 3104 * 3105 * <code> 3106 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3107 * </code> 3108 */ getCreateTimeOrBuilder()3109 public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 3110 if (createTimeBuilder_ != null) { 3111 return createTimeBuilder_.getMessageOrBuilder(); 3112 } else { 3113 return createTime_ == null 3114 ? com.google.protobuf.Timestamp.getDefaultInstance() 3115 : createTime_; 3116 } 3117 } 3118 /** 3119 * 3120 * 3121 * <pre> 3122 * Output only. Timestamp when this ModelEvaluation was created. 3123 * </pre> 3124 * 3125 * <code> 3126 * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3127 * </code> 3128 */ 3129 private com.google.protobuf.SingleFieldBuilderV3< 3130 com.google.protobuf.Timestamp, 3131 com.google.protobuf.Timestamp.Builder, 3132 com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder()3133 getCreateTimeFieldBuilder() { 3134 if (createTimeBuilder_ == null) { 3135 createTimeBuilder_ = 3136 new com.google.protobuf.SingleFieldBuilderV3< 3137 com.google.protobuf.Timestamp, 3138 com.google.protobuf.Timestamp.Builder, 3139 com.google.protobuf.TimestampOrBuilder>( 3140 getCreateTime(), getParentForChildren(), isClean()); 3141 createTime_ = null; 3142 } 3143 return createTimeBuilder_; 3144 } 3145 3146 private com.google.protobuf.LazyStringList sliceDimensions_ = 3147 com.google.protobuf.LazyStringArrayList.EMPTY; 3148 ensureSliceDimensionsIsMutable()3149 private void ensureSliceDimensionsIsMutable() { 3150 if (!((bitField0_ & 0x00000020) != 0)) { 3151 sliceDimensions_ = new com.google.protobuf.LazyStringArrayList(sliceDimensions_); 3152 bitField0_ |= 0x00000020; 3153 } 3154 } 3155 /** 3156 * 3157 * 3158 * <pre> 3159 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3160 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3161 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3162 * request, in the form of `slice.dimension = <dimension>`. 3163 * </pre> 3164 * 3165 * <code>repeated string slice_dimensions = 5;</code> 3166 * 3167 * @return A list containing the sliceDimensions. 3168 */ getSliceDimensionsList()3169 public com.google.protobuf.ProtocolStringList getSliceDimensionsList() { 3170 return sliceDimensions_.getUnmodifiableView(); 3171 } 3172 /** 3173 * 3174 * 3175 * <pre> 3176 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3177 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3178 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3179 * request, in the form of `slice.dimension = <dimension>`. 3180 * </pre> 3181 * 3182 * <code>repeated string slice_dimensions = 5;</code> 3183 * 3184 * @return The count of sliceDimensions. 3185 */ getSliceDimensionsCount()3186 public int getSliceDimensionsCount() { 3187 return sliceDimensions_.size(); 3188 } 3189 /** 3190 * 3191 * 3192 * <pre> 3193 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3194 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3195 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3196 * request, in the form of `slice.dimension = <dimension>`. 3197 * </pre> 3198 * 3199 * <code>repeated string slice_dimensions = 5;</code> 3200 * 3201 * @param index The index of the element to return. 3202 * @return The sliceDimensions at the given index. 3203 */ getSliceDimensions(int index)3204 public java.lang.String getSliceDimensions(int index) { 3205 return sliceDimensions_.get(index); 3206 } 3207 /** 3208 * 3209 * 3210 * <pre> 3211 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3212 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3213 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3214 * request, in the form of `slice.dimension = <dimension>`. 3215 * </pre> 3216 * 3217 * <code>repeated string slice_dimensions = 5;</code> 3218 * 3219 * @param index The index of the value to return. 3220 * @return The bytes of the sliceDimensions at the given index. 3221 */ getSliceDimensionsBytes(int index)3222 public com.google.protobuf.ByteString getSliceDimensionsBytes(int index) { 3223 return sliceDimensions_.getByteString(index); 3224 } 3225 /** 3226 * 3227 * 3228 * <pre> 3229 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3230 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3231 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3232 * request, in the form of `slice.dimension = <dimension>`. 3233 * </pre> 3234 * 3235 * <code>repeated string slice_dimensions = 5;</code> 3236 * 3237 * @param index The index to set the value at. 3238 * @param value The sliceDimensions to set. 3239 * @return This builder for chaining. 3240 */ setSliceDimensions(int index, java.lang.String value)3241 public Builder setSliceDimensions(int index, java.lang.String value) { 3242 if (value == null) { 3243 throw new NullPointerException(); 3244 } 3245 ensureSliceDimensionsIsMutable(); 3246 sliceDimensions_.set(index, value); 3247 onChanged(); 3248 return this; 3249 } 3250 /** 3251 * 3252 * 3253 * <pre> 3254 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3255 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3256 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3257 * request, in the form of `slice.dimension = <dimension>`. 3258 * </pre> 3259 * 3260 * <code>repeated string slice_dimensions = 5;</code> 3261 * 3262 * @param value The sliceDimensions to add. 3263 * @return This builder for chaining. 3264 */ addSliceDimensions(java.lang.String value)3265 public Builder addSliceDimensions(java.lang.String value) { 3266 if (value == null) { 3267 throw new NullPointerException(); 3268 } 3269 ensureSliceDimensionsIsMutable(); 3270 sliceDimensions_.add(value); 3271 onChanged(); 3272 return this; 3273 } 3274 /** 3275 * 3276 * 3277 * <pre> 3278 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3279 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3280 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3281 * request, in the form of `slice.dimension = <dimension>`. 3282 * </pre> 3283 * 3284 * <code>repeated string slice_dimensions = 5;</code> 3285 * 3286 * @param values The sliceDimensions to add. 3287 * @return This builder for chaining. 3288 */ addAllSliceDimensions(java.lang.Iterable<java.lang.String> values)3289 public Builder addAllSliceDimensions(java.lang.Iterable<java.lang.String> values) { 3290 ensureSliceDimensionsIsMutable(); 3291 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sliceDimensions_); 3292 onChanged(); 3293 return this; 3294 } 3295 /** 3296 * 3297 * 3298 * <pre> 3299 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3300 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3301 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3302 * request, in the form of `slice.dimension = <dimension>`. 3303 * </pre> 3304 * 3305 * <code>repeated string slice_dimensions = 5;</code> 3306 * 3307 * @return This builder for chaining. 3308 */ clearSliceDimensions()3309 public Builder clearSliceDimensions() { 3310 sliceDimensions_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3311 bitField0_ = (bitField0_ & ~0x00000020); 3312 onChanged(); 3313 return this; 3314 } 3315 /** 3316 * 3317 * 3318 * <pre> 3319 * All possible [dimensions][ModelEvaluationSlice.slice.dimension] of 3320 * ModelEvaluationSlices. The dimensions can be used as the filter of the 3321 * [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] 3322 * request, in the form of `slice.dimension = <dimension>`. 3323 * </pre> 3324 * 3325 * <code>repeated string slice_dimensions = 5;</code> 3326 * 3327 * @param value The bytes of the sliceDimensions to add. 3328 * @return This builder for chaining. 3329 */ addSliceDimensionsBytes(com.google.protobuf.ByteString value)3330 public Builder addSliceDimensionsBytes(com.google.protobuf.ByteString value) { 3331 if (value == null) { 3332 throw new NullPointerException(); 3333 } 3334 checkByteStringIsUtf8(value); 3335 ensureSliceDimensionsIsMutable(); 3336 sliceDimensions_.add(value); 3337 onChanged(); 3338 return this; 3339 } 3340 3341 private java.lang.Object dataItemSchemaUri_ = ""; 3342 /** 3343 * 3344 * 3345 * <pre> 3346 * Points to a YAML file stored on Google Cloud Storage describing 3347 * [EvaluatedDataItemView.data_item_payload][] and 3348 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 3349 * The schema is defined as an OpenAPI 3.0.2 [Schema 3350 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3351 * This field is not populated if there are neither EvaluatedDataItemViews nor 3352 * EvaluatedAnnotations under this ModelEvaluation. 3353 * </pre> 3354 * 3355 * <code>string data_item_schema_uri = 6;</code> 3356 * 3357 * @return The dataItemSchemaUri. 3358 */ getDataItemSchemaUri()3359 public java.lang.String getDataItemSchemaUri() { 3360 java.lang.Object ref = dataItemSchemaUri_; 3361 if (!(ref instanceof java.lang.String)) { 3362 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3363 java.lang.String s = bs.toStringUtf8(); 3364 dataItemSchemaUri_ = s; 3365 return s; 3366 } else { 3367 return (java.lang.String) ref; 3368 } 3369 } 3370 /** 3371 * 3372 * 3373 * <pre> 3374 * Points to a YAML file stored on Google Cloud Storage describing 3375 * [EvaluatedDataItemView.data_item_payload][] and 3376 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 3377 * The schema is defined as an OpenAPI 3.0.2 [Schema 3378 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3379 * This field is not populated if there are neither EvaluatedDataItemViews nor 3380 * EvaluatedAnnotations under this ModelEvaluation. 3381 * </pre> 3382 * 3383 * <code>string data_item_schema_uri = 6;</code> 3384 * 3385 * @return The bytes for dataItemSchemaUri. 3386 */ getDataItemSchemaUriBytes()3387 public com.google.protobuf.ByteString getDataItemSchemaUriBytes() { 3388 java.lang.Object ref = dataItemSchemaUri_; 3389 if (ref instanceof String) { 3390 com.google.protobuf.ByteString b = 3391 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3392 dataItemSchemaUri_ = b; 3393 return b; 3394 } else { 3395 return (com.google.protobuf.ByteString) ref; 3396 } 3397 } 3398 /** 3399 * 3400 * 3401 * <pre> 3402 * Points to a YAML file stored on Google Cloud Storage describing 3403 * [EvaluatedDataItemView.data_item_payload][] and 3404 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 3405 * The schema is defined as an OpenAPI 3.0.2 [Schema 3406 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3407 * This field is not populated if there are neither EvaluatedDataItemViews nor 3408 * EvaluatedAnnotations under this ModelEvaluation. 3409 * </pre> 3410 * 3411 * <code>string data_item_schema_uri = 6;</code> 3412 * 3413 * @param value The dataItemSchemaUri to set. 3414 * @return This builder for chaining. 3415 */ setDataItemSchemaUri(java.lang.String value)3416 public Builder setDataItemSchemaUri(java.lang.String value) { 3417 if (value == null) { 3418 throw new NullPointerException(); 3419 } 3420 dataItemSchemaUri_ = value; 3421 bitField0_ |= 0x00000040; 3422 onChanged(); 3423 return this; 3424 } 3425 /** 3426 * 3427 * 3428 * <pre> 3429 * Points to a YAML file stored on Google Cloud Storage describing 3430 * [EvaluatedDataItemView.data_item_payload][] and 3431 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 3432 * The schema is defined as an OpenAPI 3.0.2 [Schema 3433 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3434 * This field is not populated if there are neither EvaluatedDataItemViews nor 3435 * EvaluatedAnnotations under this ModelEvaluation. 3436 * </pre> 3437 * 3438 * <code>string data_item_schema_uri = 6;</code> 3439 * 3440 * @return This builder for chaining. 3441 */ clearDataItemSchemaUri()3442 public Builder clearDataItemSchemaUri() { 3443 dataItemSchemaUri_ = getDefaultInstance().getDataItemSchemaUri(); 3444 bitField0_ = (bitField0_ & ~0x00000040); 3445 onChanged(); 3446 return this; 3447 } 3448 /** 3449 * 3450 * 3451 * <pre> 3452 * Points to a YAML file stored on Google Cloud Storage describing 3453 * [EvaluatedDataItemView.data_item_payload][] and 3454 * [EvaluatedAnnotation.data_item_payload][google.cloud.aiplatform.v1.EvaluatedAnnotation.data_item_payload]. 3455 * The schema is defined as an OpenAPI 3.0.2 [Schema 3456 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3457 * This field is not populated if there are neither EvaluatedDataItemViews nor 3458 * EvaluatedAnnotations under this ModelEvaluation. 3459 * </pre> 3460 * 3461 * <code>string data_item_schema_uri = 6;</code> 3462 * 3463 * @param value The bytes for dataItemSchemaUri to set. 3464 * @return This builder for chaining. 3465 */ setDataItemSchemaUriBytes(com.google.protobuf.ByteString value)3466 public Builder setDataItemSchemaUriBytes(com.google.protobuf.ByteString value) { 3467 if (value == null) { 3468 throw new NullPointerException(); 3469 } 3470 checkByteStringIsUtf8(value); 3471 dataItemSchemaUri_ = value; 3472 bitField0_ |= 0x00000040; 3473 onChanged(); 3474 return this; 3475 } 3476 3477 private java.lang.Object annotationSchemaUri_ = ""; 3478 /** 3479 * 3480 * 3481 * <pre> 3482 * Points to a YAML file stored on Google Cloud Storage describing 3483 * [EvaluatedDataItemView.predictions][], 3484 * [EvaluatedDataItemView.ground_truths][], 3485 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 3486 * and 3487 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 3488 * The schema is defined as an OpenAPI 3.0.2 [Schema 3489 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3490 * This field is not populated if there are neither EvaluatedDataItemViews nor 3491 * EvaluatedAnnotations under this ModelEvaluation. 3492 * </pre> 3493 * 3494 * <code>string annotation_schema_uri = 7;</code> 3495 * 3496 * @return The annotationSchemaUri. 3497 */ getAnnotationSchemaUri()3498 public java.lang.String getAnnotationSchemaUri() { 3499 java.lang.Object ref = annotationSchemaUri_; 3500 if (!(ref instanceof java.lang.String)) { 3501 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3502 java.lang.String s = bs.toStringUtf8(); 3503 annotationSchemaUri_ = s; 3504 return s; 3505 } else { 3506 return (java.lang.String) ref; 3507 } 3508 } 3509 /** 3510 * 3511 * 3512 * <pre> 3513 * Points to a YAML file stored on Google Cloud Storage describing 3514 * [EvaluatedDataItemView.predictions][], 3515 * [EvaluatedDataItemView.ground_truths][], 3516 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 3517 * and 3518 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 3519 * The schema is defined as an OpenAPI 3.0.2 [Schema 3520 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3521 * This field is not populated if there are neither EvaluatedDataItemViews nor 3522 * EvaluatedAnnotations under this ModelEvaluation. 3523 * </pre> 3524 * 3525 * <code>string annotation_schema_uri = 7;</code> 3526 * 3527 * @return The bytes for annotationSchemaUri. 3528 */ getAnnotationSchemaUriBytes()3529 public com.google.protobuf.ByteString getAnnotationSchemaUriBytes() { 3530 java.lang.Object ref = annotationSchemaUri_; 3531 if (ref instanceof String) { 3532 com.google.protobuf.ByteString b = 3533 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3534 annotationSchemaUri_ = b; 3535 return b; 3536 } else { 3537 return (com.google.protobuf.ByteString) ref; 3538 } 3539 } 3540 /** 3541 * 3542 * 3543 * <pre> 3544 * Points to a YAML file stored on Google Cloud Storage describing 3545 * [EvaluatedDataItemView.predictions][], 3546 * [EvaluatedDataItemView.ground_truths][], 3547 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 3548 * and 3549 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 3550 * The schema is defined as an OpenAPI 3.0.2 [Schema 3551 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3552 * This field is not populated if there are neither EvaluatedDataItemViews nor 3553 * EvaluatedAnnotations under this ModelEvaluation. 3554 * </pre> 3555 * 3556 * <code>string annotation_schema_uri = 7;</code> 3557 * 3558 * @param value The annotationSchemaUri to set. 3559 * @return This builder for chaining. 3560 */ setAnnotationSchemaUri(java.lang.String value)3561 public Builder setAnnotationSchemaUri(java.lang.String value) { 3562 if (value == null) { 3563 throw new NullPointerException(); 3564 } 3565 annotationSchemaUri_ = value; 3566 bitField0_ |= 0x00000080; 3567 onChanged(); 3568 return this; 3569 } 3570 /** 3571 * 3572 * 3573 * <pre> 3574 * Points to a YAML file stored on Google Cloud Storage describing 3575 * [EvaluatedDataItemView.predictions][], 3576 * [EvaluatedDataItemView.ground_truths][], 3577 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 3578 * and 3579 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 3580 * The schema is defined as an OpenAPI 3.0.2 [Schema 3581 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3582 * This field is not populated if there are neither EvaluatedDataItemViews nor 3583 * EvaluatedAnnotations under this ModelEvaluation. 3584 * </pre> 3585 * 3586 * <code>string annotation_schema_uri = 7;</code> 3587 * 3588 * @return This builder for chaining. 3589 */ clearAnnotationSchemaUri()3590 public Builder clearAnnotationSchemaUri() { 3591 annotationSchemaUri_ = getDefaultInstance().getAnnotationSchemaUri(); 3592 bitField0_ = (bitField0_ & ~0x00000080); 3593 onChanged(); 3594 return this; 3595 } 3596 /** 3597 * 3598 * 3599 * <pre> 3600 * Points to a YAML file stored on Google Cloud Storage describing 3601 * [EvaluatedDataItemView.predictions][], 3602 * [EvaluatedDataItemView.ground_truths][], 3603 * [EvaluatedAnnotation.predictions][google.cloud.aiplatform.v1.EvaluatedAnnotation.predictions], 3604 * and 3605 * [EvaluatedAnnotation.ground_truths][google.cloud.aiplatform.v1.EvaluatedAnnotation.ground_truths]. 3606 * The schema is defined as an OpenAPI 3.0.2 [Schema 3607 * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). 3608 * This field is not populated if there are neither EvaluatedDataItemViews nor 3609 * EvaluatedAnnotations under this ModelEvaluation. 3610 * </pre> 3611 * 3612 * <code>string annotation_schema_uri = 7;</code> 3613 * 3614 * @param value The bytes for annotationSchemaUri to set. 3615 * @return This builder for chaining. 3616 */ setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value)3617 public Builder setAnnotationSchemaUriBytes(com.google.protobuf.ByteString value) { 3618 if (value == null) { 3619 throw new NullPointerException(); 3620 } 3621 checkByteStringIsUtf8(value); 3622 annotationSchemaUri_ = value; 3623 bitField0_ |= 0x00000080; 3624 onChanged(); 3625 return this; 3626 } 3627 3628 private com.google.cloud.aiplatform.v1.ModelExplanation modelExplanation_; 3629 private com.google.protobuf.SingleFieldBuilderV3< 3630 com.google.cloud.aiplatform.v1.ModelExplanation, 3631 com.google.cloud.aiplatform.v1.ModelExplanation.Builder, 3632 com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder> 3633 modelExplanationBuilder_; 3634 /** 3635 * 3636 * 3637 * <pre> 3638 * Aggregated explanation metrics for the Model's prediction output over the 3639 * data this ModelEvaluation uses. This field is populated only if the Model 3640 * is evaluated with explanations, and only for AutoML tabular Models. 3641 * </pre> 3642 * 3643 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3644 * 3645 * @return Whether the modelExplanation field is set. 3646 */ hasModelExplanation()3647 public boolean hasModelExplanation() { 3648 return ((bitField0_ & 0x00000100) != 0); 3649 } 3650 /** 3651 * 3652 * 3653 * <pre> 3654 * Aggregated explanation metrics for the Model's prediction output over the 3655 * data this ModelEvaluation uses. This field is populated only if the Model 3656 * is evaluated with explanations, and only for AutoML tabular Models. 3657 * </pre> 3658 * 3659 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3660 * 3661 * @return The modelExplanation. 3662 */ getModelExplanation()3663 public com.google.cloud.aiplatform.v1.ModelExplanation getModelExplanation() { 3664 if (modelExplanationBuilder_ == null) { 3665 return modelExplanation_ == null 3666 ? com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance() 3667 : modelExplanation_; 3668 } else { 3669 return modelExplanationBuilder_.getMessage(); 3670 } 3671 } 3672 /** 3673 * 3674 * 3675 * <pre> 3676 * Aggregated explanation metrics for the Model's prediction output over the 3677 * data this ModelEvaluation uses. This field is populated only if the Model 3678 * is evaluated with explanations, and only for AutoML tabular Models. 3679 * </pre> 3680 * 3681 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3682 */ setModelExplanation(com.google.cloud.aiplatform.v1.ModelExplanation value)3683 public Builder setModelExplanation(com.google.cloud.aiplatform.v1.ModelExplanation value) { 3684 if (modelExplanationBuilder_ == null) { 3685 if (value == null) { 3686 throw new NullPointerException(); 3687 } 3688 modelExplanation_ = value; 3689 } else { 3690 modelExplanationBuilder_.setMessage(value); 3691 } 3692 bitField0_ |= 0x00000100; 3693 onChanged(); 3694 return this; 3695 } 3696 /** 3697 * 3698 * 3699 * <pre> 3700 * Aggregated explanation metrics for the Model's prediction output over the 3701 * data this ModelEvaluation uses. This field is populated only if the Model 3702 * is evaluated with explanations, and only for AutoML tabular Models. 3703 * </pre> 3704 * 3705 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3706 */ setModelExplanation( com.google.cloud.aiplatform.v1.ModelExplanation.Builder builderForValue)3707 public Builder setModelExplanation( 3708 com.google.cloud.aiplatform.v1.ModelExplanation.Builder builderForValue) { 3709 if (modelExplanationBuilder_ == null) { 3710 modelExplanation_ = builderForValue.build(); 3711 } else { 3712 modelExplanationBuilder_.setMessage(builderForValue.build()); 3713 } 3714 bitField0_ |= 0x00000100; 3715 onChanged(); 3716 return this; 3717 } 3718 /** 3719 * 3720 * 3721 * <pre> 3722 * Aggregated explanation metrics for the Model's prediction output over the 3723 * data this ModelEvaluation uses. This field is populated only if the Model 3724 * is evaluated with explanations, and only for AutoML tabular Models. 3725 * </pre> 3726 * 3727 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3728 */ mergeModelExplanation(com.google.cloud.aiplatform.v1.ModelExplanation value)3729 public Builder mergeModelExplanation(com.google.cloud.aiplatform.v1.ModelExplanation value) { 3730 if (modelExplanationBuilder_ == null) { 3731 if (((bitField0_ & 0x00000100) != 0) 3732 && modelExplanation_ != null 3733 && modelExplanation_ 3734 != com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance()) { 3735 getModelExplanationBuilder().mergeFrom(value); 3736 } else { 3737 modelExplanation_ = value; 3738 } 3739 } else { 3740 modelExplanationBuilder_.mergeFrom(value); 3741 } 3742 bitField0_ |= 0x00000100; 3743 onChanged(); 3744 return this; 3745 } 3746 /** 3747 * 3748 * 3749 * <pre> 3750 * Aggregated explanation metrics for the Model's prediction output over the 3751 * data this ModelEvaluation uses. This field is populated only if the Model 3752 * is evaluated with explanations, and only for AutoML tabular Models. 3753 * </pre> 3754 * 3755 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3756 */ clearModelExplanation()3757 public Builder clearModelExplanation() { 3758 bitField0_ = (bitField0_ & ~0x00000100); 3759 modelExplanation_ = null; 3760 if (modelExplanationBuilder_ != null) { 3761 modelExplanationBuilder_.dispose(); 3762 modelExplanationBuilder_ = null; 3763 } 3764 onChanged(); 3765 return this; 3766 } 3767 /** 3768 * 3769 * 3770 * <pre> 3771 * Aggregated explanation metrics for the Model's prediction output over the 3772 * data this ModelEvaluation uses. This field is populated only if the Model 3773 * is evaluated with explanations, and only for AutoML tabular Models. 3774 * </pre> 3775 * 3776 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3777 */ getModelExplanationBuilder()3778 public com.google.cloud.aiplatform.v1.ModelExplanation.Builder getModelExplanationBuilder() { 3779 bitField0_ |= 0x00000100; 3780 onChanged(); 3781 return getModelExplanationFieldBuilder().getBuilder(); 3782 } 3783 /** 3784 * 3785 * 3786 * <pre> 3787 * Aggregated explanation metrics for the Model's prediction output over the 3788 * data this ModelEvaluation uses. This field is populated only if the Model 3789 * is evaluated with explanations, and only for AutoML tabular Models. 3790 * </pre> 3791 * 3792 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3793 */ getModelExplanationOrBuilder()3794 public com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder getModelExplanationOrBuilder() { 3795 if (modelExplanationBuilder_ != null) { 3796 return modelExplanationBuilder_.getMessageOrBuilder(); 3797 } else { 3798 return modelExplanation_ == null 3799 ? com.google.cloud.aiplatform.v1.ModelExplanation.getDefaultInstance() 3800 : modelExplanation_; 3801 } 3802 } 3803 /** 3804 * 3805 * 3806 * <pre> 3807 * Aggregated explanation metrics for the Model's prediction output over the 3808 * data this ModelEvaluation uses. This field is populated only if the Model 3809 * is evaluated with explanations, and only for AutoML tabular Models. 3810 * </pre> 3811 * 3812 * <code>.google.cloud.aiplatform.v1.ModelExplanation model_explanation = 8;</code> 3813 */ 3814 private com.google.protobuf.SingleFieldBuilderV3< 3815 com.google.cloud.aiplatform.v1.ModelExplanation, 3816 com.google.cloud.aiplatform.v1.ModelExplanation.Builder, 3817 com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder> getModelExplanationFieldBuilder()3818 getModelExplanationFieldBuilder() { 3819 if (modelExplanationBuilder_ == null) { 3820 modelExplanationBuilder_ = 3821 new com.google.protobuf.SingleFieldBuilderV3< 3822 com.google.cloud.aiplatform.v1.ModelExplanation, 3823 com.google.cloud.aiplatform.v1.ModelExplanation.Builder, 3824 com.google.cloud.aiplatform.v1.ModelExplanationOrBuilder>( 3825 getModelExplanation(), getParentForChildren(), isClean()); 3826 modelExplanation_ = null; 3827 } 3828 return modelExplanationBuilder_; 3829 } 3830 3831 private java.util.List< 3832 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> 3833 explanationSpecs_ = java.util.Collections.emptyList(); 3834 ensureExplanationSpecsIsMutable()3835 private void ensureExplanationSpecsIsMutable() { 3836 if (!((bitField0_ & 0x00000200) != 0)) { 3837 explanationSpecs_ = 3838 new java.util.ArrayList< 3839 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec>( 3840 explanationSpecs_); 3841 bitField0_ |= 0x00000200; 3842 } 3843 } 3844 3845 private com.google.protobuf.RepeatedFieldBuilderV3< 3846 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, 3847 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder, 3848 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder> 3849 explanationSpecsBuilder_; 3850 3851 /** 3852 * 3853 * 3854 * <pre> 3855 * Describes the values of 3856 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 3857 * for explaining the predicted values on the evaluated data. 3858 * </pre> 3859 * 3860 * <code> 3861 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 3862 * </code> 3863 */ 3864 public java.util.List< 3865 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> getExplanationSpecsList()3866 getExplanationSpecsList() { 3867 if (explanationSpecsBuilder_ == null) { 3868 return java.util.Collections.unmodifiableList(explanationSpecs_); 3869 } else { 3870 return explanationSpecsBuilder_.getMessageList(); 3871 } 3872 } 3873 /** 3874 * 3875 * 3876 * <pre> 3877 * Describes the values of 3878 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 3879 * for explaining the predicted values on the evaluated data. 3880 * </pre> 3881 * 3882 * <code> 3883 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 3884 * </code> 3885 */ getExplanationSpecsCount()3886 public int getExplanationSpecsCount() { 3887 if (explanationSpecsBuilder_ == null) { 3888 return explanationSpecs_.size(); 3889 } else { 3890 return explanationSpecsBuilder_.getCount(); 3891 } 3892 } 3893 /** 3894 * 3895 * 3896 * <pre> 3897 * Describes the values of 3898 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 3899 * for explaining the predicted values on the evaluated data. 3900 * </pre> 3901 * 3902 * <code> 3903 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 3904 * </code> 3905 */ 3906 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec getExplanationSpecs(int index)3907 getExplanationSpecs(int index) { 3908 if (explanationSpecsBuilder_ == null) { 3909 return explanationSpecs_.get(index); 3910 } else { 3911 return explanationSpecsBuilder_.getMessage(index); 3912 } 3913 } 3914 /** 3915 * 3916 * 3917 * <pre> 3918 * Describes the values of 3919 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 3920 * for explaining the predicted values on the evaluated data. 3921 * </pre> 3922 * 3923 * <code> 3924 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 3925 * </code> 3926 */ setExplanationSpecs( int index, com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec value)3927 public Builder setExplanationSpecs( 3928 int index, 3929 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec value) { 3930 if (explanationSpecsBuilder_ == null) { 3931 if (value == null) { 3932 throw new NullPointerException(); 3933 } 3934 ensureExplanationSpecsIsMutable(); 3935 explanationSpecs_.set(index, value); 3936 onChanged(); 3937 } else { 3938 explanationSpecsBuilder_.setMessage(index, value); 3939 } 3940 return this; 3941 } 3942 /** 3943 * 3944 * 3945 * <pre> 3946 * Describes the values of 3947 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 3948 * for explaining the predicted values on the evaluated data. 3949 * </pre> 3950 * 3951 * <code> 3952 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 3953 * </code> 3954 */ setExplanationSpecs( int index, com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder builderForValue)3955 public Builder setExplanationSpecs( 3956 int index, 3957 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder 3958 builderForValue) { 3959 if (explanationSpecsBuilder_ == null) { 3960 ensureExplanationSpecsIsMutable(); 3961 explanationSpecs_.set(index, builderForValue.build()); 3962 onChanged(); 3963 } else { 3964 explanationSpecsBuilder_.setMessage(index, builderForValue.build()); 3965 } 3966 return this; 3967 } 3968 /** 3969 * 3970 * 3971 * <pre> 3972 * Describes the values of 3973 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 3974 * for explaining the predicted values on the evaluated data. 3975 * </pre> 3976 * 3977 * <code> 3978 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 3979 * </code> 3980 */ addExplanationSpecs( com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec value)3981 public Builder addExplanationSpecs( 3982 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec value) { 3983 if (explanationSpecsBuilder_ == null) { 3984 if (value == null) { 3985 throw new NullPointerException(); 3986 } 3987 ensureExplanationSpecsIsMutable(); 3988 explanationSpecs_.add(value); 3989 onChanged(); 3990 } else { 3991 explanationSpecsBuilder_.addMessage(value); 3992 } 3993 return this; 3994 } 3995 /** 3996 * 3997 * 3998 * <pre> 3999 * Describes the values of 4000 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4001 * for explaining the predicted values on the evaluated data. 4002 * </pre> 4003 * 4004 * <code> 4005 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4006 * </code> 4007 */ addExplanationSpecs( int index, com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec value)4008 public Builder addExplanationSpecs( 4009 int index, 4010 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec value) { 4011 if (explanationSpecsBuilder_ == null) { 4012 if (value == null) { 4013 throw new NullPointerException(); 4014 } 4015 ensureExplanationSpecsIsMutable(); 4016 explanationSpecs_.add(index, value); 4017 onChanged(); 4018 } else { 4019 explanationSpecsBuilder_.addMessage(index, value); 4020 } 4021 return this; 4022 } 4023 /** 4024 * 4025 * 4026 * <pre> 4027 * Describes the values of 4028 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4029 * for explaining the predicted values on the evaluated data. 4030 * </pre> 4031 * 4032 * <code> 4033 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4034 * </code> 4035 */ addExplanationSpecs( com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder builderForValue)4036 public Builder addExplanationSpecs( 4037 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder 4038 builderForValue) { 4039 if (explanationSpecsBuilder_ == null) { 4040 ensureExplanationSpecsIsMutable(); 4041 explanationSpecs_.add(builderForValue.build()); 4042 onChanged(); 4043 } else { 4044 explanationSpecsBuilder_.addMessage(builderForValue.build()); 4045 } 4046 return this; 4047 } 4048 /** 4049 * 4050 * 4051 * <pre> 4052 * Describes the values of 4053 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4054 * for explaining the predicted values on the evaluated data. 4055 * </pre> 4056 * 4057 * <code> 4058 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4059 * </code> 4060 */ addExplanationSpecs( int index, com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder builderForValue)4061 public Builder addExplanationSpecs( 4062 int index, 4063 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder 4064 builderForValue) { 4065 if (explanationSpecsBuilder_ == null) { 4066 ensureExplanationSpecsIsMutable(); 4067 explanationSpecs_.add(index, builderForValue.build()); 4068 onChanged(); 4069 } else { 4070 explanationSpecsBuilder_.addMessage(index, builderForValue.build()); 4071 } 4072 return this; 4073 } 4074 /** 4075 * 4076 * 4077 * <pre> 4078 * Describes the values of 4079 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4080 * for explaining the predicted values on the evaluated data. 4081 * </pre> 4082 * 4083 * <code> 4084 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4085 * </code> 4086 */ addAllExplanationSpecs( java.lang.Iterable< ? extends com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> values)4087 public Builder addAllExplanationSpecs( 4088 java.lang.Iterable< 4089 ? extends 4090 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec> 4091 values) { 4092 if (explanationSpecsBuilder_ == null) { 4093 ensureExplanationSpecsIsMutable(); 4094 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, explanationSpecs_); 4095 onChanged(); 4096 } else { 4097 explanationSpecsBuilder_.addAllMessages(values); 4098 } 4099 return this; 4100 } 4101 /** 4102 * 4103 * 4104 * <pre> 4105 * Describes the values of 4106 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4107 * for explaining the predicted values on the evaluated data. 4108 * </pre> 4109 * 4110 * <code> 4111 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4112 * </code> 4113 */ clearExplanationSpecs()4114 public Builder clearExplanationSpecs() { 4115 if (explanationSpecsBuilder_ == null) { 4116 explanationSpecs_ = java.util.Collections.emptyList(); 4117 bitField0_ = (bitField0_ & ~0x00000200); 4118 onChanged(); 4119 } else { 4120 explanationSpecsBuilder_.clear(); 4121 } 4122 return this; 4123 } 4124 /** 4125 * 4126 * 4127 * <pre> 4128 * Describes the values of 4129 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4130 * for explaining the predicted values on the evaluated data. 4131 * </pre> 4132 * 4133 * <code> 4134 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4135 * </code> 4136 */ removeExplanationSpecs(int index)4137 public Builder removeExplanationSpecs(int index) { 4138 if (explanationSpecsBuilder_ == null) { 4139 ensureExplanationSpecsIsMutable(); 4140 explanationSpecs_.remove(index); 4141 onChanged(); 4142 } else { 4143 explanationSpecsBuilder_.remove(index); 4144 } 4145 return this; 4146 } 4147 /** 4148 * 4149 * 4150 * <pre> 4151 * Describes the values of 4152 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4153 * for explaining the predicted values on the evaluated data. 4154 * </pre> 4155 * 4156 * <code> 4157 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4158 * </code> 4159 */ 4160 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder getExplanationSpecsBuilder(int index)4161 getExplanationSpecsBuilder(int index) { 4162 return getExplanationSpecsFieldBuilder().getBuilder(index); 4163 } 4164 /** 4165 * 4166 * 4167 * <pre> 4168 * Describes the values of 4169 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4170 * for explaining the predicted values on the evaluated data. 4171 * </pre> 4172 * 4173 * <code> 4174 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4175 * </code> 4176 */ 4177 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder getExplanationSpecsOrBuilder(int index)4178 getExplanationSpecsOrBuilder(int index) { 4179 if (explanationSpecsBuilder_ == null) { 4180 return explanationSpecs_.get(index); 4181 } else { 4182 return explanationSpecsBuilder_.getMessageOrBuilder(index); 4183 } 4184 } 4185 /** 4186 * 4187 * 4188 * <pre> 4189 * Describes the values of 4190 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4191 * for explaining the predicted values on the evaluated data. 4192 * </pre> 4193 * 4194 * <code> 4195 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4196 * </code> 4197 */ 4198 public java.util.List< 4199 ? extends 4200 com.google.cloud.aiplatform.v1.ModelEvaluation 4201 .ModelEvaluationExplanationSpecOrBuilder> getExplanationSpecsOrBuilderList()4202 getExplanationSpecsOrBuilderList() { 4203 if (explanationSpecsBuilder_ != null) { 4204 return explanationSpecsBuilder_.getMessageOrBuilderList(); 4205 } else { 4206 return java.util.Collections.unmodifiableList(explanationSpecs_); 4207 } 4208 } 4209 /** 4210 * 4211 * 4212 * <pre> 4213 * Describes the values of 4214 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4215 * for explaining the predicted values on the evaluated data. 4216 * </pre> 4217 * 4218 * <code> 4219 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4220 * </code> 4221 */ 4222 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder addExplanationSpecsBuilder()4223 addExplanationSpecsBuilder() { 4224 return getExplanationSpecsFieldBuilder() 4225 .addBuilder( 4226 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec 4227 .getDefaultInstance()); 4228 } 4229 /** 4230 * 4231 * 4232 * <pre> 4233 * Describes the values of 4234 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4235 * for explaining the predicted values on the evaluated data. 4236 * </pre> 4237 * 4238 * <code> 4239 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4240 * </code> 4241 */ 4242 public com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder addExplanationSpecsBuilder(int index)4243 addExplanationSpecsBuilder(int index) { 4244 return getExplanationSpecsFieldBuilder() 4245 .addBuilder( 4246 index, 4247 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec 4248 .getDefaultInstance()); 4249 } 4250 /** 4251 * 4252 * 4253 * <pre> 4254 * Describes the values of 4255 * [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used 4256 * for explaining the predicted values on the evaluated data. 4257 * </pre> 4258 * 4259 * <code> 4260 * repeated .google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec explanation_specs = 9; 4261 * </code> 4262 */ 4263 public java.util.List< 4264 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder> getExplanationSpecsBuilderList()4265 getExplanationSpecsBuilderList() { 4266 return getExplanationSpecsFieldBuilder().getBuilderList(); 4267 } 4268 4269 private com.google.protobuf.RepeatedFieldBuilderV3< 4270 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, 4271 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.Builder, 4272 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpecOrBuilder> getExplanationSpecsFieldBuilder()4273 getExplanationSpecsFieldBuilder() { 4274 if (explanationSpecsBuilder_ == null) { 4275 explanationSpecsBuilder_ = 4276 new com.google.protobuf.RepeatedFieldBuilderV3< 4277 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, 4278 com.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec 4279 .Builder, 4280 com.google.cloud.aiplatform.v1.ModelEvaluation 4281 .ModelEvaluationExplanationSpecOrBuilder>( 4282 explanationSpecs_, 4283 ((bitField0_ & 0x00000200) != 0), 4284 getParentForChildren(), 4285 isClean()); 4286 explanationSpecs_ = null; 4287 } 4288 return explanationSpecsBuilder_; 4289 } 4290 4291 private com.google.protobuf.Value metadata_; 4292 private com.google.protobuf.SingleFieldBuilderV3< 4293 com.google.protobuf.Value, 4294 com.google.protobuf.Value.Builder, 4295 com.google.protobuf.ValueOrBuilder> 4296 metadataBuilder_; 4297 /** 4298 * 4299 * 4300 * <pre> 4301 * The metadata of the ModelEvaluation. 4302 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4303 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4304 * "evaluation_dataset_path". 4305 * </pre> 4306 * 4307 * <code>.google.protobuf.Value metadata = 11;</code> 4308 * 4309 * @return Whether the metadata field is set. 4310 */ hasMetadata()4311 public boolean hasMetadata() { 4312 return ((bitField0_ & 0x00000400) != 0); 4313 } 4314 /** 4315 * 4316 * 4317 * <pre> 4318 * The metadata of the ModelEvaluation. 4319 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4320 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4321 * "evaluation_dataset_path". 4322 * </pre> 4323 * 4324 * <code>.google.protobuf.Value metadata = 11;</code> 4325 * 4326 * @return The metadata. 4327 */ getMetadata()4328 public com.google.protobuf.Value getMetadata() { 4329 if (metadataBuilder_ == null) { 4330 return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; 4331 } else { 4332 return metadataBuilder_.getMessage(); 4333 } 4334 } 4335 /** 4336 * 4337 * 4338 * <pre> 4339 * The metadata of the ModelEvaluation. 4340 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4341 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4342 * "evaluation_dataset_path". 4343 * </pre> 4344 * 4345 * <code>.google.protobuf.Value metadata = 11;</code> 4346 */ setMetadata(com.google.protobuf.Value value)4347 public Builder setMetadata(com.google.protobuf.Value value) { 4348 if (metadataBuilder_ == null) { 4349 if (value == null) { 4350 throw new NullPointerException(); 4351 } 4352 metadata_ = value; 4353 } else { 4354 metadataBuilder_.setMessage(value); 4355 } 4356 bitField0_ |= 0x00000400; 4357 onChanged(); 4358 return this; 4359 } 4360 /** 4361 * 4362 * 4363 * <pre> 4364 * The metadata of the ModelEvaluation. 4365 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4366 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4367 * "evaluation_dataset_path". 4368 * </pre> 4369 * 4370 * <code>.google.protobuf.Value metadata = 11;</code> 4371 */ setMetadata(com.google.protobuf.Value.Builder builderForValue)4372 public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { 4373 if (metadataBuilder_ == null) { 4374 metadata_ = builderForValue.build(); 4375 } else { 4376 metadataBuilder_.setMessage(builderForValue.build()); 4377 } 4378 bitField0_ |= 0x00000400; 4379 onChanged(); 4380 return this; 4381 } 4382 /** 4383 * 4384 * 4385 * <pre> 4386 * The metadata of the ModelEvaluation. 4387 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4388 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4389 * "evaluation_dataset_path". 4390 * </pre> 4391 * 4392 * <code>.google.protobuf.Value metadata = 11;</code> 4393 */ mergeMetadata(com.google.protobuf.Value value)4394 public Builder mergeMetadata(com.google.protobuf.Value value) { 4395 if (metadataBuilder_ == null) { 4396 if (((bitField0_ & 0x00000400) != 0) 4397 && metadata_ != null 4398 && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { 4399 getMetadataBuilder().mergeFrom(value); 4400 } else { 4401 metadata_ = value; 4402 } 4403 } else { 4404 metadataBuilder_.mergeFrom(value); 4405 } 4406 bitField0_ |= 0x00000400; 4407 onChanged(); 4408 return this; 4409 } 4410 /** 4411 * 4412 * 4413 * <pre> 4414 * The metadata of the ModelEvaluation. 4415 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4416 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4417 * "evaluation_dataset_path". 4418 * </pre> 4419 * 4420 * <code>.google.protobuf.Value metadata = 11;</code> 4421 */ clearMetadata()4422 public Builder clearMetadata() { 4423 bitField0_ = (bitField0_ & ~0x00000400); 4424 metadata_ = null; 4425 if (metadataBuilder_ != null) { 4426 metadataBuilder_.dispose(); 4427 metadataBuilder_ = null; 4428 } 4429 onChanged(); 4430 return this; 4431 } 4432 /** 4433 * 4434 * 4435 * <pre> 4436 * The metadata of the ModelEvaluation. 4437 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4438 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4439 * "evaluation_dataset_path". 4440 * </pre> 4441 * 4442 * <code>.google.protobuf.Value metadata = 11;</code> 4443 */ getMetadataBuilder()4444 public com.google.protobuf.Value.Builder getMetadataBuilder() { 4445 bitField0_ |= 0x00000400; 4446 onChanged(); 4447 return getMetadataFieldBuilder().getBuilder(); 4448 } 4449 /** 4450 * 4451 * 4452 * <pre> 4453 * The metadata of the ModelEvaluation. 4454 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4455 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4456 * "evaluation_dataset_path". 4457 * </pre> 4458 * 4459 * <code>.google.protobuf.Value metadata = 11;</code> 4460 */ getMetadataOrBuilder()4461 public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { 4462 if (metadataBuilder_ != null) { 4463 return metadataBuilder_.getMessageOrBuilder(); 4464 } else { 4465 return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_; 4466 } 4467 } 4468 /** 4469 * 4470 * 4471 * <pre> 4472 * The metadata of the ModelEvaluation. 4473 * For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a 4474 * structured value with keys of "pipeline_job_id", "evaluation_dataset_type", 4475 * "evaluation_dataset_path". 4476 * </pre> 4477 * 4478 * <code>.google.protobuf.Value metadata = 11;</code> 4479 */ 4480 private com.google.protobuf.SingleFieldBuilderV3< 4481 com.google.protobuf.Value, 4482 com.google.protobuf.Value.Builder, 4483 com.google.protobuf.ValueOrBuilder> getMetadataFieldBuilder()4484 getMetadataFieldBuilder() { 4485 if (metadataBuilder_ == null) { 4486 metadataBuilder_ = 4487 new com.google.protobuf.SingleFieldBuilderV3< 4488 com.google.protobuf.Value, 4489 com.google.protobuf.Value.Builder, 4490 com.google.protobuf.ValueOrBuilder>( 4491 getMetadata(), getParentForChildren(), isClean()); 4492 metadata_ = null; 4493 } 4494 return metadataBuilder_; 4495 } 4496 4497 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4498 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 4499 return super.setUnknownFields(unknownFields); 4500 } 4501 4502 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4503 public final Builder mergeUnknownFields( 4504 final com.google.protobuf.UnknownFieldSet unknownFields) { 4505 return super.mergeUnknownFields(unknownFields); 4506 } 4507 4508 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ModelEvaluation) 4509 } 4510 4511 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ModelEvaluation) 4512 private static final com.google.cloud.aiplatform.v1.ModelEvaluation DEFAULT_INSTANCE; 4513 4514 static { 4515 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ModelEvaluation(); 4516 } 4517 getDefaultInstance()4518 public static com.google.cloud.aiplatform.v1.ModelEvaluation getDefaultInstance() { 4519 return DEFAULT_INSTANCE; 4520 } 4521 4522 private static final com.google.protobuf.Parser<ModelEvaluation> PARSER = 4523 new com.google.protobuf.AbstractParser<ModelEvaluation>() { 4524 @java.lang.Override 4525 public ModelEvaluation parsePartialFrom( 4526 com.google.protobuf.CodedInputStream input, 4527 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4528 throws com.google.protobuf.InvalidProtocolBufferException { 4529 Builder builder = newBuilder(); 4530 try { 4531 builder.mergeFrom(input, extensionRegistry); 4532 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4533 throw e.setUnfinishedMessage(builder.buildPartial()); 4534 } catch (com.google.protobuf.UninitializedMessageException e) { 4535 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 4536 } catch (java.io.IOException e) { 4537 throw new com.google.protobuf.InvalidProtocolBufferException(e) 4538 .setUnfinishedMessage(builder.buildPartial()); 4539 } 4540 return builder.buildPartial(); 4541 } 4542 }; 4543 parser()4544 public static com.google.protobuf.Parser<ModelEvaluation> parser() { 4545 return PARSER; 4546 } 4547 4548 @java.lang.Override getParserForType()4549 public com.google.protobuf.Parser<ModelEvaluation> getParserForType() { 4550 return PARSER; 4551 } 4552 4553 @java.lang.Override getDefaultInstanceForType()4554 public com.google.cloud.aiplatform.v1.ModelEvaluation getDefaultInstanceForType() { 4555 return DEFAULT_INSTANCE; 4556 } 4557 } 4558