• 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 Study.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.aiplatform.v1beta1.Study}
29  */
30 public final class Study extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Study)
33     StudyOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use Study.newBuilder() to construct.
Study(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private Study(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
Study()40   private Study() {
41     name_ = "";
42     displayName_ = "";
43     state_ = 0;
44     inactiveReason_ = "";
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new Study();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.aiplatform.v1beta1.StudyProto
60         .internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.aiplatform.v1beta1.StudyProto
67         .internal_static_google_cloud_aiplatform_v1beta1_Study_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.aiplatform.v1beta1.Study.class,
70             com.google.cloud.aiplatform.v1beta1.Study.Builder.class);
71   }
72 
73   /**
74    *
75    *
76    * <pre>
77    * Describes the Study state.
78    * </pre>
79    *
80    * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Study.State}
81    */
82   public enum State implements com.google.protobuf.ProtocolMessageEnum {
83     /**
84      *
85      *
86      * <pre>
87      * The study state is unspecified.
88      * </pre>
89      *
90      * <code>STATE_UNSPECIFIED = 0;</code>
91      */
92     STATE_UNSPECIFIED(0),
93     /**
94      *
95      *
96      * <pre>
97      * The study is active.
98      * </pre>
99      *
100      * <code>ACTIVE = 1;</code>
101      */
102     ACTIVE(1),
103     /**
104      *
105      *
106      * <pre>
107      * The study is stopped due to an internal error.
108      * </pre>
109      *
110      * <code>INACTIVE = 2;</code>
111      */
112     INACTIVE(2),
113     /**
114      *
115      *
116      * <pre>
117      * The study is done when the service exhausts the parameter search space
118      * or max_trial_count is reached.
119      * </pre>
120      *
121      * <code>COMPLETED = 3;</code>
122      */
123     COMPLETED(3),
124     UNRECOGNIZED(-1),
125     ;
126 
127     /**
128      *
129      *
130      * <pre>
131      * The study state is unspecified.
132      * </pre>
133      *
134      * <code>STATE_UNSPECIFIED = 0;</code>
135      */
136     public static final int STATE_UNSPECIFIED_VALUE = 0;
137     /**
138      *
139      *
140      * <pre>
141      * The study is active.
142      * </pre>
143      *
144      * <code>ACTIVE = 1;</code>
145      */
146     public static final int ACTIVE_VALUE = 1;
147     /**
148      *
149      *
150      * <pre>
151      * The study is stopped due to an internal error.
152      * </pre>
153      *
154      * <code>INACTIVE = 2;</code>
155      */
156     public static final int INACTIVE_VALUE = 2;
157     /**
158      *
159      *
160      * <pre>
161      * The study is done when the service exhausts the parameter search space
162      * or max_trial_count is reached.
163      * </pre>
164      *
165      * <code>COMPLETED = 3;</code>
166      */
167     public static final int COMPLETED_VALUE = 3;
168 
getNumber()169     public final int getNumber() {
170       if (this == UNRECOGNIZED) {
171         throw new java.lang.IllegalArgumentException(
172             "Can't get the number of an unknown enum value.");
173       }
174       return value;
175     }
176 
177     /**
178      * @param value The numeric wire value of the corresponding enum entry.
179      * @return The enum associated with the given numeric wire value.
180      * @deprecated Use {@link #forNumber(int)} instead.
181      */
182     @java.lang.Deprecated
valueOf(int value)183     public static State valueOf(int value) {
184       return forNumber(value);
185     }
186 
187     /**
188      * @param value The numeric wire value of the corresponding enum entry.
189      * @return The enum associated with the given numeric wire value.
190      */
forNumber(int value)191     public static State forNumber(int value) {
192       switch (value) {
193         case 0:
194           return STATE_UNSPECIFIED;
195         case 1:
196           return ACTIVE;
197         case 2:
198           return INACTIVE;
199         case 3:
200           return COMPLETED;
201         default:
202           return null;
203       }
204     }
205 
internalGetValueMap()206     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
207       return internalValueMap;
208     }
209 
210     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
211         new com.google.protobuf.Internal.EnumLiteMap<State>() {
212           public State findValueByNumber(int number) {
213             return State.forNumber(number);
214           }
215         };
216 
getValueDescriptor()217     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
218       if (this == UNRECOGNIZED) {
219         throw new java.lang.IllegalStateException(
220             "Can't get the descriptor of an unrecognized enum value.");
221       }
222       return getDescriptor().getValues().get(ordinal());
223     }
224 
getDescriptorForType()225     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
226       return getDescriptor();
227     }
228 
getDescriptor()229     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
230       return com.google.cloud.aiplatform.v1beta1.Study.getDescriptor().getEnumTypes().get(0);
231     }
232 
233     private static final State[] VALUES = values();
234 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)235     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
236       if (desc.getType() != getDescriptor()) {
237         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
238       }
239       if (desc.getIndex() == -1) {
240         return UNRECOGNIZED;
241       }
242       return VALUES[desc.getIndex()];
243     }
244 
245     private final int value;
246 
State(int value)247     private State(int value) {
248       this.value = value;
249     }
250 
251     // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Study.State)
252   }
253 
254   public static final int NAME_FIELD_NUMBER = 1;
255 
256   @SuppressWarnings("serial")
257   private volatile java.lang.Object name_ = "";
258   /**
259    *
260    *
261    * <pre>
262    * Output only. The name of a study. The study's globally unique identifier.
263    * Format: `projects/{project}/locations/{location}/studies/{study}`
264    * </pre>
265    *
266    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
267    *
268    * @return The name.
269    */
270   @java.lang.Override
getName()271   public java.lang.String getName() {
272     java.lang.Object ref = name_;
273     if (ref instanceof java.lang.String) {
274       return (java.lang.String) ref;
275     } else {
276       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
277       java.lang.String s = bs.toStringUtf8();
278       name_ = s;
279       return s;
280     }
281   }
282   /**
283    *
284    *
285    * <pre>
286    * Output only. The name of a study. The study's globally unique identifier.
287    * Format: `projects/{project}/locations/{location}/studies/{study}`
288    * </pre>
289    *
290    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
291    *
292    * @return The bytes for name.
293    */
294   @java.lang.Override
getNameBytes()295   public com.google.protobuf.ByteString getNameBytes() {
296     java.lang.Object ref = name_;
297     if (ref instanceof java.lang.String) {
298       com.google.protobuf.ByteString b =
299           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
300       name_ = b;
301       return b;
302     } else {
303       return (com.google.protobuf.ByteString) ref;
304     }
305   }
306 
307   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
308 
309   @SuppressWarnings("serial")
310   private volatile java.lang.Object displayName_ = "";
311   /**
312    *
313    *
314    * <pre>
315    * Required. Describes the Study, default value is empty string.
316    * </pre>
317    *
318    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
319    *
320    * @return The displayName.
321    */
322   @java.lang.Override
getDisplayName()323   public java.lang.String getDisplayName() {
324     java.lang.Object ref = displayName_;
325     if (ref instanceof java.lang.String) {
326       return (java.lang.String) ref;
327     } else {
328       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
329       java.lang.String s = bs.toStringUtf8();
330       displayName_ = s;
331       return s;
332     }
333   }
334   /**
335    *
336    *
337    * <pre>
338    * Required. Describes the Study, default value is empty string.
339    * </pre>
340    *
341    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
342    *
343    * @return The bytes for displayName.
344    */
345   @java.lang.Override
getDisplayNameBytes()346   public com.google.protobuf.ByteString getDisplayNameBytes() {
347     java.lang.Object ref = displayName_;
348     if (ref instanceof java.lang.String) {
349       com.google.protobuf.ByteString b =
350           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
351       displayName_ = b;
352       return b;
353     } else {
354       return (com.google.protobuf.ByteString) ref;
355     }
356   }
357 
358   public static final int STUDY_SPEC_FIELD_NUMBER = 3;
359   private com.google.cloud.aiplatform.v1beta1.StudySpec studySpec_;
360   /**
361    *
362    *
363    * <pre>
364    * Required. Configuration of the Study.
365    * </pre>
366    *
367    * <code>
368    * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
369    * </code>
370    *
371    * @return Whether the studySpec field is set.
372    */
373   @java.lang.Override
hasStudySpec()374   public boolean hasStudySpec() {
375     return studySpec_ != null;
376   }
377   /**
378    *
379    *
380    * <pre>
381    * Required. Configuration of the Study.
382    * </pre>
383    *
384    * <code>
385    * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
386    * </code>
387    *
388    * @return The studySpec.
389    */
390   @java.lang.Override
getStudySpec()391   public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() {
392     return studySpec_ == null
393         ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
394         : studySpec_;
395   }
396   /**
397    *
398    *
399    * <pre>
400    * Required. Configuration of the Study.
401    * </pre>
402    *
403    * <code>
404    * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
405    * </code>
406    */
407   @java.lang.Override
getStudySpecOrBuilder()408   public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() {
409     return studySpec_ == null
410         ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
411         : studySpec_;
412   }
413 
414   public static final int STATE_FIELD_NUMBER = 4;
415   private int state_ = 0;
416   /**
417    *
418    *
419    * <pre>
420    * Output only. The detailed state of a Study.
421    * </pre>
422    *
423    * <code>
424    * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
425    * </code>
426    *
427    * @return The enum numeric value on the wire for state.
428    */
429   @java.lang.Override
getStateValue()430   public int getStateValue() {
431     return state_;
432   }
433   /**
434    *
435    *
436    * <pre>
437    * Output only. The detailed state of a Study.
438    * </pre>
439    *
440    * <code>
441    * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
442    * </code>
443    *
444    * @return The state.
445    */
446   @java.lang.Override
getState()447   public com.google.cloud.aiplatform.v1beta1.Study.State getState() {
448     com.google.cloud.aiplatform.v1beta1.Study.State result =
449         com.google.cloud.aiplatform.v1beta1.Study.State.forNumber(state_);
450     return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result;
451   }
452 
453   public static final int CREATE_TIME_FIELD_NUMBER = 5;
454   private com.google.protobuf.Timestamp createTime_;
455   /**
456    *
457    *
458    * <pre>
459    * Output only. Time at which the study was created.
460    * </pre>
461    *
462    * <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
463    * </code>
464    *
465    * @return Whether the createTime field is set.
466    */
467   @java.lang.Override
hasCreateTime()468   public boolean hasCreateTime() {
469     return createTime_ != null;
470   }
471   /**
472    *
473    *
474    * <pre>
475    * Output only. Time at which the study was created.
476    * </pre>
477    *
478    * <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
479    * </code>
480    *
481    * @return The createTime.
482    */
483   @java.lang.Override
getCreateTime()484   public com.google.protobuf.Timestamp getCreateTime() {
485     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
486   }
487   /**
488    *
489    *
490    * <pre>
491    * Output only. Time at which the study was created.
492    * </pre>
493    *
494    * <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
495    * </code>
496    */
497   @java.lang.Override
getCreateTimeOrBuilder()498   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
499     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
500   }
501 
502   public static final int INACTIVE_REASON_FIELD_NUMBER = 6;
503 
504   @SuppressWarnings("serial")
505   private volatile java.lang.Object inactiveReason_ = "";
506   /**
507    *
508    *
509    * <pre>
510    * Output only. A human readable reason why the Study is inactive.
511    * This should be empty if a study is ACTIVE or COMPLETED.
512    * </pre>
513    *
514    * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
515    *
516    * @return The inactiveReason.
517    */
518   @java.lang.Override
getInactiveReason()519   public java.lang.String getInactiveReason() {
520     java.lang.Object ref = inactiveReason_;
521     if (ref instanceof java.lang.String) {
522       return (java.lang.String) ref;
523     } else {
524       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
525       java.lang.String s = bs.toStringUtf8();
526       inactiveReason_ = s;
527       return s;
528     }
529   }
530   /**
531    *
532    *
533    * <pre>
534    * Output only. A human readable reason why the Study is inactive.
535    * This should be empty if a study is ACTIVE or COMPLETED.
536    * </pre>
537    *
538    * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
539    *
540    * @return The bytes for inactiveReason.
541    */
542   @java.lang.Override
getInactiveReasonBytes()543   public com.google.protobuf.ByteString getInactiveReasonBytes() {
544     java.lang.Object ref = inactiveReason_;
545     if (ref instanceof java.lang.String) {
546       com.google.protobuf.ByteString b =
547           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
548       inactiveReason_ = b;
549       return b;
550     } else {
551       return (com.google.protobuf.ByteString) ref;
552     }
553   }
554 
555   private byte memoizedIsInitialized = -1;
556 
557   @java.lang.Override
isInitialized()558   public final boolean isInitialized() {
559     byte isInitialized = memoizedIsInitialized;
560     if (isInitialized == 1) return true;
561     if (isInitialized == 0) return false;
562 
563     memoizedIsInitialized = 1;
564     return true;
565   }
566 
567   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)568   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
569     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
570       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
571     }
572     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
573       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
574     }
575     if (studySpec_ != null) {
576       output.writeMessage(3, getStudySpec());
577     }
578     if (state_ != com.google.cloud.aiplatform.v1beta1.Study.State.STATE_UNSPECIFIED.getNumber()) {
579       output.writeEnum(4, state_);
580     }
581     if (createTime_ != null) {
582       output.writeMessage(5, getCreateTime());
583     }
584     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inactiveReason_)) {
585       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, inactiveReason_);
586     }
587     getUnknownFields().writeTo(output);
588   }
589 
590   @java.lang.Override
getSerializedSize()591   public int getSerializedSize() {
592     int size = memoizedSize;
593     if (size != -1) return size;
594 
595     size = 0;
596     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
597       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
598     }
599     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
600       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
601     }
602     if (studySpec_ != null) {
603       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStudySpec());
604     }
605     if (state_ != com.google.cloud.aiplatform.v1beta1.Study.State.STATE_UNSPECIFIED.getNumber()) {
606       size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
607     }
608     if (createTime_ != null) {
609       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime());
610     }
611     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inactiveReason_)) {
612       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, inactiveReason_);
613     }
614     size += getUnknownFields().getSerializedSize();
615     memoizedSize = size;
616     return size;
617   }
618 
619   @java.lang.Override
equals(final java.lang.Object obj)620   public boolean equals(final java.lang.Object obj) {
621     if (obj == this) {
622       return true;
623     }
624     if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Study)) {
625       return super.equals(obj);
626     }
627     com.google.cloud.aiplatform.v1beta1.Study other =
628         (com.google.cloud.aiplatform.v1beta1.Study) obj;
629 
630     if (!getName().equals(other.getName())) return false;
631     if (!getDisplayName().equals(other.getDisplayName())) return false;
632     if (hasStudySpec() != other.hasStudySpec()) return false;
633     if (hasStudySpec()) {
634       if (!getStudySpec().equals(other.getStudySpec())) return false;
635     }
636     if (state_ != other.state_) return false;
637     if (hasCreateTime() != other.hasCreateTime()) return false;
638     if (hasCreateTime()) {
639       if (!getCreateTime().equals(other.getCreateTime())) return false;
640     }
641     if (!getInactiveReason().equals(other.getInactiveReason())) return false;
642     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
643     return true;
644   }
645 
646   @java.lang.Override
hashCode()647   public int hashCode() {
648     if (memoizedHashCode != 0) {
649       return memoizedHashCode;
650     }
651     int hash = 41;
652     hash = (19 * hash) + getDescriptor().hashCode();
653     hash = (37 * hash) + NAME_FIELD_NUMBER;
654     hash = (53 * hash) + getName().hashCode();
655     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
656     hash = (53 * hash) + getDisplayName().hashCode();
657     if (hasStudySpec()) {
658       hash = (37 * hash) + STUDY_SPEC_FIELD_NUMBER;
659       hash = (53 * hash) + getStudySpec().hashCode();
660     }
661     hash = (37 * hash) + STATE_FIELD_NUMBER;
662     hash = (53 * hash) + state_;
663     if (hasCreateTime()) {
664       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
665       hash = (53 * hash) + getCreateTime().hashCode();
666     }
667     hash = (37 * hash) + INACTIVE_REASON_FIELD_NUMBER;
668     hash = (53 * hash) + getInactiveReason().hashCode();
669     hash = (29 * hash) + getUnknownFields().hashCode();
670     memoizedHashCode = hash;
671     return hash;
672   }
673 
parseFrom(java.nio.ByteBuffer data)674   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(java.nio.ByteBuffer data)
675       throws com.google.protobuf.InvalidProtocolBufferException {
676     return PARSER.parseFrom(data);
677   }
678 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)679   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
680       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
681       throws com.google.protobuf.InvalidProtocolBufferException {
682     return PARSER.parseFrom(data, extensionRegistry);
683   }
684 
parseFrom( com.google.protobuf.ByteString data)685   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
686       com.google.protobuf.ByteString data)
687       throws com.google.protobuf.InvalidProtocolBufferException {
688     return PARSER.parseFrom(data);
689   }
690 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)691   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
692       com.google.protobuf.ByteString data,
693       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
694       throws com.google.protobuf.InvalidProtocolBufferException {
695     return PARSER.parseFrom(data, extensionRegistry);
696   }
697 
parseFrom(byte[] data)698   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(byte[] data)
699       throws com.google.protobuf.InvalidProtocolBufferException {
700     return PARSER.parseFrom(data);
701   }
702 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)703   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
704       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
705       throws com.google.protobuf.InvalidProtocolBufferException {
706     return PARSER.parseFrom(data, extensionRegistry);
707   }
708 
parseFrom(java.io.InputStream input)709   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(java.io.InputStream input)
710       throws java.io.IOException {
711     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
712   }
713 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)714   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
715       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
716       throws java.io.IOException {
717     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
718         PARSER, input, extensionRegistry);
719   }
720 
parseDelimitedFrom( java.io.InputStream input)721   public static com.google.cloud.aiplatform.v1beta1.Study parseDelimitedFrom(
722       java.io.InputStream input) throws java.io.IOException {
723     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
724   }
725 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)726   public static com.google.cloud.aiplatform.v1beta1.Study parseDelimitedFrom(
727       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
728       throws java.io.IOException {
729     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
730         PARSER, input, extensionRegistry);
731   }
732 
parseFrom( com.google.protobuf.CodedInputStream input)733   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
734       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
735     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
736   }
737 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)738   public static com.google.cloud.aiplatform.v1beta1.Study parseFrom(
739       com.google.protobuf.CodedInputStream input,
740       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
741       throws java.io.IOException {
742     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
743         PARSER, input, extensionRegistry);
744   }
745 
746   @java.lang.Override
newBuilderForType()747   public Builder newBuilderForType() {
748     return newBuilder();
749   }
750 
newBuilder()751   public static Builder newBuilder() {
752     return DEFAULT_INSTANCE.toBuilder();
753   }
754 
newBuilder(com.google.cloud.aiplatform.v1beta1.Study prototype)755   public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Study prototype) {
756     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
757   }
758 
759   @java.lang.Override
toBuilder()760   public Builder toBuilder() {
761     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
762   }
763 
764   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)765   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
766     Builder builder = new Builder(parent);
767     return builder;
768   }
769   /**
770    *
771    *
772    * <pre>
773    * A message representing a Study.
774    * </pre>
775    *
776    * Protobuf type {@code google.cloud.aiplatform.v1beta1.Study}
777    */
778   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
779       implements
780       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Study)
781       com.google.cloud.aiplatform.v1beta1.StudyOrBuilder {
getDescriptor()782     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
783       return com.google.cloud.aiplatform.v1beta1.StudyProto
784           .internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor;
785     }
786 
787     @java.lang.Override
788     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()789         internalGetFieldAccessorTable() {
790       return com.google.cloud.aiplatform.v1beta1.StudyProto
791           .internal_static_google_cloud_aiplatform_v1beta1_Study_fieldAccessorTable
792           .ensureFieldAccessorsInitialized(
793               com.google.cloud.aiplatform.v1beta1.Study.class,
794               com.google.cloud.aiplatform.v1beta1.Study.Builder.class);
795     }
796 
797     // Construct using com.google.cloud.aiplatform.v1beta1.Study.newBuilder()
Builder()798     private Builder() {}
799 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)800     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
801       super(parent);
802     }
803 
804     @java.lang.Override
clear()805     public Builder clear() {
806       super.clear();
807       bitField0_ = 0;
808       name_ = "";
809       displayName_ = "";
810       studySpec_ = null;
811       if (studySpecBuilder_ != null) {
812         studySpecBuilder_.dispose();
813         studySpecBuilder_ = null;
814       }
815       state_ = 0;
816       createTime_ = null;
817       if (createTimeBuilder_ != null) {
818         createTimeBuilder_.dispose();
819         createTimeBuilder_ = null;
820       }
821       inactiveReason_ = "";
822       return this;
823     }
824 
825     @java.lang.Override
getDescriptorForType()826     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
827       return com.google.cloud.aiplatform.v1beta1.StudyProto
828           .internal_static_google_cloud_aiplatform_v1beta1_Study_descriptor;
829     }
830 
831     @java.lang.Override
getDefaultInstanceForType()832     public com.google.cloud.aiplatform.v1beta1.Study getDefaultInstanceForType() {
833       return com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance();
834     }
835 
836     @java.lang.Override
build()837     public com.google.cloud.aiplatform.v1beta1.Study build() {
838       com.google.cloud.aiplatform.v1beta1.Study result = buildPartial();
839       if (!result.isInitialized()) {
840         throw newUninitializedMessageException(result);
841       }
842       return result;
843     }
844 
845     @java.lang.Override
buildPartial()846     public com.google.cloud.aiplatform.v1beta1.Study buildPartial() {
847       com.google.cloud.aiplatform.v1beta1.Study result =
848           new com.google.cloud.aiplatform.v1beta1.Study(this);
849       if (bitField0_ != 0) {
850         buildPartial0(result);
851       }
852       onBuilt();
853       return result;
854     }
855 
buildPartial0(com.google.cloud.aiplatform.v1beta1.Study result)856     private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Study result) {
857       int from_bitField0_ = bitField0_;
858       if (((from_bitField0_ & 0x00000001) != 0)) {
859         result.name_ = name_;
860       }
861       if (((from_bitField0_ & 0x00000002) != 0)) {
862         result.displayName_ = displayName_;
863       }
864       if (((from_bitField0_ & 0x00000004) != 0)) {
865         result.studySpec_ = studySpecBuilder_ == null ? studySpec_ : studySpecBuilder_.build();
866       }
867       if (((from_bitField0_ & 0x00000008) != 0)) {
868         result.state_ = state_;
869       }
870       if (((from_bitField0_ & 0x00000010) != 0)) {
871         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
872       }
873       if (((from_bitField0_ & 0x00000020) != 0)) {
874         result.inactiveReason_ = inactiveReason_;
875       }
876     }
877 
878     @java.lang.Override
clone()879     public Builder clone() {
880       return super.clone();
881     }
882 
883     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)884     public Builder setField(
885         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
886       return super.setField(field, value);
887     }
888 
889     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)890     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
891       return super.clearField(field);
892     }
893 
894     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)895     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
896       return super.clearOneof(oneof);
897     }
898 
899     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)900     public Builder setRepeatedField(
901         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
902       return super.setRepeatedField(field, index, value);
903     }
904 
905     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)906     public Builder addRepeatedField(
907         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
908       return super.addRepeatedField(field, value);
909     }
910 
911     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)912     public Builder mergeFrom(com.google.protobuf.Message other) {
913       if (other instanceof com.google.cloud.aiplatform.v1beta1.Study) {
914         return mergeFrom((com.google.cloud.aiplatform.v1beta1.Study) other);
915       } else {
916         super.mergeFrom(other);
917         return this;
918       }
919     }
920 
mergeFrom(com.google.cloud.aiplatform.v1beta1.Study other)921     public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Study other) {
922       if (other == com.google.cloud.aiplatform.v1beta1.Study.getDefaultInstance()) return this;
923       if (!other.getName().isEmpty()) {
924         name_ = other.name_;
925         bitField0_ |= 0x00000001;
926         onChanged();
927       }
928       if (!other.getDisplayName().isEmpty()) {
929         displayName_ = other.displayName_;
930         bitField0_ |= 0x00000002;
931         onChanged();
932       }
933       if (other.hasStudySpec()) {
934         mergeStudySpec(other.getStudySpec());
935       }
936       if (other.state_ != 0) {
937         setStateValue(other.getStateValue());
938       }
939       if (other.hasCreateTime()) {
940         mergeCreateTime(other.getCreateTime());
941       }
942       if (!other.getInactiveReason().isEmpty()) {
943         inactiveReason_ = other.inactiveReason_;
944         bitField0_ |= 0x00000020;
945         onChanged();
946       }
947       this.mergeUnknownFields(other.getUnknownFields());
948       onChanged();
949       return this;
950     }
951 
952     @java.lang.Override
isInitialized()953     public final boolean isInitialized() {
954       return true;
955     }
956 
957     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)958     public Builder mergeFrom(
959         com.google.protobuf.CodedInputStream input,
960         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
961         throws java.io.IOException {
962       if (extensionRegistry == null) {
963         throw new java.lang.NullPointerException();
964       }
965       try {
966         boolean done = false;
967         while (!done) {
968           int tag = input.readTag();
969           switch (tag) {
970             case 0:
971               done = true;
972               break;
973             case 10:
974               {
975                 name_ = input.readStringRequireUtf8();
976                 bitField0_ |= 0x00000001;
977                 break;
978               } // case 10
979             case 18:
980               {
981                 displayName_ = input.readStringRequireUtf8();
982                 bitField0_ |= 0x00000002;
983                 break;
984               } // case 18
985             case 26:
986               {
987                 input.readMessage(getStudySpecFieldBuilder().getBuilder(), extensionRegistry);
988                 bitField0_ |= 0x00000004;
989                 break;
990               } // case 26
991             case 32:
992               {
993                 state_ = input.readEnum();
994                 bitField0_ |= 0x00000008;
995                 break;
996               } // case 32
997             case 42:
998               {
999                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1000                 bitField0_ |= 0x00000010;
1001                 break;
1002               } // case 42
1003             case 50:
1004               {
1005                 inactiveReason_ = input.readStringRequireUtf8();
1006                 bitField0_ |= 0x00000020;
1007                 break;
1008               } // case 50
1009             default:
1010               {
1011                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1012                   done = true; // was an endgroup tag
1013                 }
1014                 break;
1015               } // default:
1016           } // switch (tag)
1017         } // while (!done)
1018       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1019         throw e.unwrapIOException();
1020       } finally {
1021         onChanged();
1022       } // finally
1023       return this;
1024     }
1025 
1026     private int bitField0_;
1027 
1028     private java.lang.Object name_ = "";
1029     /**
1030      *
1031      *
1032      * <pre>
1033      * Output only. The name of a study. The study's globally unique identifier.
1034      * Format: `projects/{project}/locations/{location}/studies/{study}`
1035      * </pre>
1036      *
1037      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1038      *
1039      * @return The name.
1040      */
getName()1041     public java.lang.String getName() {
1042       java.lang.Object ref = name_;
1043       if (!(ref instanceof java.lang.String)) {
1044         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1045         java.lang.String s = bs.toStringUtf8();
1046         name_ = s;
1047         return s;
1048       } else {
1049         return (java.lang.String) ref;
1050       }
1051     }
1052     /**
1053      *
1054      *
1055      * <pre>
1056      * Output only. The name of a study. The study's globally unique identifier.
1057      * Format: `projects/{project}/locations/{location}/studies/{study}`
1058      * </pre>
1059      *
1060      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1061      *
1062      * @return The bytes for name.
1063      */
getNameBytes()1064     public com.google.protobuf.ByteString getNameBytes() {
1065       java.lang.Object ref = name_;
1066       if (ref instanceof String) {
1067         com.google.protobuf.ByteString b =
1068             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1069         name_ = b;
1070         return b;
1071       } else {
1072         return (com.google.protobuf.ByteString) ref;
1073       }
1074     }
1075     /**
1076      *
1077      *
1078      * <pre>
1079      * Output only. The name of a study. The study's globally unique identifier.
1080      * Format: `projects/{project}/locations/{location}/studies/{study}`
1081      * </pre>
1082      *
1083      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1084      *
1085      * @param value The name to set.
1086      * @return This builder for chaining.
1087      */
setName(java.lang.String value)1088     public Builder setName(java.lang.String value) {
1089       if (value == null) {
1090         throw new NullPointerException();
1091       }
1092       name_ = value;
1093       bitField0_ |= 0x00000001;
1094       onChanged();
1095       return this;
1096     }
1097     /**
1098      *
1099      *
1100      * <pre>
1101      * Output only. The name of a study. The study's globally unique identifier.
1102      * Format: `projects/{project}/locations/{location}/studies/{study}`
1103      * </pre>
1104      *
1105      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1106      *
1107      * @return This builder for chaining.
1108      */
clearName()1109     public Builder clearName() {
1110       name_ = getDefaultInstance().getName();
1111       bitField0_ = (bitField0_ & ~0x00000001);
1112       onChanged();
1113       return this;
1114     }
1115     /**
1116      *
1117      *
1118      * <pre>
1119      * Output only. The name of a study. The study's globally unique identifier.
1120      * Format: `projects/{project}/locations/{location}/studies/{study}`
1121      * </pre>
1122      *
1123      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1124      *
1125      * @param value The bytes for name to set.
1126      * @return This builder for chaining.
1127      */
setNameBytes(com.google.protobuf.ByteString value)1128     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1129       if (value == null) {
1130         throw new NullPointerException();
1131       }
1132       checkByteStringIsUtf8(value);
1133       name_ = value;
1134       bitField0_ |= 0x00000001;
1135       onChanged();
1136       return this;
1137     }
1138 
1139     private java.lang.Object displayName_ = "";
1140     /**
1141      *
1142      *
1143      * <pre>
1144      * Required. Describes the Study, default value is empty string.
1145      * </pre>
1146      *
1147      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1148      *
1149      * @return The displayName.
1150      */
getDisplayName()1151     public java.lang.String getDisplayName() {
1152       java.lang.Object ref = displayName_;
1153       if (!(ref instanceof java.lang.String)) {
1154         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1155         java.lang.String s = bs.toStringUtf8();
1156         displayName_ = s;
1157         return s;
1158       } else {
1159         return (java.lang.String) ref;
1160       }
1161     }
1162     /**
1163      *
1164      *
1165      * <pre>
1166      * Required. Describes the Study, default value is empty string.
1167      * </pre>
1168      *
1169      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1170      *
1171      * @return The bytes for displayName.
1172      */
getDisplayNameBytes()1173     public com.google.protobuf.ByteString getDisplayNameBytes() {
1174       java.lang.Object ref = displayName_;
1175       if (ref instanceof String) {
1176         com.google.protobuf.ByteString b =
1177             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1178         displayName_ = b;
1179         return b;
1180       } else {
1181         return (com.google.protobuf.ByteString) ref;
1182       }
1183     }
1184     /**
1185      *
1186      *
1187      * <pre>
1188      * Required. Describes the Study, default value is empty string.
1189      * </pre>
1190      *
1191      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1192      *
1193      * @param value The displayName to set.
1194      * @return This builder for chaining.
1195      */
setDisplayName(java.lang.String value)1196     public Builder setDisplayName(java.lang.String value) {
1197       if (value == null) {
1198         throw new NullPointerException();
1199       }
1200       displayName_ = value;
1201       bitField0_ |= 0x00000002;
1202       onChanged();
1203       return this;
1204     }
1205     /**
1206      *
1207      *
1208      * <pre>
1209      * Required. Describes the Study, default value is empty string.
1210      * </pre>
1211      *
1212      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1213      *
1214      * @return This builder for chaining.
1215      */
clearDisplayName()1216     public Builder clearDisplayName() {
1217       displayName_ = getDefaultInstance().getDisplayName();
1218       bitField0_ = (bitField0_ & ~0x00000002);
1219       onChanged();
1220       return this;
1221     }
1222     /**
1223      *
1224      *
1225      * <pre>
1226      * Required. Describes the Study, default value is empty string.
1227      * </pre>
1228      *
1229      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1230      *
1231      * @param value The bytes for displayName to set.
1232      * @return This builder for chaining.
1233      */
setDisplayNameBytes(com.google.protobuf.ByteString value)1234     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
1235       if (value == null) {
1236         throw new NullPointerException();
1237       }
1238       checkByteStringIsUtf8(value);
1239       displayName_ = value;
1240       bitField0_ |= 0x00000002;
1241       onChanged();
1242       return this;
1243     }
1244 
1245     private com.google.cloud.aiplatform.v1beta1.StudySpec studySpec_;
1246     private com.google.protobuf.SingleFieldBuilderV3<
1247             com.google.cloud.aiplatform.v1beta1.StudySpec,
1248             com.google.cloud.aiplatform.v1beta1.StudySpec.Builder,
1249             com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>
1250         studySpecBuilder_;
1251     /**
1252      *
1253      *
1254      * <pre>
1255      * Required. Configuration of the Study.
1256      * </pre>
1257      *
1258      * <code>
1259      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1260      * </code>
1261      *
1262      * @return Whether the studySpec field is set.
1263      */
hasStudySpec()1264     public boolean hasStudySpec() {
1265       return ((bitField0_ & 0x00000004) != 0);
1266     }
1267     /**
1268      *
1269      *
1270      * <pre>
1271      * Required. Configuration of the Study.
1272      * </pre>
1273      *
1274      * <code>
1275      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1276      * </code>
1277      *
1278      * @return The studySpec.
1279      */
getStudySpec()1280     public com.google.cloud.aiplatform.v1beta1.StudySpec getStudySpec() {
1281       if (studySpecBuilder_ == null) {
1282         return studySpec_ == null
1283             ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
1284             : studySpec_;
1285       } else {
1286         return studySpecBuilder_.getMessage();
1287       }
1288     }
1289     /**
1290      *
1291      *
1292      * <pre>
1293      * Required. Configuration of the Study.
1294      * </pre>
1295      *
1296      * <code>
1297      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1298      * </code>
1299      */
setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value)1300     public Builder setStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) {
1301       if (studySpecBuilder_ == null) {
1302         if (value == null) {
1303           throw new NullPointerException();
1304         }
1305         studySpec_ = value;
1306       } else {
1307         studySpecBuilder_.setMessage(value);
1308       }
1309       bitField0_ |= 0x00000004;
1310       onChanged();
1311       return this;
1312     }
1313     /**
1314      *
1315      *
1316      * <pre>
1317      * Required. Configuration of the Study.
1318      * </pre>
1319      *
1320      * <code>
1321      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1322      * </code>
1323      */
setStudySpec( com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue)1324     public Builder setStudySpec(
1325         com.google.cloud.aiplatform.v1beta1.StudySpec.Builder builderForValue) {
1326       if (studySpecBuilder_ == null) {
1327         studySpec_ = builderForValue.build();
1328       } else {
1329         studySpecBuilder_.setMessage(builderForValue.build());
1330       }
1331       bitField0_ |= 0x00000004;
1332       onChanged();
1333       return this;
1334     }
1335     /**
1336      *
1337      *
1338      * <pre>
1339      * Required. Configuration of the Study.
1340      * </pre>
1341      *
1342      * <code>
1343      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1344      * </code>
1345      */
mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value)1346     public Builder mergeStudySpec(com.google.cloud.aiplatform.v1beta1.StudySpec value) {
1347       if (studySpecBuilder_ == null) {
1348         if (((bitField0_ & 0x00000004) != 0)
1349             && studySpec_ != null
1350             && studySpec_ != com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()) {
1351           getStudySpecBuilder().mergeFrom(value);
1352         } else {
1353           studySpec_ = value;
1354         }
1355       } else {
1356         studySpecBuilder_.mergeFrom(value);
1357       }
1358       bitField0_ |= 0x00000004;
1359       onChanged();
1360       return this;
1361     }
1362     /**
1363      *
1364      *
1365      * <pre>
1366      * Required. Configuration of the Study.
1367      * </pre>
1368      *
1369      * <code>
1370      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1371      * </code>
1372      */
clearStudySpec()1373     public Builder clearStudySpec() {
1374       bitField0_ = (bitField0_ & ~0x00000004);
1375       studySpec_ = null;
1376       if (studySpecBuilder_ != null) {
1377         studySpecBuilder_.dispose();
1378         studySpecBuilder_ = null;
1379       }
1380       onChanged();
1381       return this;
1382     }
1383     /**
1384      *
1385      *
1386      * <pre>
1387      * Required. Configuration of the Study.
1388      * </pre>
1389      *
1390      * <code>
1391      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1392      * </code>
1393      */
getStudySpecBuilder()1394     public com.google.cloud.aiplatform.v1beta1.StudySpec.Builder getStudySpecBuilder() {
1395       bitField0_ |= 0x00000004;
1396       onChanged();
1397       return getStudySpecFieldBuilder().getBuilder();
1398     }
1399     /**
1400      *
1401      *
1402      * <pre>
1403      * Required. Configuration of the Study.
1404      * </pre>
1405      *
1406      * <code>
1407      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1408      * </code>
1409      */
getStudySpecOrBuilder()1410     public com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder getStudySpecOrBuilder() {
1411       if (studySpecBuilder_ != null) {
1412         return studySpecBuilder_.getMessageOrBuilder();
1413       } else {
1414         return studySpec_ == null
1415             ? com.google.cloud.aiplatform.v1beta1.StudySpec.getDefaultInstance()
1416             : studySpec_;
1417       }
1418     }
1419     /**
1420      *
1421      *
1422      * <pre>
1423      * Required. Configuration of the Study.
1424      * </pre>
1425      *
1426      * <code>
1427      * .google.cloud.aiplatform.v1beta1.StudySpec study_spec = 3 [(.google.api.field_behavior) = REQUIRED];
1428      * </code>
1429      */
1430     private com.google.protobuf.SingleFieldBuilderV3<
1431             com.google.cloud.aiplatform.v1beta1.StudySpec,
1432             com.google.cloud.aiplatform.v1beta1.StudySpec.Builder,
1433             com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>
getStudySpecFieldBuilder()1434         getStudySpecFieldBuilder() {
1435       if (studySpecBuilder_ == null) {
1436         studySpecBuilder_ =
1437             new com.google.protobuf.SingleFieldBuilderV3<
1438                 com.google.cloud.aiplatform.v1beta1.StudySpec,
1439                 com.google.cloud.aiplatform.v1beta1.StudySpec.Builder,
1440                 com.google.cloud.aiplatform.v1beta1.StudySpecOrBuilder>(
1441                 getStudySpec(), getParentForChildren(), isClean());
1442         studySpec_ = null;
1443       }
1444       return studySpecBuilder_;
1445     }
1446 
1447     private int state_ = 0;
1448     /**
1449      *
1450      *
1451      * <pre>
1452      * Output only. The detailed state of a Study.
1453      * </pre>
1454      *
1455      * <code>
1456      * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1457      * </code>
1458      *
1459      * @return The enum numeric value on the wire for state.
1460      */
1461     @java.lang.Override
getStateValue()1462     public int getStateValue() {
1463       return state_;
1464     }
1465     /**
1466      *
1467      *
1468      * <pre>
1469      * Output only. The detailed state of a Study.
1470      * </pre>
1471      *
1472      * <code>
1473      * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1474      * </code>
1475      *
1476      * @param value The enum numeric value on the wire for state to set.
1477      * @return This builder for chaining.
1478      */
setStateValue(int value)1479     public Builder setStateValue(int value) {
1480       state_ = value;
1481       bitField0_ |= 0x00000008;
1482       onChanged();
1483       return this;
1484     }
1485     /**
1486      *
1487      *
1488      * <pre>
1489      * Output only. The detailed state of a Study.
1490      * </pre>
1491      *
1492      * <code>
1493      * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1494      * </code>
1495      *
1496      * @return The state.
1497      */
1498     @java.lang.Override
getState()1499     public com.google.cloud.aiplatform.v1beta1.Study.State getState() {
1500       com.google.cloud.aiplatform.v1beta1.Study.State result =
1501           com.google.cloud.aiplatform.v1beta1.Study.State.forNumber(state_);
1502       return result == null ? com.google.cloud.aiplatform.v1beta1.Study.State.UNRECOGNIZED : result;
1503     }
1504     /**
1505      *
1506      *
1507      * <pre>
1508      * Output only. The detailed state of a Study.
1509      * </pre>
1510      *
1511      * <code>
1512      * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1513      * </code>
1514      *
1515      * @param value The state to set.
1516      * @return This builder for chaining.
1517      */
setState(com.google.cloud.aiplatform.v1beta1.Study.State value)1518     public Builder setState(com.google.cloud.aiplatform.v1beta1.Study.State value) {
1519       if (value == null) {
1520         throw new NullPointerException();
1521       }
1522       bitField0_ |= 0x00000008;
1523       state_ = value.getNumber();
1524       onChanged();
1525       return this;
1526     }
1527     /**
1528      *
1529      *
1530      * <pre>
1531      * Output only. The detailed state of a Study.
1532      * </pre>
1533      *
1534      * <code>
1535      * .google.cloud.aiplatform.v1beta1.Study.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1536      * </code>
1537      *
1538      * @return This builder for chaining.
1539      */
clearState()1540     public Builder clearState() {
1541       bitField0_ = (bitField0_ & ~0x00000008);
1542       state_ = 0;
1543       onChanged();
1544       return this;
1545     }
1546 
1547     private com.google.protobuf.Timestamp createTime_;
1548     private com.google.protobuf.SingleFieldBuilderV3<
1549             com.google.protobuf.Timestamp,
1550             com.google.protobuf.Timestamp.Builder,
1551             com.google.protobuf.TimestampOrBuilder>
1552         createTimeBuilder_;
1553     /**
1554      *
1555      *
1556      * <pre>
1557      * Output only. Time at which the study was created.
1558      * </pre>
1559      *
1560      * <code>
1561      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1562      * </code>
1563      *
1564      * @return Whether the createTime field is set.
1565      */
hasCreateTime()1566     public boolean hasCreateTime() {
1567       return ((bitField0_ & 0x00000010) != 0);
1568     }
1569     /**
1570      *
1571      *
1572      * <pre>
1573      * Output only. Time at which the study was created.
1574      * </pre>
1575      *
1576      * <code>
1577      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1578      * </code>
1579      *
1580      * @return The createTime.
1581      */
getCreateTime()1582     public com.google.protobuf.Timestamp getCreateTime() {
1583       if (createTimeBuilder_ == null) {
1584         return createTime_ == null
1585             ? com.google.protobuf.Timestamp.getDefaultInstance()
1586             : createTime_;
1587       } else {
1588         return createTimeBuilder_.getMessage();
1589       }
1590     }
1591     /**
1592      *
1593      *
1594      * <pre>
1595      * Output only. Time at which the study was created.
1596      * </pre>
1597      *
1598      * <code>
1599      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1600      * </code>
1601      */
setCreateTime(com.google.protobuf.Timestamp value)1602     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
1603       if (createTimeBuilder_ == null) {
1604         if (value == null) {
1605           throw new NullPointerException();
1606         }
1607         createTime_ = value;
1608       } else {
1609         createTimeBuilder_.setMessage(value);
1610       }
1611       bitField0_ |= 0x00000010;
1612       onChanged();
1613       return this;
1614     }
1615     /**
1616      *
1617      *
1618      * <pre>
1619      * Output only. Time at which the study was created.
1620      * </pre>
1621      *
1622      * <code>
1623      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1624      * </code>
1625      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1626     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1627       if (createTimeBuilder_ == null) {
1628         createTime_ = builderForValue.build();
1629       } else {
1630         createTimeBuilder_.setMessage(builderForValue.build());
1631       }
1632       bitField0_ |= 0x00000010;
1633       onChanged();
1634       return this;
1635     }
1636     /**
1637      *
1638      *
1639      * <pre>
1640      * Output only. Time at which the study was created.
1641      * </pre>
1642      *
1643      * <code>
1644      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1645      * </code>
1646      */
mergeCreateTime(com.google.protobuf.Timestamp value)1647     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
1648       if (createTimeBuilder_ == null) {
1649         if (((bitField0_ & 0x00000010) != 0)
1650             && createTime_ != null
1651             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1652           getCreateTimeBuilder().mergeFrom(value);
1653         } else {
1654           createTime_ = value;
1655         }
1656       } else {
1657         createTimeBuilder_.mergeFrom(value);
1658       }
1659       bitField0_ |= 0x00000010;
1660       onChanged();
1661       return this;
1662     }
1663     /**
1664      *
1665      *
1666      * <pre>
1667      * Output only. Time at which the study was created.
1668      * </pre>
1669      *
1670      * <code>
1671      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1672      * </code>
1673      */
clearCreateTime()1674     public Builder clearCreateTime() {
1675       bitField0_ = (bitField0_ & ~0x00000010);
1676       createTime_ = null;
1677       if (createTimeBuilder_ != null) {
1678         createTimeBuilder_.dispose();
1679         createTimeBuilder_ = null;
1680       }
1681       onChanged();
1682       return this;
1683     }
1684     /**
1685      *
1686      *
1687      * <pre>
1688      * Output only. Time at which the study was created.
1689      * </pre>
1690      *
1691      * <code>
1692      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1693      * </code>
1694      */
getCreateTimeBuilder()1695     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
1696       bitField0_ |= 0x00000010;
1697       onChanged();
1698       return getCreateTimeFieldBuilder().getBuilder();
1699     }
1700     /**
1701      *
1702      *
1703      * <pre>
1704      * Output only. Time at which the study was created.
1705      * </pre>
1706      *
1707      * <code>
1708      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1709      * </code>
1710      */
getCreateTimeOrBuilder()1711     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
1712       if (createTimeBuilder_ != null) {
1713         return createTimeBuilder_.getMessageOrBuilder();
1714       } else {
1715         return createTime_ == null
1716             ? com.google.protobuf.Timestamp.getDefaultInstance()
1717             : createTime_;
1718       }
1719     }
1720     /**
1721      *
1722      *
1723      * <pre>
1724      * Output only. Time at which the study was created.
1725      * </pre>
1726      *
1727      * <code>
1728      * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1729      * </code>
1730      */
1731     private com.google.protobuf.SingleFieldBuilderV3<
1732             com.google.protobuf.Timestamp,
1733             com.google.protobuf.Timestamp.Builder,
1734             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()1735         getCreateTimeFieldBuilder() {
1736       if (createTimeBuilder_ == null) {
1737         createTimeBuilder_ =
1738             new com.google.protobuf.SingleFieldBuilderV3<
1739                 com.google.protobuf.Timestamp,
1740                 com.google.protobuf.Timestamp.Builder,
1741                 com.google.protobuf.TimestampOrBuilder>(
1742                 getCreateTime(), getParentForChildren(), isClean());
1743         createTime_ = null;
1744       }
1745       return createTimeBuilder_;
1746     }
1747 
1748     private java.lang.Object inactiveReason_ = "";
1749     /**
1750      *
1751      *
1752      * <pre>
1753      * Output only. A human readable reason why the Study is inactive.
1754      * This should be empty if a study is ACTIVE or COMPLETED.
1755      * </pre>
1756      *
1757      * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1758      *
1759      * @return The inactiveReason.
1760      */
getInactiveReason()1761     public java.lang.String getInactiveReason() {
1762       java.lang.Object ref = inactiveReason_;
1763       if (!(ref instanceof java.lang.String)) {
1764         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1765         java.lang.String s = bs.toStringUtf8();
1766         inactiveReason_ = s;
1767         return s;
1768       } else {
1769         return (java.lang.String) ref;
1770       }
1771     }
1772     /**
1773      *
1774      *
1775      * <pre>
1776      * Output only. A human readable reason why the Study is inactive.
1777      * This should be empty if a study is ACTIVE or COMPLETED.
1778      * </pre>
1779      *
1780      * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1781      *
1782      * @return The bytes for inactiveReason.
1783      */
getInactiveReasonBytes()1784     public com.google.protobuf.ByteString getInactiveReasonBytes() {
1785       java.lang.Object ref = inactiveReason_;
1786       if (ref instanceof String) {
1787         com.google.protobuf.ByteString b =
1788             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1789         inactiveReason_ = b;
1790         return b;
1791       } else {
1792         return (com.google.protobuf.ByteString) ref;
1793       }
1794     }
1795     /**
1796      *
1797      *
1798      * <pre>
1799      * Output only. A human readable reason why the Study is inactive.
1800      * This should be empty if a study is ACTIVE or COMPLETED.
1801      * </pre>
1802      *
1803      * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1804      *
1805      * @param value The inactiveReason to set.
1806      * @return This builder for chaining.
1807      */
setInactiveReason(java.lang.String value)1808     public Builder setInactiveReason(java.lang.String value) {
1809       if (value == null) {
1810         throw new NullPointerException();
1811       }
1812       inactiveReason_ = value;
1813       bitField0_ |= 0x00000020;
1814       onChanged();
1815       return this;
1816     }
1817     /**
1818      *
1819      *
1820      * <pre>
1821      * Output only. A human readable reason why the Study is inactive.
1822      * This should be empty if a study is ACTIVE or COMPLETED.
1823      * </pre>
1824      *
1825      * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1826      *
1827      * @return This builder for chaining.
1828      */
clearInactiveReason()1829     public Builder clearInactiveReason() {
1830       inactiveReason_ = getDefaultInstance().getInactiveReason();
1831       bitField0_ = (bitField0_ & ~0x00000020);
1832       onChanged();
1833       return this;
1834     }
1835     /**
1836      *
1837      *
1838      * <pre>
1839      * Output only. A human readable reason why the Study is inactive.
1840      * This should be empty if a study is ACTIVE or COMPLETED.
1841      * </pre>
1842      *
1843      * <code>string inactive_reason = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1844      *
1845      * @param value The bytes for inactiveReason to set.
1846      * @return This builder for chaining.
1847      */
setInactiveReasonBytes(com.google.protobuf.ByteString value)1848     public Builder setInactiveReasonBytes(com.google.protobuf.ByteString value) {
1849       if (value == null) {
1850         throw new NullPointerException();
1851       }
1852       checkByteStringIsUtf8(value);
1853       inactiveReason_ = value;
1854       bitField0_ |= 0x00000020;
1855       onChanged();
1856       return this;
1857     }
1858 
1859     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1860     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1861       return super.setUnknownFields(unknownFields);
1862     }
1863 
1864     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1865     public final Builder mergeUnknownFields(
1866         final com.google.protobuf.UnknownFieldSet unknownFields) {
1867       return super.mergeUnknownFields(unknownFields);
1868     }
1869 
1870     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Study)
1871   }
1872 
1873   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Study)
1874   private static final com.google.cloud.aiplatform.v1beta1.Study DEFAULT_INSTANCE;
1875 
1876   static {
1877     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Study();
1878   }
1879 
getDefaultInstance()1880   public static com.google.cloud.aiplatform.v1beta1.Study getDefaultInstance() {
1881     return DEFAULT_INSTANCE;
1882   }
1883 
1884   private static final com.google.protobuf.Parser<Study> PARSER =
1885       new com.google.protobuf.AbstractParser<Study>() {
1886         @java.lang.Override
1887         public Study parsePartialFrom(
1888             com.google.protobuf.CodedInputStream input,
1889             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1890             throws com.google.protobuf.InvalidProtocolBufferException {
1891           Builder builder = newBuilder();
1892           try {
1893             builder.mergeFrom(input, extensionRegistry);
1894           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1895             throw e.setUnfinishedMessage(builder.buildPartial());
1896           } catch (com.google.protobuf.UninitializedMessageException e) {
1897             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1898           } catch (java.io.IOException e) {
1899             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1900                 .setUnfinishedMessage(builder.buildPartial());
1901           }
1902           return builder.buildPartial();
1903         }
1904       };
1905 
parser()1906   public static com.google.protobuf.Parser<Study> parser() {
1907     return PARSER;
1908   }
1909 
1910   @java.lang.Override
getParserForType()1911   public com.google.protobuf.Parser<Study> getParserForType() {
1912     return PARSER;
1913   }
1914 
1915   @java.lang.Override
getDefaultInstanceForType()1916   public com.google.cloud.aiplatform.v1beta1.Study getDefaultInstanceForType() {
1917     return DEFAULT_INSTANCE;
1918   }
1919 }
1920