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/study.proto 18 19 package com.google.cloud.aiplatform.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * A message representing a Trial. A Trial contains a unique set of Parameters 26 * that has been or will be evaluated, along with the objective metrics got by 27 * running the Trial. 28 * </pre> 29 * 30 * Protobuf type {@code google.cloud.aiplatform.v1.Trial} 31 */ 32 public final class Trial extends com.google.protobuf.GeneratedMessageV3 33 implements 34 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Trial) 35 TrialOrBuilder { 36 private static final long serialVersionUID = 0L; 37 // Use Trial.newBuilder() to construct. Trial(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38 private Trial(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 Trial()42 private Trial() { 43 name_ = ""; 44 id_ = ""; 45 state_ = 0; 46 parameters_ = java.util.Collections.emptyList(); 47 measurements_ = java.util.Collections.emptyList(); 48 clientId_ = ""; 49 infeasibleReason_ = ""; 50 customJob_ = ""; 51 } 52 53 @java.lang.Override 54 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)55 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 56 return new Trial(); 57 } 58 59 @java.lang.Override getUnknownFields()60 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 61 return this.unknownFields; 62 } 63 getDescriptor()64 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 65 return com.google.cloud.aiplatform.v1.StudyProto 66 .internal_static_google_cloud_aiplatform_v1_Trial_descriptor; 67 } 68 69 @SuppressWarnings({"rawtypes"}) 70 @java.lang.Override internalGetMapField(int number)71 protected com.google.protobuf.MapField internalGetMapField(int number) { 72 switch (number) { 73 case 12: 74 return internalGetWebAccessUris(); 75 default: 76 throw new RuntimeException("Invalid map field number: " + number); 77 } 78 } 79 80 @java.lang.Override 81 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()82 internalGetFieldAccessorTable() { 83 return com.google.cloud.aiplatform.v1.StudyProto 84 .internal_static_google_cloud_aiplatform_v1_Trial_fieldAccessorTable 85 .ensureFieldAccessorsInitialized( 86 com.google.cloud.aiplatform.v1.Trial.class, 87 com.google.cloud.aiplatform.v1.Trial.Builder.class); 88 } 89 90 /** 91 * 92 * 93 * <pre> 94 * Describes a Trial state. 95 * </pre> 96 * 97 * Protobuf enum {@code google.cloud.aiplatform.v1.Trial.State} 98 */ 99 public enum State implements com.google.protobuf.ProtocolMessageEnum { 100 /** 101 * 102 * 103 * <pre> 104 * The Trial state is unspecified. 105 * </pre> 106 * 107 * <code>STATE_UNSPECIFIED = 0;</code> 108 */ 109 STATE_UNSPECIFIED(0), 110 /** 111 * 112 * 113 * <pre> 114 * Indicates that a specific Trial has been requested, but it has not yet 115 * been suggested by the service. 116 * </pre> 117 * 118 * <code>REQUESTED = 1;</code> 119 */ 120 REQUESTED(1), 121 /** 122 * 123 * 124 * <pre> 125 * Indicates that the Trial has been suggested. 126 * </pre> 127 * 128 * <code>ACTIVE = 2;</code> 129 */ 130 ACTIVE(2), 131 /** 132 * 133 * 134 * <pre> 135 * Indicates that the Trial should stop according to the service. 136 * </pre> 137 * 138 * <code>STOPPING = 3;</code> 139 */ 140 STOPPING(3), 141 /** 142 * 143 * 144 * <pre> 145 * Indicates that the Trial is completed successfully. 146 * </pre> 147 * 148 * <code>SUCCEEDED = 4;</code> 149 */ 150 SUCCEEDED(4), 151 /** 152 * 153 * 154 * <pre> 155 * Indicates that the Trial should not be attempted again. 156 * The service will set a Trial to INFEASIBLE when it's done but missing 157 * the final_measurement. 158 * </pre> 159 * 160 * <code>INFEASIBLE = 5;</code> 161 */ 162 INFEASIBLE(5), 163 UNRECOGNIZED(-1), 164 ; 165 166 /** 167 * 168 * 169 * <pre> 170 * The Trial state is unspecified. 171 * </pre> 172 * 173 * <code>STATE_UNSPECIFIED = 0;</code> 174 */ 175 public static final int STATE_UNSPECIFIED_VALUE = 0; 176 /** 177 * 178 * 179 * <pre> 180 * Indicates that a specific Trial has been requested, but it has not yet 181 * been suggested by the service. 182 * </pre> 183 * 184 * <code>REQUESTED = 1;</code> 185 */ 186 public static final int REQUESTED_VALUE = 1; 187 /** 188 * 189 * 190 * <pre> 191 * Indicates that the Trial has been suggested. 192 * </pre> 193 * 194 * <code>ACTIVE = 2;</code> 195 */ 196 public static final int ACTIVE_VALUE = 2; 197 /** 198 * 199 * 200 * <pre> 201 * Indicates that the Trial should stop according to the service. 202 * </pre> 203 * 204 * <code>STOPPING = 3;</code> 205 */ 206 public static final int STOPPING_VALUE = 3; 207 /** 208 * 209 * 210 * <pre> 211 * Indicates that the Trial is completed successfully. 212 * </pre> 213 * 214 * <code>SUCCEEDED = 4;</code> 215 */ 216 public static final int SUCCEEDED_VALUE = 4; 217 /** 218 * 219 * 220 * <pre> 221 * Indicates that the Trial should not be attempted again. 222 * The service will set a Trial to INFEASIBLE when it's done but missing 223 * the final_measurement. 224 * </pre> 225 * 226 * <code>INFEASIBLE = 5;</code> 227 */ 228 public static final int INFEASIBLE_VALUE = 5; 229 getNumber()230 public final int getNumber() { 231 if (this == UNRECOGNIZED) { 232 throw new java.lang.IllegalArgumentException( 233 "Can't get the number of an unknown enum value."); 234 } 235 return value; 236 } 237 238 /** 239 * @param value The numeric wire value of the corresponding enum entry. 240 * @return The enum associated with the given numeric wire value. 241 * @deprecated Use {@link #forNumber(int)} instead. 242 */ 243 @java.lang.Deprecated valueOf(int value)244 public static State valueOf(int value) { 245 return forNumber(value); 246 } 247 248 /** 249 * @param value The numeric wire value of the corresponding enum entry. 250 * @return The enum associated with the given numeric wire value. 251 */ forNumber(int value)252 public static State forNumber(int value) { 253 switch (value) { 254 case 0: 255 return STATE_UNSPECIFIED; 256 case 1: 257 return REQUESTED; 258 case 2: 259 return ACTIVE; 260 case 3: 261 return STOPPING; 262 case 4: 263 return SUCCEEDED; 264 case 5: 265 return INFEASIBLE; 266 default: 267 return null; 268 } 269 } 270 internalGetValueMap()271 public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() { 272 return internalValueMap; 273 } 274 275 private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap = 276 new com.google.protobuf.Internal.EnumLiteMap<State>() { 277 public State findValueByNumber(int number) { 278 return State.forNumber(number); 279 } 280 }; 281 getValueDescriptor()282 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 283 if (this == UNRECOGNIZED) { 284 throw new java.lang.IllegalStateException( 285 "Can't get the descriptor of an unrecognized enum value."); 286 } 287 return getDescriptor().getValues().get(ordinal()); 288 } 289 getDescriptorForType()290 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 291 return getDescriptor(); 292 } 293 getDescriptor()294 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 295 return com.google.cloud.aiplatform.v1.Trial.getDescriptor().getEnumTypes().get(0); 296 } 297 298 private static final State[] VALUES = values(); 299 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)300 public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 301 if (desc.getType() != getDescriptor()) { 302 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 303 } 304 if (desc.getIndex() == -1) { 305 return UNRECOGNIZED; 306 } 307 return VALUES[desc.getIndex()]; 308 } 309 310 private final int value; 311 State(int value)312 private State(int value) { 313 this.value = value; 314 } 315 316 // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.Trial.State) 317 } 318 319 public interface ParameterOrBuilder 320 extends 321 // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Trial.Parameter) 322 com.google.protobuf.MessageOrBuilder { 323 324 /** 325 * 326 * 327 * <pre> 328 * Output only. The ID of the parameter. The parameter should be defined in 329 * [StudySpec's 330 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 331 * </pre> 332 * 333 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 334 * 335 * @return The parameterId. 336 */ getParameterId()337 java.lang.String getParameterId(); 338 /** 339 * 340 * 341 * <pre> 342 * Output only. The ID of the parameter. The parameter should be defined in 343 * [StudySpec's 344 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 345 * </pre> 346 * 347 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 348 * 349 * @return The bytes for parameterId. 350 */ getParameterIdBytes()351 com.google.protobuf.ByteString getParameterIdBytes(); 352 353 /** 354 * 355 * 356 * <pre> 357 * Output only. The value of the parameter. 358 * `number_value` will be set if a parameter defined in StudySpec is 359 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 360 * `string_value` will be set if a parameter defined in StudySpec is 361 * in type 'CATEGORICAL'. 362 * </pre> 363 * 364 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 365 * 366 * @return Whether the value field is set. 367 */ hasValue()368 boolean hasValue(); 369 /** 370 * 371 * 372 * <pre> 373 * Output only. The value of the parameter. 374 * `number_value` will be set if a parameter defined in StudySpec is 375 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 376 * `string_value` will be set if a parameter defined in StudySpec is 377 * in type 'CATEGORICAL'. 378 * </pre> 379 * 380 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 381 * 382 * @return The value. 383 */ getValue()384 com.google.protobuf.Value getValue(); 385 /** 386 * 387 * 388 * <pre> 389 * Output only. The value of the parameter. 390 * `number_value` will be set if a parameter defined in StudySpec is 391 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 392 * `string_value` will be set if a parameter defined in StudySpec is 393 * in type 'CATEGORICAL'. 394 * </pre> 395 * 396 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 397 */ getValueOrBuilder()398 com.google.protobuf.ValueOrBuilder getValueOrBuilder(); 399 } 400 /** 401 * 402 * 403 * <pre> 404 * A message representing a parameter to be tuned. 405 * </pre> 406 * 407 * Protobuf type {@code google.cloud.aiplatform.v1.Trial.Parameter} 408 */ 409 public static final class Parameter extends com.google.protobuf.GeneratedMessageV3 410 implements 411 // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Trial.Parameter) 412 ParameterOrBuilder { 413 private static final long serialVersionUID = 0L; 414 // Use Parameter.newBuilder() to construct. Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)415 private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 416 super(builder); 417 } 418 Parameter()419 private Parameter() { 420 parameterId_ = ""; 421 } 422 423 @java.lang.Override 424 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)425 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 426 return new Parameter(); 427 } 428 429 @java.lang.Override getUnknownFields()430 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 431 return this.unknownFields; 432 } 433 getDescriptor()434 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 435 return com.google.cloud.aiplatform.v1.StudyProto 436 .internal_static_google_cloud_aiplatform_v1_Trial_Parameter_descriptor; 437 } 438 439 @java.lang.Override 440 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()441 internalGetFieldAccessorTable() { 442 return com.google.cloud.aiplatform.v1.StudyProto 443 .internal_static_google_cloud_aiplatform_v1_Trial_Parameter_fieldAccessorTable 444 .ensureFieldAccessorsInitialized( 445 com.google.cloud.aiplatform.v1.Trial.Parameter.class, 446 com.google.cloud.aiplatform.v1.Trial.Parameter.Builder.class); 447 } 448 449 public static final int PARAMETER_ID_FIELD_NUMBER = 1; 450 451 @SuppressWarnings("serial") 452 private volatile java.lang.Object parameterId_ = ""; 453 /** 454 * 455 * 456 * <pre> 457 * Output only. The ID of the parameter. The parameter should be defined in 458 * [StudySpec's 459 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 460 * </pre> 461 * 462 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 463 * 464 * @return The parameterId. 465 */ 466 @java.lang.Override getParameterId()467 public java.lang.String getParameterId() { 468 java.lang.Object ref = parameterId_; 469 if (ref instanceof java.lang.String) { 470 return (java.lang.String) ref; 471 } else { 472 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 473 java.lang.String s = bs.toStringUtf8(); 474 parameterId_ = s; 475 return s; 476 } 477 } 478 /** 479 * 480 * 481 * <pre> 482 * Output only. The ID of the parameter. The parameter should be defined in 483 * [StudySpec's 484 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 485 * </pre> 486 * 487 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 488 * 489 * @return The bytes for parameterId. 490 */ 491 @java.lang.Override getParameterIdBytes()492 public com.google.protobuf.ByteString getParameterIdBytes() { 493 java.lang.Object ref = parameterId_; 494 if (ref instanceof java.lang.String) { 495 com.google.protobuf.ByteString b = 496 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 497 parameterId_ = b; 498 return b; 499 } else { 500 return (com.google.protobuf.ByteString) ref; 501 } 502 } 503 504 public static final int VALUE_FIELD_NUMBER = 2; 505 private com.google.protobuf.Value value_; 506 /** 507 * 508 * 509 * <pre> 510 * Output only. The value of the parameter. 511 * `number_value` will be set if a parameter defined in StudySpec is 512 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 513 * `string_value` will be set if a parameter defined in StudySpec is 514 * in type 'CATEGORICAL'. 515 * </pre> 516 * 517 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 518 * 519 * @return Whether the value field is set. 520 */ 521 @java.lang.Override hasValue()522 public boolean hasValue() { 523 return value_ != null; 524 } 525 /** 526 * 527 * 528 * <pre> 529 * Output only. The value of the parameter. 530 * `number_value` will be set if a parameter defined in StudySpec is 531 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 532 * `string_value` will be set if a parameter defined in StudySpec is 533 * in type 'CATEGORICAL'. 534 * </pre> 535 * 536 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 537 * 538 * @return The value. 539 */ 540 @java.lang.Override getValue()541 public com.google.protobuf.Value getValue() { 542 return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; 543 } 544 /** 545 * 546 * 547 * <pre> 548 * Output only. The value of the parameter. 549 * `number_value` will be set if a parameter defined in StudySpec is 550 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 551 * `string_value` will be set if a parameter defined in StudySpec is 552 * in type 'CATEGORICAL'. 553 * </pre> 554 * 555 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 556 */ 557 @java.lang.Override getValueOrBuilder()558 public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { 559 return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; 560 } 561 562 private byte memoizedIsInitialized = -1; 563 564 @java.lang.Override isInitialized()565 public final boolean isInitialized() { 566 byte isInitialized = memoizedIsInitialized; 567 if (isInitialized == 1) return true; 568 if (isInitialized == 0) return false; 569 570 memoizedIsInitialized = 1; 571 return true; 572 } 573 574 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)575 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 576 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) { 577 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterId_); 578 } 579 if (value_ != null) { 580 output.writeMessage(2, getValue()); 581 } 582 getUnknownFields().writeTo(output); 583 } 584 585 @java.lang.Override getSerializedSize()586 public int getSerializedSize() { 587 int size = memoizedSize; 588 if (size != -1) return size; 589 590 size = 0; 591 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) { 592 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameterId_); 593 } 594 if (value_ != null) { 595 size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); 596 } 597 size += getUnknownFields().getSerializedSize(); 598 memoizedSize = size; 599 return size; 600 } 601 602 @java.lang.Override equals(final java.lang.Object obj)603 public boolean equals(final java.lang.Object obj) { 604 if (obj == this) { 605 return true; 606 } 607 if (!(obj instanceof com.google.cloud.aiplatform.v1.Trial.Parameter)) { 608 return super.equals(obj); 609 } 610 com.google.cloud.aiplatform.v1.Trial.Parameter other = 611 (com.google.cloud.aiplatform.v1.Trial.Parameter) obj; 612 613 if (!getParameterId().equals(other.getParameterId())) return false; 614 if (hasValue() != other.hasValue()) return false; 615 if (hasValue()) { 616 if (!getValue().equals(other.getValue())) return false; 617 } 618 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 619 return true; 620 } 621 622 @java.lang.Override hashCode()623 public int hashCode() { 624 if (memoizedHashCode != 0) { 625 return memoizedHashCode; 626 } 627 int hash = 41; 628 hash = (19 * hash) + getDescriptor().hashCode(); 629 hash = (37 * hash) + PARAMETER_ID_FIELD_NUMBER; 630 hash = (53 * hash) + getParameterId().hashCode(); 631 if (hasValue()) { 632 hash = (37 * hash) + VALUE_FIELD_NUMBER; 633 hash = (53 * hash) + getValue().hashCode(); 634 } 635 hash = (29 * hash) + getUnknownFields().hashCode(); 636 memoizedHashCode = hash; 637 return hash; 638 } 639 parseFrom(java.nio.ByteBuffer data)640 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom(java.nio.ByteBuffer data) 641 throws com.google.protobuf.InvalidProtocolBufferException { 642 return PARSER.parseFrom(data); 643 } 644 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)645 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 646 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 647 throws com.google.protobuf.InvalidProtocolBufferException { 648 return PARSER.parseFrom(data, extensionRegistry); 649 } 650 parseFrom( com.google.protobuf.ByteString data)651 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 652 com.google.protobuf.ByteString data) 653 throws com.google.protobuf.InvalidProtocolBufferException { 654 return PARSER.parseFrom(data); 655 } 656 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)657 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 658 com.google.protobuf.ByteString data, 659 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 660 throws com.google.protobuf.InvalidProtocolBufferException { 661 return PARSER.parseFrom(data, extensionRegistry); 662 } 663 parseFrom(byte[] data)664 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom(byte[] data) 665 throws com.google.protobuf.InvalidProtocolBufferException { 666 return PARSER.parseFrom(data); 667 } 668 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)669 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 670 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 671 throws com.google.protobuf.InvalidProtocolBufferException { 672 return PARSER.parseFrom(data, extensionRegistry); 673 } 674 parseFrom( java.io.InputStream input)675 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 676 java.io.InputStream input) throws java.io.IOException { 677 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 678 } 679 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)680 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 681 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 682 throws java.io.IOException { 683 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 684 PARSER, input, extensionRegistry); 685 } 686 parseDelimitedFrom( java.io.InputStream input)687 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseDelimitedFrom( 688 java.io.InputStream input) throws java.io.IOException { 689 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 690 } 691 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)692 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseDelimitedFrom( 693 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 694 throws java.io.IOException { 695 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 696 PARSER, input, extensionRegistry); 697 } 698 parseFrom( com.google.protobuf.CodedInputStream input)699 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 700 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 701 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 702 } 703 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)704 public static com.google.cloud.aiplatform.v1.Trial.Parameter parseFrom( 705 com.google.protobuf.CodedInputStream input, 706 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 707 throws java.io.IOException { 708 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 709 PARSER, input, extensionRegistry); 710 } 711 712 @java.lang.Override newBuilderForType()713 public Builder newBuilderForType() { 714 return newBuilder(); 715 } 716 newBuilder()717 public static Builder newBuilder() { 718 return DEFAULT_INSTANCE.toBuilder(); 719 } 720 newBuilder(com.google.cloud.aiplatform.v1.Trial.Parameter prototype)721 public static Builder newBuilder(com.google.cloud.aiplatform.v1.Trial.Parameter prototype) { 722 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 723 } 724 725 @java.lang.Override toBuilder()726 public Builder toBuilder() { 727 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 728 } 729 730 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)731 protected Builder newBuilderForType( 732 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 733 Builder builder = new Builder(parent); 734 return builder; 735 } 736 /** 737 * 738 * 739 * <pre> 740 * A message representing a parameter to be tuned. 741 * </pre> 742 * 743 * Protobuf type {@code google.cloud.aiplatform.v1.Trial.Parameter} 744 */ 745 public static final class Builder 746 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 747 implements 748 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Trial.Parameter) 749 com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder { getDescriptor()750 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 751 return com.google.cloud.aiplatform.v1.StudyProto 752 .internal_static_google_cloud_aiplatform_v1_Trial_Parameter_descriptor; 753 } 754 755 @java.lang.Override 756 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()757 internalGetFieldAccessorTable() { 758 return com.google.cloud.aiplatform.v1.StudyProto 759 .internal_static_google_cloud_aiplatform_v1_Trial_Parameter_fieldAccessorTable 760 .ensureFieldAccessorsInitialized( 761 com.google.cloud.aiplatform.v1.Trial.Parameter.class, 762 com.google.cloud.aiplatform.v1.Trial.Parameter.Builder.class); 763 } 764 765 // Construct using com.google.cloud.aiplatform.v1.Trial.Parameter.newBuilder() Builder()766 private Builder() {} 767 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)768 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 769 super(parent); 770 } 771 772 @java.lang.Override clear()773 public Builder clear() { 774 super.clear(); 775 bitField0_ = 0; 776 parameterId_ = ""; 777 value_ = null; 778 if (valueBuilder_ != null) { 779 valueBuilder_.dispose(); 780 valueBuilder_ = null; 781 } 782 return this; 783 } 784 785 @java.lang.Override getDescriptorForType()786 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 787 return com.google.cloud.aiplatform.v1.StudyProto 788 .internal_static_google_cloud_aiplatform_v1_Trial_Parameter_descriptor; 789 } 790 791 @java.lang.Override getDefaultInstanceForType()792 public com.google.cloud.aiplatform.v1.Trial.Parameter getDefaultInstanceForType() { 793 return com.google.cloud.aiplatform.v1.Trial.Parameter.getDefaultInstance(); 794 } 795 796 @java.lang.Override build()797 public com.google.cloud.aiplatform.v1.Trial.Parameter build() { 798 com.google.cloud.aiplatform.v1.Trial.Parameter result = buildPartial(); 799 if (!result.isInitialized()) { 800 throw newUninitializedMessageException(result); 801 } 802 return result; 803 } 804 805 @java.lang.Override buildPartial()806 public com.google.cloud.aiplatform.v1.Trial.Parameter buildPartial() { 807 com.google.cloud.aiplatform.v1.Trial.Parameter result = 808 new com.google.cloud.aiplatform.v1.Trial.Parameter(this); 809 if (bitField0_ != 0) { 810 buildPartial0(result); 811 } 812 onBuilt(); 813 return result; 814 } 815 buildPartial0(com.google.cloud.aiplatform.v1.Trial.Parameter result)816 private void buildPartial0(com.google.cloud.aiplatform.v1.Trial.Parameter result) { 817 int from_bitField0_ = bitField0_; 818 if (((from_bitField0_ & 0x00000001) != 0)) { 819 result.parameterId_ = parameterId_; 820 } 821 if (((from_bitField0_ & 0x00000002) != 0)) { 822 result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); 823 } 824 } 825 826 @java.lang.Override clone()827 public Builder clone() { 828 return super.clone(); 829 } 830 831 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)832 public Builder setField( 833 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 834 return super.setField(field, value); 835 } 836 837 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)838 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 839 return super.clearField(field); 840 } 841 842 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)843 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 844 return super.clearOneof(oneof); 845 } 846 847 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)848 public Builder setRepeatedField( 849 com.google.protobuf.Descriptors.FieldDescriptor field, 850 int index, 851 java.lang.Object value) { 852 return super.setRepeatedField(field, index, value); 853 } 854 855 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)856 public Builder addRepeatedField( 857 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 858 return super.addRepeatedField(field, value); 859 } 860 861 @java.lang.Override mergeFrom(com.google.protobuf.Message other)862 public Builder mergeFrom(com.google.protobuf.Message other) { 863 if (other instanceof com.google.cloud.aiplatform.v1.Trial.Parameter) { 864 return mergeFrom((com.google.cloud.aiplatform.v1.Trial.Parameter) other); 865 } else { 866 super.mergeFrom(other); 867 return this; 868 } 869 } 870 mergeFrom(com.google.cloud.aiplatform.v1.Trial.Parameter other)871 public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial.Parameter other) { 872 if (other == com.google.cloud.aiplatform.v1.Trial.Parameter.getDefaultInstance()) 873 return this; 874 if (!other.getParameterId().isEmpty()) { 875 parameterId_ = other.parameterId_; 876 bitField0_ |= 0x00000001; 877 onChanged(); 878 } 879 if (other.hasValue()) { 880 mergeValue(other.getValue()); 881 } 882 this.mergeUnknownFields(other.getUnknownFields()); 883 onChanged(); 884 return this; 885 } 886 887 @java.lang.Override isInitialized()888 public final boolean isInitialized() { 889 return true; 890 } 891 892 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)893 public Builder mergeFrom( 894 com.google.protobuf.CodedInputStream input, 895 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 896 throws java.io.IOException { 897 if (extensionRegistry == null) { 898 throw new java.lang.NullPointerException(); 899 } 900 try { 901 boolean done = false; 902 while (!done) { 903 int tag = input.readTag(); 904 switch (tag) { 905 case 0: 906 done = true; 907 break; 908 case 10: 909 { 910 parameterId_ = input.readStringRequireUtf8(); 911 bitField0_ |= 0x00000001; 912 break; 913 } // case 10 914 case 18: 915 { 916 input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); 917 bitField0_ |= 0x00000002; 918 break; 919 } // case 18 920 default: 921 { 922 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 923 done = true; // was an endgroup tag 924 } 925 break; 926 } // default: 927 } // switch (tag) 928 } // while (!done) 929 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 930 throw e.unwrapIOException(); 931 } finally { 932 onChanged(); 933 } // finally 934 return this; 935 } 936 937 private int bitField0_; 938 939 private java.lang.Object parameterId_ = ""; 940 /** 941 * 942 * 943 * <pre> 944 * Output only. The ID of the parameter. The parameter should be defined in 945 * [StudySpec's 946 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 947 * </pre> 948 * 949 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 950 * 951 * @return The parameterId. 952 */ getParameterId()953 public java.lang.String getParameterId() { 954 java.lang.Object ref = parameterId_; 955 if (!(ref instanceof java.lang.String)) { 956 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 957 java.lang.String s = bs.toStringUtf8(); 958 parameterId_ = s; 959 return s; 960 } else { 961 return (java.lang.String) ref; 962 } 963 } 964 /** 965 * 966 * 967 * <pre> 968 * Output only. The ID of the parameter. The parameter should be defined in 969 * [StudySpec's 970 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 971 * </pre> 972 * 973 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 974 * 975 * @return The bytes for parameterId. 976 */ getParameterIdBytes()977 public com.google.protobuf.ByteString getParameterIdBytes() { 978 java.lang.Object ref = parameterId_; 979 if (ref instanceof String) { 980 com.google.protobuf.ByteString b = 981 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 982 parameterId_ = b; 983 return b; 984 } else { 985 return (com.google.protobuf.ByteString) ref; 986 } 987 } 988 /** 989 * 990 * 991 * <pre> 992 * Output only. The ID of the parameter. The parameter should be defined in 993 * [StudySpec's 994 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 995 * </pre> 996 * 997 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 998 * 999 * @param value The parameterId to set. 1000 * @return This builder for chaining. 1001 */ setParameterId(java.lang.String value)1002 public Builder setParameterId(java.lang.String value) { 1003 if (value == null) { 1004 throw new NullPointerException(); 1005 } 1006 parameterId_ = value; 1007 bitField0_ |= 0x00000001; 1008 onChanged(); 1009 return this; 1010 } 1011 /** 1012 * 1013 * 1014 * <pre> 1015 * Output only. The ID of the parameter. The parameter should be defined in 1016 * [StudySpec's 1017 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 1018 * </pre> 1019 * 1020 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1021 * 1022 * @return This builder for chaining. 1023 */ clearParameterId()1024 public Builder clearParameterId() { 1025 parameterId_ = getDefaultInstance().getParameterId(); 1026 bitField0_ = (bitField0_ & ~0x00000001); 1027 onChanged(); 1028 return this; 1029 } 1030 /** 1031 * 1032 * 1033 * <pre> 1034 * Output only. The ID of the parameter. The parameter should be defined in 1035 * [StudySpec's 1036 * Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. 1037 * </pre> 1038 * 1039 * <code>string parameter_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1040 * 1041 * @param value The bytes for parameterId to set. 1042 * @return This builder for chaining. 1043 */ setParameterIdBytes(com.google.protobuf.ByteString value)1044 public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { 1045 if (value == null) { 1046 throw new NullPointerException(); 1047 } 1048 checkByteStringIsUtf8(value); 1049 parameterId_ = value; 1050 bitField0_ |= 0x00000001; 1051 onChanged(); 1052 return this; 1053 } 1054 1055 private com.google.protobuf.Value value_; 1056 private com.google.protobuf.SingleFieldBuilderV3< 1057 com.google.protobuf.Value, 1058 com.google.protobuf.Value.Builder, 1059 com.google.protobuf.ValueOrBuilder> 1060 valueBuilder_; 1061 /** 1062 * 1063 * 1064 * <pre> 1065 * Output only. The value of the parameter. 1066 * `number_value` will be set if a parameter defined in StudySpec is 1067 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1068 * `string_value` will be set if a parameter defined in StudySpec is 1069 * in type 'CATEGORICAL'. 1070 * </pre> 1071 * 1072 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1073 * 1074 * @return Whether the value field is set. 1075 */ hasValue()1076 public boolean hasValue() { 1077 return ((bitField0_ & 0x00000002) != 0); 1078 } 1079 /** 1080 * 1081 * 1082 * <pre> 1083 * Output only. The value of the parameter. 1084 * `number_value` will be set if a parameter defined in StudySpec is 1085 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1086 * `string_value` will be set if a parameter defined in StudySpec is 1087 * in type 'CATEGORICAL'. 1088 * </pre> 1089 * 1090 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1091 * 1092 * @return The value. 1093 */ getValue()1094 public com.google.protobuf.Value getValue() { 1095 if (valueBuilder_ == null) { 1096 return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; 1097 } else { 1098 return valueBuilder_.getMessage(); 1099 } 1100 } 1101 /** 1102 * 1103 * 1104 * <pre> 1105 * Output only. The value of the parameter. 1106 * `number_value` will be set if a parameter defined in StudySpec is 1107 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1108 * `string_value` will be set if a parameter defined in StudySpec is 1109 * in type 'CATEGORICAL'. 1110 * </pre> 1111 * 1112 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1113 */ setValue(com.google.protobuf.Value value)1114 public Builder setValue(com.google.protobuf.Value value) { 1115 if (valueBuilder_ == null) { 1116 if (value == null) { 1117 throw new NullPointerException(); 1118 } 1119 value_ = value; 1120 } else { 1121 valueBuilder_.setMessage(value); 1122 } 1123 bitField0_ |= 0x00000002; 1124 onChanged(); 1125 return this; 1126 } 1127 /** 1128 * 1129 * 1130 * <pre> 1131 * Output only. The value of the parameter. 1132 * `number_value` will be set if a parameter defined in StudySpec is 1133 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1134 * `string_value` will be set if a parameter defined in StudySpec is 1135 * in type 'CATEGORICAL'. 1136 * </pre> 1137 * 1138 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1139 */ setValue(com.google.protobuf.Value.Builder builderForValue)1140 public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { 1141 if (valueBuilder_ == null) { 1142 value_ = builderForValue.build(); 1143 } else { 1144 valueBuilder_.setMessage(builderForValue.build()); 1145 } 1146 bitField0_ |= 0x00000002; 1147 onChanged(); 1148 return this; 1149 } 1150 /** 1151 * 1152 * 1153 * <pre> 1154 * Output only. The value of the parameter. 1155 * `number_value` will be set if a parameter defined in StudySpec is 1156 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1157 * `string_value` will be set if a parameter defined in StudySpec is 1158 * in type 'CATEGORICAL'. 1159 * </pre> 1160 * 1161 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1162 */ mergeValue(com.google.protobuf.Value value)1163 public Builder mergeValue(com.google.protobuf.Value value) { 1164 if (valueBuilder_ == null) { 1165 if (((bitField0_ & 0x00000002) != 0) 1166 && value_ != null 1167 && value_ != com.google.protobuf.Value.getDefaultInstance()) { 1168 getValueBuilder().mergeFrom(value); 1169 } else { 1170 value_ = value; 1171 } 1172 } else { 1173 valueBuilder_.mergeFrom(value); 1174 } 1175 bitField0_ |= 0x00000002; 1176 onChanged(); 1177 return this; 1178 } 1179 /** 1180 * 1181 * 1182 * <pre> 1183 * Output only. The value of the parameter. 1184 * `number_value` will be set if a parameter defined in StudySpec is 1185 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1186 * `string_value` will be set if a parameter defined in StudySpec is 1187 * in type 'CATEGORICAL'. 1188 * </pre> 1189 * 1190 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1191 */ clearValue()1192 public Builder clearValue() { 1193 bitField0_ = (bitField0_ & ~0x00000002); 1194 value_ = null; 1195 if (valueBuilder_ != null) { 1196 valueBuilder_.dispose(); 1197 valueBuilder_ = null; 1198 } 1199 onChanged(); 1200 return this; 1201 } 1202 /** 1203 * 1204 * 1205 * <pre> 1206 * Output only. The value of the parameter. 1207 * `number_value` will be set if a parameter defined in StudySpec is 1208 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1209 * `string_value` will be set if a parameter defined in StudySpec is 1210 * in type 'CATEGORICAL'. 1211 * </pre> 1212 * 1213 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1214 */ getValueBuilder()1215 public com.google.protobuf.Value.Builder getValueBuilder() { 1216 bitField0_ |= 0x00000002; 1217 onChanged(); 1218 return getValueFieldBuilder().getBuilder(); 1219 } 1220 /** 1221 * 1222 * 1223 * <pre> 1224 * Output only. The value of the parameter. 1225 * `number_value` will be set if a parameter defined in StudySpec is 1226 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1227 * `string_value` will be set if a parameter defined in StudySpec is 1228 * in type 'CATEGORICAL'. 1229 * </pre> 1230 * 1231 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1232 */ getValueOrBuilder()1233 public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { 1234 if (valueBuilder_ != null) { 1235 return valueBuilder_.getMessageOrBuilder(); 1236 } else { 1237 return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; 1238 } 1239 } 1240 /** 1241 * 1242 * 1243 * <pre> 1244 * Output only. The value of the parameter. 1245 * `number_value` will be set if a parameter defined in StudySpec is 1246 * in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. 1247 * `string_value` will be set if a parameter defined in StudySpec is 1248 * in type 'CATEGORICAL'. 1249 * </pre> 1250 * 1251 * <code>.google.protobuf.Value value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1252 */ 1253 private com.google.protobuf.SingleFieldBuilderV3< 1254 com.google.protobuf.Value, 1255 com.google.protobuf.Value.Builder, 1256 com.google.protobuf.ValueOrBuilder> getValueFieldBuilder()1257 getValueFieldBuilder() { 1258 if (valueBuilder_ == null) { 1259 valueBuilder_ = 1260 new com.google.protobuf.SingleFieldBuilderV3< 1261 com.google.protobuf.Value, 1262 com.google.protobuf.Value.Builder, 1263 com.google.protobuf.ValueOrBuilder>( 1264 getValue(), getParentForChildren(), isClean()); 1265 value_ = null; 1266 } 1267 return valueBuilder_; 1268 } 1269 1270 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1271 public final Builder setUnknownFields( 1272 final com.google.protobuf.UnknownFieldSet unknownFields) { 1273 return super.setUnknownFields(unknownFields); 1274 } 1275 1276 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1277 public final Builder mergeUnknownFields( 1278 final com.google.protobuf.UnknownFieldSet unknownFields) { 1279 return super.mergeUnknownFields(unknownFields); 1280 } 1281 1282 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Trial.Parameter) 1283 } 1284 1285 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Trial.Parameter) 1286 private static final com.google.cloud.aiplatform.v1.Trial.Parameter DEFAULT_INSTANCE; 1287 1288 static { 1289 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Trial.Parameter(); 1290 } 1291 getDefaultInstance()1292 public static com.google.cloud.aiplatform.v1.Trial.Parameter getDefaultInstance() { 1293 return DEFAULT_INSTANCE; 1294 } 1295 1296 private static final com.google.protobuf.Parser<Parameter> PARSER = 1297 new com.google.protobuf.AbstractParser<Parameter>() { 1298 @java.lang.Override 1299 public Parameter parsePartialFrom( 1300 com.google.protobuf.CodedInputStream input, 1301 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1302 throws com.google.protobuf.InvalidProtocolBufferException { 1303 Builder builder = newBuilder(); 1304 try { 1305 builder.mergeFrom(input, extensionRegistry); 1306 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1307 throw e.setUnfinishedMessage(builder.buildPartial()); 1308 } catch (com.google.protobuf.UninitializedMessageException e) { 1309 throw e.asInvalidProtocolBufferException() 1310 .setUnfinishedMessage(builder.buildPartial()); 1311 } catch (java.io.IOException e) { 1312 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1313 .setUnfinishedMessage(builder.buildPartial()); 1314 } 1315 return builder.buildPartial(); 1316 } 1317 }; 1318 parser()1319 public static com.google.protobuf.Parser<Parameter> parser() { 1320 return PARSER; 1321 } 1322 1323 @java.lang.Override getParserForType()1324 public com.google.protobuf.Parser<Parameter> getParserForType() { 1325 return PARSER; 1326 } 1327 1328 @java.lang.Override getDefaultInstanceForType()1329 public com.google.cloud.aiplatform.v1.Trial.Parameter getDefaultInstanceForType() { 1330 return DEFAULT_INSTANCE; 1331 } 1332 } 1333 1334 public static final int NAME_FIELD_NUMBER = 1; 1335 1336 @SuppressWarnings("serial") 1337 private volatile java.lang.Object name_ = ""; 1338 /** 1339 * 1340 * 1341 * <pre> 1342 * Output only. Resource name of the Trial assigned by the service. 1343 * </pre> 1344 * 1345 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1346 * 1347 * @return The name. 1348 */ 1349 @java.lang.Override getName()1350 public java.lang.String getName() { 1351 java.lang.Object ref = name_; 1352 if (ref instanceof java.lang.String) { 1353 return (java.lang.String) ref; 1354 } else { 1355 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1356 java.lang.String s = bs.toStringUtf8(); 1357 name_ = s; 1358 return s; 1359 } 1360 } 1361 /** 1362 * 1363 * 1364 * <pre> 1365 * Output only. Resource name of the Trial assigned by the service. 1366 * </pre> 1367 * 1368 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1369 * 1370 * @return The bytes for name. 1371 */ 1372 @java.lang.Override getNameBytes()1373 public com.google.protobuf.ByteString getNameBytes() { 1374 java.lang.Object ref = name_; 1375 if (ref instanceof java.lang.String) { 1376 com.google.protobuf.ByteString b = 1377 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1378 name_ = b; 1379 return b; 1380 } else { 1381 return (com.google.protobuf.ByteString) ref; 1382 } 1383 } 1384 1385 public static final int ID_FIELD_NUMBER = 2; 1386 1387 @SuppressWarnings("serial") 1388 private volatile java.lang.Object id_ = ""; 1389 /** 1390 * 1391 * 1392 * <pre> 1393 * Output only. The identifier of the Trial assigned by the service. 1394 * </pre> 1395 * 1396 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1397 * 1398 * @return The id. 1399 */ 1400 @java.lang.Override getId()1401 public java.lang.String getId() { 1402 java.lang.Object ref = id_; 1403 if (ref instanceof java.lang.String) { 1404 return (java.lang.String) ref; 1405 } else { 1406 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1407 java.lang.String s = bs.toStringUtf8(); 1408 id_ = s; 1409 return s; 1410 } 1411 } 1412 /** 1413 * 1414 * 1415 * <pre> 1416 * Output only. The identifier of the Trial assigned by the service. 1417 * </pre> 1418 * 1419 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1420 * 1421 * @return The bytes for id. 1422 */ 1423 @java.lang.Override getIdBytes()1424 public com.google.protobuf.ByteString getIdBytes() { 1425 java.lang.Object ref = id_; 1426 if (ref instanceof java.lang.String) { 1427 com.google.protobuf.ByteString b = 1428 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1429 id_ = b; 1430 return b; 1431 } else { 1432 return (com.google.protobuf.ByteString) ref; 1433 } 1434 } 1435 1436 public static final int STATE_FIELD_NUMBER = 3; 1437 private int state_ = 0; 1438 /** 1439 * 1440 * 1441 * <pre> 1442 * Output only. The detailed state of the Trial. 1443 * </pre> 1444 * 1445 * <code> 1446 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1447 * </code> 1448 * 1449 * @return The enum numeric value on the wire for state. 1450 */ 1451 @java.lang.Override getStateValue()1452 public int getStateValue() { 1453 return state_; 1454 } 1455 /** 1456 * 1457 * 1458 * <pre> 1459 * Output only. The detailed state of the Trial. 1460 * </pre> 1461 * 1462 * <code> 1463 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1464 * </code> 1465 * 1466 * @return The state. 1467 */ 1468 @java.lang.Override getState()1469 public com.google.cloud.aiplatform.v1.Trial.State getState() { 1470 com.google.cloud.aiplatform.v1.Trial.State result = 1471 com.google.cloud.aiplatform.v1.Trial.State.forNumber(state_); 1472 return result == null ? com.google.cloud.aiplatform.v1.Trial.State.UNRECOGNIZED : result; 1473 } 1474 1475 public static final int PARAMETERS_FIELD_NUMBER = 4; 1476 1477 @SuppressWarnings("serial") 1478 private java.util.List<com.google.cloud.aiplatform.v1.Trial.Parameter> parameters_; 1479 /** 1480 * 1481 * 1482 * <pre> 1483 * Output only. The parameters of the Trial. 1484 * </pre> 1485 * 1486 * <code> 1487 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1488 * </code> 1489 */ 1490 @java.lang.Override getParametersList()1491 public java.util.List<com.google.cloud.aiplatform.v1.Trial.Parameter> getParametersList() { 1492 return parameters_; 1493 } 1494 /** 1495 * 1496 * 1497 * <pre> 1498 * Output only. The parameters of the Trial. 1499 * </pre> 1500 * 1501 * <code> 1502 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1503 * </code> 1504 */ 1505 @java.lang.Override 1506 public java.util.List<? extends com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder> getParametersOrBuilderList()1507 getParametersOrBuilderList() { 1508 return parameters_; 1509 } 1510 /** 1511 * 1512 * 1513 * <pre> 1514 * Output only. The parameters of the Trial. 1515 * </pre> 1516 * 1517 * <code> 1518 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1519 * </code> 1520 */ 1521 @java.lang.Override getParametersCount()1522 public int getParametersCount() { 1523 return parameters_.size(); 1524 } 1525 /** 1526 * 1527 * 1528 * <pre> 1529 * Output only. The parameters of the Trial. 1530 * </pre> 1531 * 1532 * <code> 1533 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1534 * </code> 1535 */ 1536 @java.lang.Override getParameters(int index)1537 public com.google.cloud.aiplatform.v1.Trial.Parameter getParameters(int index) { 1538 return parameters_.get(index); 1539 } 1540 /** 1541 * 1542 * 1543 * <pre> 1544 * Output only. The parameters of the Trial. 1545 * </pre> 1546 * 1547 * <code> 1548 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1549 * </code> 1550 */ 1551 @java.lang.Override getParametersOrBuilder(int index)1552 public com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder getParametersOrBuilder(int index) { 1553 return parameters_.get(index); 1554 } 1555 1556 public static final int FINAL_MEASUREMENT_FIELD_NUMBER = 5; 1557 private com.google.cloud.aiplatform.v1.Measurement finalMeasurement_; 1558 /** 1559 * 1560 * 1561 * <pre> 1562 * Output only. The final measurement containing the objective value. 1563 * </pre> 1564 * 1565 * <code> 1566 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1567 * </code> 1568 * 1569 * @return Whether the finalMeasurement field is set. 1570 */ 1571 @java.lang.Override hasFinalMeasurement()1572 public boolean hasFinalMeasurement() { 1573 return finalMeasurement_ != null; 1574 } 1575 /** 1576 * 1577 * 1578 * <pre> 1579 * Output only. The final measurement containing the objective value. 1580 * </pre> 1581 * 1582 * <code> 1583 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1584 * </code> 1585 * 1586 * @return The finalMeasurement. 1587 */ 1588 @java.lang.Override getFinalMeasurement()1589 public com.google.cloud.aiplatform.v1.Measurement getFinalMeasurement() { 1590 return finalMeasurement_ == null 1591 ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() 1592 : finalMeasurement_; 1593 } 1594 /** 1595 * 1596 * 1597 * <pre> 1598 * Output only. The final measurement containing the objective value. 1599 * </pre> 1600 * 1601 * <code> 1602 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1603 * </code> 1604 */ 1605 @java.lang.Override getFinalMeasurementOrBuilder()1606 public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { 1607 return finalMeasurement_ == null 1608 ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() 1609 : finalMeasurement_; 1610 } 1611 1612 public static final int MEASUREMENTS_FIELD_NUMBER = 6; 1613 1614 @SuppressWarnings("serial") 1615 private java.util.List<com.google.cloud.aiplatform.v1.Measurement> measurements_; 1616 /** 1617 * 1618 * 1619 * <pre> 1620 * Output only. A list of measurements that are strictly lexicographically 1621 * ordered by their induced tuples (steps, elapsed_duration). 1622 * These are used for early stopping computations. 1623 * </pre> 1624 * 1625 * <code> 1626 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1627 * </code> 1628 */ 1629 @java.lang.Override getMeasurementsList()1630 public java.util.List<com.google.cloud.aiplatform.v1.Measurement> getMeasurementsList() { 1631 return measurements_; 1632 } 1633 /** 1634 * 1635 * 1636 * <pre> 1637 * Output only. A list of measurements that are strictly lexicographically 1638 * ordered by their induced tuples (steps, elapsed_duration). 1639 * These are used for early stopping computations. 1640 * </pre> 1641 * 1642 * <code> 1643 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1644 * </code> 1645 */ 1646 @java.lang.Override 1647 public java.util.List<? extends com.google.cloud.aiplatform.v1.MeasurementOrBuilder> getMeasurementsOrBuilderList()1648 getMeasurementsOrBuilderList() { 1649 return measurements_; 1650 } 1651 /** 1652 * 1653 * 1654 * <pre> 1655 * Output only. A list of measurements that are strictly lexicographically 1656 * ordered by their induced tuples (steps, elapsed_duration). 1657 * These are used for early stopping computations. 1658 * </pre> 1659 * 1660 * <code> 1661 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1662 * </code> 1663 */ 1664 @java.lang.Override getMeasurementsCount()1665 public int getMeasurementsCount() { 1666 return measurements_.size(); 1667 } 1668 /** 1669 * 1670 * 1671 * <pre> 1672 * Output only. A list of measurements that are strictly lexicographically 1673 * ordered by their induced tuples (steps, elapsed_duration). 1674 * These are used for early stopping computations. 1675 * </pre> 1676 * 1677 * <code> 1678 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1679 * </code> 1680 */ 1681 @java.lang.Override getMeasurements(int index)1682 public com.google.cloud.aiplatform.v1.Measurement getMeasurements(int index) { 1683 return measurements_.get(index); 1684 } 1685 /** 1686 * 1687 * 1688 * <pre> 1689 * Output only. A list of measurements that are strictly lexicographically 1690 * ordered by their induced tuples (steps, elapsed_duration). 1691 * These are used for early stopping computations. 1692 * </pre> 1693 * 1694 * <code> 1695 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1696 * </code> 1697 */ 1698 @java.lang.Override getMeasurementsOrBuilder(int index)1699 public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getMeasurementsOrBuilder(int index) { 1700 return measurements_.get(index); 1701 } 1702 1703 public static final int START_TIME_FIELD_NUMBER = 7; 1704 private com.google.protobuf.Timestamp startTime_; 1705 /** 1706 * 1707 * 1708 * <pre> 1709 * Output only. Time when the Trial was started. 1710 * </pre> 1711 * 1712 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1713 * </code> 1714 * 1715 * @return Whether the startTime field is set. 1716 */ 1717 @java.lang.Override hasStartTime()1718 public boolean hasStartTime() { 1719 return startTime_ != null; 1720 } 1721 /** 1722 * 1723 * 1724 * <pre> 1725 * Output only. Time when the Trial was started. 1726 * </pre> 1727 * 1728 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1729 * </code> 1730 * 1731 * @return The startTime. 1732 */ 1733 @java.lang.Override getStartTime()1734 public com.google.protobuf.Timestamp getStartTime() { 1735 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 1736 } 1737 /** 1738 * 1739 * 1740 * <pre> 1741 * Output only. Time when the Trial was started. 1742 * </pre> 1743 * 1744 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1745 * </code> 1746 */ 1747 @java.lang.Override getStartTimeOrBuilder()1748 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 1749 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 1750 } 1751 1752 public static final int END_TIME_FIELD_NUMBER = 8; 1753 private com.google.protobuf.Timestamp endTime_; 1754 /** 1755 * 1756 * 1757 * <pre> 1758 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 1759 * `INFEASIBLE`. 1760 * </pre> 1761 * 1762 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1763 * </code> 1764 * 1765 * @return Whether the endTime field is set. 1766 */ 1767 @java.lang.Override hasEndTime()1768 public boolean hasEndTime() { 1769 return endTime_ != null; 1770 } 1771 /** 1772 * 1773 * 1774 * <pre> 1775 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 1776 * `INFEASIBLE`. 1777 * </pre> 1778 * 1779 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1780 * </code> 1781 * 1782 * @return The endTime. 1783 */ 1784 @java.lang.Override getEndTime()1785 public com.google.protobuf.Timestamp getEndTime() { 1786 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1787 } 1788 /** 1789 * 1790 * 1791 * <pre> 1792 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 1793 * `INFEASIBLE`. 1794 * </pre> 1795 * 1796 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 1797 * </code> 1798 */ 1799 @java.lang.Override getEndTimeOrBuilder()1800 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 1801 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 1802 } 1803 1804 public static final int CLIENT_ID_FIELD_NUMBER = 9; 1805 1806 @SuppressWarnings("serial") 1807 private volatile java.lang.Object clientId_ = ""; 1808 /** 1809 * 1810 * 1811 * <pre> 1812 * Output only. The identifier of the client that originally requested this 1813 * Trial. Each client is identified by a unique client_id. When a client asks 1814 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 1815 * should evaluate the Trial, complete it, and report back to Vertex AI 1816 * Vizier. If suggestion is asked again by same client_id before the Trial is 1817 * completed, the same Trial will be returned. Multiple clients with 1818 * different client_ids can ask for suggestions simultaneously, each of them 1819 * will get their own Trial. 1820 * </pre> 1821 * 1822 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1823 * 1824 * @return The clientId. 1825 */ 1826 @java.lang.Override getClientId()1827 public java.lang.String getClientId() { 1828 java.lang.Object ref = clientId_; 1829 if (ref instanceof java.lang.String) { 1830 return (java.lang.String) ref; 1831 } else { 1832 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1833 java.lang.String s = bs.toStringUtf8(); 1834 clientId_ = s; 1835 return s; 1836 } 1837 } 1838 /** 1839 * 1840 * 1841 * <pre> 1842 * Output only. The identifier of the client that originally requested this 1843 * Trial. Each client is identified by a unique client_id. When a client asks 1844 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 1845 * should evaluate the Trial, complete it, and report back to Vertex AI 1846 * Vizier. If suggestion is asked again by same client_id before the Trial is 1847 * completed, the same Trial will be returned. Multiple clients with 1848 * different client_ids can ask for suggestions simultaneously, each of them 1849 * will get their own Trial. 1850 * </pre> 1851 * 1852 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1853 * 1854 * @return The bytes for clientId. 1855 */ 1856 @java.lang.Override getClientIdBytes()1857 public com.google.protobuf.ByteString getClientIdBytes() { 1858 java.lang.Object ref = clientId_; 1859 if (ref instanceof java.lang.String) { 1860 com.google.protobuf.ByteString b = 1861 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1862 clientId_ = b; 1863 return b; 1864 } else { 1865 return (com.google.protobuf.ByteString) ref; 1866 } 1867 } 1868 1869 public static final int INFEASIBLE_REASON_FIELD_NUMBER = 10; 1870 1871 @SuppressWarnings("serial") 1872 private volatile java.lang.Object infeasibleReason_ = ""; 1873 /** 1874 * 1875 * 1876 * <pre> 1877 * Output only. A human readable string describing why the Trial is 1878 * infeasible. This is set only if Trial state is `INFEASIBLE`. 1879 * </pre> 1880 * 1881 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1882 * 1883 * @return The infeasibleReason. 1884 */ 1885 @java.lang.Override getInfeasibleReason()1886 public java.lang.String getInfeasibleReason() { 1887 java.lang.Object ref = infeasibleReason_; 1888 if (ref instanceof java.lang.String) { 1889 return (java.lang.String) ref; 1890 } else { 1891 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1892 java.lang.String s = bs.toStringUtf8(); 1893 infeasibleReason_ = s; 1894 return s; 1895 } 1896 } 1897 /** 1898 * 1899 * 1900 * <pre> 1901 * Output only. A human readable string describing why the Trial is 1902 * infeasible. This is set only if Trial state is `INFEASIBLE`. 1903 * </pre> 1904 * 1905 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1906 * 1907 * @return The bytes for infeasibleReason. 1908 */ 1909 @java.lang.Override getInfeasibleReasonBytes()1910 public com.google.protobuf.ByteString getInfeasibleReasonBytes() { 1911 java.lang.Object ref = infeasibleReason_; 1912 if (ref instanceof java.lang.String) { 1913 com.google.protobuf.ByteString b = 1914 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1915 infeasibleReason_ = b; 1916 return b; 1917 } else { 1918 return (com.google.protobuf.ByteString) ref; 1919 } 1920 } 1921 1922 public static final int CUSTOM_JOB_FIELD_NUMBER = 11; 1923 1924 @SuppressWarnings("serial") 1925 private volatile java.lang.Object customJob_ = ""; 1926 /** 1927 * 1928 * 1929 * <pre> 1930 * Output only. The CustomJob name linked to the Trial. 1931 * It's set for a HyperparameterTuningJob's Trial. 1932 * </pre> 1933 * 1934 * <code> 1935 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 1936 * </code> 1937 * 1938 * @return The customJob. 1939 */ 1940 @java.lang.Override getCustomJob()1941 public java.lang.String getCustomJob() { 1942 java.lang.Object ref = customJob_; 1943 if (ref instanceof java.lang.String) { 1944 return (java.lang.String) ref; 1945 } else { 1946 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1947 java.lang.String s = bs.toStringUtf8(); 1948 customJob_ = s; 1949 return s; 1950 } 1951 } 1952 /** 1953 * 1954 * 1955 * <pre> 1956 * Output only. The CustomJob name linked to the Trial. 1957 * It's set for a HyperparameterTuningJob's Trial. 1958 * </pre> 1959 * 1960 * <code> 1961 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 1962 * </code> 1963 * 1964 * @return The bytes for customJob. 1965 */ 1966 @java.lang.Override getCustomJobBytes()1967 public com.google.protobuf.ByteString getCustomJobBytes() { 1968 java.lang.Object ref = customJob_; 1969 if (ref instanceof java.lang.String) { 1970 com.google.protobuf.ByteString b = 1971 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1972 customJob_ = b; 1973 return b; 1974 } else { 1975 return (com.google.protobuf.ByteString) ref; 1976 } 1977 } 1978 1979 public static final int WEB_ACCESS_URIS_FIELD_NUMBER = 12; 1980 1981 private static final class WebAccessUrisDefaultEntryHolder { 1982 static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry = 1983 com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance( 1984 com.google.cloud.aiplatform.v1.StudyProto 1985 .internal_static_google_cloud_aiplatform_v1_Trial_WebAccessUrisEntry_descriptor, 1986 com.google.protobuf.WireFormat.FieldType.STRING, 1987 "", 1988 com.google.protobuf.WireFormat.FieldType.STRING, 1989 ""); 1990 } 1991 1992 @SuppressWarnings("serial") 1993 private com.google.protobuf.MapField<java.lang.String, java.lang.String> webAccessUris_; 1994 1995 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetWebAccessUris()1996 internalGetWebAccessUris() { 1997 if (webAccessUris_ == null) { 1998 return com.google.protobuf.MapField.emptyMapField( 1999 WebAccessUrisDefaultEntryHolder.defaultEntry); 2000 } 2001 return webAccessUris_; 2002 } 2003 getWebAccessUrisCount()2004 public int getWebAccessUrisCount() { 2005 return internalGetWebAccessUris().getMap().size(); 2006 } 2007 /** 2008 * 2009 * 2010 * <pre> 2011 * Output only. URIs for accessing [interactive 2012 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 2013 * (one URI for each training node). Only available if this trial is part of 2014 * a 2015 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 2016 * and the job's 2017 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 2018 * field is `true`. 2019 * The keys are names of each node used for the trial; for example, 2020 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 2021 * the second worker pool, and `workerpool1-1` for the second node in the 2022 * second worker pool. 2023 * The values are the URIs for each node's interactive shell. 2024 * </pre> 2025 * 2026 * <code> 2027 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2028 * </code> 2029 */ 2030 @java.lang.Override containsWebAccessUris(java.lang.String key)2031 public boolean containsWebAccessUris(java.lang.String key) { 2032 if (key == null) { 2033 throw new NullPointerException("map key"); 2034 } 2035 return internalGetWebAccessUris().getMap().containsKey(key); 2036 } 2037 /** Use {@link #getWebAccessUrisMap()} instead. */ 2038 @java.lang.Override 2039 @java.lang.Deprecated getWebAccessUris()2040 public java.util.Map<java.lang.String, java.lang.String> getWebAccessUris() { 2041 return getWebAccessUrisMap(); 2042 } 2043 /** 2044 * 2045 * 2046 * <pre> 2047 * Output only. URIs for accessing [interactive 2048 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 2049 * (one URI for each training node). Only available if this trial is part of 2050 * a 2051 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 2052 * and the job's 2053 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 2054 * field is `true`. 2055 * The keys are names of each node used for the trial; for example, 2056 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 2057 * the second worker pool, and `workerpool1-1` for the second node in the 2058 * second worker pool. 2059 * The values are the URIs for each node's interactive shell. 2060 * </pre> 2061 * 2062 * <code> 2063 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2064 * </code> 2065 */ 2066 @java.lang.Override getWebAccessUrisMap()2067 public java.util.Map<java.lang.String, java.lang.String> getWebAccessUrisMap() { 2068 return internalGetWebAccessUris().getMap(); 2069 } 2070 /** 2071 * 2072 * 2073 * <pre> 2074 * Output only. URIs for accessing [interactive 2075 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 2076 * (one URI for each training node). Only available if this trial is part of 2077 * a 2078 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 2079 * and the job's 2080 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 2081 * field is `true`. 2082 * The keys are names of each node used for the trial; for example, 2083 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 2084 * the second worker pool, and `workerpool1-1` for the second node in the 2085 * second worker pool. 2086 * The values are the URIs for each node's interactive shell. 2087 * </pre> 2088 * 2089 * <code> 2090 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2091 * </code> 2092 */ 2093 @java.lang.Override getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue)2094 public /* nullable */ java.lang.String getWebAccessUrisOrDefault( 2095 java.lang.String key, 2096 /* nullable */ 2097 java.lang.String defaultValue) { 2098 if (key == null) { 2099 throw new NullPointerException("map key"); 2100 } 2101 java.util.Map<java.lang.String, java.lang.String> map = internalGetWebAccessUris().getMap(); 2102 return map.containsKey(key) ? map.get(key) : defaultValue; 2103 } 2104 /** 2105 * 2106 * 2107 * <pre> 2108 * Output only. URIs for accessing [interactive 2109 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 2110 * (one URI for each training node). Only available if this trial is part of 2111 * a 2112 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 2113 * and the job's 2114 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 2115 * field is `true`. 2116 * The keys are names of each node used for the trial; for example, 2117 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 2118 * the second worker pool, and `workerpool1-1` for the second node in the 2119 * second worker pool. 2120 * The values are the URIs for each node's interactive shell. 2121 * </pre> 2122 * 2123 * <code> 2124 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 2125 * </code> 2126 */ 2127 @java.lang.Override getWebAccessUrisOrThrow(java.lang.String key)2128 public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { 2129 if (key == null) { 2130 throw new NullPointerException("map key"); 2131 } 2132 java.util.Map<java.lang.String, java.lang.String> map = internalGetWebAccessUris().getMap(); 2133 if (!map.containsKey(key)) { 2134 throw new java.lang.IllegalArgumentException(); 2135 } 2136 return map.get(key); 2137 } 2138 2139 private byte memoizedIsInitialized = -1; 2140 2141 @java.lang.Override isInitialized()2142 public final boolean isInitialized() { 2143 byte isInitialized = memoizedIsInitialized; 2144 if (isInitialized == 1) return true; 2145 if (isInitialized == 0) return false; 2146 2147 memoizedIsInitialized = 1; 2148 return true; 2149 } 2150 2151 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2152 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2153 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 2154 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 2155 } 2156 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 2157 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); 2158 } 2159 if (state_ != com.google.cloud.aiplatform.v1.Trial.State.STATE_UNSPECIFIED.getNumber()) { 2160 output.writeEnum(3, state_); 2161 } 2162 for (int i = 0; i < parameters_.size(); i++) { 2163 output.writeMessage(4, parameters_.get(i)); 2164 } 2165 if (finalMeasurement_ != null) { 2166 output.writeMessage(5, getFinalMeasurement()); 2167 } 2168 for (int i = 0; i < measurements_.size(); i++) { 2169 output.writeMessage(6, measurements_.get(i)); 2170 } 2171 if (startTime_ != null) { 2172 output.writeMessage(7, getStartTime()); 2173 } 2174 if (endTime_ != null) { 2175 output.writeMessage(8, getEndTime()); 2176 } 2177 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { 2178 com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clientId_); 2179 } 2180 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(infeasibleReason_)) { 2181 com.google.protobuf.GeneratedMessageV3.writeString(output, 10, infeasibleReason_); 2182 } 2183 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customJob_)) { 2184 com.google.protobuf.GeneratedMessageV3.writeString(output, 11, customJob_); 2185 } 2186 com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( 2187 output, internalGetWebAccessUris(), WebAccessUrisDefaultEntryHolder.defaultEntry, 12); 2188 getUnknownFields().writeTo(output); 2189 } 2190 2191 @java.lang.Override getSerializedSize()2192 public int getSerializedSize() { 2193 int size = memoizedSize; 2194 if (size != -1) return size; 2195 2196 size = 0; 2197 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 2198 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 2199 } 2200 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { 2201 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); 2202 } 2203 if (state_ != com.google.cloud.aiplatform.v1.Trial.State.STATE_UNSPECIFIED.getNumber()) { 2204 size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); 2205 } 2206 for (int i = 0; i < parameters_.size(); i++) { 2207 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, parameters_.get(i)); 2208 } 2209 if (finalMeasurement_ != null) { 2210 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFinalMeasurement()); 2211 } 2212 for (int i = 0; i < measurements_.size(); i++) { 2213 size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, measurements_.get(i)); 2214 } 2215 if (startTime_ != null) { 2216 size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); 2217 } 2218 if (endTime_ != null) { 2219 size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); 2220 } 2221 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { 2222 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clientId_); 2223 } 2224 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(infeasibleReason_)) { 2225 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, infeasibleReason_); 2226 } 2227 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customJob_)) { 2228 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, customJob_); 2229 } 2230 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry : 2231 internalGetWebAccessUris().getMap().entrySet()) { 2232 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> webAccessUris__ = 2233 WebAccessUrisDefaultEntryHolder.defaultEntry 2234 .newBuilderForType() 2235 .setKey(entry.getKey()) 2236 .setValue(entry.getValue()) 2237 .build(); 2238 size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, webAccessUris__); 2239 } 2240 size += getUnknownFields().getSerializedSize(); 2241 memoizedSize = size; 2242 return size; 2243 } 2244 2245 @java.lang.Override equals(final java.lang.Object obj)2246 public boolean equals(final java.lang.Object obj) { 2247 if (obj == this) { 2248 return true; 2249 } 2250 if (!(obj instanceof com.google.cloud.aiplatform.v1.Trial)) { 2251 return super.equals(obj); 2252 } 2253 com.google.cloud.aiplatform.v1.Trial other = (com.google.cloud.aiplatform.v1.Trial) obj; 2254 2255 if (!getName().equals(other.getName())) return false; 2256 if (!getId().equals(other.getId())) return false; 2257 if (state_ != other.state_) return false; 2258 if (!getParametersList().equals(other.getParametersList())) return false; 2259 if (hasFinalMeasurement() != other.hasFinalMeasurement()) return false; 2260 if (hasFinalMeasurement()) { 2261 if (!getFinalMeasurement().equals(other.getFinalMeasurement())) return false; 2262 } 2263 if (!getMeasurementsList().equals(other.getMeasurementsList())) return false; 2264 if (hasStartTime() != other.hasStartTime()) return false; 2265 if (hasStartTime()) { 2266 if (!getStartTime().equals(other.getStartTime())) return false; 2267 } 2268 if (hasEndTime() != other.hasEndTime()) return false; 2269 if (hasEndTime()) { 2270 if (!getEndTime().equals(other.getEndTime())) return false; 2271 } 2272 if (!getClientId().equals(other.getClientId())) return false; 2273 if (!getInfeasibleReason().equals(other.getInfeasibleReason())) return false; 2274 if (!getCustomJob().equals(other.getCustomJob())) return false; 2275 if (!internalGetWebAccessUris().equals(other.internalGetWebAccessUris())) return false; 2276 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2277 return true; 2278 } 2279 2280 @java.lang.Override hashCode()2281 public int hashCode() { 2282 if (memoizedHashCode != 0) { 2283 return memoizedHashCode; 2284 } 2285 int hash = 41; 2286 hash = (19 * hash) + getDescriptor().hashCode(); 2287 hash = (37 * hash) + NAME_FIELD_NUMBER; 2288 hash = (53 * hash) + getName().hashCode(); 2289 hash = (37 * hash) + ID_FIELD_NUMBER; 2290 hash = (53 * hash) + getId().hashCode(); 2291 hash = (37 * hash) + STATE_FIELD_NUMBER; 2292 hash = (53 * hash) + state_; 2293 if (getParametersCount() > 0) { 2294 hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; 2295 hash = (53 * hash) + getParametersList().hashCode(); 2296 } 2297 if (hasFinalMeasurement()) { 2298 hash = (37 * hash) + FINAL_MEASUREMENT_FIELD_NUMBER; 2299 hash = (53 * hash) + getFinalMeasurement().hashCode(); 2300 } 2301 if (getMeasurementsCount() > 0) { 2302 hash = (37 * hash) + MEASUREMENTS_FIELD_NUMBER; 2303 hash = (53 * hash) + getMeasurementsList().hashCode(); 2304 } 2305 if (hasStartTime()) { 2306 hash = (37 * hash) + START_TIME_FIELD_NUMBER; 2307 hash = (53 * hash) + getStartTime().hashCode(); 2308 } 2309 if (hasEndTime()) { 2310 hash = (37 * hash) + END_TIME_FIELD_NUMBER; 2311 hash = (53 * hash) + getEndTime().hashCode(); 2312 } 2313 hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; 2314 hash = (53 * hash) + getClientId().hashCode(); 2315 hash = (37 * hash) + INFEASIBLE_REASON_FIELD_NUMBER; 2316 hash = (53 * hash) + getInfeasibleReason().hashCode(); 2317 hash = (37 * hash) + CUSTOM_JOB_FIELD_NUMBER; 2318 hash = (53 * hash) + getCustomJob().hashCode(); 2319 if (!internalGetWebAccessUris().getMap().isEmpty()) { 2320 hash = (37 * hash) + WEB_ACCESS_URIS_FIELD_NUMBER; 2321 hash = (53 * hash) + internalGetWebAccessUris().hashCode(); 2322 } 2323 hash = (29 * hash) + getUnknownFields().hashCode(); 2324 memoizedHashCode = hash; 2325 return hash; 2326 } 2327 parseFrom(java.nio.ByteBuffer data)2328 public static com.google.cloud.aiplatform.v1.Trial parseFrom(java.nio.ByteBuffer data) 2329 throws com.google.protobuf.InvalidProtocolBufferException { 2330 return PARSER.parseFrom(data); 2331 } 2332 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2333 public static com.google.cloud.aiplatform.v1.Trial parseFrom( 2334 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2335 throws com.google.protobuf.InvalidProtocolBufferException { 2336 return PARSER.parseFrom(data, extensionRegistry); 2337 } 2338 parseFrom(com.google.protobuf.ByteString data)2339 public static com.google.cloud.aiplatform.v1.Trial parseFrom(com.google.protobuf.ByteString data) 2340 throws com.google.protobuf.InvalidProtocolBufferException { 2341 return PARSER.parseFrom(data); 2342 } 2343 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2344 public static com.google.cloud.aiplatform.v1.Trial parseFrom( 2345 com.google.protobuf.ByteString data, 2346 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2347 throws com.google.protobuf.InvalidProtocolBufferException { 2348 return PARSER.parseFrom(data, extensionRegistry); 2349 } 2350 parseFrom(byte[] data)2351 public static com.google.cloud.aiplatform.v1.Trial parseFrom(byte[] data) 2352 throws com.google.protobuf.InvalidProtocolBufferException { 2353 return PARSER.parseFrom(data); 2354 } 2355 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2356 public static com.google.cloud.aiplatform.v1.Trial parseFrom( 2357 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2358 throws com.google.protobuf.InvalidProtocolBufferException { 2359 return PARSER.parseFrom(data, extensionRegistry); 2360 } 2361 parseFrom(java.io.InputStream input)2362 public static com.google.cloud.aiplatform.v1.Trial parseFrom(java.io.InputStream input) 2363 throws java.io.IOException { 2364 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2365 } 2366 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2367 public static com.google.cloud.aiplatform.v1.Trial parseFrom( 2368 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2369 throws java.io.IOException { 2370 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2371 PARSER, input, extensionRegistry); 2372 } 2373 parseDelimitedFrom(java.io.InputStream input)2374 public static com.google.cloud.aiplatform.v1.Trial parseDelimitedFrom(java.io.InputStream input) 2375 throws java.io.IOException { 2376 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2377 } 2378 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2379 public static com.google.cloud.aiplatform.v1.Trial parseDelimitedFrom( 2380 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2381 throws java.io.IOException { 2382 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2383 PARSER, input, extensionRegistry); 2384 } 2385 parseFrom( com.google.protobuf.CodedInputStream input)2386 public static com.google.cloud.aiplatform.v1.Trial parseFrom( 2387 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 2388 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2389 } 2390 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2391 public static com.google.cloud.aiplatform.v1.Trial parseFrom( 2392 com.google.protobuf.CodedInputStream input, 2393 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2394 throws java.io.IOException { 2395 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2396 PARSER, input, extensionRegistry); 2397 } 2398 2399 @java.lang.Override newBuilderForType()2400 public Builder newBuilderForType() { 2401 return newBuilder(); 2402 } 2403 newBuilder()2404 public static Builder newBuilder() { 2405 return DEFAULT_INSTANCE.toBuilder(); 2406 } 2407 newBuilder(com.google.cloud.aiplatform.v1.Trial prototype)2408 public static Builder newBuilder(com.google.cloud.aiplatform.v1.Trial prototype) { 2409 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2410 } 2411 2412 @java.lang.Override toBuilder()2413 public Builder toBuilder() { 2414 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2415 } 2416 2417 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2418 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2419 Builder builder = new Builder(parent); 2420 return builder; 2421 } 2422 /** 2423 * 2424 * 2425 * <pre> 2426 * A message representing a Trial. A Trial contains a unique set of Parameters 2427 * that has been or will be evaluated, along with the objective metrics got by 2428 * running the Trial. 2429 * </pre> 2430 * 2431 * Protobuf type {@code google.cloud.aiplatform.v1.Trial} 2432 */ 2433 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2434 implements 2435 // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Trial) 2436 com.google.cloud.aiplatform.v1.TrialOrBuilder { getDescriptor()2437 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2438 return com.google.cloud.aiplatform.v1.StudyProto 2439 .internal_static_google_cloud_aiplatform_v1_Trial_descriptor; 2440 } 2441 2442 @SuppressWarnings({"rawtypes"}) internalGetMapField(int number)2443 protected com.google.protobuf.MapField internalGetMapField(int number) { 2444 switch (number) { 2445 case 12: 2446 return internalGetWebAccessUris(); 2447 default: 2448 throw new RuntimeException("Invalid map field number: " + number); 2449 } 2450 } 2451 2452 @SuppressWarnings({"rawtypes"}) internalGetMutableMapField(int number)2453 protected com.google.protobuf.MapField internalGetMutableMapField(int number) { 2454 switch (number) { 2455 case 12: 2456 return internalGetMutableWebAccessUris(); 2457 default: 2458 throw new RuntimeException("Invalid map field number: " + number); 2459 } 2460 } 2461 2462 @java.lang.Override 2463 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2464 internalGetFieldAccessorTable() { 2465 return com.google.cloud.aiplatform.v1.StudyProto 2466 .internal_static_google_cloud_aiplatform_v1_Trial_fieldAccessorTable 2467 .ensureFieldAccessorsInitialized( 2468 com.google.cloud.aiplatform.v1.Trial.class, 2469 com.google.cloud.aiplatform.v1.Trial.Builder.class); 2470 } 2471 2472 // Construct using com.google.cloud.aiplatform.v1.Trial.newBuilder() Builder()2473 private Builder() {} 2474 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2475 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2476 super(parent); 2477 } 2478 2479 @java.lang.Override clear()2480 public Builder clear() { 2481 super.clear(); 2482 bitField0_ = 0; 2483 name_ = ""; 2484 id_ = ""; 2485 state_ = 0; 2486 if (parametersBuilder_ == null) { 2487 parameters_ = java.util.Collections.emptyList(); 2488 } else { 2489 parameters_ = null; 2490 parametersBuilder_.clear(); 2491 } 2492 bitField0_ = (bitField0_ & ~0x00000008); 2493 finalMeasurement_ = null; 2494 if (finalMeasurementBuilder_ != null) { 2495 finalMeasurementBuilder_.dispose(); 2496 finalMeasurementBuilder_ = null; 2497 } 2498 if (measurementsBuilder_ == null) { 2499 measurements_ = java.util.Collections.emptyList(); 2500 } else { 2501 measurements_ = null; 2502 measurementsBuilder_.clear(); 2503 } 2504 bitField0_ = (bitField0_ & ~0x00000020); 2505 startTime_ = null; 2506 if (startTimeBuilder_ != null) { 2507 startTimeBuilder_.dispose(); 2508 startTimeBuilder_ = null; 2509 } 2510 endTime_ = null; 2511 if (endTimeBuilder_ != null) { 2512 endTimeBuilder_.dispose(); 2513 endTimeBuilder_ = null; 2514 } 2515 clientId_ = ""; 2516 infeasibleReason_ = ""; 2517 customJob_ = ""; 2518 internalGetMutableWebAccessUris().clear(); 2519 return this; 2520 } 2521 2522 @java.lang.Override getDescriptorForType()2523 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2524 return com.google.cloud.aiplatform.v1.StudyProto 2525 .internal_static_google_cloud_aiplatform_v1_Trial_descriptor; 2526 } 2527 2528 @java.lang.Override getDefaultInstanceForType()2529 public com.google.cloud.aiplatform.v1.Trial getDefaultInstanceForType() { 2530 return com.google.cloud.aiplatform.v1.Trial.getDefaultInstance(); 2531 } 2532 2533 @java.lang.Override build()2534 public com.google.cloud.aiplatform.v1.Trial build() { 2535 com.google.cloud.aiplatform.v1.Trial result = buildPartial(); 2536 if (!result.isInitialized()) { 2537 throw newUninitializedMessageException(result); 2538 } 2539 return result; 2540 } 2541 2542 @java.lang.Override buildPartial()2543 public com.google.cloud.aiplatform.v1.Trial buildPartial() { 2544 com.google.cloud.aiplatform.v1.Trial result = new com.google.cloud.aiplatform.v1.Trial(this); 2545 buildPartialRepeatedFields(result); 2546 if (bitField0_ != 0) { 2547 buildPartial0(result); 2548 } 2549 onBuilt(); 2550 return result; 2551 } 2552 buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Trial result)2553 private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Trial result) { 2554 if (parametersBuilder_ == null) { 2555 if (((bitField0_ & 0x00000008) != 0)) { 2556 parameters_ = java.util.Collections.unmodifiableList(parameters_); 2557 bitField0_ = (bitField0_ & ~0x00000008); 2558 } 2559 result.parameters_ = parameters_; 2560 } else { 2561 result.parameters_ = parametersBuilder_.build(); 2562 } 2563 if (measurementsBuilder_ == null) { 2564 if (((bitField0_ & 0x00000020) != 0)) { 2565 measurements_ = java.util.Collections.unmodifiableList(measurements_); 2566 bitField0_ = (bitField0_ & ~0x00000020); 2567 } 2568 result.measurements_ = measurements_; 2569 } else { 2570 result.measurements_ = measurementsBuilder_.build(); 2571 } 2572 } 2573 buildPartial0(com.google.cloud.aiplatform.v1.Trial result)2574 private void buildPartial0(com.google.cloud.aiplatform.v1.Trial result) { 2575 int from_bitField0_ = bitField0_; 2576 if (((from_bitField0_ & 0x00000001) != 0)) { 2577 result.name_ = name_; 2578 } 2579 if (((from_bitField0_ & 0x00000002) != 0)) { 2580 result.id_ = id_; 2581 } 2582 if (((from_bitField0_ & 0x00000004) != 0)) { 2583 result.state_ = state_; 2584 } 2585 if (((from_bitField0_ & 0x00000010) != 0)) { 2586 result.finalMeasurement_ = 2587 finalMeasurementBuilder_ == null ? finalMeasurement_ : finalMeasurementBuilder_.build(); 2588 } 2589 if (((from_bitField0_ & 0x00000040) != 0)) { 2590 result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); 2591 } 2592 if (((from_bitField0_ & 0x00000080) != 0)) { 2593 result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); 2594 } 2595 if (((from_bitField0_ & 0x00000100) != 0)) { 2596 result.clientId_ = clientId_; 2597 } 2598 if (((from_bitField0_ & 0x00000200) != 0)) { 2599 result.infeasibleReason_ = infeasibleReason_; 2600 } 2601 if (((from_bitField0_ & 0x00000400) != 0)) { 2602 result.customJob_ = customJob_; 2603 } 2604 if (((from_bitField0_ & 0x00000800) != 0)) { 2605 result.webAccessUris_ = internalGetWebAccessUris(); 2606 result.webAccessUris_.makeImmutable(); 2607 } 2608 } 2609 2610 @java.lang.Override clone()2611 public Builder clone() { 2612 return super.clone(); 2613 } 2614 2615 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2616 public Builder setField( 2617 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2618 return super.setField(field, value); 2619 } 2620 2621 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2622 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2623 return super.clearField(field); 2624 } 2625 2626 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2627 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2628 return super.clearOneof(oneof); 2629 } 2630 2631 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2632 public Builder setRepeatedField( 2633 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2634 return super.setRepeatedField(field, index, value); 2635 } 2636 2637 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2638 public Builder addRepeatedField( 2639 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2640 return super.addRepeatedField(field, value); 2641 } 2642 2643 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2644 public Builder mergeFrom(com.google.protobuf.Message other) { 2645 if (other instanceof com.google.cloud.aiplatform.v1.Trial) { 2646 return mergeFrom((com.google.cloud.aiplatform.v1.Trial) other); 2647 } else { 2648 super.mergeFrom(other); 2649 return this; 2650 } 2651 } 2652 mergeFrom(com.google.cloud.aiplatform.v1.Trial other)2653 public Builder mergeFrom(com.google.cloud.aiplatform.v1.Trial other) { 2654 if (other == com.google.cloud.aiplatform.v1.Trial.getDefaultInstance()) return this; 2655 if (!other.getName().isEmpty()) { 2656 name_ = other.name_; 2657 bitField0_ |= 0x00000001; 2658 onChanged(); 2659 } 2660 if (!other.getId().isEmpty()) { 2661 id_ = other.id_; 2662 bitField0_ |= 0x00000002; 2663 onChanged(); 2664 } 2665 if (other.state_ != 0) { 2666 setStateValue(other.getStateValue()); 2667 } 2668 if (parametersBuilder_ == null) { 2669 if (!other.parameters_.isEmpty()) { 2670 if (parameters_.isEmpty()) { 2671 parameters_ = other.parameters_; 2672 bitField0_ = (bitField0_ & ~0x00000008); 2673 } else { 2674 ensureParametersIsMutable(); 2675 parameters_.addAll(other.parameters_); 2676 } 2677 onChanged(); 2678 } 2679 } else { 2680 if (!other.parameters_.isEmpty()) { 2681 if (parametersBuilder_.isEmpty()) { 2682 parametersBuilder_.dispose(); 2683 parametersBuilder_ = null; 2684 parameters_ = other.parameters_; 2685 bitField0_ = (bitField0_ & ~0x00000008); 2686 parametersBuilder_ = 2687 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2688 ? getParametersFieldBuilder() 2689 : null; 2690 } else { 2691 parametersBuilder_.addAllMessages(other.parameters_); 2692 } 2693 } 2694 } 2695 if (other.hasFinalMeasurement()) { 2696 mergeFinalMeasurement(other.getFinalMeasurement()); 2697 } 2698 if (measurementsBuilder_ == null) { 2699 if (!other.measurements_.isEmpty()) { 2700 if (measurements_.isEmpty()) { 2701 measurements_ = other.measurements_; 2702 bitField0_ = (bitField0_ & ~0x00000020); 2703 } else { 2704 ensureMeasurementsIsMutable(); 2705 measurements_.addAll(other.measurements_); 2706 } 2707 onChanged(); 2708 } 2709 } else { 2710 if (!other.measurements_.isEmpty()) { 2711 if (measurementsBuilder_.isEmpty()) { 2712 measurementsBuilder_.dispose(); 2713 measurementsBuilder_ = null; 2714 measurements_ = other.measurements_; 2715 bitField0_ = (bitField0_ & ~0x00000020); 2716 measurementsBuilder_ = 2717 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2718 ? getMeasurementsFieldBuilder() 2719 : null; 2720 } else { 2721 measurementsBuilder_.addAllMessages(other.measurements_); 2722 } 2723 } 2724 } 2725 if (other.hasStartTime()) { 2726 mergeStartTime(other.getStartTime()); 2727 } 2728 if (other.hasEndTime()) { 2729 mergeEndTime(other.getEndTime()); 2730 } 2731 if (!other.getClientId().isEmpty()) { 2732 clientId_ = other.clientId_; 2733 bitField0_ |= 0x00000100; 2734 onChanged(); 2735 } 2736 if (!other.getInfeasibleReason().isEmpty()) { 2737 infeasibleReason_ = other.infeasibleReason_; 2738 bitField0_ |= 0x00000200; 2739 onChanged(); 2740 } 2741 if (!other.getCustomJob().isEmpty()) { 2742 customJob_ = other.customJob_; 2743 bitField0_ |= 0x00000400; 2744 onChanged(); 2745 } 2746 internalGetMutableWebAccessUris().mergeFrom(other.internalGetWebAccessUris()); 2747 bitField0_ |= 0x00000800; 2748 this.mergeUnknownFields(other.getUnknownFields()); 2749 onChanged(); 2750 return this; 2751 } 2752 2753 @java.lang.Override isInitialized()2754 public final boolean isInitialized() { 2755 return true; 2756 } 2757 2758 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2759 public Builder mergeFrom( 2760 com.google.protobuf.CodedInputStream input, 2761 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2762 throws java.io.IOException { 2763 if (extensionRegistry == null) { 2764 throw new java.lang.NullPointerException(); 2765 } 2766 try { 2767 boolean done = false; 2768 while (!done) { 2769 int tag = input.readTag(); 2770 switch (tag) { 2771 case 0: 2772 done = true; 2773 break; 2774 case 10: 2775 { 2776 name_ = input.readStringRequireUtf8(); 2777 bitField0_ |= 0x00000001; 2778 break; 2779 } // case 10 2780 case 18: 2781 { 2782 id_ = input.readStringRequireUtf8(); 2783 bitField0_ |= 0x00000002; 2784 break; 2785 } // case 18 2786 case 24: 2787 { 2788 state_ = input.readEnum(); 2789 bitField0_ |= 0x00000004; 2790 break; 2791 } // case 24 2792 case 34: 2793 { 2794 com.google.cloud.aiplatform.v1.Trial.Parameter m = 2795 input.readMessage( 2796 com.google.cloud.aiplatform.v1.Trial.Parameter.parser(), extensionRegistry); 2797 if (parametersBuilder_ == null) { 2798 ensureParametersIsMutable(); 2799 parameters_.add(m); 2800 } else { 2801 parametersBuilder_.addMessage(m); 2802 } 2803 break; 2804 } // case 34 2805 case 42: 2806 { 2807 input.readMessage( 2808 getFinalMeasurementFieldBuilder().getBuilder(), extensionRegistry); 2809 bitField0_ |= 0x00000010; 2810 break; 2811 } // case 42 2812 case 50: 2813 { 2814 com.google.cloud.aiplatform.v1.Measurement m = 2815 input.readMessage( 2816 com.google.cloud.aiplatform.v1.Measurement.parser(), extensionRegistry); 2817 if (measurementsBuilder_ == null) { 2818 ensureMeasurementsIsMutable(); 2819 measurements_.add(m); 2820 } else { 2821 measurementsBuilder_.addMessage(m); 2822 } 2823 break; 2824 } // case 50 2825 case 58: 2826 { 2827 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); 2828 bitField0_ |= 0x00000040; 2829 break; 2830 } // case 58 2831 case 66: 2832 { 2833 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); 2834 bitField0_ |= 0x00000080; 2835 break; 2836 } // case 66 2837 case 74: 2838 { 2839 clientId_ = input.readStringRequireUtf8(); 2840 bitField0_ |= 0x00000100; 2841 break; 2842 } // case 74 2843 case 82: 2844 { 2845 infeasibleReason_ = input.readStringRequireUtf8(); 2846 bitField0_ |= 0x00000200; 2847 break; 2848 } // case 82 2849 case 90: 2850 { 2851 customJob_ = input.readStringRequireUtf8(); 2852 bitField0_ |= 0x00000400; 2853 break; 2854 } // case 90 2855 case 98: 2856 { 2857 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> webAccessUris__ = 2858 input.readMessage( 2859 WebAccessUrisDefaultEntryHolder.defaultEntry.getParserForType(), 2860 extensionRegistry); 2861 internalGetMutableWebAccessUris() 2862 .getMutableMap() 2863 .put(webAccessUris__.getKey(), webAccessUris__.getValue()); 2864 bitField0_ |= 0x00000800; 2865 break; 2866 } // case 98 2867 default: 2868 { 2869 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2870 done = true; // was an endgroup tag 2871 } 2872 break; 2873 } // default: 2874 } // switch (tag) 2875 } // while (!done) 2876 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2877 throw e.unwrapIOException(); 2878 } finally { 2879 onChanged(); 2880 } // finally 2881 return this; 2882 } 2883 2884 private int bitField0_; 2885 2886 private java.lang.Object name_ = ""; 2887 /** 2888 * 2889 * 2890 * <pre> 2891 * Output only. Resource name of the Trial assigned by the service. 2892 * </pre> 2893 * 2894 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2895 * 2896 * @return The name. 2897 */ getName()2898 public java.lang.String getName() { 2899 java.lang.Object ref = name_; 2900 if (!(ref instanceof java.lang.String)) { 2901 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2902 java.lang.String s = bs.toStringUtf8(); 2903 name_ = s; 2904 return s; 2905 } else { 2906 return (java.lang.String) ref; 2907 } 2908 } 2909 /** 2910 * 2911 * 2912 * <pre> 2913 * Output only. Resource name of the Trial assigned by the service. 2914 * </pre> 2915 * 2916 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2917 * 2918 * @return The bytes for name. 2919 */ getNameBytes()2920 public com.google.protobuf.ByteString getNameBytes() { 2921 java.lang.Object ref = name_; 2922 if (ref instanceof String) { 2923 com.google.protobuf.ByteString b = 2924 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2925 name_ = b; 2926 return b; 2927 } else { 2928 return (com.google.protobuf.ByteString) ref; 2929 } 2930 } 2931 /** 2932 * 2933 * 2934 * <pre> 2935 * Output only. Resource name of the Trial assigned by the service. 2936 * </pre> 2937 * 2938 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2939 * 2940 * @param value The name to set. 2941 * @return This builder for chaining. 2942 */ setName(java.lang.String value)2943 public Builder setName(java.lang.String value) { 2944 if (value == null) { 2945 throw new NullPointerException(); 2946 } 2947 name_ = value; 2948 bitField0_ |= 0x00000001; 2949 onChanged(); 2950 return this; 2951 } 2952 /** 2953 * 2954 * 2955 * <pre> 2956 * Output only. Resource name of the Trial assigned by the service. 2957 * </pre> 2958 * 2959 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2960 * 2961 * @return This builder for chaining. 2962 */ clearName()2963 public Builder clearName() { 2964 name_ = getDefaultInstance().getName(); 2965 bitField0_ = (bitField0_ & ~0x00000001); 2966 onChanged(); 2967 return this; 2968 } 2969 /** 2970 * 2971 * 2972 * <pre> 2973 * Output only. Resource name of the Trial assigned by the service. 2974 * </pre> 2975 * 2976 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 2977 * 2978 * @param value The bytes for name to set. 2979 * @return This builder for chaining. 2980 */ setNameBytes(com.google.protobuf.ByteString value)2981 public Builder setNameBytes(com.google.protobuf.ByteString value) { 2982 if (value == null) { 2983 throw new NullPointerException(); 2984 } 2985 checkByteStringIsUtf8(value); 2986 name_ = value; 2987 bitField0_ |= 0x00000001; 2988 onChanged(); 2989 return this; 2990 } 2991 2992 private java.lang.Object id_ = ""; 2993 /** 2994 * 2995 * 2996 * <pre> 2997 * Output only. The identifier of the Trial assigned by the service. 2998 * </pre> 2999 * 3000 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3001 * 3002 * @return The id. 3003 */ getId()3004 public java.lang.String getId() { 3005 java.lang.Object ref = id_; 3006 if (!(ref instanceof java.lang.String)) { 3007 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3008 java.lang.String s = bs.toStringUtf8(); 3009 id_ = s; 3010 return s; 3011 } else { 3012 return (java.lang.String) ref; 3013 } 3014 } 3015 /** 3016 * 3017 * 3018 * <pre> 3019 * Output only. The identifier of the Trial assigned by the service. 3020 * </pre> 3021 * 3022 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3023 * 3024 * @return The bytes for id. 3025 */ getIdBytes()3026 public com.google.protobuf.ByteString getIdBytes() { 3027 java.lang.Object ref = id_; 3028 if (ref instanceof String) { 3029 com.google.protobuf.ByteString b = 3030 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3031 id_ = b; 3032 return b; 3033 } else { 3034 return (com.google.protobuf.ByteString) ref; 3035 } 3036 } 3037 /** 3038 * 3039 * 3040 * <pre> 3041 * Output only. The identifier of the Trial assigned by the service. 3042 * </pre> 3043 * 3044 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3045 * 3046 * @param value The id to set. 3047 * @return This builder for chaining. 3048 */ setId(java.lang.String value)3049 public Builder setId(java.lang.String value) { 3050 if (value == null) { 3051 throw new NullPointerException(); 3052 } 3053 id_ = value; 3054 bitField0_ |= 0x00000002; 3055 onChanged(); 3056 return this; 3057 } 3058 /** 3059 * 3060 * 3061 * <pre> 3062 * Output only. The identifier of the Trial assigned by the service. 3063 * </pre> 3064 * 3065 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3066 * 3067 * @return This builder for chaining. 3068 */ clearId()3069 public Builder clearId() { 3070 id_ = getDefaultInstance().getId(); 3071 bitField0_ = (bitField0_ & ~0x00000002); 3072 onChanged(); 3073 return this; 3074 } 3075 /** 3076 * 3077 * 3078 * <pre> 3079 * Output only. The identifier of the Trial assigned by the service. 3080 * </pre> 3081 * 3082 * <code>string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 3083 * 3084 * @param value The bytes for id to set. 3085 * @return This builder for chaining. 3086 */ setIdBytes(com.google.protobuf.ByteString value)3087 public Builder setIdBytes(com.google.protobuf.ByteString value) { 3088 if (value == null) { 3089 throw new NullPointerException(); 3090 } 3091 checkByteStringIsUtf8(value); 3092 id_ = value; 3093 bitField0_ |= 0x00000002; 3094 onChanged(); 3095 return this; 3096 } 3097 3098 private int state_ = 0; 3099 /** 3100 * 3101 * 3102 * <pre> 3103 * Output only. The detailed state of the Trial. 3104 * </pre> 3105 * 3106 * <code> 3107 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3108 * </code> 3109 * 3110 * @return The enum numeric value on the wire for state. 3111 */ 3112 @java.lang.Override getStateValue()3113 public int getStateValue() { 3114 return state_; 3115 } 3116 /** 3117 * 3118 * 3119 * <pre> 3120 * Output only. The detailed state of the Trial. 3121 * </pre> 3122 * 3123 * <code> 3124 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3125 * </code> 3126 * 3127 * @param value The enum numeric value on the wire for state to set. 3128 * @return This builder for chaining. 3129 */ setStateValue(int value)3130 public Builder setStateValue(int value) { 3131 state_ = value; 3132 bitField0_ |= 0x00000004; 3133 onChanged(); 3134 return this; 3135 } 3136 /** 3137 * 3138 * 3139 * <pre> 3140 * Output only. The detailed state of the Trial. 3141 * </pre> 3142 * 3143 * <code> 3144 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3145 * </code> 3146 * 3147 * @return The state. 3148 */ 3149 @java.lang.Override getState()3150 public com.google.cloud.aiplatform.v1.Trial.State getState() { 3151 com.google.cloud.aiplatform.v1.Trial.State result = 3152 com.google.cloud.aiplatform.v1.Trial.State.forNumber(state_); 3153 return result == null ? com.google.cloud.aiplatform.v1.Trial.State.UNRECOGNIZED : result; 3154 } 3155 /** 3156 * 3157 * 3158 * <pre> 3159 * Output only. The detailed state of the Trial. 3160 * </pre> 3161 * 3162 * <code> 3163 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3164 * </code> 3165 * 3166 * @param value The state to set. 3167 * @return This builder for chaining. 3168 */ setState(com.google.cloud.aiplatform.v1.Trial.State value)3169 public Builder setState(com.google.cloud.aiplatform.v1.Trial.State value) { 3170 if (value == null) { 3171 throw new NullPointerException(); 3172 } 3173 bitField0_ |= 0x00000004; 3174 state_ = value.getNumber(); 3175 onChanged(); 3176 return this; 3177 } 3178 /** 3179 * 3180 * 3181 * <pre> 3182 * Output only. The detailed state of the Trial. 3183 * </pre> 3184 * 3185 * <code> 3186 * .google.cloud.aiplatform.v1.Trial.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3187 * </code> 3188 * 3189 * @return This builder for chaining. 3190 */ clearState()3191 public Builder clearState() { 3192 bitField0_ = (bitField0_ & ~0x00000004); 3193 state_ = 0; 3194 onChanged(); 3195 return this; 3196 } 3197 3198 private java.util.List<com.google.cloud.aiplatform.v1.Trial.Parameter> parameters_ = 3199 java.util.Collections.emptyList(); 3200 ensureParametersIsMutable()3201 private void ensureParametersIsMutable() { 3202 if (!((bitField0_ & 0x00000008) != 0)) { 3203 parameters_ = 3204 new java.util.ArrayList<com.google.cloud.aiplatform.v1.Trial.Parameter>(parameters_); 3205 bitField0_ |= 0x00000008; 3206 } 3207 } 3208 3209 private com.google.protobuf.RepeatedFieldBuilderV3< 3210 com.google.cloud.aiplatform.v1.Trial.Parameter, 3211 com.google.cloud.aiplatform.v1.Trial.Parameter.Builder, 3212 com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder> 3213 parametersBuilder_; 3214 3215 /** 3216 * 3217 * 3218 * <pre> 3219 * Output only. The parameters of the Trial. 3220 * </pre> 3221 * 3222 * <code> 3223 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3224 * </code> 3225 */ getParametersList()3226 public java.util.List<com.google.cloud.aiplatform.v1.Trial.Parameter> getParametersList() { 3227 if (parametersBuilder_ == null) { 3228 return java.util.Collections.unmodifiableList(parameters_); 3229 } else { 3230 return parametersBuilder_.getMessageList(); 3231 } 3232 } 3233 /** 3234 * 3235 * 3236 * <pre> 3237 * Output only. The parameters of the Trial. 3238 * </pre> 3239 * 3240 * <code> 3241 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3242 * </code> 3243 */ getParametersCount()3244 public int getParametersCount() { 3245 if (parametersBuilder_ == null) { 3246 return parameters_.size(); 3247 } else { 3248 return parametersBuilder_.getCount(); 3249 } 3250 } 3251 /** 3252 * 3253 * 3254 * <pre> 3255 * Output only. The parameters of the Trial. 3256 * </pre> 3257 * 3258 * <code> 3259 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3260 * </code> 3261 */ getParameters(int index)3262 public com.google.cloud.aiplatform.v1.Trial.Parameter getParameters(int index) { 3263 if (parametersBuilder_ == null) { 3264 return parameters_.get(index); 3265 } else { 3266 return parametersBuilder_.getMessage(index); 3267 } 3268 } 3269 /** 3270 * 3271 * 3272 * <pre> 3273 * Output only. The parameters of the Trial. 3274 * </pre> 3275 * 3276 * <code> 3277 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3278 * </code> 3279 */ setParameters(int index, com.google.cloud.aiplatform.v1.Trial.Parameter value)3280 public Builder setParameters(int index, com.google.cloud.aiplatform.v1.Trial.Parameter value) { 3281 if (parametersBuilder_ == null) { 3282 if (value == null) { 3283 throw new NullPointerException(); 3284 } 3285 ensureParametersIsMutable(); 3286 parameters_.set(index, value); 3287 onChanged(); 3288 } else { 3289 parametersBuilder_.setMessage(index, value); 3290 } 3291 return this; 3292 } 3293 /** 3294 * 3295 * 3296 * <pre> 3297 * Output only. The parameters of the Trial. 3298 * </pre> 3299 * 3300 * <code> 3301 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3302 * </code> 3303 */ setParameters( int index, com.google.cloud.aiplatform.v1.Trial.Parameter.Builder builderForValue)3304 public Builder setParameters( 3305 int index, com.google.cloud.aiplatform.v1.Trial.Parameter.Builder builderForValue) { 3306 if (parametersBuilder_ == null) { 3307 ensureParametersIsMutable(); 3308 parameters_.set(index, builderForValue.build()); 3309 onChanged(); 3310 } else { 3311 parametersBuilder_.setMessage(index, builderForValue.build()); 3312 } 3313 return this; 3314 } 3315 /** 3316 * 3317 * 3318 * <pre> 3319 * Output only. The parameters of the Trial. 3320 * </pre> 3321 * 3322 * <code> 3323 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3324 * </code> 3325 */ addParameters(com.google.cloud.aiplatform.v1.Trial.Parameter value)3326 public Builder addParameters(com.google.cloud.aiplatform.v1.Trial.Parameter value) { 3327 if (parametersBuilder_ == null) { 3328 if (value == null) { 3329 throw new NullPointerException(); 3330 } 3331 ensureParametersIsMutable(); 3332 parameters_.add(value); 3333 onChanged(); 3334 } else { 3335 parametersBuilder_.addMessage(value); 3336 } 3337 return this; 3338 } 3339 /** 3340 * 3341 * 3342 * <pre> 3343 * Output only. The parameters of the Trial. 3344 * </pre> 3345 * 3346 * <code> 3347 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3348 * </code> 3349 */ addParameters(int index, com.google.cloud.aiplatform.v1.Trial.Parameter value)3350 public Builder addParameters(int index, com.google.cloud.aiplatform.v1.Trial.Parameter value) { 3351 if (parametersBuilder_ == null) { 3352 if (value == null) { 3353 throw new NullPointerException(); 3354 } 3355 ensureParametersIsMutable(); 3356 parameters_.add(index, value); 3357 onChanged(); 3358 } else { 3359 parametersBuilder_.addMessage(index, value); 3360 } 3361 return this; 3362 } 3363 /** 3364 * 3365 * 3366 * <pre> 3367 * Output only. The parameters of the Trial. 3368 * </pre> 3369 * 3370 * <code> 3371 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3372 * </code> 3373 */ addParameters( com.google.cloud.aiplatform.v1.Trial.Parameter.Builder builderForValue)3374 public Builder addParameters( 3375 com.google.cloud.aiplatform.v1.Trial.Parameter.Builder builderForValue) { 3376 if (parametersBuilder_ == null) { 3377 ensureParametersIsMutable(); 3378 parameters_.add(builderForValue.build()); 3379 onChanged(); 3380 } else { 3381 parametersBuilder_.addMessage(builderForValue.build()); 3382 } 3383 return this; 3384 } 3385 /** 3386 * 3387 * 3388 * <pre> 3389 * Output only. The parameters of the Trial. 3390 * </pre> 3391 * 3392 * <code> 3393 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3394 * </code> 3395 */ addParameters( int index, com.google.cloud.aiplatform.v1.Trial.Parameter.Builder builderForValue)3396 public Builder addParameters( 3397 int index, com.google.cloud.aiplatform.v1.Trial.Parameter.Builder builderForValue) { 3398 if (parametersBuilder_ == null) { 3399 ensureParametersIsMutable(); 3400 parameters_.add(index, builderForValue.build()); 3401 onChanged(); 3402 } else { 3403 parametersBuilder_.addMessage(index, builderForValue.build()); 3404 } 3405 return this; 3406 } 3407 /** 3408 * 3409 * 3410 * <pre> 3411 * Output only. The parameters of the Trial. 3412 * </pre> 3413 * 3414 * <code> 3415 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3416 * </code> 3417 */ addAllParameters( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1.Trial.Parameter> values)3418 public Builder addAllParameters( 3419 java.lang.Iterable<? extends com.google.cloud.aiplatform.v1.Trial.Parameter> values) { 3420 if (parametersBuilder_ == null) { 3421 ensureParametersIsMutable(); 3422 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); 3423 onChanged(); 3424 } else { 3425 parametersBuilder_.addAllMessages(values); 3426 } 3427 return this; 3428 } 3429 /** 3430 * 3431 * 3432 * <pre> 3433 * Output only. The parameters of the Trial. 3434 * </pre> 3435 * 3436 * <code> 3437 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3438 * </code> 3439 */ clearParameters()3440 public Builder clearParameters() { 3441 if (parametersBuilder_ == null) { 3442 parameters_ = java.util.Collections.emptyList(); 3443 bitField0_ = (bitField0_ & ~0x00000008); 3444 onChanged(); 3445 } else { 3446 parametersBuilder_.clear(); 3447 } 3448 return this; 3449 } 3450 /** 3451 * 3452 * 3453 * <pre> 3454 * Output only. The parameters of the Trial. 3455 * </pre> 3456 * 3457 * <code> 3458 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3459 * </code> 3460 */ removeParameters(int index)3461 public Builder removeParameters(int index) { 3462 if (parametersBuilder_ == null) { 3463 ensureParametersIsMutable(); 3464 parameters_.remove(index); 3465 onChanged(); 3466 } else { 3467 parametersBuilder_.remove(index); 3468 } 3469 return this; 3470 } 3471 /** 3472 * 3473 * 3474 * <pre> 3475 * Output only. The parameters of the Trial. 3476 * </pre> 3477 * 3478 * <code> 3479 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3480 * </code> 3481 */ getParametersBuilder(int index)3482 public com.google.cloud.aiplatform.v1.Trial.Parameter.Builder getParametersBuilder(int index) { 3483 return getParametersFieldBuilder().getBuilder(index); 3484 } 3485 /** 3486 * 3487 * 3488 * <pre> 3489 * Output only. The parameters of the Trial. 3490 * </pre> 3491 * 3492 * <code> 3493 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3494 * </code> 3495 */ getParametersOrBuilder( int index)3496 public com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder getParametersOrBuilder( 3497 int index) { 3498 if (parametersBuilder_ == null) { 3499 return parameters_.get(index); 3500 } else { 3501 return parametersBuilder_.getMessageOrBuilder(index); 3502 } 3503 } 3504 /** 3505 * 3506 * 3507 * <pre> 3508 * Output only. The parameters of the Trial. 3509 * </pre> 3510 * 3511 * <code> 3512 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3513 * </code> 3514 */ 3515 public java.util.List<? extends com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder> getParametersOrBuilderList()3516 getParametersOrBuilderList() { 3517 if (parametersBuilder_ != null) { 3518 return parametersBuilder_.getMessageOrBuilderList(); 3519 } else { 3520 return java.util.Collections.unmodifiableList(parameters_); 3521 } 3522 } 3523 /** 3524 * 3525 * 3526 * <pre> 3527 * Output only. The parameters of the Trial. 3528 * </pre> 3529 * 3530 * <code> 3531 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3532 * </code> 3533 */ addParametersBuilder()3534 public com.google.cloud.aiplatform.v1.Trial.Parameter.Builder addParametersBuilder() { 3535 return getParametersFieldBuilder() 3536 .addBuilder(com.google.cloud.aiplatform.v1.Trial.Parameter.getDefaultInstance()); 3537 } 3538 /** 3539 * 3540 * 3541 * <pre> 3542 * Output only. The parameters of the Trial. 3543 * </pre> 3544 * 3545 * <code> 3546 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3547 * </code> 3548 */ addParametersBuilder(int index)3549 public com.google.cloud.aiplatform.v1.Trial.Parameter.Builder addParametersBuilder(int index) { 3550 return getParametersFieldBuilder() 3551 .addBuilder(index, com.google.cloud.aiplatform.v1.Trial.Parameter.getDefaultInstance()); 3552 } 3553 /** 3554 * 3555 * 3556 * <pre> 3557 * Output only. The parameters of the Trial. 3558 * </pre> 3559 * 3560 * <code> 3561 * repeated .google.cloud.aiplatform.v1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3562 * </code> 3563 */ 3564 public java.util.List<com.google.cloud.aiplatform.v1.Trial.Parameter.Builder> getParametersBuilderList()3565 getParametersBuilderList() { 3566 return getParametersFieldBuilder().getBuilderList(); 3567 } 3568 3569 private com.google.protobuf.RepeatedFieldBuilderV3< 3570 com.google.cloud.aiplatform.v1.Trial.Parameter, 3571 com.google.cloud.aiplatform.v1.Trial.Parameter.Builder, 3572 com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder> getParametersFieldBuilder()3573 getParametersFieldBuilder() { 3574 if (parametersBuilder_ == null) { 3575 parametersBuilder_ = 3576 new com.google.protobuf.RepeatedFieldBuilderV3< 3577 com.google.cloud.aiplatform.v1.Trial.Parameter, 3578 com.google.cloud.aiplatform.v1.Trial.Parameter.Builder, 3579 com.google.cloud.aiplatform.v1.Trial.ParameterOrBuilder>( 3580 parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); 3581 parameters_ = null; 3582 } 3583 return parametersBuilder_; 3584 } 3585 3586 private com.google.cloud.aiplatform.v1.Measurement finalMeasurement_; 3587 private com.google.protobuf.SingleFieldBuilderV3< 3588 com.google.cloud.aiplatform.v1.Measurement, 3589 com.google.cloud.aiplatform.v1.Measurement.Builder, 3590 com.google.cloud.aiplatform.v1.MeasurementOrBuilder> 3591 finalMeasurementBuilder_; 3592 /** 3593 * 3594 * 3595 * <pre> 3596 * Output only. The final measurement containing the objective value. 3597 * </pre> 3598 * 3599 * <code> 3600 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3601 * </code> 3602 * 3603 * @return Whether the finalMeasurement field is set. 3604 */ hasFinalMeasurement()3605 public boolean hasFinalMeasurement() { 3606 return ((bitField0_ & 0x00000010) != 0); 3607 } 3608 /** 3609 * 3610 * 3611 * <pre> 3612 * Output only. The final measurement containing the objective value. 3613 * </pre> 3614 * 3615 * <code> 3616 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3617 * </code> 3618 * 3619 * @return The finalMeasurement. 3620 */ getFinalMeasurement()3621 public com.google.cloud.aiplatform.v1.Measurement getFinalMeasurement() { 3622 if (finalMeasurementBuilder_ == null) { 3623 return finalMeasurement_ == null 3624 ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() 3625 : finalMeasurement_; 3626 } else { 3627 return finalMeasurementBuilder_.getMessage(); 3628 } 3629 } 3630 /** 3631 * 3632 * 3633 * <pre> 3634 * Output only. The final measurement containing the objective value. 3635 * </pre> 3636 * 3637 * <code> 3638 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3639 * </code> 3640 */ setFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement value)3641 public Builder setFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement value) { 3642 if (finalMeasurementBuilder_ == null) { 3643 if (value == null) { 3644 throw new NullPointerException(); 3645 } 3646 finalMeasurement_ = value; 3647 } else { 3648 finalMeasurementBuilder_.setMessage(value); 3649 } 3650 bitField0_ |= 0x00000010; 3651 onChanged(); 3652 return this; 3653 } 3654 /** 3655 * 3656 * 3657 * <pre> 3658 * Output only. The final measurement containing the objective value. 3659 * </pre> 3660 * 3661 * <code> 3662 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3663 * </code> 3664 */ setFinalMeasurement( com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue)3665 public Builder setFinalMeasurement( 3666 com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { 3667 if (finalMeasurementBuilder_ == null) { 3668 finalMeasurement_ = builderForValue.build(); 3669 } else { 3670 finalMeasurementBuilder_.setMessage(builderForValue.build()); 3671 } 3672 bitField0_ |= 0x00000010; 3673 onChanged(); 3674 return this; 3675 } 3676 /** 3677 * 3678 * 3679 * <pre> 3680 * Output only. The final measurement containing the objective value. 3681 * </pre> 3682 * 3683 * <code> 3684 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3685 * </code> 3686 */ mergeFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement value)3687 public Builder mergeFinalMeasurement(com.google.cloud.aiplatform.v1.Measurement value) { 3688 if (finalMeasurementBuilder_ == null) { 3689 if (((bitField0_ & 0x00000010) != 0) 3690 && finalMeasurement_ != null 3691 && finalMeasurement_ 3692 != com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()) { 3693 getFinalMeasurementBuilder().mergeFrom(value); 3694 } else { 3695 finalMeasurement_ = value; 3696 } 3697 } else { 3698 finalMeasurementBuilder_.mergeFrom(value); 3699 } 3700 bitField0_ |= 0x00000010; 3701 onChanged(); 3702 return this; 3703 } 3704 /** 3705 * 3706 * 3707 * <pre> 3708 * Output only. The final measurement containing the objective value. 3709 * </pre> 3710 * 3711 * <code> 3712 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3713 * </code> 3714 */ clearFinalMeasurement()3715 public Builder clearFinalMeasurement() { 3716 bitField0_ = (bitField0_ & ~0x00000010); 3717 finalMeasurement_ = null; 3718 if (finalMeasurementBuilder_ != null) { 3719 finalMeasurementBuilder_.dispose(); 3720 finalMeasurementBuilder_ = null; 3721 } 3722 onChanged(); 3723 return this; 3724 } 3725 /** 3726 * 3727 * 3728 * <pre> 3729 * Output only. The final measurement containing the objective value. 3730 * </pre> 3731 * 3732 * <code> 3733 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3734 * </code> 3735 */ getFinalMeasurementBuilder()3736 public com.google.cloud.aiplatform.v1.Measurement.Builder getFinalMeasurementBuilder() { 3737 bitField0_ |= 0x00000010; 3738 onChanged(); 3739 return getFinalMeasurementFieldBuilder().getBuilder(); 3740 } 3741 /** 3742 * 3743 * 3744 * <pre> 3745 * Output only. The final measurement containing the objective value. 3746 * </pre> 3747 * 3748 * <code> 3749 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3750 * </code> 3751 */ getFinalMeasurementOrBuilder()3752 public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getFinalMeasurementOrBuilder() { 3753 if (finalMeasurementBuilder_ != null) { 3754 return finalMeasurementBuilder_.getMessageOrBuilder(); 3755 } else { 3756 return finalMeasurement_ == null 3757 ? com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance() 3758 : finalMeasurement_; 3759 } 3760 } 3761 /** 3762 * 3763 * 3764 * <pre> 3765 * Output only. The final measurement containing the objective value. 3766 * </pre> 3767 * 3768 * <code> 3769 * .google.cloud.aiplatform.v1.Measurement final_measurement = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3770 * </code> 3771 */ 3772 private com.google.protobuf.SingleFieldBuilderV3< 3773 com.google.cloud.aiplatform.v1.Measurement, 3774 com.google.cloud.aiplatform.v1.Measurement.Builder, 3775 com.google.cloud.aiplatform.v1.MeasurementOrBuilder> getFinalMeasurementFieldBuilder()3776 getFinalMeasurementFieldBuilder() { 3777 if (finalMeasurementBuilder_ == null) { 3778 finalMeasurementBuilder_ = 3779 new com.google.protobuf.SingleFieldBuilderV3< 3780 com.google.cloud.aiplatform.v1.Measurement, 3781 com.google.cloud.aiplatform.v1.Measurement.Builder, 3782 com.google.cloud.aiplatform.v1.MeasurementOrBuilder>( 3783 getFinalMeasurement(), getParentForChildren(), isClean()); 3784 finalMeasurement_ = null; 3785 } 3786 return finalMeasurementBuilder_; 3787 } 3788 3789 private java.util.List<com.google.cloud.aiplatform.v1.Measurement> measurements_ = 3790 java.util.Collections.emptyList(); 3791 ensureMeasurementsIsMutable()3792 private void ensureMeasurementsIsMutable() { 3793 if (!((bitField0_ & 0x00000020) != 0)) { 3794 measurements_ = 3795 new java.util.ArrayList<com.google.cloud.aiplatform.v1.Measurement>(measurements_); 3796 bitField0_ |= 0x00000020; 3797 } 3798 } 3799 3800 private com.google.protobuf.RepeatedFieldBuilderV3< 3801 com.google.cloud.aiplatform.v1.Measurement, 3802 com.google.cloud.aiplatform.v1.Measurement.Builder, 3803 com.google.cloud.aiplatform.v1.MeasurementOrBuilder> 3804 measurementsBuilder_; 3805 3806 /** 3807 * 3808 * 3809 * <pre> 3810 * Output only. A list of measurements that are strictly lexicographically 3811 * ordered by their induced tuples (steps, elapsed_duration). 3812 * These are used for early stopping computations. 3813 * </pre> 3814 * 3815 * <code> 3816 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3817 * </code> 3818 */ getMeasurementsList()3819 public java.util.List<com.google.cloud.aiplatform.v1.Measurement> getMeasurementsList() { 3820 if (measurementsBuilder_ == null) { 3821 return java.util.Collections.unmodifiableList(measurements_); 3822 } else { 3823 return measurementsBuilder_.getMessageList(); 3824 } 3825 } 3826 /** 3827 * 3828 * 3829 * <pre> 3830 * Output only. A list of measurements that are strictly lexicographically 3831 * ordered by their induced tuples (steps, elapsed_duration). 3832 * These are used for early stopping computations. 3833 * </pre> 3834 * 3835 * <code> 3836 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3837 * </code> 3838 */ getMeasurementsCount()3839 public int getMeasurementsCount() { 3840 if (measurementsBuilder_ == null) { 3841 return measurements_.size(); 3842 } else { 3843 return measurementsBuilder_.getCount(); 3844 } 3845 } 3846 /** 3847 * 3848 * 3849 * <pre> 3850 * Output only. A list of measurements that are strictly lexicographically 3851 * ordered by their induced tuples (steps, elapsed_duration). 3852 * These are used for early stopping computations. 3853 * </pre> 3854 * 3855 * <code> 3856 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3857 * </code> 3858 */ getMeasurements(int index)3859 public com.google.cloud.aiplatform.v1.Measurement getMeasurements(int index) { 3860 if (measurementsBuilder_ == null) { 3861 return measurements_.get(index); 3862 } else { 3863 return measurementsBuilder_.getMessage(index); 3864 } 3865 } 3866 /** 3867 * 3868 * 3869 * <pre> 3870 * Output only. A list of measurements that are strictly lexicographically 3871 * ordered by their induced tuples (steps, elapsed_duration). 3872 * These are used for early stopping computations. 3873 * </pre> 3874 * 3875 * <code> 3876 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3877 * </code> 3878 */ setMeasurements(int index, com.google.cloud.aiplatform.v1.Measurement value)3879 public Builder setMeasurements(int index, com.google.cloud.aiplatform.v1.Measurement value) { 3880 if (measurementsBuilder_ == null) { 3881 if (value == null) { 3882 throw new NullPointerException(); 3883 } 3884 ensureMeasurementsIsMutable(); 3885 measurements_.set(index, value); 3886 onChanged(); 3887 } else { 3888 measurementsBuilder_.setMessage(index, value); 3889 } 3890 return this; 3891 } 3892 /** 3893 * 3894 * 3895 * <pre> 3896 * Output only. A list of measurements that are strictly lexicographically 3897 * ordered by their induced tuples (steps, elapsed_duration). 3898 * These are used for early stopping computations. 3899 * </pre> 3900 * 3901 * <code> 3902 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3903 * </code> 3904 */ setMeasurements( int index, com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue)3905 public Builder setMeasurements( 3906 int index, com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { 3907 if (measurementsBuilder_ == null) { 3908 ensureMeasurementsIsMutable(); 3909 measurements_.set(index, builderForValue.build()); 3910 onChanged(); 3911 } else { 3912 measurementsBuilder_.setMessage(index, builderForValue.build()); 3913 } 3914 return this; 3915 } 3916 /** 3917 * 3918 * 3919 * <pre> 3920 * Output only. A list of measurements that are strictly lexicographically 3921 * ordered by their induced tuples (steps, elapsed_duration). 3922 * These are used for early stopping computations. 3923 * </pre> 3924 * 3925 * <code> 3926 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3927 * </code> 3928 */ addMeasurements(com.google.cloud.aiplatform.v1.Measurement value)3929 public Builder addMeasurements(com.google.cloud.aiplatform.v1.Measurement value) { 3930 if (measurementsBuilder_ == null) { 3931 if (value == null) { 3932 throw new NullPointerException(); 3933 } 3934 ensureMeasurementsIsMutable(); 3935 measurements_.add(value); 3936 onChanged(); 3937 } else { 3938 measurementsBuilder_.addMessage(value); 3939 } 3940 return this; 3941 } 3942 /** 3943 * 3944 * 3945 * <pre> 3946 * Output only. A list of measurements that are strictly lexicographically 3947 * ordered by their induced tuples (steps, elapsed_duration). 3948 * These are used for early stopping computations. 3949 * </pre> 3950 * 3951 * <code> 3952 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3953 * </code> 3954 */ addMeasurements(int index, com.google.cloud.aiplatform.v1.Measurement value)3955 public Builder addMeasurements(int index, com.google.cloud.aiplatform.v1.Measurement value) { 3956 if (measurementsBuilder_ == null) { 3957 if (value == null) { 3958 throw new NullPointerException(); 3959 } 3960 ensureMeasurementsIsMutable(); 3961 measurements_.add(index, value); 3962 onChanged(); 3963 } else { 3964 measurementsBuilder_.addMessage(index, value); 3965 } 3966 return this; 3967 } 3968 /** 3969 * 3970 * 3971 * <pre> 3972 * Output only. A list of measurements that are strictly lexicographically 3973 * ordered by their induced tuples (steps, elapsed_duration). 3974 * These are used for early stopping computations. 3975 * </pre> 3976 * 3977 * <code> 3978 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 3979 * </code> 3980 */ addMeasurements( com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue)3981 public Builder addMeasurements( 3982 com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { 3983 if (measurementsBuilder_ == null) { 3984 ensureMeasurementsIsMutable(); 3985 measurements_.add(builderForValue.build()); 3986 onChanged(); 3987 } else { 3988 measurementsBuilder_.addMessage(builderForValue.build()); 3989 } 3990 return this; 3991 } 3992 /** 3993 * 3994 * 3995 * <pre> 3996 * Output only. A list of measurements that are strictly lexicographically 3997 * ordered by their induced tuples (steps, elapsed_duration). 3998 * These are used for early stopping computations. 3999 * </pre> 4000 * 4001 * <code> 4002 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4003 * </code> 4004 */ addMeasurements( int index, com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue)4005 public Builder addMeasurements( 4006 int index, com.google.cloud.aiplatform.v1.Measurement.Builder builderForValue) { 4007 if (measurementsBuilder_ == null) { 4008 ensureMeasurementsIsMutable(); 4009 measurements_.add(index, builderForValue.build()); 4010 onChanged(); 4011 } else { 4012 measurementsBuilder_.addMessage(index, builderForValue.build()); 4013 } 4014 return this; 4015 } 4016 /** 4017 * 4018 * 4019 * <pre> 4020 * Output only. A list of measurements that are strictly lexicographically 4021 * ordered by their induced tuples (steps, elapsed_duration). 4022 * These are used for early stopping computations. 4023 * </pre> 4024 * 4025 * <code> 4026 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4027 * </code> 4028 */ addAllMeasurements( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1.Measurement> values)4029 public Builder addAllMeasurements( 4030 java.lang.Iterable<? extends com.google.cloud.aiplatform.v1.Measurement> values) { 4031 if (measurementsBuilder_ == null) { 4032 ensureMeasurementsIsMutable(); 4033 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, measurements_); 4034 onChanged(); 4035 } else { 4036 measurementsBuilder_.addAllMessages(values); 4037 } 4038 return this; 4039 } 4040 /** 4041 * 4042 * 4043 * <pre> 4044 * Output only. A list of measurements that are strictly lexicographically 4045 * ordered by their induced tuples (steps, elapsed_duration). 4046 * These are used for early stopping computations. 4047 * </pre> 4048 * 4049 * <code> 4050 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4051 * </code> 4052 */ clearMeasurements()4053 public Builder clearMeasurements() { 4054 if (measurementsBuilder_ == null) { 4055 measurements_ = java.util.Collections.emptyList(); 4056 bitField0_ = (bitField0_ & ~0x00000020); 4057 onChanged(); 4058 } else { 4059 measurementsBuilder_.clear(); 4060 } 4061 return this; 4062 } 4063 /** 4064 * 4065 * 4066 * <pre> 4067 * Output only. A list of measurements that are strictly lexicographically 4068 * ordered by their induced tuples (steps, elapsed_duration). 4069 * These are used for early stopping computations. 4070 * </pre> 4071 * 4072 * <code> 4073 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4074 * </code> 4075 */ removeMeasurements(int index)4076 public Builder removeMeasurements(int index) { 4077 if (measurementsBuilder_ == null) { 4078 ensureMeasurementsIsMutable(); 4079 measurements_.remove(index); 4080 onChanged(); 4081 } else { 4082 measurementsBuilder_.remove(index); 4083 } 4084 return this; 4085 } 4086 /** 4087 * 4088 * 4089 * <pre> 4090 * Output only. A list of measurements that are strictly lexicographically 4091 * ordered by their induced tuples (steps, elapsed_duration). 4092 * These are used for early stopping computations. 4093 * </pre> 4094 * 4095 * <code> 4096 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4097 * </code> 4098 */ getMeasurementsBuilder(int index)4099 public com.google.cloud.aiplatform.v1.Measurement.Builder getMeasurementsBuilder(int index) { 4100 return getMeasurementsFieldBuilder().getBuilder(index); 4101 } 4102 /** 4103 * 4104 * 4105 * <pre> 4106 * Output only. A list of measurements that are strictly lexicographically 4107 * ordered by their induced tuples (steps, elapsed_duration). 4108 * These are used for early stopping computations. 4109 * </pre> 4110 * 4111 * <code> 4112 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4113 * </code> 4114 */ getMeasurementsOrBuilder(int index)4115 public com.google.cloud.aiplatform.v1.MeasurementOrBuilder getMeasurementsOrBuilder(int index) { 4116 if (measurementsBuilder_ == null) { 4117 return measurements_.get(index); 4118 } else { 4119 return measurementsBuilder_.getMessageOrBuilder(index); 4120 } 4121 } 4122 /** 4123 * 4124 * 4125 * <pre> 4126 * Output only. A list of measurements that are strictly lexicographically 4127 * ordered by their induced tuples (steps, elapsed_duration). 4128 * These are used for early stopping computations. 4129 * </pre> 4130 * 4131 * <code> 4132 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4133 * </code> 4134 */ 4135 public java.util.List<? extends com.google.cloud.aiplatform.v1.MeasurementOrBuilder> getMeasurementsOrBuilderList()4136 getMeasurementsOrBuilderList() { 4137 if (measurementsBuilder_ != null) { 4138 return measurementsBuilder_.getMessageOrBuilderList(); 4139 } else { 4140 return java.util.Collections.unmodifiableList(measurements_); 4141 } 4142 } 4143 /** 4144 * 4145 * 4146 * <pre> 4147 * Output only. A list of measurements that are strictly lexicographically 4148 * ordered by their induced tuples (steps, elapsed_duration). 4149 * These are used for early stopping computations. 4150 * </pre> 4151 * 4152 * <code> 4153 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4154 * </code> 4155 */ addMeasurementsBuilder()4156 public com.google.cloud.aiplatform.v1.Measurement.Builder addMeasurementsBuilder() { 4157 return getMeasurementsFieldBuilder() 4158 .addBuilder(com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()); 4159 } 4160 /** 4161 * 4162 * 4163 * <pre> 4164 * Output only. A list of measurements that are strictly lexicographically 4165 * ordered by their induced tuples (steps, elapsed_duration). 4166 * These are used for early stopping computations. 4167 * </pre> 4168 * 4169 * <code> 4170 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4171 * </code> 4172 */ addMeasurementsBuilder(int index)4173 public com.google.cloud.aiplatform.v1.Measurement.Builder addMeasurementsBuilder(int index) { 4174 return getMeasurementsFieldBuilder() 4175 .addBuilder(index, com.google.cloud.aiplatform.v1.Measurement.getDefaultInstance()); 4176 } 4177 /** 4178 * 4179 * 4180 * <pre> 4181 * Output only. A list of measurements that are strictly lexicographically 4182 * ordered by their induced tuples (steps, elapsed_duration). 4183 * These are used for early stopping computations. 4184 * </pre> 4185 * 4186 * <code> 4187 * repeated .google.cloud.aiplatform.v1.Measurement measurements = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4188 * </code> 4189 */ 4190 public java.util.List<com.google.cloud.aiplatform.v1.Measurement.Builder> getMeasurementsBuilderList()4191 getMeasurementsBuilderList() { 4192 return getMeasurementsFieldBuilder().getBuilderList(); 4193 } 4194 4195 private com.google.protobuf.RepeatedFieldBuilderV3< 4196 com.google.cloud.aiplatform.v1.Measurement, 4197 com.google.cloud.aiplatform.v1.Measurement.Builder, 4198 com.google.cloud.aiplatform.v1.MeasurementOrBuilder> getMeasurementsFieldBuilder()4199 getMeasurementsFieldBuilder() { 4200 if (measurementsBuilder_ == null) { 4201 measurementsBuilder_ = 4202 new com.google.protobuf.RepeatedFieldBuilderV3< 4203 com.google.cloud.aiplatform.v1.Measurement, 4204 com.google.cloud.aiplatform.v1.Measurement.Builder, 4205 com.google.cloud.aiplatform.v1.MeasurementOrBuilder>( 4206 measurements_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); 4207 measurements_ = null; 4208 } 4209 return measurementsBuilder_; 4210 } 4211 4212 private com.google.protobuf.Timestamp startTime_; 4213 private com.google.protobuf.SingleFieldBuilderV3< 4214 com.google.protobuf.Timestamp, 4215 com.google.protobuf.Timestamp.Builder, 4216 com.google.protobuf.TimestampOrBuilder> 4217 startTimeBuilder_; 4218 /** 4219 * 4220 * 4221 * <pre> 4222 * Output only. Time when the Trial was started. 4223 * </pre> 4224 * 4225 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4226 * </code> 4227 * 4228 * @return Whether the startTime field is set. 4229 */ hasStartTime()4230 public boolean hasStartTime() { 4231 return ((bitField0_ & 0x00000040) != 0); 4232 } 4233 /** 4234 * 4235 * 4236 * <pre> 4237 * Output only. Time when the Trial was started. 4238 * </pre> 4239 * 4240 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4241 * </code> 4242 * 4243 * @return The startTime. 4244 */ getStartTime()4245 public com.google.protobuf.Timestamp getStartTime() { 4246 if (startTimeBuilder_ == null) { 4247 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 4248 } else { 4249 return startTimeBuilder_.getMessage(); 4250 } 4251 } 4252 /** 4253 * 4254 * 4255 * <pre> 4256 * Output only. Time when the Trial was started. 4257 * </pre> 4258 * 4259 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4260 * </code> 4261 */ setStartTime(com.google.protobuf.Timestamp value)4262 public Builder setStartTime(com.google.protobuf.Timestamp value) { 4263 if (startTimeBuilder_ == null) { 4264 if (value == null) { 4265 throw new NullPointerException(); 4266 } 4267 startTime_ = value; 4268 } else { 4269 startTimeBuilder_.setMessage(value); 4270 } 4271 bitField0_ |= 0x00000040; 4272 onChanged(); 4273 return this; 4274 } 4275 /** 4276 * 4277 * 4278 * <pre> 4279 * Output only. Time when the Trial was started. 4280 * </pre> 4281 * 4282 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4283 * </code> 4284 */ setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)4285 public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { 4286 if (startTimeBuilder_ == null) { 4287 startTime_ = builderForValue.build(); 4288 } else { 4289 startTimeBuilder_.setMessage(builderForValue.build()); 4290 } 4291 bitField0_ |= 0x00000040; 4292 onChanged(); 4293 return this; 4294 } 4295 /** 4296 * 4297 * 4298 * <pre> 4299 * Output only. Time when the Trial was started. 4300 * </pre> 4301 * 4302 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4303 * </code> 4304 */ mergeStartTime(com.google.protobuf.Timestamp value)4305 public Builder mergeStartTime(com.google.protobuf.Timestamp value) { 4306 if (startTimeBuilder_ == null) { 4307 if (((bitField0_ & 0x00000040) != 0) 4308 && startTime_ != null 4309 && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 4310 getStartTimeBuilder().mergeFrom(value); 4311 } else { 4312 startTime_ = value; 4313 } 4314 } else { 4315 startTimeBuilder_.mergeFrom(value); 4316 } 4317 bitField0_ |= 0x00000040; 4318 onChanged(); 4319 return this; 4320 } 4321 /** 4322 * 4323 * 4324 * <pre> 4325 * Output only. Time when the Trial was started. 4326 * </pre> 4327 * 4328 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4329 * </code> 4330 */ clearStartTime()4331 public Builder clearStartTime() { 4332 bitField0_ = (bitField0_ & ~0x00000040); 4333 startTime_ = null; 4334 if (startTimeBuilder_ != null) { 4335 startTimeBuilder_.dispose(); 4336 startTimeBuilder_ = null; 4337 } 4338 onChanged(); 4339 return this; 4340 } 4341 /** 4342 * 4343 * 4344 * <pre> 4345 * Output only. Time when the Trial was started. 4346 * </pre> 4347 * 4348 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4349 * </code> 4350 */ getStartTimeBuilder()4351 public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { 4352 bitField0_ |= 0x00000040; 4353 onChanged(); 4354 return getStartTimeFieldBuilder().getBuilder(); 4355 } 4356 /** 4357 * 4358 * 4359 * <pre> 4360 * Output only. Time when the Trial was started. 4361 * </pre> 4362 * 4363 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4364 * </code> 4365 */ getStartTimeOrBuilder()4366 public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { 4367 if (startTimeBuilder_ != null) { 4368 return startTimeBuilder_.getMessageOrBuilder(); 4369 } else { 4370 return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; 4371 } 4372 } 4373 /** 4374 * 4375 * 4376 * <pre> 4377 * Output only. Time when the Trial was started. 4378 * </pre> 4379 * 4380 * <code>.google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4381 * </code> 4382 */ 4383 private com.google.protobuf.SingleFieldBuilderV3< 4384 com.google.protobuf.Timestamp, 4385 com.google.protobuf.Timestamp.Builder, 4386 com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder()4387 getStartTimeFieldBuilder() { 4388 if (startTimeBuilder_ == null) { 4389 startTimeBuilder_ = 4390 new com.google.protobuf.SingleFieldBuilderV3< 4391 com.google.protobuf.Timestamp, 4392 com.google.protobuf.Timestamp.Builder, 4393 com.google.protobuf.TimestampOrBuilder>( 4394 getStartTime(), getParentForChildren(), isClean()); 4395 startTime_ = null; 4396 } 4397 return startTimeBuilder_; 4398 } 4399 4400 private com.google.protobuf.Timestamp endTime_; 4401 private com.google.protobuf.SingleFieldBuilderV3< 4402 com.google.protobuf.Timestamp, 4403 com.google.protobuf.Timestamp.Builder, 4404 com.google.protobuf.TimestampOrBuilder> 4405 endTimeBuilder_; 4406 /** 4407 * 4408 * 4409 * <pre> 4410 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4411 * `INFEASIBLE`. 4412 * </pre> 4413 * 4414 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4415 * </code> 4416 * 4417 * @return Whether the endTime field is set. 4418 */ hasEndTime()4419 public boolean hasEndTime() { 4420 return ((bitField0_ & 0x00000080) != 0); 4421 } 4422 /** 4423 * 4424 * 4425 * <pre> 4426 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4427 * `INFEASIBLE`. 4428 * </pre> 4429 * 4430 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4431 * </code> 4432 * 4433 * @return The endTime. 4434 */ getEndTime()4435 public com.google.protobuf.Timestamp getEndTime() { 4436 if (endTimeBuilder_ == null) { 4437 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 4438 } else { 4439 return endTimeBuilder_.getMessage(); 4440 } 4441 } 4442 /** 4443 * 4444 * 4445 * <pre> 4446 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4447 * `INFEASIBLE`. 4448 * </pre> 4449 * 4450 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4451 * </code> 4452 */ setEndTime(com.google.protobuf.Timestamp value)4453 public Builder setEndTime(com.google.protobuf.Timestamp value) { 4454 if (endTimeBuilder_ == null) { 4455 if (value == null) { 4456 throw new NullPointerException(); 4457 } 4458 endTime_ = value; 4459 } else { 4460 endTimeBuilder_.setMessage(value); 4461 } 4462 bitField0_ |= 0x00000080; 4463 onChanged(); 4464 return this; 4465 } 4466 /** 4467 * 4468 * 4469 * <pre> 4470 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4471 * `INFEASIBLE`. 4472 * </pre> 4473 * 4474 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4475 * </code> 4476 */ setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)4477 public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { 4478 if (endTimeBuilder_ == null) { 4479 endTime_ = builderForValue.build(); 4480 } else { 4481 endTimeBuilder_.setMessage(builderForValue.build()); 4482 } 4483 bitField0_ |= 0x00000080; 4484 onChanged(); 4485 return this; 4486 } 4487 /** 4488 * 4489 * 4490 * <pre> 4491 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4492 * `INFEASIBLE`. 4493 * </pre> 4494 * 4495 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4496 * </code> 4497 */ mergeEndTime(com.google.protobuf.Timestamp value)4498 public Builder mergeEndTime(com.google.protobuf.Timestamp value) { 4499 if (endTimeBuilder_ == null) { 4500 if (((bitField0_ & 0x00000080) != 0) 4501 && endTime_ != null 4502 && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 4503 getEndTimeBuilder().mergeFrom(value); 4504 } else { 4505 endTime_ = value; 4506 } 4507 } else { 4508 endTimeBuilder_.mergeFrom(value); 4509 } 4510 bitField0_ |= 0x00000080; 4511 onChanged(); 4512 return this; 4513 } 4514 /** 4515 * 4516 * 4517 * <pre> 4518 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4519 * `INFEASIBLE`. 4520 * </pre> 4521 * 4522 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4523 * </code> 4524 */ clearEndTime()4525 public Builder clearEndTime() { 4526 bitField0_ = (bitField0_ & ~0x00000080); 4527 endTime_ = null; 4528 if (endTimeBuilder_ != null) { 4529 endTimeBuilder_.dispose(); 4530 endTimeBuilder_ = null; 4531 } 4532 onChanged(); 4533 return this; 4534 } 4535 /** 4536 * 4537 * 4538 * <pre> 4539 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4540 * `INFEASIBLE`. 4541 * </pre> 4542 * 4543 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4544 * </code> 4545 */ getEndTimeBuilder()4546 public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { 4547 bitField0_ |= 0x00000080; 4548 onChanged(); 4549 return getEndTimeFieldBuilder().getBuilder(); 4550 } 4551 /** 4552 * 4553 * 4554 * <pre> 4555 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4556 * `INFEASIBLE`. 4557 * </pre> 4558 * 4559 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4560 * </code> 4561 */ getEndTimeOrBuilder()4562 public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { 4563 if (endTimeBuilder_ != null) { 4564 return endTimeBuilder_.getMessageOrBuilder(); 4565 } else { 4566 return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; 4567 } 4568 } 4569 /** 4570 * 4571 * 4572 * <pre> 4573 * Output only. Time when the Trial's status changed to `SUCCEEDED` or 4574 * `INFEASIBLE`. 4575 * </pre> 4576 * 4577 * <code>.google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; 4578 * </code> 4579 */ 4580 private com.google.protobuf.SingleFieldBuilderV3< 4581 com.google.protobuf.Timestamp, 4582 com.google.protobuf.Timestamp.Builder, 4583 com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder()4584 getEndTimeFieldBuilder() { 4585 if (endTimeBuilder_ == null) { 4586 endTimeBuilder_ = 4587 new com.google.protobuf.SingleFieldBuilderV3< 4588 com.google.protobuf.Timestamp, 4589 com.google.protobuf.Timestamp.Builder, 4590 com.google.protobuf.TimestampOrBuilder>( 4591 getEndTime(), getParentForChildren(), isClean()); 4592 endTime_ = null; 4593 } 4594 return endTimeBuilder_; 4595 } 4596 4597 private java.lang.Object clientId_ = ""; 4598 /** 4599 * 4600 * 4601 * <pre> 4602 * Output only. The identifier of the client that originally requested this 4603 * Trial. Each client is identified by a unique client_id. When a client asks 4604 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 4605 * should evaluate the Trial, complete it, and report back to Vertex AI 4606 * Vizier. If suggestion is asked again by same client_id before the Trial is 4607 * completed, the same Trial will be returned. Multiple clients with 4608 * different client_ids can ask for suggestions simultaneously, each of them 4609 * will get their own Trial. 4610 * </pre> 4611 * 4612 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4613 * 4614 * @return The clientId. 4615 */ getClientId()4616 public java.lang.String getClientId() { 4617 java.lang.Object ref = clientId_; 4618 if (!(ref instanceof java.lang.String)) { 4619 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4620 java.lang.String s = bs.toStringUtf8(); 4621 clientId_ = s; 4622 return s; 4623 } else { 4624 return (java.lang.String) ref; 4625 } 4626 } 4627 /** 4628 * 4629 * 4630 * <pre> 4631 * Output only. The identifier of the client that originally requested this 4632 * Trial. Each client is identified by a unique client_id. When a client asks 4633 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 4634 * should evaluate the Trial, complete it, and report back to Vertex AI 4635 * Vizier. If suggestion is asked again by same client_id before the Trial is 4636 * completed, the same Trial will be returned. Multiple clients with 4637 * different client_ids can ask for suggestions simultaneously, each of them 4638 * will get their own Trial. 4639 * </pre> 4640 * 4641 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4642 * 4643 * @return The bytes for clientId. 4644 */ getClientIdBytes()4645 public com.google.protobuf.ByteString getClientIdBytes() { 4646 java.lang.Object ref = clientId_; 4647 if (ref instanceof String) { 4648 com.google.protobuf.ByteString b = 4649 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4650 clientId_ = b; 4651 return b; 4652 } else { 4653 return (com.google.protobuf.ByteString) ref; 4654 } 4655 } 4656 /** 4657 * 4658 * 4659 * <pre> 4660 * Output only. The identifier of the client that originally requested this 4661 * Trial. Each client is identified by a unique client_id. When a client asks 4662 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 4663 * should evaluate the Trial, complete it, and report back to Vertex AI 4664 * Vizier. If suggestion is asked again by same client_id before the Trial is 4665 * completed, the same Trial will be returned. Multiple clients with 4666 * different client_ids can ask for suggestions simultaneously, each of them 4667 * will get their own Trial. 4668 * </pre> 4669 * 4670 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4671 * 4672 * @param value The clientId to set. 4673 * @return This builder for chaining. 4674 */ setClientId(java.lang.String value)4675 public Builder setClientId(java.lang.String value) { 4676 if (value == null) { 4677 throw new NullPointerException(); 4678 } 4679 clientId_ = value; 4680 bitField0_ |= 0x00000100; 4681 onChanged(); 4682 return this; 4683 } 4684 /** 4685 * 4686 * 4687 * <pre> 4688 * Output only. The identifier of the client that originally requested this 4689 * Trial. Each client is identified by a unique client_id. When a client asks 4690 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 4691 * should evaluate the Trial, complete it, and report back to Vertex AI 4692 * Vizier. If suggestion is asked again by same client_id before the Trial is 4693 * completed, the same Trial will be returned. Multiple clients with 4694 * different client_ids can ask for suggestions simultaneously, each of them 4695 * will get their own Trial. 4696 * </pre> 4697 * 4698 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4699 * 4700 * @return This builder for chaining. 4701 */ clearClientId()4702 public Builder clearClientId() { 4703 clientId_ = getDefaultInstance().getClientId(); 4704 bitField0_ = (bitField0_ & ~0x00000100); 4705 onChanged(); 4706 return this; 4707 } 4708 /** 4709 * 4710 * 4711 * <pre> 4712 * Output only. The identifier of the client that originally requested this 4713 * Trial. Each client is identified by a unique client_id. When a client asks 4714 * for a suggestion, Vertex AI Vizier will assign it a Trial. The client 4715 * should evaluate the Trial, complete it, and report back to Vertex AI 4716 * Vizier. If suggestion is asked again by same client_id before the Trial is 4717 * completed, the same Trial will be returned. Multiple clients with 4718 * different client_ids can ask for suggestions simultaneously, each of them 4719 * will get their own Trial. 4720 * </pre> 4721 * 4722 * <code>string client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4723 * 4724 * @param value The bytes for clientId to set. 4725 * @return This builder for chaining. 4726 */ setClientIdBytes(com.google.protobuf.ByteString value)4727 public Builder setClientIdBytes(com.google.protobuf.ByteString value) { 4728 if (value == null) { 4729 throw new NullPointerException(); 4730 } 4731 checkByteStringIsUtf8(value); 4732 clientId_ = value; 4733 bitField0_ |= 0x00000100; 4734 onChanged(); 4735 return this; 4736 } 4737 4738 private java.lang.Object infeasibleReason_ = ""; 4739 /** 4740 * 4741 * 4742 * <pre> 4743 * Output only. A human readable string describing why the Trial is 4744 * infeasible. This is set only if Trial state is `INFEASIBLE`. 4745 * </pre> 4746 * 4747 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4748 * 4749 * @return The infeasibleReason. 4750 */ getInfeasibleReason()4751 public java.lang.String getInfeasibleReason() { 4752 java.lang.Object ref = infeasibleReason_; 4753 if (!(ref instanceof java.lang.String)) { 4754 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4755 java.lang.String s = bs.toStringUtf8(); 4756 infeasibleReason_ = s; 4757 return s; 4758 } else { 4759 return (java.lang.String) ref; 4760 } 4761 } 4762 /** 4763 * 4764 * 4765 * <pre> 4766 * Output only. A human readable string describing why the Trial is 4767 * infeasible. This is set only if Trial state is `INFEASIBLE`. 4768 * </pre> 4769 * 4770 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4771 * 4772 * @return The bytes for infeasibleReason. 4773 */ getInfeasibleReasonBytes()4774 public com.google.protobuf.ByteString getInfeasibleReasonBytes() { 4775 java.lang.Object ref = infeasibleReason_; 4776 if (ref instanceof String) { 4777 com.google.protobuf.ByteString b = 4778 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4779 infeasibleReason_ = b; 4780 return b; 4781 } else { 4782 return (com.google.protobuf.ByteString) ref; 4783 } 4784 } 4785 /** 4786 * 4787 * 4788 * <pre> 4789 * Output only. A human readable string describing why the Trial is 4790 * infeasible. This is set only if Trial state is `INFEASIBLE`. 4791 * </pre> 4792 * 4793 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4794 * 4795 * @param value The infeasibleReason to set. 4796 * @return This builder for chaining. 4797 */ setInfeasibleReason(java.lang.String value)4798 public Builder setInfeasibleReason(java.lang.String value) { 4799 if (value == null) { 4800 throw new NullPointerException(); 4801 } 4802 infeasibleReason_ = value; 4803 bitField0_ |= 0x00000200; 4804 onChanged(); 4805 return this; 4806 } 4807 /** 4808 * 4809 * 4810 * <pre> 4811 * Output only. A human readable string describing why the Trial is 4812 * infeasible. This is set only if Trial state is `INFEASIBLE`. 4813 * </pre> 4814 * 4815 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4816 * 4817 * @return This builder for chaining. 4818 */ clearInfeasibleReason()4819 public Builder clearInfeasibleReason() { 4820 infeasibleReason_ = getDefaultInstance().getInfeasibleReason(); 4821 bitField0_ = (bitField0_ & ~0x00000200); 4822 onChanged(); 4823 return this; 4824 } 4825 /** 4826 * 4827 * 4828 * <pre> 4829 * Output only. A human readable string describing why the Trial is 4830 * infeasible. This is set only if Trial state is `INFEASIBLE`. 4831 * </pre> 4832 * 4833 * <code>string infeasible_reason = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 4834 * 4835 * @param value The bytes for infeasibleReason to set. 4836 * @return This builder for chaining. 4837 */ setInfeasibleReasonBytes(com.google.protobuf.ByteString value)4838 public Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value) { 4839 if (value == null) { 4840 throw new NullPointerException(); 4841 } 4842 checkByteStringIsUtf8(value); 4843 infeasibleReason_ = value; 4844 bitField0_ |= 0x00000200; 4845 onChanged(); 4846 return this; 4847 } 4848 4849 private java.lang.Object customJob_ = ""; 4850 /** 4851 * 4852 * 4853 * <pre> 4854 * Output only. The CustomJob name linked to the Trial. 4855 * It's set for a HyperparameterTuningJob's Trial. 4856 * </pre> 4857 * 4858 * <code> 4859 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 4860 * </code> 4861 * 4862 * @return The customJob. 4863 */ getCustomJob()4864 public java.lang.String getCustomJob() { 4865 java.lang.Object ref = customJob_; 4866 if (!(ref instanceof java.lang.String)) { 4867 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 4868 java.lang.String s = bs.toStringUtf8(); 4869 customJob_ = s; 4870 return s; 4871 } else { 4872 return (java.lang.String) ref; 4873 } 4874 } 4875 /** 4876 * 4877 * 4878 * <pre> 4879 * Output only. The CustomJob name linked to the Trial. 4880 * It's set for a HyperparameterTuningJob's Trial. 4881 * </pre> 4882 * 4883 * <code> 4884 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 4885 * </code> 4886 * 4887 * @return The bytes for customJob. 4888 */ getCustomJobBytes()4889 public com.google.protobuf.ByteString getCustomJobBytes() { 4890 java.lang.Object ref = customJob_; 4891 if (ref instanceof String) { 4892 com.google.protobuf.ByteString b = 4893 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 4894 customJob_ = b; 4895 return b; 4896 } else { 4897 return (com.google.protobuf.ByteString) ref; 4898 } 4899 } 4900 /** 4901 * 4902 * 4903 * <pre> 4904 * Output only. The CustomJob name linked to the Trial. 4905 * It's set for a HyperparameterTuningJob's Trial. 4906 * </pre> 4907 * 4908 * <code> 4909 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 4910 * </code> 4911 * 4912 * @param value The customJob to set. 4913 * @return This builder for chaining. 4914 */ setCustomJob(java.lang.String value)4915 public Builder setCustomJob(java.lang.String value) { 4916 if (value == null) { 4917 throw new NullPointerException(); 4918 } 4919 customJob_ = value; 4920 bitField0_ |= 0x00000400; 4921 onChanged(); 4922 return this; 4923 } 4924 /** 4925 * 4926 * 4927 * <pre> 4928 * Output only. The CustomJob name linked to the Trial. 4929 * It's set for a HyperparameterTuningJob's Trial. 4930 * </pre> 4931 * 4932 * <code> 4933 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 4934 * </code> 4935 * 4936 * @return This builder for chaining. 4937 */ clearCustomJob()4938 public Builder clearCustomJob() { 4939 customJob_ = getDefaultInstance().getCustomJob(); 4940 bitField0_ = (bitField0_ & ~0x00000400); 4941 onChanged(); 4942 return this; 4943 } 4944 /** 4945 * 4946 * 4947 * <pre> 4948 * Output only. The CustomJob name linked to the Trial. 4949 * It's set for a HyperparameterTuningJob's Trial. 4950 * </pre> 4951 * 4952 * <code> 4953 * string custom_job = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } 4954 * </code> 4955 * 4956 * @param value The bytes for customJob to set. 4957 * @return This builder for chaining. 4958 */ setCustomJobBytes(com.google.protobuf.ByteString value)4959 public Builder setCustomJobBytes(com.google.protobuf.ByteString value) { 4960 if (value == null) { 4961 throw new NullPointerException(); 4962 } 4963 checkByteStringIsUtf8(value); 4964 customJob_ = value; 4965 bitField0_ |= 0x00000400; 4966 onChanged(); 4967 return this; 4968 } 4969 4970 private com.google.protobuf.MapField<java.lang.String, java.lang.String> webAccessUris_; 4971 4972 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetWebAccessUris()4973 internalGetWebAccessUris() { 4974 if (webAccessUris_ == null) { 4975 return com.google.protobuf.MapField.emptyMapField( 4976 WebAccessUrisDefaultEntryHolder.defaultEntry); 4977 } 4978 return webAccessUris_; 4979 } 4980 4981 private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableWebAccessUris()4982 internalGetMutableWebAccessUris() { 4983 if (webAccessUris_ == null) { 4984 webAccessUris_ = 4985 com.google.protobuf.MapField.newMapField(WebAccessUrisDefaultEntryHolder.defaultEntry); 4986 } 4987 if (!webAccessUris_.isMutable()) { 4988 webAccessUris_ = webAccessUris_.copy(); 4989 } 4990 bitField0_ |= 0x00000800; 4991 onChanged(); 4992 return webAccessUris_; 4993 } 4994 getWebAccessUrisCount()4995 public int getWebAccessUrisCount() { 4996 return internalGetWebAccessUris().getMap().size(); 4997 } 4998 /** 4999 * 5000 * 5001 * <pre> 5002 * Output only. URIs for accessing [interactive 5003 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5004 * (one URI for each training node). Only available if this trial is part of 5005 * a 5006 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5007 * and the job's 5008 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5009 * field is `true`. 5010 * The keys are names of each node used for the trial; for example, 5011 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5012 * the second worker pool, and `workerpool1-1` for the second node in the 5013 * second worker pool. 5014 * The values are the URIs for each node's interactive shell. 5015 * </pre> 5016 * 5017 * <code> 5018 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5019 * </code> 5020 */ 5021 @java.lang.Override containsWebAccessUris(java.lang.String key)5022 public boolean containsWebAccessUris(java.lang.String key) { 5023 if (key == null) { 5024 throw new NullPointerException("map key"); 5025 } 5026 return internalGetWebAccessUris().getMap().containsKey(key); 5027 } 5028 /** Use {@link #getWebAccessUrisMap()} instead. */ 5029 @java.lang.Override 5030 @java.lang.Deprecated getWebAccessUris()5031 public java.util.Map<java.lang.String, java.lang.String> getWebAccessUris() { 5032 return getWebAccessUrisMap(); 5033 } 5034 /** 5035 * 5036 * 5037 * <pre> 5038 * Output only. URIs for accessing [interactive 5039 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5040 * (one URI for each training node). Only available if this trial is part of 5041 * a 5042 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5043 * and the job's 5044 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5045 * field is `true`. 5046 * The keys are names of each node used for the trial; for example, 5047 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5048 * the second worker pool, and `workerpool1-1` for the second node in the 5049 * second worker pool. 5050 * The values are the URIs for each node's interactive shell. 5051 * </pre> 5052 * 5053 * <code> 5054 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5055 * </code> 5056 */ 5057 @java.lang.Override getWebAccessUrisMap()5058 public java.util.Map<java.lang.String, java.lang.String> getWebAccessUrisMap() { 5059 return internalGetWebAccessUris().getMap(); 5060 } 5061 /** 5062 * 5063 * 5064 * <pre> 5065 * Output only. URIs for accessing [interactive 5066 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5067 * (one URI for each training node). Only available if this trial is part of 5068 * a 5069 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5070 * and the job's 5071 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5072 * field is `true`. 5073 * The keys are names of each node used for the trial; for example, 5074 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5075 * the second worker pool, and `workerpool1-1` for the second node in the 5076 * second worker pool. 5077 * The values are the URIs for each node's interactive shell. 5078 * </pre> 5079 * 5080 * <code> 5081 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5082 * </code> 5083 */ 5084 @java.lang.Override getWebAccessUrisOrDefault( java.lang.String key, java.lang.String defaultValue)5085 public /* nullable */ java.lang.String getWebAccessUrisOrDefault( 5086 java.lang.String key, 5087 /* nullable */ 5088 java.lang.String defaultValue) { 5089 if (key == null) { 5090 throw new NullPointerException("map key"); 5091 } 5092 java.util.Map<java.lang.String, java.lang.String> map = internalGetWebAccessUris().getMap(); 5093 return map.containsKey(key) ? map.get(key) : defaultValue; 5094 } 5095 /** 5096 * 5097 * 5098 * <pre> 5099 * Output only. URIs for accessing [interactive 5100 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5101 * (one URI for each training node). Only available if this trial is part of 5102 * a 5103 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5104 * and the job's 5105 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5106 * field is `true`. 5107 * The keys are names of each node used for the trial; for example, 5108 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5109 * the second worker pool, and `workerpool1-1` for the second node in the 5110 * second worker pool. 5111 * The values are the URIs for each node's interactive shell. 5112 * </pre> 5113 * 5114 * <code> 5115 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5116 * </code> 5117 */ 5118 @java.lang.Override getWebAccessUrisOrThrow(java.lang.String key)5119 public java.lang.String getWebAccessUrisOrThrow(java.lang.String key) { 5120 if (key == null) { 5121 throw new NullPointerException("map key"); 5122 } 5123 java.util.Map<java.lang.String, java.lang.String> map = internalGetWebAccessUris().getMap(); 5124 if (!map.containsKey(key)) { 5125 throw new java.lang.IllegalArgumentException(); 5126 } 5127 return map.get(key); 5128 } 5129 clearWebAccessUris()5130 public Builder clearWebAccessUris() { 5131 bitField0_ = (bitField0_ & ~0x00000800); 5132 internalGetMutableWebAccessUris().getMutableMap().clear(); 5133 return this; 5134 } 5135 /** 5136 * 5137 * 5138 * <pre> 5139 * Output only. URIs for accessing [interactive 5140 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5141 * (one URI for each training node). Only available if this trial is part of 5142 * a 5143 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5144 * and the job's 5145 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5146 * field is `true`. 5147 * The keys are names of each node used for the trial; for example, 5148 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5149 * the second worker pool, and `workerpool1-1` for the second node in the 5150 * second worker pool. 5151 * The values are the URIs for each node's interactive shell. 5152 * </pre> 5153 * 5154 * <code> 5155 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5156 * </code> 5157 */ removeWebAccessUris(java.lang.String key)5158 public Builder removeWebAccessUris(java.lang.String key) { 5159 if (key == null) { 5160 throw new NullPointerException("map key"); 5161 } 5162 internalGetMutableWebAccessUris().getMutableMap().remove(key); 5163 return this; 5164 } 5165 /** Use alternate mutation accessors instead. */ 5166 @java.lang.Deprecated getMutableWebAccessUris()5167 public java.util.Map<java.lang.String, java.lang.String> getMutableWebAccessUris() { 5168 bitField0_ |= 0x00000800; 5169 return internalGetMutableWebAccessUris().getMutableMap(); 5170 } 5171 /** 5172 * 5173 * 5174 * <pre> 5175 * Output only. URIs for accessing [interactive 5176 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5177 * (one URI for each training node). Only available if this trial is part of 5178 * a 5179 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5180 * and the job's 5181 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5182 * field is `true`. 5183 * The keys are names of each node used for the trial; for example, 5184 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5185 * the second worker pool, and `workerpool1-1` for the second node in the 5186 * second worker pool. 5187 * The values are the URIs for each node's interactive shell. 5188 * </pre> 5189 * 5190 * <code> 5191 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5192 * </code> 5193 */ putWebAccessUris(java.lang.String key, java.lang.String value)5194 public Builder putWebAccessUris(java.lang.String key, java.lang.String value) { 5195 if (key == null) { 5196 throw new NullPointerException("map key"); 5197 } 5198 if (value == null) { 5199 throw new NullPointerException("map value"); 5200 } 5201 internalGetMutableWebAccessUris().getMutableMap().put(key, value); 5202 bitField0_ |= 0x00000800; 5203 return this; 5204 } 5205 /** 5206 * 5207 * 5208 * <pre> 5209 * Output only. URIs for accessing [interactive 5210 * shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) 5211 * (one URI for each training node). Only available if this trial is part of 5212 * a 5213 * [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] 5214 * and the job's 5215 * [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] 5216 * field is `true`. 5217 * The keys are names of each node used for the trial; for example, 5218 * `workerpool0-0` for the primary node, `workerpool1-0` for the first node in 5219 * the second worker pool, and `workerpool1-1` for the second node in the 5220 * second worker pool. 5221 * The values are the URIs for each node's interactive shell. 5222 * </pre> 5223 * 5224 * <code> 5225 * map<string, string> web_access_uris = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; 5226 * </code> 5227 */ putAllWebAccessUris(java.util.Map<java.lang.String, java.lang.String> values)5228 public Builder putAllWebAccessUris(java.util.Map<java.lang.String, java.lang.String> values) { 5229 internalGetMutableWebAccessUris().getMutableMap().putAll(values); 5230 bitField0_ |= 0x00000800; 5231 return this; 5232 } 5233 5234 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5235 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 5236 return super.setUnknownFields(unknownFields); 5237 } 5238 5239 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5240 public final Builder mergeUnknownFields( 5241 final com.google.protobuf.UnknownFieldSet unknownFields) { 5242 return super.mergeUnknownFields(unknownFields); 5243 } 5244 5245 // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.Trial) 5246 } 5247 5248 // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Trial) 5249 private static final com.google.cloud.aiplatform.v1.Trial DEFAULT_INSTANCE; 5250 5251 static { 5252 DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Trial(); 5253 } 5254 getDefaultInstance()5255 public static com.google.cloud.aiplatform.v1.Trial getDefaultInstance() { 5256 return DEFAULT_INSTANCE; 5257 } 5258 5259 private static final com.google.protobuf.Parser<Trial> PARSER = 5260 new com.google.protobuf.AbstractParser<Trial>() { 5261 @java.lang.Override 5262 public Trial parsePartialFrom( 5263 com.google.protobuf.CodedInputStream input, 5264 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5265 throws com.google.protobuf.InvalidProtocolBufferException { 5266 Builder builder = newBuilder(); 5267 try { 5268 builder.mergeFrom(input, extensionRegistry); 5269 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5270 throw e.setUnfinishedMessage(builder.buildPartial()); 5271 } catch (com.google.protobuf.UninitializedMessageException e) { 5272 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 5273 } catch (java.io.IOException e) { 5274 throw new com.google.protobuf.InvalidProtocolBufferException(e) 5275 .setUnfinishedMessage(builder.buildPartial()); 5276 } 5277 return builder.buildPartial(); 5278 } 5279 }; 5280 parser()5281 public static com.google.protobuf.Parser<Trial> parser() { 5282 return PARSER; 5283 } 5284 5285 @java.lang.Override getParserForType()5286 public com.google.protobuf.Parser<Trial> getParserForType() { 5287 return PARSER; 5288 } 5289 5290 @java.lang.Override getDefaultInstanceForType()5291 public com.google.cloud.aiplatform.v1.Trial getDefaultInstanceForType() { 5292 return DEFAULT_INSTANCE; 5293 } 5294 } 5295