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