• 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/model.proto
18 
19 package com.google.cloud.aiplatform.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A trained machine learning Model.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.aiplatform.v1beta1.Model}
29  */
30 public final class Model extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Model)
33     ModelOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use Model.newBuilder() to construct.
Model(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private Model(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
Model()40   private Model() {
41     name_ = "";
42     versionId_ = "";
43     versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
44     displayName_ = "";
45     description_ = "";
46     versionDescription_ = "";
47     metadataSchemaUri_ = "";
48     supportedExportFormats_ = java.util.Collections.emptyList();
49     trainingPipeline_ = "";
50     artifactUri_ = "";
51     supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList();
52     supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
53     supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
54     deployedModels_ = java.util.Collections.emptyList();
55     etag_ = "";
56     metadataArtifact_ = "";
57   }
58 
59   @java.lang.Override
60   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)61   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
62     return new Model();
63   }
64 
65   @java.lang.Override
getUnknownFields()66   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
67     return this.unknownFields;
68   }
69 
getDescriptor()70   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
71     return com.google.cloud.aiplatform.v1beta1.ModelProto
72         .internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor;
73   }
74 
75   @SuppressWarnings({"rawtypes"})
76   @java.lang.Override
internalGetMapField(int number)77   protected com.google.protobuf.MapField internalGetMapField(int number) {
78     switch (number) {
79       case 17:
80         return internalGetLabels();
81       default:
82         throw new RuntimeException("Invalid map field number: " + number);
83     }
84   }
85 
86   @java.lang.Override
87   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()88       internalGetFieldAccessorTable() {
89     return com.google.cloud.aiplatform.v1beta1.ModelProto
90         .internal_static_google_cloud_aiplatform_v1beta1_Model_fieldAccessorTable
91         .ensureFieldAccessorsInitialized(
92             com.google.cloud.aiplatform.v1beta1.Model.class,
93             com.google.cloud.aiplatform.v1beta1.Model.Builder.class);
94   }
95 
96   /**
97    *
98    *
99    * <pre>
100    * Identifies a type of Model's prediction resources.
101    * </pre>
102    *
103    * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType}
104    */
105   public enum DeploymentResourcesType implements com.google.protobuf.ProtocolMessageEnum {
106     /**
107      *
108      *
109      * <pre>
110      * Should not be used.
111      * </pre>
112      *
113      * <code>DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0;</code>
114      */
115     DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED(0),
116     /**
117      *
118      *
119      * <pre>
120      * Resources that are dedicated to the
121      * [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel], and that
122      * need a higher degree of manual configuration.
123      * </pre>
124      *
125      * <code>DEDICATED_RESOURCES = 1;</code>
126      */
127     DEDICATED_RESOURCES(1),
128     /**
129      *
130      *
131      * <pre>
132      * Resources that to large degree are decided by Vertex AI, and require
133      * only a modest additional configuration.
134      * </pre>
135      *
136      * <code>AUTOMATIC_RESOURCES = 2;</code>
137      */
138     AUTOMATIC_RESOURCES(2),
139     /**
140      *
141      *
142      * <pre>
143      * Resources that can be shared by multiple
144      * [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel]. A
145      * pre-configured
146      * [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool]
147      * is required.
148      * </pre>
149      *
150      * <code>SHARED_RESOURCES = 3;</code>
151      */
152     SHARED_RESOURCES(3),
153     UNRECOGNIZED(-1),
154     ;
155 
156     /**
157      *
158      *
159      * <pre>
160      * Should not be used.
161      * </pre>
162      *
163      * <code>DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0;</code>
164      */
165     public static final int DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED_VALUE = 0;
166     /**
167      *
168      *
169      * <pre>
170      * Resources that are dedicated to the
171      * [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel], and that
172      * need a higher degree of manual configuration.
173      * </pre>
174      *
175      * <code>DEDICATED_RESOURCES = 1;</code>
176      */
177     public static final int DEDICATED_RESOURCES_VALUE = 1;
178     /**
179      *
180      *
181      * <pre>
182      * Resources that to large degree are decided by Vertex AI, and require
183      * only a modest additional configuration.
184      * </pre>
185      *
186      * <code>AUTOMATIC_RESOURCES = 2;</code>
187      */
188     public static final int AUTOMATIC_RESOURCES_VALUE = 2;
189     /**
190      *
191      *
192      * <pre>
193      * Resources that can be shared by multiple
194      * [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel]. A
195      * pre-configured
196      * [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool]
197      * is required.
198      * </pre>
199      *
200      * <code>SHARED_RESOURCES = 3;</code>
201      */
202     public static final int SHARED_RESOURCES_VALUE = 3;
203 
getNumber()204     public final int getNumber() {
205       if (this == UNRECOGNIZED) {
206         throw new java.lang.IllegalArgumentException(
207             "Can't get the number of an unknown enum value.");
208       }
209       return value;
210     }
211 
212     /**
213      * @param value The numeric wire value of the corresponding enum entry.
214      * @return The enum associated with the given numeric wire value.
215      * @deprecated Use {@link #forNumber(int)} instead.
216      */
217     @java.lang.Deprecated
valueOf(int value)218     public static DeploymentResourcesType valueOf(int value) {
219       return forNumber(value);
220     }
221 
222     /**
223      * @param value The numeric wire value of the corresponding enum entry.
224      * @return The enum associated with the given numeric wire value.
225      */
forNumber(int value)226     public static DeploymentResourcesType forNumber(int value) {
227       switch (value) {
228         case 0:
229           return DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED;
230         case 1:
231           return DEDICATED_RESOURCES;
232         case 2:
233           return AUTOMATIC_RESOURCES;
234         case 3:
235           return SHARED_RESOURCES;
236         default:
237           return null;
238       }
239     }
240 
241     public static com.google.protobuf.Internal.EnumLiteMap<DeploymentResourcesType>
internalGetValueMap()242         internalGetValueMap() {
243       return internalValueMap;
244     }
245 
246     private static final com.google.protobuf.Internal.EnumLiteMap<DeploymentResourcesType>
247         internalValueMap =
248             new com.google.protobuf.Internal.EnumLiteMap<DeploymentResourcesType>() {
249               public DeploymentResourcesType findValueByNumber(int number) {
250                 return DeploymentResourcesType.forNumber(number);
251               }
252             };
253 
getValueDescriptor()254     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
255       if (this == UNRECOGNIZED) {
256         throw new java.lang.IllegalStateException(
257             "Can't get the descriptor of an unrecognized enum value.");
258       }
259       return getDescriptor().getValues().get(ordinal());
260     }
261 
getDescriptorForType()262     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
263       return getDescriptor();
264     }
265 
getDescriptor()266     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
267       return com.google.cloud.aiplatform.v1beta1.Model.getDescriptor().getEnumTypes().get(0);
268     }
269 
270     private static final DeploymentResourcesType[] VALUES = values();
271 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)272     public static DeploymentResourcesType valueOf(
273         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
274       if (desc.getType() != getDescriptor()) {
275         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
276       }
277       if (desc.getIndex() == -1) {
278         return UNRECOGNIZED;
279       }
280       return VALUES[desc.getIndex()];
281     }
282 
283     private final int value;
284 
DeploymentResourcesType(int value)285     private DeploymentResourcesType(int value) {
286       this.value = value;
287     }
288 
289     // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType)
290   }
291 
292   public interface ExportFormatOrBuilder
293       extends
294       // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Model.ExportFormat)
295       com.google.protobuf.MessageOrBuilder {
296 
297     /**
298      *
299      *
300      * <pre>
301      * Output only. The ID of the export format.
302      * The possible format IDs are:
303      * * `tflite`
304      * Used for Android mobile devices.
305      * * `edgetpu-tflite`
306      * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
307      * * `tf-saved-model`
308      * A tensorflow model in SavedModel format.
309      * * `tf-js`
310      * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
311      * in the browser and in Node.js using JavaScript.
312      * * `core-ml`
313      * Used for iOS mobile devices.
314      * * `custom-trained`
315      * A Model that was uploaded or trained by custom code.
316      * </pre>
317      *
318      * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
319      *
320      * @return The id.
321      */
getId()322     java.lang.String getId();
323     /**
324      *
325      *
326      * <pre>
327      * Output only. The ID of the export format.
328      * The possible format IDs are:
329      * * `tflite`
330      * Used for Android mobile devices.
331      * * `edgetpu-tflite`
332      * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
333      * * `tf-saved-model`
334      * A tensorflow model in SavedModel format.
335      * * `tf-js`
336      * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
337      * in the browser and in Node.js using JavaScript.
338      * * `core-ml`
339      * Used for iOS mobile devices.
340      * * `custom-trained`
341      * A Model that was uploaded or trained by custom code.
342      * </pre>
343      *
344      * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
345      *
346      * @return The bytes for id.
347      */
getIdBytes()348     com.google.protobuf.ByteString getIdBytes();
349 
350     /**
351      *
352      *
353      * <pre>
354      * Output only. The content of this Model that may be exported.
355      * </pre>
356      *
357      * <code>
358      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
359      * </code>
360      *
361      * @return A list containing the exportableContents.
362      */
363     java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>
getExportableContentsList()364         getExportableContentsList();
365     /**
366      *
367      *
368      * <pre>
369      * Output only. The content of this Model that may be exported.
370      * </pre>
371      *
372      * <code>
373      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
374      * </code>
375      *
376      * @return The count of exportableContents.
377      */
getExportableContentsCount()378     int getExportableContentsCount();
379     /**
380      *
381      *
382      * <pre>
383      * Output only. The content of this Model that may be exported.
384      * </pre>
385      *
386      * <code>
387      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
388      * </code>
389      *
390      * @param index The index of the element to return.
391      * @return The exportableContents at the given index.
392      */
getExportableContents( int index)393     com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent getExportableContents(
394         int index);
395     /**
396      *
397      *
398      * <pre>
399      * Output only. The content of this Model that may be exported.
400      * </pre>
401      *
402      * <code>
403      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
404      * </code>
405      *
406      * @return A list containing the enum numeric values on the wire for exportableContents.
407      */
getExportableContentsValueList()408     java.util.List<java.lang.Integer> getExportableContentsValueList();
409     /**
410      *
411      *
412      * <pre>
413      * Output only. The content of this Model that may be exported.
414      * </pre>
415      *
416      * <code>
417      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
418      * </code>
419      *
420      * @param index The index of the value to return.
421      * @return The enum numeric value on the wire of exportableContents at the given index.
422      */
getExportableContentsValue(int index)423     int getExportableContentsValue(int index);
424   }
425   /**
426    *
427    *
428    * <pre>
429    * Represents export format supported by the Model.
430    * All formats export to Google Cloud Storage.
431    * </pre>
432    *
433    * Protobuf type {@code google.cloud.aiplatform.v1beta1.Model.ExportFormat}
434    */
435   public static final class ExportFormat extends com.google.protobuf.GeneratedMessageV3
436       implements
437       // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Model.ExportFormat)
438       ExportFormatOrBuilder {
439     private static final long serialVersionUID = 0L;
440     // Use ExportFormat.newBuilder() to construct.
ExportFormat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)441     private ExportFormat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
442       super(builder);
443     }
444 
ExportFormat()445     private ExportFormat() {
446       id_ = "";
447       exportableContents_ = java.util.Collections.emptyList();
448     }
449 
450     @java.lang.Override
451     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)452     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
453       return new ExportFormat();
454     }
455 
456     @java.lang.Override
getUnknownFields()457     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
458       return this.unknownFields;
459     }
460 
getDescriptor()461     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
462       return com.google.cloud.aiplatform.v1beta1.ModelProto
463           .internal_static_google_cloud_aiplatform_v1beta1_Model_ExportFormat_descriptor;
464     }
465 
466     @java.lang.Override
467     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()468         internalGetFieldAccessorTable() {
469       return com.google.cloud.aiplatform.v1beta1.ModelProto
470           .internal_static_google_cloud_aiplatform_v1beta1_Model_ExportFormat_fieldAccessorTable
471           .ensureFieldAccessorsInitialized(
472               com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.class,
473               com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder.class);
474     }
475 
476     /**
477      *
478      *
479      * <pre>
480      * The Model content that can be exported.
481      * </pre>
482      *
483      * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent}
484      */
485     public enum ExportableContent implements com.google.protobuf.ProtocolMessageEnum {
486       /**
487        *
488        *
489        * <pre>
490        * Should not be used.
491        * </pre>
492        *
493        * <code>EXPORTABLE_CONTENT_UNSPECIFIED = 0;</code>
494        */
495       EXPORTABLE_CONTENT_UNSPECIFIED(0),
496       /**
497        *
498        *
499        * <pre>
500        * Model artifact and any of its supported files. Will be exported to the
501        * location specified by the `artifactDestination` field of the
502        * [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config]
503        * object.
504        * </pre>
505        *
506        * <code>ARTIFACT = 1;</code>
507        */
508       ARTIFACT(1),
509       /**
510        *
511        *
512        * <pre>
513        * The container image that is to be used when deploying this Model. Will
514        * be exported to the location specified by the `imageDestination` field
515        * of the
516        * [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config]
517        * object.
518        * </pre>
519        *
520        * <code>IMAGE = 2;</code>
521        */
522       IMAGE(2),
523       UNRECOGNIZED(-1),
524       ;
525 
526       /**
527        *
528        *
529        * <pre>
530        * Should not be used.
531        * </pre>
532        *
533        * <code>EXPORTABLE_CONTENT_UNSPECIFIED = 0;</code>
534        */
535       public static final int EXPORTABLE_CONTENT_UNSPECIFIED_VALUE = 0;
536       /**
537        *
538        *
539        * <pre>
540        * Model artifact and any of its supported files. Will be exported to the
541        * location specified by the `artifactDestination` field of the
542        * [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config]
543        * object.
544        * </pre>
545        *
546        * <code>ARTIFACT = 1;</code>
547        */
548       public static final int ARTIFACT_VALUE = 1;
549       /**
550        *
551        *
552        * <pre>
553        * The container image that is to be used when deploying this Model. Will
554        * be exported to the location specified by the `imageDestination` field
555        * of the
556        * [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config]
557        * object.
558        * </pre>
559        *
560        * <code>IMAGE = 2;</code>
561        */
562       public static final int IMAGE_VALUE = 2;
563 
getNumber()564       public final int getNumber() {
565         if (this == UNRECOGNIZED) {
566           throw new java.lang.IllegalArgumentException(
567               "Can't get the number of an unknown enum value.");
568         }
569         return value;
570       }
571 
572       /**
573        * @param value The numeric wire value of the corresponding enum entry.
574        * @return The enum associated with the given numeric wire value.
575        * @deprecated Use {@link #forNumber(int)} instead.
576        */
577       @java.lang.Deprecated
valueOf(int value)578       public static ExportableContent valueOf(int value) {
579         return forNumber(value);
580       }
581 
582       /**
583        * @param value The numeric wire value of the corresponding enum entry.
584        * @return The enum associated with the given numeric wire value.
585        */
forNumber(int value)586       public static ExportableContent forNumber(int value) {
587         switch (value) {
588           case 0:
589             return EXPORTABLE_CONTENT_UNSPECIFIED;
590           case 1:
591             return ARTIFACT;
592           case 2:
593             return IMAGE;
594           default:
595             return null;
596         }
597       }
598 
599       public static com.google.protobuf.Internal.EnumLiteMap<ExportableContent>
internalGetValueMap()600           internalGetValueMap() {
601         return internalValueMap;
602       }
603 
604       private static final com.google.protobuf.Internal.EnumLiteMap<ExportableContent>
605           internalValueMap =
606               new com.google.protobuf.Internal.EnumLiteMap<ExportableContent>() {
607                 public ExportableContent findValueByNumber(int number) {
608                   return ExportableContent.forNumber(number);
609                 }
610               };
611 
getValueDescriptor()612       public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
613         if (this == UNRECOGNIZED) {
614           throw new java.lang.IllegalStateException(
615               "Can't get the descriptor of an unrecognized enum value.");
616         }
617         return getDescriptor().getValues().get(ordinal());
618       }
619 
getDescriptorForType()620       public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
621         return getDescriptor();
622       }
623 
getDescriptor()624       public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
625         return com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.getDescriptor()
626             .getEnumTypes()
627             .get(0);
628       }
629 
630       private static final ExportableContent[] VALUES = values();
631 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)632       public static ExportableContent valueOf(
633           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
634         if (desc.getType() != getDescriptor()) {
635           throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
636         }
637         if (desc.getIndex() == -1) {
638           return UNRECOGNIZED;
639         }
640         return VALUES[desc.getIndex()];
641       }
642 
643       private final int value;
644 
ExportableContent(int value)645       private ExportableContent(int value) {
646         this.value = value;
647       }
648 
649       // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent)
650     }
651 
652     public static final int ID_FIELD_NUMBER = 1;
653 
654     @SuppressWarnings("serial")
655     private volatile java.lang.Object id_ = "";
656     /**
657      *
658      *
659      * <pre>
660      * Output only. The ID of the export format.
661      * The possible format IDs are:
662      * * `tflite`
663      * Used for Android mobile devices.
664      * * `edgetpu-tflite`
665      * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
666      * * `tf-saved-model`
667      * A tensorflow model in SavedModel format.
668      * * `tf-js`
669      * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
670      * in the browser and in Node.js using JavaScript.
671      * * `core-ml`
672      * Used for iOS mobile devices.
673      * * `custom-trained`
674      * A Model that was uploaded or trained by custom code.
675      * </pre>
676      *
677      * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
678      *
679      * @return The id.
680      */
681     @java.lang.Override
getId()682     public java.lang.String getId() {
683       java.lang.Object ref = id_;
684       if (ref instanceof java.lang.String) {
685         return (java.lang.String) ref;
686       } else {
687         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
688         java.lang.String s = bs.toStringUtf8();
689         id_ = s;
690         return s;
691       }
692     }
693     /**
694      *
695      *
696      * <pre>
697      * Output only. The ID of the export format.
698      * The possible format IDs are:
699      * * `tflite`
700      * Used for Android mobile devices.
701      * * `edgetpu-tflite`
702      * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
703      * * `tf-saved-model`
704      * A tensorflow model in SavedModel format.
705      * * `tf-js`
706      * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
707      * in the browser and in Node.js using JavaScript.
708      * * `core-ml`
709      * Used for iOS mobile devices.
710      * * `custom-trained`
711      * A Model that was uploaded or trained by custom code.
712      * </pre>
713      *
714      * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
715      *
716      * @return The bytes for id.
717      */
718     @java.lang.Override
getIdBytes()719     public com.google.protobuf.ByteString getIdBytes() {
720       java.lang.Object ref = id_;
721       if (ref instanceof java.lang.String) {
722         com.google.protobuf.ByteString b =
723             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
724         id_ = b;
725         return b;
726       } else {
727         return (com.google.protobuf.ByteString) ref;
728       }
729     }
730 
731     public static final int EXPORTABLE_CONTENTS_FIELD_NUMBER = 2;
732 
733     @SuppressWarnings("serial")
734     private java.util.List<java.lang.Integer> exportableContents_;
735 
736     private static final com.google.protobuf.Internal.ListAdapter.Converter<
737             java.lang.Integer,
738             com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>
739         exportableContents_converter_ =
740             new com.google.protobuf.Internal.ListAdapter.Converter<
741                 java.lang.Integer,
742                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>() {
743               public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent
744                   convert(java.lang.Integer from) {
745                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent result =
746                     com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent
747                         .forNumber(from);
748                 return result == null
749                     ? com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent
750                         .UNRECOGNIZED
751                     : result;
752               }
753             };
754     /**
755      *
756      *
757      * <pre>
758      * Output only. The content of this Model that may be exported.
759      * </pre>
760      *
761      * <code>
762      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
763      * </code>
764      *
765      * @return A list containing the exportableContents.
766      */
767     @java.lang.Override
768     public java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>
getExportableContentsList()769         getExportableContentsList() {
770       return new com.google.protobuf.Internal.ListAdapter<
771           java.lang.Integer,
772           com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>(
773           exportableContents_, exportableContents_converter_);
774     }
775     /**
776      *
777      *
778      * <pre>
779      * Output only. The content of this Model that may be exported.
780      * </pre>
781      *
782      * <code>
783      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
784      * </code>
785      *
786      * @return The count of exportableContents.
787      */
788     @java.lang.Override
getExportableContentsCount()789     public int getExportableContentsCount() {
790       return exportableContents_.size();
791     }
792     /**
793      *
794      *
795      * <pre>
796      * Output only. The content of this Model that may be exported.
797      * </pre>
798      *
799      * <code>
800      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
801      * </code>
802      *
803      * @param index The index of the element to return.
804      * @return The exportableContents at the given index.
805      */
806     @java.lang.Override
807     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent
getExportableContents(int index)808         getExportableContents(int index) {
809       return exportableContents_converter_.convert(exportableContents_.get(index));
810     }
811     /**
812      *
813      *
814      * <pre>
815      * Output only. The content of this Model that may be exported.
816      * </pre>
817      *
818      * <code>
819      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
820      * </code>
821      *
822      * @return A list containing the enum numeric values on the wire for exportableContents.
823      */
824     @java.lang.Override
getExportableContentsValueList()825     public java.util.List<java.lang.Integer> getExportableContentsValueList() {
826       return exportableContents_;
827     }
828     /**
829      *
830      *
831      * <pre>
832      * Output only. The content of this Model that may be exported.
833      * </pre>
834      *
835      * <code>
836      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
837      * </code>
838      *
839      * @param index The index of the value to return.
840      * @return The enum numeric value on the wire of exportableContents at the given index.
841      */
842     @java.lang.Override
getExportableContentsValue(int index)843     public int getExportableContentsValue(int index) {
844       return exportableContents_.get(index);
845     }
846 
847     private int exportableContentsMemoizedSerializedSize;
848 
849     private byte memoizedIsInitialized = -1;
850 
851     @java.lang.Override
isInitialized()852     public final boolean isInitialized() {
853       byte isInitialized = memoizedIsInitialized;
854       if (isInitialized == 1) return true;
855       if (isInitialized == 0) return false;
856 
857       memoizedIsInitialized = 1;
858       return true;
859     }
860 
861     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)862     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
863       getSerializedSize();
864       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
865         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
866       }
867       if (getExportableContentsList().size() > 0) {
868         output.writeUInt32NoTag(18);
869         output.writeUInt32NoTag(exportableContentsMemoizedSerializedSize);
870       }
871       for (int i = 0; i < exportableContents_.size(); i++) {
872         output.writeEnumNoTag(exportableContents_.get(i));
873       }
874       getUnknownFields().writeTo(output);
875     }
876 
877     @java.lang.Override
getSerializedSize()878     public int getSerializedSize() {
879       int size = memoizedSize;
880       if (size != -1) return size;
881 
882       size = 0;
883       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
884         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
885       }
886       {
887         int dataSize = 0;
888         for (int i = 0; i < exportableContents_.size(); i++) {
889           dataSize +=
890               com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
891                   exportableContents_.get(i));
892         }
893         size += dataSize;
894         if (!getExportableContentsList().isEmpty()) {
895           size += 1;
896           size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
897         }
898         exportableContentsMemoizedSerializedSize = dataSize;
899       }
900       size += getUnknownFields().getSerializedSize();
901       memoizedSize = size;
902       return size;
903     }
904 
905     @java.lang.Override
equals(final java.lang.Object obj)906     public boolean equals(final java.lang.Object obj) {
907       if (obj == this) {
908         return true;
909       }
910       if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Model.ExportFormat)) {
911         return super.equals(obj);
912       }
913       com.google.cloud.aiplatform.v1beta1.Model.ExportFormat other =
914           (com.google.cloud.aiplatform.v1beta1.Model.ExportFormat) obj;
915 
916       if (!getId().equals(other.getId())) return false;
917       if (!exportableContents_.equals(other.exportableContents_)) return false;
918       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
919       return true;
920     }
921 
922     @java.lang.Override
hashCode()923     public int hashCode() {
924       if (memoizedHashCode != 0) {
925         return memoizedHashCode;
926       }
927       int hash = 41;
928       hash = (19 * hash) + getDescriptor().hashCode();
929       hash = (37 * hash) + ID_FIELD_NUMBER;
930       hash = (53 * hash) + getId().hashCode();
931       if (getExportableContentsCount() > 0) {
932         hash = (37 * hash) + EXPORTABLE_CONTENTS_FIELD_NUMBER;
933         hash = (53 * hash) + exportableContents_.hashCode();
934       }
935       hash = (29 * hash) + getUnknownFields().hashCode();
936       memoizedHashCode = hash;
937       return hash;
938     }
939 
parseFrom( java.nio.ByteBuffer data)940     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
941         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
942       return PARSER.parseFrom(data);
943     }
944 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)945     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
946         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
947         throws com.google.protobuf.InvalidProtocolBufferException {
948       return PARSER.parseFrom(data, extensionRegistry);
949     }
950 
parseFrom( com.google.protobuf.ByteString data)951     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
952         com.google.protobuf.ByteString data)
953         throws com.google.protobuf.InvalidProtocolBufferException {
954       return PARSER.parseFrom(data);
955     }
956 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)957     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
958         com.google.protobuf.ByteString data,
959         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
960         throws com.google.protobuf.InvalidProtocolBufferException {
961       return PARSER.parseFrom(data, extensionRegistry);
962     }
963 
parseFrom(byte[] data)964     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(byte[] data)
965         throws com.google.protobuf.InvalidProtocolBufferException {
966       return PARSER.parseFrom(data);
967     }
968 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)969     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
970         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
971         throws com.google.protobuf.InvalidProtocolBufferException {
972       return PARSER.parseFrom(data, extensionRegistry);
973     }
974 
parseFrom( java.io.InputStream input)975     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
976         java.io.InputStream input) throws java.io.IOException {
977       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
978     }
979 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)980     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
981         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
982         throws java.io.IOException {
983       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
984           PARSER, input, extensionRegistry);
985     }
986 
parseDelimitedFrom( java.io.InputStream input)987     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseDelimitedFrom(
988         java.io.InputStream input) throws java.io.IOException {
989       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
990     }
991 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)992     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseDelimitedFrom(
993         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
994         throws java.io.IOException {
995       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
996           PARSER, input, extensionRegistry);
997     }
998 
parseFrom( com.google.protobuf.CodedInputStream input)999     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
1000         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1001       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1002     }
1003 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1004     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat parseFrom(
1005         com.google.protobuf.CodedInputStream input,
1006         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1007         throws java.io.IOException {
1008       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1009           PARSER, input, extensionRegistry);
1010     }
1011 
1012     @java.lang.Override
newBuilderForType()1013     public Builder newBuilderForType() {
1014       return newBuilder();
1015     }
1016 
newBuilder()1017     public static Builder newBuilder() {
1018       return DEFAULT_INSTANCE.toBuilder();
1019     }
1020 
newBuilder( com.google.cloud.aiplatform.v1beta1.Model.ExportFormat prototype)1021     public static Builder newBuilder(
1022         com.google.cloud.aiplatform.v1beta1.Model.ExportFormat prototype) {
1023       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1024     }
1025 
1026     @java.lang.Override
toBuilder()1027     public Builder toBuilder() {
1028       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1029     }
1030 
1031     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1032     protected Builder newBuilderForType(
1033         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1034       Builder builder = new Builder(parent);
1035       return builder;
1036     }
1037     /**
1038      *
1039      *
1040      * <pre>
1041      * Represents export format supported by the Model.
1042      * All formats export to Google Cloud Storage.
1043      * </pre>
1044      *
1045      * Protobuf type {@code google.cloud.aiplatform.v1beta1.Model.ExportFormat}
1046      */
1047     public static final class Builder
1048         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1049         implements
1050         // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Model.ExportFormat)
1051         com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder {
getDescriptor()1052       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1053         return com.google.cloud.aiplatform.v1beta1.ModelProto
1054             .internal_static_google_cloud_aiplatform_v1beta1_Model_ExportFormat_descriptor;
1055       }
1056 
1057       @java.lang.Override
1058       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1059           internalGetFieldAccessorTable() {
1060         return com.google.cloud.aiplatform.v1beta1.ModelProto
1061             .internal_static_google_cloud_aiplatform_v1beta1_Model_ExportFormat_fieldAccessorTable
1062             .ensureFieldAccessorsInitialized(
1063                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.class,
1064                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder.class);
1065       }
1066 
1067       // Construct using com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.newBuilder()
Builder()1068       private Builder() {}
1069 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1070       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1071         super(parent);
1072       }
1073 
1074       @java.lang.Override
clear()1075       public Builder clear() {
1076         super.clear();
1077         bitField0_ = 0;
1078         id_ = "";
1079         exportableContents_ = java.util.Collections.emptyList();
1080         bitField0_ = (bitField0_ & ~0x00000002);
1081         return this;
1082       }
1083 
1084       @java.lang.Override
getDescriptorForType()1085       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1086         return com.google.cloud.aiplatform.v1beta1.ModelProto
1087             .internal_static_google_cloud_aiplatform_v1beta1_Model_ExportFormat_descriptor;
1088       }
1089 
1090       @java.lang.Override
getDefaultInstanceForType()1091       public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getDefaultInstanceForType() {
1092         return com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.getDefaultInstance();
1093       }
1094 
1095       @java.lang.Override
build()1096       public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat build() {
1097         com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result = buildPartial();
1098         if (!result.isInitialized()) {
1099           throw newUninitializedMessageException(result);
1100         }
1101         return result;
1102       }
1103 
1104       @java.lang.Override
buildPartial()1105       public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat buildPartial() {
1106         com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result =
1107             new com.google.cloud.aiplatform.v1beta1.Model.ExportFormat(this);
1108         buildPartialRepeatedFields(result);
1109         if (bitField0_ != 0) {
1110           buildPartial0(result);
1111         }
1112         onBuilt();
1113         return result;
1114       }
1115 
buildPartialRepeatedFields( com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result)1116       private void buildPartialRepeatedFields(
1117           com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result) {
1118         if (((bitField0_ & 0x00000002) != 0)) {
1119           exportableContents_ = java.util.Collections.unmodifiableList(exportableContents_);
1120           bitField0_ = (bitField0_ & ~0x00000002);
1121         }
1122         result.exportableContents_ = exportableContents_;
1123       }
1124 
buildPartial0(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result)1125       private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat result) {
1126         int from_bitField0_ = bitField0_;
1127         if (((from_bitField0_ & 0x00000001) != 0)) {
1128           result.id_ = id_;
1129         }
1130       }
1131 
1132       @java.lang.Override
clone()1133       public Builder clone() {
1134         return super.clone();
1135       }
1136 
1137       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1138       public Builder setField(
1139           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1140         return super.setField(field, value);
1141       }
1142 
1143       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1144       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1145         return super.clearField(field);
1146       }
1147 
1148       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1149       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1150         return super.clearOneof(oneof);
1151       }
1152 
1153       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1154       public Builder setRepeatedField(
1155           com.google.protobuf.Descriptors.FieldDescriptor field,
1156           int index,
1157           java.lang.Object value) {
1158         return super.setRepeatedField(field, index, value);
1159       }
1160 
1161       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1162       public Builder addRepeatedField(
1163           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1164         return super.addRepeatedField(field, value);
1165       }
1166 
1167       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1168       public Builder mergeFrom(com.google.protobuf.Message other) {
1169         if (other instanceof com.google.cloud.aiplatform.v1beta1.Model.ExportFormat) {
1170           return mergeFrom((com.google.cloud.aiplatform.v1beta1.Model.ExportFormat) other);
1171         } else {
1172           super.mergeFrom(other);
1173           return this;
1174         }
1175       }
1176 
mergeFrom(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat other)1177       public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat other) {
1178         if (other == com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.getDefaultInstance())
1179           return this;
1180         if (!other.getId().isEmpty()) {
1181           id_ = other.id_;
1182           bitField0_ |= 0x00000001;
1183           onChanged();
1184         }
1185         if (!other.exportableContents_.isEmpty()) {
1186           if (exportableContents_.isEmpty()) {
1187             exportableContents_ = other.exportableContents_;
1188             bitField0_ = (bitField0_ & ~0x00000002);
1189           } else {
1190             ensureExportableContentsIsMutable();
1191             exportableContents_.addAll(other.exportableContents_);
1192           }
1193           onChanged();
1194         }
1195         this.mergeUnknownFields(other.getUnknownFields());
1196         onChanged();
1197         return this;
1198       }
1199 
1200       @java.lang.Override
isInitialized()1201       public final boolean isInitialized() {
1202         return true;
1203       }
1204 
1205       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1206       public Builder mergeFrom(
1207           com.google.protobuf.CodedInputStream input,
1208           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1209           throws java.io.IOException {
1210         if (extensionRegistry == null) {
1211           throw new java.lang.NullPointerException();
1212         }
1213         try {
1214           boolean done = false;
1215           while (!done) {
1216             int tag = input.readTag();
1217             switch (tag) {
1218               case 0:
1219                 done = true;
1220                 break;
1221               case 10:
1222                 {
1223                   id_ = input.readStringRequireUtf8();
1224                   bitField0_ |= 0x00000001;
1225                   break;
1226                 } // case 10
1227               case 16:
1228                 {
1229                   int tmpRaw = input.readEnum();
1230                   ensureExportableContentsIsMutable();
1231                   exportableContents_.add(tmpRaw);
1232                   break;
1233                 } // case 16
1234               case 18:
1235                 {
1236                   int length = input.readRawVarint32();
1237                   int oldLimit = input.pushLimit(length);
1238                   while (input.getBytesUntilLimit() > 0) {
1239                     int tmpRaw = input.readEnum();
1240                     ensureExportableContentsIsMutable();
1241                     exportableContents_.add(tmpRaw);
1242                   }
1243                   input.popLimit(oldLimit);
1244                   break;
1245                 } // case 18
1246               default:
1247                 {
1248                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1249                     done = true; // was an endgroup tag
1250                   }
1251                   break;
1252                 } // default:
1253             } // switch (tag)
1254           } // while (!done)
1255         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1256           throw e.unwrapIOException();
1257         } finally {
1258           onChanged();
1259         } // finally
1260         return this;
1261       }
1262 
1263       private int bitField0_;
1264 
1265       private java.lang.Object id_ = "";
1266       /**
1267        *
1268        *
1269        * <pre>
1270        * Output only. The ID of the export format.
1271        * The possible format IDs are:
1272        * * `tflite`
1273        * Used for Android mobile devices.
1274        * * `edgetpu-tflite`
1275        * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
1276        * * `tf-saved-model`
1277        * A tensorflow model in SavedModel format.
1278        * * `tf-js`
1279        * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
1280        * in the browser and in Node.js using JavaScript.
1281        * * `core-ml`
1282        * Used for iOS mobile devices.
1283        * * `custom-trained`
1284        * A Model that was uploaded or trained by custom code.
1285        * </pre>
1286        *
1287        * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1288        *
1289        * @return The id.
1290        */
getId()1291       public java.lang.String getId() {
1292         java.lang.Object ref = id_;
1293         if (!(ref instanceof java.lang.String)) {
1294           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1295           java.lang.String s = bs.toStringUtf8();
1296           id_ = s;
1297           return s;
1298         } else {
1299           return (java.lang.String) ref;
1300         }
1301       }
1302       /**
1303        *
1304        *
1305        * <pre>
1306        * Output only. The ID of the export format.
1307        * The possible format IDs are:
1308        * * `tflite`
1309        * Used for Android mobile devices.
1310        * * `edgetpu-tflite`
1311        * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
1312        * * `tf-saved-model`
1313        * A tensorflow model in SavedModel format.
1314        * * `tf-js`
1315        * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
1316        * in the browser and in Node.js using JavaScript.
1317        * * `core-ml`
1318        * Used for iOS mobile devices.
1319        * * `custom-trained`
1320        * A Model that was uploaded or trained by custom code.
1321        * </pre>
1322        *
1323        * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1324        *
1325        * @return The bytes for id.
1326        */
getIdBytes()1327       public com.google.protobuf.ByteString getIdBytes() {
1328         java.lang.Object ref = id_;
1329         if (ref instanceof String) {
1330           com.google.protobuf.ByteString b =
1331               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1332           id_ = b;
1333           return b;
1334         } else {
1335           return (com.google.protobuf.ByteString) ref;
1336         }
1337       }
1338       /**
1339        *
1340        *
1341        * <pre>
1342        * Output only. The ID of the export format.
1343        * The possible format IDs are:
1344        * * `tflite`
1345        * Used for Android mobile devices.
1346        * * `edgetpu-tflite`
1347        * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
1348        * * `tf-saved-model`
1349        * A tensorflow model in SavedModel format.
1350        * * `tf-js`
1351        * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
1352        * in the browser and in Node.js using JavaScript.
1353        * * `core-ml`
1354        * Used for iOS mobile devices.
1355        * * `custom-trained`
1356        * A Model that was uploaded or trained by custom code.
1357        * </pre>
1358        *
1359        * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1360        *
1361        * @param value The id to set.
1362        * @return This builder for chaining.
1363        */
setId(java.lang.String value)1364       public Builder setId(java.lang.String value) {
1365         if (value == null) {
1366           throw new NullPointerException();
1367         }
1368         id_ = value;
1369         bitField0_ |= 0x00000001;
1370         onChanged();
1371         return this;
1372       }
1373       /**
1374        *
1375        *
1376        * <pre>
1377        * Output only. The ID of the export format.
1378        * The possible format IDs are:
1379        * * `tflite`
1380        * Used for Android mobile devices.
1381        * * `edgetpu-tflite`
1382        * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
1383        * * `tf-saved-model`
1384        * A tensorflow model in SavedModel format.
1385        * * `tf-js`
1386        * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
1387        * in the browser and in Node.js using JavaScript.
1388        * * `core-ml`
1389        * Used for iOS mobile devices.
1390        * * `custom-trained`
1391        * A Model that was uploaded or trained by custom code.
1392        * </pre>
1393        *
1394        * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1395        *
1396        * @return This builder for chaining.
1397        */
clearId()1398       public Builder clearId() {
1399         id_ = getDefaultInstance().getId();
1400         bitField0_ = (bitField0_ & ~0x00000001);
1401         onChanged();
1402         return this;
1403       }
1404       /**
1405        *
1406        *
1407        * <pre>
1408        * Output only. The ID of the export format.
1409        * The possible format IDs are:
1410        * * `tflite`
1411        * Used for Android mobile devices.
1412        * * `edgetpu-tflite`
1413        * Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices.
1414        * * `tf-saved-model`
1415        * A tensorflow model in SavedModel format.
1416        * * `tf-js`
1417        * A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used
1418        * in the browser and in Node.js using JavaScript.
1419        * * `core-ml`
1420        * Used for iOS mobile devices.
1421        * * `custom-trained`
1422        * A Model that was uploaded or trained by custom code.
1423        * </pre>
1424        *
1425        * <code>string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1426        *
1427        * @param value The bytes for id to set.
1428        * @return This builder for chaining.
1429        */
setIdBytes(com.google.protobuf.ByteString value)1430       public Builder setIdBytes(com.google.protobuf.ByteString value) {
1431         if (value == null) {
1432           throw new NullPointerException();
1433         }
1434         checkByteStringIsUtf8(value);
1435         id_ = value;
1436         bitField0_ |= 0x00000001;
1437         onChanged();
1438         return this;
1439       }
1440 
1441       private java.util.List<java.lang.Integer> exportableContents_ =
1442           java.util.Collections.emptyList();
1443 
ensureExportableContentsIsMutable()1444       private void ensureExportableContentsIsMutable() {
1445         if (!((bitField0_ & 0x00000002) != 0)) {
1446           exportableContents_ = new java.util.ArrayList<java.lang.Integer>(exportableContents_);
1447           bitField0_ |= 0x00000002;
1448         }
1449       }
1450       /**
1451        *
1452        *
1453        * <pre>
1454        * Output only. The content of this Model that may be exported.
1455        * </pre>
1456        *
1457        * <code>
1458        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1459        * </code>
1460        *
1461        * @return A list containing the exportableContents.
1462        */
1463       public java.util.List<
1464               com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>
getExportableContentsList()1465           getExportableContentsList() {
1466         return new com.google.protobuf.Internal.ListAdapter<
1467             java.lang.Integer,
1468             com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>(
1469             exportableContents_, exportableContents_converter_);
1470       }
1471       /**
1472        *
1473        *
1474        * <pre>
1475        * Output only. The content of this Model that may be exported.
1476        * </pre>
1477        *
1478        * <code>
1479        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1480        * </code>
1481        *
1482        * @return The count of exportableContents.
1483        */
getExportableContentsCount()1484       public int getExportableContentsCount() {
1485         return exportableContents_.size();
1486       }
1487       /**
1488        *
1489        *
1490        * <pre>
1491        * Output only. The content of this Model that may be exported.
1492        * </pre>
1493        *
1494        * <code>
1495        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1496        * </code>
1497        *
1498        * @param index The index of the element to return.
1499        * @return The exportableContents at the given index.
1500        */
1501       public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent
getExportableContents(int index)1502           getExportableContents(int index) {
1503         return exportableContents_converter_.convert(exportableContents_.get(index));
1504       }
1505       /**
1506        *
1507        *
1508        * <pre>
1509        * Output only. The content of this Model that may be exported.
1510        * </pre>
1511        *
1512        * <code>
1513        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1514        * </code>
1515        *
1516        * @param index The index to set the value at.
1517        * @param value The exportableContents to set.
1518        * @return This builder for chaining.
1519        */
setExportableContents( int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent value)1520       public Builder setExportableContents(
1521           int index,
1522           com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent value) {
1523         if (value == null) {
1524           throw new NullPointerException();
1525         }
1526         ensureExportableContentsIsMutable();
1527         exportableContents_.set(index, value.getNumber());
1528         onChanged();
1529         return this;
1530       }
1531       /**
1532        *
1533        *
1534        * <pre>
1535        * Output only. The content of this Model that may be exported.
1536        * </pre>
1537        *
1538        * <code>
1539        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1540        * </code>
1541        *
1542        * @param value The exportableContents to add.
1543        * @return This builder for chaining.
1544        */
addExportableContents( com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent value)1545       public Builder addExportableContents(
1546           com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent value) {
1547         if (value == null) {
1548           throw new NullPointerException();
1549         }
1550         ensureExportableContentsIsMutable();
1551         exportableContents_.add(value.getNumber());
1552         onChanged();
1553         return this;
1554       }
1555       /**
1556        *
1557        *
1558        * <pre>
1559        * Output only. The content of this Model that may be exported.
1560        * </pre>
1561        *
1562        * <code>
1563        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1564        * </code>
1565        *
1566        * @param values The exportableContents to add.
1567        * @return This builder for chaining.
1568        */
addAllExportableContents( java.lang.Iterable< ? extends com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent> values)1569       public Builder addAllExportableContents(
1570           java.lang.Iterable<
1571                   ? extends
1572                       com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent>
1573               values) {
1574         ensureExportableContentsIsMutable();
1575         for (com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent value :
1576             values) {
1577           exportableContents_.add(value.getNumber());
1578         }
1579         onChanged();
1580         return this;
1581       }
1582       /**
1583        *
1584        *
1585        * <pre>
1586        * Output only. The content of this Model that may be exported.
1587        * </pre>
1588        *
1589        * <code>
1590        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1591        * </code>
1592        *
1593        * @return This builder for chaining.
1594        */
clearExportableContents()1595       public Builder clearExportableContents() {
1596         exportableContents_ = java.util.Collections.emptyList();
1597         bitField0_ = (bitField0_ & ~0x00000002);
1598         onChanged();
1599         return this;
1600       }
1601       /**
1602        *
1603        *
1604        * <pre>
1605        * Output only. The content of this Model that may be exported.
1606        * </pre>
1607        *
1608        * <code>
1609        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1610        * </code>
1611        *
1612        * @return A list containing the enum numeric values on the wire for exportableContents.
1613        */
getExportableContentsValueList()1614       public java.util.List<java.lang.Integer> getExportableContentsValueList() {
1615         return java.util.Collections.unmodifiableList(exportableContents_);
1616       }
1617       /**
1618        *
1619        *
1620        * <pre>
1621        * Output only. The content of this Model that may be exported.
1622        * </pre>
1623        *
1624        * <code>
1625        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1626        * </code>
1627        *
1628        * @param index The index of the value to return.
1629        * @return The enum numeric value on the wire of exportableContents at the given index.
1630        */
getExportableContentsValue(int index)1631       public int getExportableContentsValue(int index) {
1632         return exportableContents_.get(index);
1633       }
1634       /**
1635        *
1636        *
1637        * <pre>
1638        * Output only. The content of this Model that may be exported.
1639        * </pre>
1640        *
1641        * <code>
1642        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1643        * </code>
1644        *
1645        * @param index The index to set the value at.
1646        * @param value The enum numeric value on the wire for exportableContents to set.
1647        * @return This builder for chaining.
1648        */
setExportableContentsValue(int index, int value)1649       public Builder setExportableContentsValue(int index, int value) {
1650         ensureExportableContentsIsMutable();
1651         exportableContents_.set(index, value);
1652         onChanged();
1653         return this;
1654       }
1655       /**
1656        *
1657        *
1658        * <pre>
1659        * Output only. The content of this Model that may be exported.
1660        * </pre>
1661        *
1662        * <code>
1663        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1664        * </code>
1665        *
1666        * @param value The enum numeric value on the wire for exportableContents to add.
1667        * @return This builder for chaining.
1668        */
addExportableContentsValue(int value)1669       public Builder addExportableContentsValue(int value) {
1670         ensureExportableContentsIsMutable();
1671         exportableContents_.add(value);
1672         onChanged();
1673         return this;
1674       }
1675       /**
1676        *
1677        *
1678        * <pre>
1679        * Output only. The content of this Model that may be exported.
1680        * </pre>
1681        *
1682        * <code>
1683        * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1684        * </code>
1685        *
1686        * @param values The enum numeric values on the wire for exportableContents to add.
1687        * @return This builder for chaining.
1688        */
addAllExportableContentsValue(java.lang.Iterable<java.lang.Integer> values)1689       public Builder addAllExportableContentsValue(java.lang.Iterable<java.lang.Integer> values) {
1690         ensureExportableContentsIsMutable();
1691         for (int value : values) {
1692           exportableContents_.add(value);
1693         }
1694         onChanged();
1695         return this;
1696       }
1697 
1698       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1699       public final Builder setUnknownFields(
1700           final com.google.protobuf.UnknownFieldSet unknownFields) {
1701         return super.setUnknownFields(unknownFields);
1702       }
1703 
1704       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1705       public final Builder mergeUnknownFields(
1706           final com.google.protobuf.UnknownFieldSet unknownFields) {
1707         return super.mergeUnknownFields(unknownFields);
1708       }
1709 
1710       // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Model.ExportFormat)
1711     }
1712 
1713     // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Model.ExportFormat)
1714     private static final com.google.cloud.aiplatform.v1beta1.Model.ExportFormat DEFAULT_INSTANCE;
1715 
1716     static {
1717       DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Model.ExportFormat();
1718     }
1719 
getDefaultInstance()1720     public static com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getDefaultInstance() {
1721       return DEFAULT_INSTANCE;
1722     }
1723 
1724     private static final com.google.protobuf.Parser<ExportFormat> PARSER =
1725         new com.google.protobuf.AbstractParser<ExportFormat>() {
1726           @java.lang.Override
1727           public ExportFormat parsePartialFrom(
1728               com.google.protobuf.CodedInputStream input,
1729               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1730               throws com.google.protobuf.InvalidProtocolBufferException {
1731             Builder builder = newBuilder();
1732             try {
1733               builder.mergeFrom(input, extensionRegistry);
1734             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1735               throw e.setUnfinishedMessage(builder.buildPartial());
1736             } catch (com.google.protobuf.UninitializedMessageException e) {
1737               throw e.asInvalidProtocolBufferException()
1738                   .setUnfinishedMessage(builder.buildPartial());
1739             } catch (java.io.IOException e) {
1740               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1741                   .setUnfinishedMessage(builder.buildPartial());
1742             }
1743             return builder.buildPartial();
1744           }
1745         };
1746 
parser()1747     public static com.google.protobuf.Parser<ExportFormat> parser() {
1748       return PARSER;
1749     }
1750 
1751     @java.lang.Override
getParserForType()1752     public com.google.protobuf.Parser<ExportFormat> getParserForType() {
1753       return PARSER;
1754     }
1755 
1756     @java.lang.Override
getDefaultInstanceForType()1757     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getDefaultInstanceForType() {
1758       return DEFAULT_INSTANCE;
1759     }
1760   }
1761 
1762   public interface OriginalModelInfoOrBuilder
1763       extends
1764       // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo)
1765       com.google.protobuf.MessageOrBuilder {
1766 
1767     /**
1768      *
1769      *
1770      * <pre>
1771      * Output only. The resource name of the Model this Model is a copy of,
1772      * including the revision. Format:
1773      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
1774      * </pre>
1775      *
1776      * <code>
1777      * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
1778      * </code>
1779      *
1780      * @return The model.
1781      */
getModel()1782     java.lang.String getModel();
1783     /**
1784      *
1785      *
1786      * <pre>
1787      * Output only. The resource name of the Model this Model is a copy of,
1788      * including the revision. Format:
1789      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
1790      * </pre>
1791      *
1792      * <code>
1793      * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
1794      * </code>
1795      *
1796      * @return The bytes for model.
1797      */
getModelBytes()1798     com.google.protobuf.ByteString getModelBytes();
1799   }
1800   /**
1801    *
1802    *
1803    * <pre>
1804    * Contains information about the original Model if this Model is a copy.
1805    * </pre>
1806    *
1807    * Protobuf type {@code google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo}
1808    */
1809   public static final class OriginalModelInfo extends com.google.protobuf.GeneratedMessageV3
1810       implements
1811       // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo)
1812       OriginalModelInfoOrBuilder {
1813     private static final long serialVersionUID = 0L;
1814     // Use OriginalModelInfo.newBuilder() to construct.
OriginalModelInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1815     private OriginalModelInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1816       super(builder);
1817     }
1818 
OriginalModelInfo()1819     private OriginalModelInfo() {
1820       model_ = "";
1821     }
1822 
1823     @java.lang.Override
1824     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)1825     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
1826       return new OriginalModelInfo();
1827     }
1828 
1829     @java.lang.Override
getUnknownFields()1830     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
1831       return this.unknownFields;
1832     }
1833 
getDescriptor()1834     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1835       return com.google.cloud.aiplatform.v1beta1.ModelProto
1836           .internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_descriptor;
1837     }
1838 
1839     @java.lang.Override
1840     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1841         internalGetFieldAccessorTable() {
1842       return com.google.cloud.aiplatform.v1beta1.ModelProto
1843           .internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_fieldAccessorTable
1844           .ensureFieldAccessorsInitialized(
1845               com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.class,
1846               com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder.class);
1847     }
1848 
1849     public static final int MODEL_FIELD_NUMBER = 1;
1850 
1851     @SuppressWarnings("serial")
1852     private volatile java.lang.Object model_ = "";
1853     /**
1854      *
1855      *
1856      * <pre>
1857      * Output only. The resource name of the Model this Model is a copy of,
1858      * including the revision. Format:
1859      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
1860      * </pre>
1861      *
1862      * <code>
1863      * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
1864      * </code>
1865      *
1866      * @return The model.
1867      */
1868     @java.lang.Override
getModel()1869     public java.lang.String getModel() {
1870       java.lang.Object ref = model_;
1871       if (ref instanceof java.lang.String) {
1872         return (java.lang.String) ref;
1873       } else {
1874         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1875         java.lang.String s = bs.toStringUtf8();
1876         model_ = s;
1877         return s;
1878       }
1879     }
1880     /**
1881      *
1882      *
1883      * <pre>
1884      * Output only. The resource name of the Model this Model is a copy of,
1885      * including the revision. Format:
1886      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
1887      * </pre>
1888      *
1889      * <code>
1890      * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
1891      * </code>
1892      *
1893      * @return The bytes for model.
1894      */
1895     @java.lang.Override
getModelBytes()1896     public com.google.protobuf.ByteString getModelBytes() {
1897       java.lang.Object ref = model_;
1898       if (ref instanceof java.lang.String) {
1899         com.google.protobuf.ByteString b =
1900             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1901         model_ = b;
1902         return b;
1903       } else {
1904         return (com.google.protobuf.ByteString) ref;
1905       }
1906     }
1907 
1908     private byte memoizedIsInitialized = -1;
1909 
1910     @java.lang.Override
isInitialized()1911     public final boolean isInitialized() {
1912       byte isInitialized = memoizedIsInitialized;
1913       if (isInitialized == 1) return true;
1914       if (isInitialized == 0) return false;
1915 
1916       memoizedIsInitialized = 1;
1917       return true;
1918     }
1919 
1920     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1921     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1922       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
1923         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, model_);
1924       }
1925       getUnknownFields().writeTo(output);
1926     }
1927 
1928     @java.lang.Override
getSerializedSize()1929     public int getSerializedSize() {
1930       int size = memoizedSize;
1931       if (size != -1) return size;
1932 
1933       size = 0;
1934       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) {
1935         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, model_);
1936       }
1937       size += getUnknownFields().getSerializedSize();
1938       memoizedSize = size;
1939       return size;
1940     }
1941 
1942     @java.lang.Override
equals(final java.lang.Object obj)1943     public boolean equals(final java.lang.Object obj) {
1944       if (obj == this) {
1945         return true;
1946       }
1947       if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo)) {
1948         return super.equals(obj);
1949       }
1950       com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo other =
1951           (com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo) obj;
1952 
1953       if (!getModel().equals(other.getModel())) return false;
1954       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1955       return true;
1956     }
1957 
1958     @java.lang.Override
hashCode()1959     public int hashCode() {
1960       if (memoizedHashCode != 0) {
1961         return memoizedHashCode;
1962       }
1963       int hash = 41;
1964       hash = (19 * hash) + getDescriptor().hashCode();
1965       hash = (37 * hash) + MODEL_FIELD_NUMBER;
1966       hash = (53 * hash) + getModel().hashCode();
1967       hash = (29 * hash) + getUnknownFields().hashCode();
1968       memoizedHashCode = hash;
1969       return hash;
1970     }
1971 
parseFrom( java.nio.ByteBuffer data)1972     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
1973         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1974       return PARSER.parseFrom(data);
1975     }
1976 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1977     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
1978         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1979         throws com.google.protobuf.InvalidProtocolBufferException {
1980       return PARSER.parseFrom(data, extensionRegistry);
1981     }
1982 
parseFrom( com.google.protobuf.ByteString data)1983     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
1984         com.google.protobuf.ByteString data)
1985         throws com.google.protobuf.InvalidProtocolBufferException {
1986       return PARSER.parseFrom(data);
1987     }
1988 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1989     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
1990         com.google.protobuf.ByteString data,
1991         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1992         throws com.google.protobuf.InvalidProtocolBufferException {
1993       return PARSER.parseFrom(data, extensionRegistry);
1994     }
1995 
parseFrom(byte[] data)1996     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(byte[] data)
1997         throws com.google.protobuf.InvalidProtocolBufferException {
1998       return PARSER.parseFrom(data);
1999     }
2000 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2001     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
2002         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2003         throws com.google.protobuf.InvalidProtocolBufferException {
2004       return PARSER.parseFrom(data, extensionRegistry);
2005     }
2006 
parseFrom( java.io.InputStream input)2007     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
2008         java.io.InputStream input) throws java.io.IOException {
2009       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2010     }
2011 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2012     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
2013         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2014         throws java.io.IOException {
2015       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2016           PARSER, input, extensionRegistry);
2017     }
2018 
parseDelimitedFrom( java.io.InputStream input)2019     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseDelimitedFrom(
2020         java.io.InputStream input) throws java.io.IOException {
2021       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2022     }
2023 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2024     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseDelimitedFrom(
2025         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2026         throws java.io.IOException {
2027       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2028           PARSER, input, extensionRegistry);
2029     }
2030 
parseFrom( com.google.protobuf.CodedInputStream input)2031     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
2032         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2033       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2034     }
2035 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2036     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo parseFrom(
2037         com.google.protobuf.CodedInputStream input,
2038         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2039         throws java.io.IOException {
2040       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2041           PARSER, input, extensionRegistry);
2042     }
2043 
2044     @java.lang.Override
newBuilderForType()2045     public Builder newBuilderForType() {
2046       return newBuilder();
2047     }
2048 
newBuilder()2049     public static Builder newBuilder() {
2050       return DEFAULT_INSTANCE.toBuilder();
2051     }
2052 
newBuilder( com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo prototype)2053     public static Builder newBuilder(
2054         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo prototype) {
2055       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2056     }
2057 
2058     @java.lang.Override
toBuilder()2059     public Builder toBuilder() {
2060       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2061     }
2062 
2063     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2064     protected Builder newBuilderForType(
2065         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2066       Builder builder = new Builder(parent);
2067       return builder;
2068     }
2069     /**
2070      *
2071      *
2072      * <pre>
2073      * Contains information about the original Model if this Model is a copy.
2074      * </pre>
2075      *
2076      * Protobuf type {@code google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo}
2077      */
2078     public static final class Builder
2079         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2080         implements
2081         // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo)
2082         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfoOrBuilder {
getDescriptor()2083       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2084         return com.google.cloud.aiplatform.v1beta1.ModelProto
2085             .internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_descriptor;
2086       }
2087 
2088       @java.lang.Override
2089       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2090           internalGetFieldAccessorTable() {
2091         return com.google.cloud.aiplatform.v1beta1.ModelProto
2092             .internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_fieldAccessorTable
2093             .ensureFieldAccessorsInitialized(
2094                 com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.class,
2095                 com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder.class);
2096       }
2097 
2098       // Construct using com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.newBuilder()
Builder()2099       private Builder() {}
2100 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2101       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2102         super(parent);
2103       }
2104 
2105       @java.lang.Override
clear()2106       public Builder clear() {
2107         super.clear();
2108         bitField0_ = 0;
2109         model_ = "";
2110         return this;
2111       }
2112 
2113       @java.lang.Override
getDescriptorForType()2114       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2115         return com.google.cloud.aiplatform.v1beta1.ModelProto
2116             .internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_descriptor;
2117       }
2118 
2119       @java.lang.Override
2120       public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo
getDefaultInstanceForType()2121           getDefaultInstanceForType() {
2122         return com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.getDefaultInstance();
2123       }
2124 
2125       @java.lang.Override
build()2126       public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo build() {
2127         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo result = buildPartial();
2128         if (!result.isInitialized()) {
2129           throw newUninitializedMessageException(result);
2130         }
2131         return result;
2132       }
2133 
2134       @java.lang.Override
buildPartial()2135       public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo buildPartial() {
2136         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo result =
2137             new com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo(this);
2138         if (bitField0_ != 0) {
2139           buildPartial0(result);
2140         }
2141         onBuilt();
2142         return result;
2143       }
2144 
buildPartial0( com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo result)2145       private void buildPartial0(
2146           com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo result) {
2147         int from_bitField0_ = bitField0_;
2148         if (((from_bitField0_ & 0x00000001) != 0)) {
2149           result.model_ = model_;
2150         }
2151       }
2152 
2153       @java.lang.Override
clone()2154       public Builder clone() {
2155         return super.clone();
2156       }
2157 
2158       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2159       public Builder setField(
2160           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2161         return super.setField(field, value);
2162       }
2163 
2164       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2165       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2166         return super.clearField(field);
2167       }
2168 
2169       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2170       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2171         return super.clearOneof(oneof);
2172       }
2173 
2174       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2175       public Builder setRepeatedField(
2176           com.google.protobuf.Descriptors.FieldDescriptor field,
2177           int index,
2178           java.lang.Object value) {
2179         return super.setRepeatedField(field, index, value);
2180       }
2181 
2182       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2183       public Builder addRepeatedField(
2184           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2185         return super.addRepeatedField(field, value);
2186       }
2187 
2188       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2189       public Builder mergeFrom(com.google.protobuf.Message other) {
2190         if (other instanceof com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo) {
2191           return mergeFrom((com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo) other);
2192         } else {
2193           super.mergeFrom(other);
2194           return this;
2195         }
2196       }
2197 
mergeFrom(com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo other)2198       public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo other) {
2199         if (other
2200             == com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.getDefaultInstance())
2201           return this;
2202         if (!other.getModel().isEmpty()) {
2203           model_ = other.model_;
2204           bitField0_ |= 0x00000001;
2205           onChanged();
2206         }
2207         this.mergeUnknownFields(other.getUnknownFields());
2208         onChanged();
2209         return this;
2210       }
2211 
2212       @java.lang.Override
isInitialized()2213       public final boolean isInitialized() {
2214         return true;
2215       }
2216 
2217       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2218       public Builder mergeFrom(
2219           com.google.protobuf.CodedInputStream input,
2220           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2221           throws java.io.IOException {
2222         if (extensionRegistry == null) {
2223           throw new java.lang.NullPointerException();
2224         }
2225         try {
2226           boolean done = false;
2227           while (!done) {
2228             int tag = input.readTag();
2229             switch (tag) {
2230               case 0:
2231                 done = true;
2232                 break;
2233               case 10:
2234                 {
2235                   model_ = input.readStringRequireUtf8();
2236                   bitField0_ |= 0x00000001;
2237                   break;
2238                 } // case 10
2239               default:
2240                 {
2241                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2242                     done = true; // was an endgroup tag
2243                   }
2244                   break;
2245                 } // default:
2246             } // switch (tag)
2247           } // while (!done)
2248         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2249           throw e.unwrapIOException();
2250         } finally {
2251           onChanged();
2252         } // finally
2253         return this;
2254       }
2255 
2256       private int bitField0_;
2257 
2258       private java.lang.Object model_ = "";
2259       /**
2260        *
2261        *
2262        * <pre>
2263        * Output only. The resource name of the Model this Model is a copy of,
2264        * including the revision. Format:
2265        * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
2266        * </pre>
2267        *
2268        * <code>
2269        * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
2270        * </code>
2271        *
2272        * @return The model.
2273        */
getModel()2274       public java.lang.String getModel() {
2275         java.lang.Object ref = model_;
2276         if (!(ref instanceof java.lang.String)) {
2277           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2278           java.lang.String s = bs.toStringUtf8();
2279           model_ = s;
2280           return s;
2281         } else {
2282           return (java.lang.String) ref;
2283         }
2284       }
2285       /**
2286        *
2287        *
2288        * <pre>
2289        * Output only. The resource name of the Model this Model is a copy of,
2290        * including the revision. Format:
2291        * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
2292        * </pre>
2293        *
2294        * <code>
2295        * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
2296        * </code>
2297        *
2298        * @return The bytes for model.
2299        */
getModelBytes()2300       public com.google.protobuf.ByteString getModelBytes() {
2301         java.lang.Object ref = model_;
2302         if (ref instanceof String) {
2303           com.google.protobuf.ByteString b =
2304               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2305           model_ = b;
2306           return b;
2307         } else {
2308           return (com.google.protobuf.ByteString) ref;
2309         }
2310       }
2311       /**
2312        *
2313        *
2314        * <pre>
2315        * Output only. The resource name of the Model this Model is a copy of,
2316        * including the revision. Format:
2317        * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
2318        * </pre>
2319        *
2320        * <code>
2321        * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
2322        * </code>
2323        *
2324        * @param value The model to set.
2325        * @return This builder for chaining.
2326        */
setModel(java.lang.String value)2327       public Builder setModel(java.lang.String value) {
2328         if (value == null) {
2329           throw new NullPointerException();
2330         }
2331         model_ = value;
2332         bitField0_ |= 0x00000001;
2333         onChanged();
2334         return this;
2335       }
2336       /**
2337        *
2338        *
2339        * <pre>
2340        * Output only. The resource name of the Model this Model is a copy of,
2341        * including the revision. Format:
2342        * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
2343        * </pre>
2344        *
2345        * <code>
2346        * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
2347        * </code>
2348        *
2349        * @return This builder for chaining.
2350        */
clearModel()2351       public Builder clearModel() {
2352         model_ = getDefaultInstance().getModel();
2353         bitField0_ = (bitField0_ & ~0x00000001);
2354         onChanged();
2355         return this;
2356       }
2357       /**
2358        *
2359        *
2360        * <pre>
2361        * Output only. The resource name of the Model this Model is a copy of,
2362        * including the revision. Format:
2363        * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id}`
2364        * </pre>
2365        *
2366        * <code>
2367        * string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
2368        * </code>
2369        *
2370        * @param value The bytes for model to set.
2371        * @return This builder for chaining.
2372        */
setModelBytes(com.google.protobuf.ByteString value)2373       public Builder setModelBytes(com.google.protobuf.ByteString value) {
2374         if (value == null) {
2375           throw new NullPointerException();
2376         }
2377         checkByteStringIsUtf8(value);
2378         model_ = value;
2379         bitField0_ |= 0x00000001;
2380         onChanged();
2381         return this;
2382       }
2383 
2384       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2385       public final Builder setUnknownFields(
2386           final com.google.protobuf.UnknownFieldSet unknownFields) {
2387         return super.setUnknownFields(unknownFields);
2388       }
2389 
2390       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2391       public final Builder mergeUnknownFields(
2392           final com.google.protobuf.UnknownFieldSet unknownFields) {
2393         return super.mergeUnknownFields(unknownFields);
2394       }
2395 
2396       // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo)
2397     }
2398 
2399     // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo)
2400     private static final com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo
2401         DEFAULT_INSTANCE;
2402 
2403     static {
2404       DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo();
2405     }
2406 
getDefaultInstance()2407     public static com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo getDefaultInstance() {
2408       return DEFAULT_INSTANCE;
2409     }
2410 
2411     private static final com.google.protobuf.Parser<OriginalModelInfo> PARSER =
2412         new com.google.protobuf.AbstractParser<OriginalModelInfo>() {
2413           @java.lang.Override
2414           public OriginalModelInfo parsePartialFrom(
2415               com.google.protobuf.CodedInputStream input,
2416               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2417               throws com.google.protobuf.InvalidProtocolBufferException {
2418             Builder builder = newBuilder();
2419             try {
2420               builder.mergeFrom(input, extensionRegistry);
2421             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2422               throw e.setUnfinishedMessage(builder.buildPartial());
2423             } catch (com.google.protobuf.UninitializedMessageException e) {
2424               throw e.asInvalidProtocolBufferException()
2425                   .setUnfinishedMessage(builder.buildPartial());
2426             } catch (java.io.IOException e) {
2427               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2428                   .setUnfinishedMessage(builder.buildPartial());
2429             }
2430             return builder.buildPartial();
2431           }
2432         };
2433 
parser()2434     public static com.google.protobuf.Parser<OriginalModelInfo> parser() {
2435       return PARSER;
2436     }
2437 
2438     @java.lang.Override
getParserForType()2439     public com.google.protobuf.Parser<OriginalModelInfo> getParserForType() {
2440       return PARSER;
2441     }
2442 
2443     @java.lang.Override
getDefaultInstanceForType()2444     public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo getDefaultInstanceForType() {
2445       return DEFAULT_INSTANCE;
2446     }
2447   }
2448 
2449   public static final int NAME_FIELD_NUMBER = 1;
2450 
2451   @SuppressWarnings("serial")
2452   private volatile java.lang.Object name_ = "";
2453   /**
2454    *
2455    *
2456    * <pre>
2457    * The resource name of the Model.
2458    * </pre>
2459    *
2460    * <code>string name = 1;</code>
2461    *
2462    * @return The name.
2463    */
2464   @java.lang.Override
getName()2465   public java.lang.String getName() {
2466     java.lang.Object ref = name_;
2467     if (ref instanceof java.lang.String) {
2468       return (java.lang.String) ref;
2469     } else {
2470       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2471       java.lang.String s = bs.toStringUtf8();
2472       name_ = s;
2473       return s;
2474     }
2475   }
2476   /**
2477    *
2478    *
2479    * <pre>
2480    * The resource name of the Model.
2481    * </pre>
2482    *
2483    * <code>string name = 1;</code>
2484    *
2485    * @return The bytes for name.
2486    */
2487   @java.lang.Override
getNameBytes()2488   public com.google.protobuf.ByteString getNameBytes() {
2489     java.lang.Object ref = name_;
2490     if (ref instanceof java.lang.String) {
2491       com.google.protobuf.ByteString b =
2492           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2493       name_ = b;
2494       return b;
2495     } else {
2496       return (com.google.protobuf.ByteString) ref;
2497     }
2498   }
2499 
2500   public static final int VERSION_ID_FIELD_NUMBER = 28;
2501 
2502   @SuppressWarnings("serial")
2503   private volatile java.lang.Object versionId_ = "";
2504   /**
2505    *
2506    *
2507    * <pre>
2508    * Output only. Immutable. The version ID of the model.
2509    * A new version is committed when a new model version is uploaded or
2510    * trained under an existing model id. It is an auto-incrementing decimal
2511    * number in string representation.
2512    * </pre>
2513    *
2514    * <code>
2515    * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
2516    * </code>
2517    *
2518    * @return The versionId.
2519    */
2520   @java.lang.Override
getVersionId()2521   public java.lang.String getVersionId() {
2522     java.lang.Object ref = versionId_;
2523     if (ref instanceof java.lang.String) {
2524       return (java.lang.String) ref;
2525     } else {
2526       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2527       java.lang.String s = bs.toStringUtf8();
2528       versionId_ = s;
2529       return s;
2530     }
2531   }
2532   /**
2533    *
2534    *
2535    * <pre>
2536    * Output only. Immutable. The version ID of the model.
2537    * A new version is committed when a new model version is uploaded or
2538    * trained under an existing model id. It is an auto-incrementing decimal
2539    * number in string representation.
2540    * </pre>
2541    *
2542    * <code>
2543    * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
2544    * </code>
2545    *
2546    * @return The bytes for versionId.
2547    */
2548   @java.lang.Override
getVersionIdBytes()2549   public com.google.protobuf.ByteString getVersionIdBytes() {
2550     java.lang.Object ref = versionId_;
2551     if (ref instanceof java.lang.String) {
2552       com.google.protobuf.ByteString b =
2553           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2554       versionId_ = b;
2555       return b;
2556     } else {
2557       return (com.google.protobuf.ByteString) ref;
2558     }
2559   }
2560 
2561   public static final int VERSION_ALIASES_FIELD_NUMBER = 29;
2562 
2563   @SuppressWarnings("serial")
2564   private com.google.protobuf.LazyStringList versionAliases_;
2565   /**
2566    *
2567    *
2568    * <pre>
2569    * User provided version aliases so that a model version can be referenced via
2570    * alias (i.e.
2571    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
2572    * instead of auto-generated version id (i.e.
2573    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
2574    * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
2575    * version_id. A default version alias will be created for the first version
2576    * of the model, and there must be exactly one default version alias for a
2577    * model.
2578    * </pre>
2579    *
2580    * <code>repeated string version_aliases = 29;</code>
2581    *
2582    * @return A list containing the versionAliases.
2583    */
getVersionAliasesList()2584   public com.google.protobuf.ProtocolStringList getVersionAliasesList() {
2585     return versionAliases_;
2586   }
2587   /**
2588    *
2589    *
2590    * <pre>
2591    * User provided version aliases so that a model version can be referenced via
2592    * alias (i.e.
2593    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
2594    * instead of auto-generated version id (i.e.
2595    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
2596    * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
2597    * version_id. A default version alias will be created for the first version
2598    * of the model, and there must be exactly one default version alias for a
2599    * model.
2600    * </pre>
2601    *
2602    * <code>repeated string version_aliases = 29;</code>
2603    *
2604    * @return The count of versionAliases.
2605    */
getVersionAliasesCount()2606   public int getVersionAliasesCount() {
2607     return versionAliases_.size();
2608   }
2609   /**
2610    *
2611    *
2612    * <pre>
2613    * User provided version aliases so that a model version can be referenced via
2614    * alias (i.e.
2615    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
2616    * instead of auto-generated version id (i.e.
2617    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
2618    * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
2619    * version_id. A default version alias will be created for the first version
2620    * of the model, and there must be exactly one default version alias for a
2621    * model.
2622    * </pre>
2623    *
2624    * <code>repeated string version_aliases = 29;</code>
2625    *
2626    * @param index The index of the element to return.
2627    * @return The versionAliases at the given index.
2628    */
getVersionAliases(int index)2629   public java.lang.String getVersionAliases(int index) {
2630     return versionAliases_.get(index);
2631   }
2632   /**
2633    *
2634    *
2635    * <pre>
2636    * User provided version aliases so that a model version can be referenced via
2637    * alias (i.e.
2638    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
2639    * instead of auto-generated version id (i.e.
2640    * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
2641    * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
2642    * version_id. A default version alias will be created for the first version
2643    * of the model, and there must be exactly one default version alias for a
2644    * model.
2645    * </pre>
2646    *
2647    * <code>repeated string version_aliases = 29;</code>
2648    *
2649    * @param index The index of the value to return.
2650    * @return The bytes of the versionAliases at the given index.
2651    */
getVersionAliasesBytes(int index)2652   public com.google.protobuf.ByteString getVersionAliasesBytes(int index) {
2653     return versionAliases_.getByteString(index);
2654   }
2655 
2656   public static final int VERSION_CREATE_TIME_FIELD_NUMBER = 31;
2657   private com.google.protobuf.Timestamp versionCreateTime_;
2658   /**
2659    *
2660    *
2661    * <pre>
2662    * Output only. Timestamp when this version was created.
2663    * </pre>
2664    *
2665    * <code>
2666    * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
2667    * </code>
2668    *
2669    * @return Whether the versionCreateTime field is set.
2670    */
2671   @java.lang.Override
hasVersionCreateTime()2672   public boolean hasVersionCreateTime() {
2673     return versionCreateTime_ != null;
2674   }
2675   /**
2676    *
2677    *
2678    * <pre>
2679    * Output only. Timestamp when this version was created.
2680    * </pre>
2681    *
2682    * <code>
2683    * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
2684    * </code>
2685    *
2686    * @return The versionCreateTime.
2687    */
2688   @java.lang.Override
getVersionCreateTime()2689   public com.google.protobuf.Timestamp getVersionCreateTime() {
2690     return versionCreateTime_ == null
2691         ? com.google.protobuf.Timestamp.getDefaultInstance()
2692         : versionCreateTime_;
2693   }
2694   /**
2695    *
2696    *
2697    * <pre>
2698    * Output only. Timestamp when this version was created.
2699    * </pre>
2700    *
2701    * <code>
2702    * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
2703    * </code>
2704    */
2705   @java.lang.Override
getVersionCreateTimeOrBuilder()2706   public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() {
2707     return versionCreateTime_ == null
2708         ? com.google.protobuf.Timestamp.getDefaultInstance()
2709         : versionCreateTime_;
2710   }
2711 
2712   public static final int VERSION_UPDATE_TIME_FIELD_NUMBER = 32;
2713   private com.google.protobuf.Timestamp versionUpdateTime_;
2714   /**
2715    *
2716    *
2717    * <pre>
2718    * Output only. Timestamp when this version was most recently updated.
2719    * </pre>
2720    *
2721    * <code>
2722    * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
2723    * </code>
2724    *
2725    * @return Whether the versionUpdateTime field is set.
2726    */
2727   @java.lang.Override
hasVersionUpdateTime()2728   public boolean hasVersionUpdateTime() {
2729     return versionUpdateTime_ != null;
2730   }
2731   /**
2732    *
2733    *
2734    * <pre>
2735    * Output only. Timestamp when this version was most recently updated.
2736    * </pre>
2737    *
2738    * <code>
2739    * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
2740    * </code>
2741    *
2742    * @return The versionUpdateTime.
2743    */
2744   @java.lang.Override
getVersionUpdateTime()2745   public com.google.protobuf.Timestamp getVersionUpdateTime() {
2746     return versionUpdateTime_ == null
2747         ? com.google.protobuf.Timestamp.getDefaultInstance()
2748         : versionUpdateTime_;
2749   }
2750   /**
2751    *
2752    *
2753    * <pre>
2754    * Output only. Timestamp when this version was most recently updated.
2755    * </pre>
2756    *
2757    * <code>
2758    * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
2759    * </code>
2760    */
2761   @java.lang.Override
getVersionUpdateTimeOrBuilder()2762   public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() {
2763     return versionUpdateTime_ == null
2764         ? com.google.protobuf.Timestamp.getDefaultInstance()
2765         : versionUpdateTime_;
2766   }
2767 
2768   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
2769 
2770   @SuppressWarnings("serial")
2771   private volatile java.lang.Object displayName_ = "";
2772   /**
2773    *
2774    *
2775    * <pre>
2776    * Required. The display name of the Model.
2777    * The name can be up to 128 characters long and can consist of any UTF-8
2778    * characters.
2779    * </pre>
2780    *
2781    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
2782    *
2783    * @return The displayName.
2784    */
2785   @java.lang.Override
getDisplayName()2786   public java.lang.String getDisplayName() {
2787     java.lang.Object ref = displayName_;
2788     if (ref instanceof java.lang.String) {
2789       return (java.lang.String) ref;
2790     } else {
2791       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2792       java.lang.String s = bs.toStringUtf8();
2793       displayName_ = s;
2794       return s;
2795     }
2796   }
2797   /**
2798    *
2799    *
2800    * <pre>
2801    * Required. The display name of the Model.
2802    * The name can be up to 128 characters long and can consist of any UTF-8
2803    * characters.
2804    * </pre>
2805    *
2806    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
2807    *
2808    * @return The bytes for displayName.
2809    */
2810   @java.lang.Override
getDisplayNameBytes()2811   public com.google.protobuf.ByteString getDisplayNameBytes() {
2812     java.lang.Object ref = displayName_;
2813     if (ref instanceof java.lang.String) {
2814       com.google.protobuf.ByteString b =
2815           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2816       displayName_ = b;
2817       return b;
2818     } else {
2819       return (com.google.protobuf.ByteString) ref;
2820     }
2821   }
2822 
2823   public static final int DESCRIPTION_FIELD_NUMBER = 3;
2824 
2825   @SuppressWarnings("serial")
2826   private volatile java.lang.Object description_ = "";
2827   /**
2828    *
2829    *
2830    * <pre>
2831    * The description of the Model.
2832    * </pre>
2833    *
2834    * <code>string description = 3;</code>
2835    *
2836    * @return The description.
2837    */
2838   @java.lang.Override
getDescription()2839   public java.lang.String getDescription() {
2840     java.lang.Object ref = description_;
2841     if (ref instanceof java.lang.String) {
2842       return (java.lang.String) ref;
2843     } else {
2844       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2845       java.lang.String s = bs.toStringUtf8();
2846       description_ = s;
2847       return s;
2848     }
2849   }
2850   /**
2851    *
2852    *
2853    * <pre>
2854    * The description of the Model.
2855    * </pre>
2856    *
2857    * <code>string description = 3;</code>
2858    *
2859    * @return The bytes for description.
2860    */
2861   @java.lang.Override
getDescriptionBytes()2862   public com.google.protobuf.ByteString getDescriptionBytes() {
2863     java.lang.Object ref = description_;
2864     if (ref instanceof java.lang.String) {
2865       com.google.protobuf.ByteString b =
2866           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2867       description_ = b;
2868       return b;
2869     } else {
2870       return (com.google.protobuf.ByteString) ref;
2871     }
2872   }
2873 
2874   public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 30;
2875 
2876   @SuppressWarnings("serial")
2877   private volatile java.lang.Object versionDescription_ = "";
2878   /**
2879    *
2880    *
2881    * <pre>
2882    * The description of this version.
2883    * </pre>
2884    *
2885    * <code>string version_description = 30;</code>
2886    *
2887    * @return The versionDescription.
2888    */
2889   @java.lang.Override
getVersionDescription()2890   public java.lang.String getVersionDescription() {
2891     java.lang.Object ref = versionDescription_;
2892     if (ref instanceof java.lang.String) {
2893       return (java.lang.String) ref;
2894     } else {
2895       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2896       java.lang.String s = bs.toStringUtf8();
2897       versionDescription_ = s;
2898       return s;
2899     }
2900   }
2901   /**
2902    *
2903    *
2904    * <pre>
2905    * The description of this version.
2906    * </pre>
2907    *
2908    * <code>string version_description = 30;</code>
2909    *
2910    * @return The bytes for versionDescription.
2911    */
2912   @java.lang.Override
getVersionDescriptionBytes()2913   public com.google.protobuf.ByteString getVersionDescriptionBytes() {
2914     java.lang.Object ref = versionDescription_;
2915     if (ref instanceof java.lang.String) {
2916       com.google.protobuf.ByteString b =
2917           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2918       versionDescription_ = b;
2919       return b;
2920     } else {
2921       return (com.google.protobuf.ByteString) ref;
2922     }
2923   }
2924 
2925   public static final int PREDICT_SCHEMATA_FIELD_NUMBER = 4;
2926   private com.google.cloud.aiplatform.v1beta1.PredictSchemata predictSchemata_;
2927   /**
2928    *
2929    *
2930    * <pre>
2931    * The schemata that describe formats of the Model's predictions and
2932    * explanations as given and returned via
2933    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
2934    * and
2935    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
2936    * </pre>
2937    *
2938    * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
2939    *
2940    * @return Whether the predictSchemata field is set.
2941    */
2942   @java.lang.Override
hasPredictSchemata()2943   public boolean hasPredictSchemata() {
2944     return predictSchemata_ != null;
2945   }
2946   /**
2947    *
2948    *
2949    * <pre>
2950    * The schemata that describe formats of the Model's predictions and
2951    * explanations as given and returned via
2952    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
2953    * and
2954    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
2955    * </pre>
2956    *
2957    * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
2958    *
2959    * @return The predictSchemata.
2960    */
2961   @java.lang.Override
getPredictSchemata()2962   public com.google.cloud.aiplatform.v1beta1.PredictSchemata getPredictSchemata() {
2963     return predictSchemata_ == null
2964         ? com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()
2965         : predictSchemata_;
2966   }
2967   /**
2968    *
2969    *
2970    * <pre>
2971    * The schemata that describe formats of the Model's predictions and
2972    * explanations as given and returned via
2973    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
2974    * and
2975    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
2976    * </pre>
2977    *
2978    * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
2979    */
2980   @java.lang.Override
2981   public com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder
getPredictSchemataOrBuilder()2982       getPredictSchemataOrBuilder() {
2983     return predictSchemata_ == null
2984         ? com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()
2985         : predictSchemata_;
2986   }
2987 
2988   public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 5;
2989 
2990   @SuppressWarnings("serial")
2991   private volatile java.lang.Object metadataSchemaUri_ = "";
2992   /**
2993    *
2994    *
2995    * <pre>
2996    * Immutable. Points to a YAML file stored on Google Cloud Storage describing
2997    * additional information about the Model, that is specific to it. Unset if
2998    * the Model does not have any additional information. The schema is defined
2999    * as an OpenAPI 3.0.2 [Schema
3000    * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
3001    * AutoML Models always have this field populated by Vertex AI, if no
3002    * additional metadata is needed, this field is set to an empty string.
3003    * Note: The URI given on output will be immutable and probably different,
3004    * including the URI scheme, than the one given on input. The output URI will
3005    * point to a location where the user only has a read access.
3006    * </pre>
3007    *
3008    * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
3009    *
3010    * @return The metadataSchemaUri.
3011    */
3012   @java.lang.Override
getMetadataSchemaUri()3013   public java.lang.String getMetadataSchemaUri() {
3014     java.lang.Object ref = metadataSchemaUri_;
3015     if (ref instanceof java.lang.String) {
3016       return (java.lang.String) ref;
3017     } else {
3018       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3019       java.lang.String s = bs.toStringUtf8();
3020       metadataSchemaUri_ = s;
3021       return s;
3022     }
3023   }
3024   /**
3025    *
3026    *
3027    * <pre>
3028    * Immutable. Points to a YAML file stored on Google Cloud Storage describing
3029    * additional information about the Model, that is specific to it. Unset if
3030    * the Model does not have any additional information. The schema is defined
3031    * as an OpenAPI 3.0.2 [Schema
3032    * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
3033    * AutoML Models always have this field populated by Vertex AI, if no
3034    * additional metadata is needed, this field is set to an empty string.
3035    * Note: The URI given on output will be immutable and probably different,
3036    * including the URI scheme, than the one given on input. The output URI will
3037    * point to a location where the user only has a read access.
3038    * </pre>
3039    *
3040    * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
3041    *
3042    * @return The bytes for metadataSchemaUri.
3043    */
3044   @java.lang.Override
getMetadataSchemaUriBytes()3045   public com.google.protobuf.ByteString getMetadataSchemaUriBytes() {
3046     java.lang.Object ref = metadataSchemaUri_;
3047     if (ref instanceof java.lang.String) {
3048       com.google.protobuf.ByteString b =
3049           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3050       metadataSchemaUri_ = b;
3051       return b;
3052     } else {
3053       return (com.google.protobuf.ByteString) ref;
3054     }
3055   }
3056 
3057   public static final int METADATA_FIELD_NUMBER = 6;
3058   private com.google.protobuf.Value metadata_;
3059   /**
3060    *
3061    *
3062    * <pre>
3063    * Immutable. An additional information about the Model; the schema of the
3064    * metadata can be found in
3065    * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
3066    * Unset if the Model does not have any additional information.
3067    * </pre>
3068    *
3069    * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
3070    *
3071    * @return Whether the metadata field is set.
3072    */
3073   @java.lang.Override
hasMetadata()3074   public boolean hasMetadata() {
3075     return metadata_ != null;
3076   }
3077   /**
3078    *
3079    *
3080    * <pre>
3081    * Immutable. An additional information about the Model; the schema of the
3082    * metadata can be found in
3083    * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
3084    * Unset if the Model does not have any additional information.
3085    * </pre>
3086    *
3087    * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
3088    *
3089    * @return The metadata.
3090    */
3091   @java.lang.Override
getMetadata()3092   public com.google.protobuf.Value getMetadata() {
3093     return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
3094   }
3095   /**
3096    *
3097    *
3098    * <pre>
3099    * Immutable. An additional information about the Model; the schema of the
3100    * metadata can be found in
3101    * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
3102    * Unset if the Model does not have any additional information.
3103    * </pre>
3104    *
3105    * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
3106    */
3107   @java.lang.Override
getMetadataOrBuilder()3108   public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() {
3109     return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
3110   }
3111 
3112   public static final int SUPPORTED_EXPORT_FORMATS_FIELD_NUMBER = 20;
3113 
3114   @SuppressWarnings("serial")
3115   private java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>
3116       supportedExportFormats_;
3117   /**
3118    *
3119    *
3120    * <pre>
3121    * Output only. The formats in which this Model may be exported. If empty,
3122    * this Model is not available for export.
3123    * </pre>
3124    *
3125    * <code>
3126    * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3127    * </code>
3128    */
3129   @java.lang.Override
3130   public java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>
getSupportedExportFormatsList()3131       getSupportedExportFormatsList() {
3132     return supportedExportFormats_;
3133   }
3134   /**
3135    *
3136    *
3137    * <pre>
3138    * Output only. The formats in which this Model may be exported. If empty,
3139    * this Model is not available for export.
3140    * </pre>
3141    *
3142    * <code>
3143    * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3144    * </code>
3145    */
3146   @java.lang.Override
3147   public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>
getSupportedExportFormatsOrBuilderList()3148       getSupportedExportFormatsOrBuilderList() {
3149     return supportedExportFormats_;
3150   }
3151   /**
3152    *
3153    *
3154    * <pre>
3155    * Output only. The formats in which this Model may be exported. If empty,
3156    * this Model is not available for export.
3157    * </pre>
3158    *
3159    * <code>
3160    * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3161    * </code>
3162    */
3163   @java.lang.Override
getSupportedExportFormatsCount()3164   public int getSupportedExportFormatsCount() {
3165     return supportedExportFormats_.size();
3166   }
3167   /**
3168    *
3169    *
3170    * <pre>
3171    * Output only. The formats in which this Model may be exported. If empty,
3172    * this Model is not available for export.
3173    * </pre>
3174    *
3175    * <code>
3176    * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3177    * </code>
3178    */
3179   @java.lang.Override
getSupportedExportFormats( int index)3180   public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getSupportedExportFormats(
3181       int index) {
3182     return supportedExportFormats_.get(index);
3183   }
3184   /**
3185    *
3186    *
3187    * <pre>
3188    * Output only. The formats in which this Model may be exported. If empty,
3189    * this Model is not available for export.
3190    * </pre>
3191    *
3192    * <code>
3193    * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
3194    * </code>
3195    */
3196   @java.lang.Override
3197   public com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder
getSupportedExportFormatsOrBuilder(int index)3198       getSupportedExportFormatsOrBuilder(int index) {
3199     return supportedExportFormats_.get(index);
3200   }
3201 
3202   public static final int TRAINING_PIPELINE_FIELD_NUMBER = 7;
3203 
3204   @SuppressWarnings("serial")
3205   private volatile java.lang.Object trainingPipeline_ = "";
3206   /**
3207    *
3208    *
3209    * <pre>
3210    * Output only. The resource name of the TrainingPipeline that uploaded this
3211    * Model, if any.
3212    * </pre>
3213    *
3214    * <code>
3215    * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
3216    * </code>
3217    *
3218    * @return The trainingPipeline.
3219    */
3220   @java.lang.Override
getTrainingPipeline()3221   public java.lang.String getTrainingPipeline() {
3222     java.lang.Object ref = trainingPipeline_;
3223     if (ref instanceof java.lang.String) {
3224       return (java.lang.String) ref;
3225     } else {
3226       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3227       java.lang.String s = bs.toStringUtf8();
3228       trainingPipeline_ = s;
3229       return s;
3230     }
3231   }
3232   /**
3233    *
3234    *
3235    * <pre>
3236    * Output only. The resource name of the TrainingPipeline that uploaded this
3237    * Model, if any.
3238    * </pre>
3239    *
3240    * <code>
3241    * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
3242    * </code>
3243    *
3244    * @return The bytes for trainingPipeline.
3245    */
3246   @java.lang.Override
getTrainingPipelineBytes()3247   public com.google.protobuf.ByteString getTrainingPipelineBytes() {
3248     java.lang.Object ref = trainingPipeline_;
3249     if (ref instanceof java.lang.String) {
3250       com.google.protobuf.ByteString b =
3251           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3252       trainingPipeline_ = b;
3253       return b;
3254     } else {
3255       return (com.google.protobuf.ByteString) ref;
3256     }
3257   }
3258 
3259   public static final int CONTAINER_SPEC_FIELD_NUMBER = 9;
3260   private com.google.cloud.aiplatform.v1beta1.ModelContainerSpec containerSpec_;
3261   /**
3262    *
3263    *
3264    * <pre>
3265    * Input only. The specification of the container that is to be used when
3266    * deploying this Model. The specification is ingested upon
3267    * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
3268    * and all binaries it contains are copied and stored internally by Vertex AI.
3269    * Not present for AutoML Models or Large Models.
3270    * </pre>
3271    *
3272    * <code>
3273    * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
3274    * </code>
3275    *
3276    * @return Whether the containerSpec field is set.
3277    */
3278   @java.lang.Override
hasContainerSpec()3279   public boolean hasContainerSpec() {
3280     return containerSpec_ != null;
3281   }
3282   /**
3283    *
3284    *
3285    * <pre>
3286    * Input only. The specification of the container that is to be used when
3287    * deploying this Model. The specification is ingested upon
3288    * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
3289    * and all binaries it contains are copied and stored internally by Vertex AI.
3290    * Not present for AutoML Models or Large Models.
3291    * </pre>
3292    *
3293    * <code>
3294    * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
3295    * </code>
3296    *
3297    * @return The containerSpec.
3298    */
3299   @java.lang.Override
getContainerSpec()3300   public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec getContainerSpec() {
3301     return containerSpec_ == null
3302         ? com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()
3303         : containerSpec_;
3304   }
3305   /**
3306    *
3307    *
3308    * <pre>
3309    * Input only. The specification of the container that is to be used when
3310    * deploying this Model. The specification is ingested upon
3311    * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
3312    * and all binaries it contains are copied and stored internally by Vertex AI.
3313    * Not present for AutoML Models or Large Models.
3314    * </pre>
3315    *
3316    * <code>
3317    * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
3318    * </code>
3319    */
3320   @java.lang.Override
3321   public com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder
getContainerSpecOrBuilder()3322       getContainerSpecOrBuilder() {
3323     return containerSpec_ == null
3324         ? com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()
3325         : containerSpec_;
3326   }
3327 
3328   public static final int ARTIFACT_URI_FIELD_NUMBER = 26;
3329 
3330   @SuppressWarnings("serial")
3331   private volatile java.lang.Object artifactUri_ = "";
3332   /**
3333    *
3334    *
3335    * <pre>
3336    * Immutable. The path to the directory containing the Model artifact and any
3337    * of its supporting files. Not present for AutoML Models or Large Models.
3338    * </pre>
3339    *
3340    * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
3341    *
3342    * @return The artifactUri.
3343    */
3344   @java.lang.Override
getArtifactUri()3345   public java.lang.String getArtifactUri() {
3346     java.lang.Object ref = artifactUri_;
3347     if (ref instanceof java.lang.String) {
3348       return (java.lang.String) ref;
3349     } else {
3350       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3351       java.lang.String s = bs.toStringUtf8();
3352       artifactUri_ = s;
3353       return s;
3354     }
3355   }
3356   /**
3357    *
3358    *
3359    * <pre>
3360    * Immutable. The path to the directory containing the Model artifact and any
3361    * of its supporting files. Not present for AutoML Models or Large Models.
3362    * </pre>
3363    *
3364    * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
3365    *
3366    * @return The bytes for artifactUri.
3367    */
3368   @java.lang.Override
getArtifactUriBytes()3369   public com.google.protobuf.ByteString getArtifactUriBytes() {
3370     java.lang.Object ref = artifactUri_;
3371     if (ref instanceof java.lang.String) {
3372       com.google.protobuf.ByteString b =
3373           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3374       artifactUri_ = b;
3375       return b;
3376     } else {
3377       return (com.google.protobuf.ByteString) ref;
3378     }
3379   }
3380 
3381   public static final int SUPPORTED_DEPLOYMENT_RESOURCES_TYPES_FIELD_NUMBER = 10;
3382 
3383   @SuppressWarnings("serial")
3384   private java.util.List<java.lang.Integer> supportedDeploymentResourcesTypes_;
3385 
3386   private static final com.google.protobuf.Internal.ListAdapter.Converter<
3387           java.lang.Integer, com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>
3388       supportedDeploymentResourcesTypes_converter_ =
3389           new com.google.protobuf.Internal.ListAdapter.Converter<
3390               java.lang.Integer,
3391               com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>() {
3392             public com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType convert(
3393                 java.lang.Integer from) {
3394               com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType result =
3395                   com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType.forNumber(from);
3396               return result == null
3397                   ? com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType.UNRECOGNIZED
3398                   : result;
3399             }
3400           };
3401   /**
3402    *
3403    *
3404    * <pre>
3405    * Output only. When this Model is deployed, its prediction resources are
3406    * described by the `prediction_resources` field of the
3407    * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
3408    * object. Because not all Models support all resource configuration types,
3409    * the configuration types this Model supports are listed here. If no
3410    * configuration types are listed, the Model cannot be deployed to an
3411    * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
3412    * online predictions
3413    * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3414    * or
3415    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
3416    * Such a Model can serve predictions by using a
3417    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
3418    * if it has at least one entry each in
3419    * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
3420    * and
3421    * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
3422    * </pre>
3423    *
3424    * <code>
3425    * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3426    * </code>
3427    *
3428    * @return A list containing the supportedDeploymentResourcesTypes.
3429    */
3430   @java.lang.Override
3431   public java.util.List<com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>
getSupportedDeploymentResourcesTypesList()3432       getSupportedDeploymentResourcesTypesList() {
3433     return new com.google.protobuf.Internal.ListAdapter<
3434         java.lang.Integer, com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>(
3435         supportedDeploymentResourcesTypes_, supportedDeploymentResourcesTypes_converter_);
3436   }
3437   /**
3438    *
3439    *
3440    * <pre>
3441    * Output only. When this Model is deployed, its prediction resources are
3442    * described by the `prediction_resources` field of the
3443    * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
3444    * object. Because not all Models support all resource configuration types,
3445    * the configuration types this Model supports are listed here. If no
3446    * configuration types are listed, the Model cannot be deployed to an
3447    * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
3448    * online predictions
3449    * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3450    * or
3451    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
3452    * Such a Model can serve predictions by using a
3453    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
3454    * if it has at least one entry each in
3455    * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
3456    * and
3457    * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
3458    * </pre>
3459    *
3460    * <code>
3461    * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3462    * </code>
3463    *
3464    * @return The count of supportedDeploymentResourcesTypes.
3465    */
3466   @java.lang.Override
getSupportedDeploymentResourcesTypesCount()3467   public int getSupportedDeploymentResourcesTypesCount() {
3468     return supportedDeploymentResourcesTypes_.size();
3469   }
3470   /**
3471    *
3472    *
3473    * <pre>
3474    * Output only. When this Model is deployed, its prediction resources are
3475    * described by the `prediction_resources` field of the
3476    * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
3477    * object. Because not all Models support all resource configuration types,
3478    * the configuration types this Model supports are listed here. If no
3479    * configuration types are listed, the Model cannot be deployed to an
3480    * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
3481    * online predictions
3482    * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3483    * or
3484    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
3485    * Such a Model can serve predictions by using a
3486    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
3487    * if it has at least one entry each in
3488    * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
3489    * and
3490    * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
3491    * </pre>
3492    *
3493    * <code>
3494    * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3495    * </code>
3496    *
3497    * @param index The index of the element to return.
3498    * @return The supportedDeploymentResourcesTypes at the given index.
3499    */
3500   @java.lang.Override
3501   public com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType
getSupportedDeploymentResourcesTypes(int index)3502       getSupportedDeploymentResourcesTypes(int index) {
3503     return supportedDeploymentResourcesTypes_converter_.convert(
3504         supportedDeploymentResourcesTypes_.get(index));
3505   }
3506   /**
3507    *
3508    *
3509    * <pre>
3510    * Output only. When this Model is deployed, its prediction resources are
3511    * described by the `prediction_resources` field of the
3512    * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
3513    * object. Because not all Models support all resource configuration types,
3514    * the configuration types this Model supports are listed here. If no
3515    * configuration types are listed, the Model cannot be deployed to an
3516    * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
3517    * online predictions
3518    * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3519    * or
3520    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
3521    * Such a Model can serve predictions by using a
3522    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
3523    * if it has at least one entry each in
3524    * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
3525    * and
3526    * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
3527    * </pre>
3528    *
3529    * <code>
3530    * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3531    * </code>
3532    *
3533    * @return A list containing the enum numeric values on the wire for
3534    *     supportedDeploymentResourcesTypes.
3535    */
3536   @java.lang.Override
getSupportedDeploymentResourcesTypesValueList()3537   public java.util.List<java.lang.Integer> getSupportedDeploymentResourcesTypesValueList() {
3538     return supportedDeploymentResourcesTypes_;
3539   }
3540   /**
3541    *
3542    *
3543    * <pre>
3544    * Output only. When this Model is deployed, its prediction resources are
3545    * described by the `prediction_resources` field of the
3546    * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
3547    * object. Because not all Models support all resource configuration types,
3548    * the configuration types this Model supports are listed here. If no
3549    * configuration types are listed, the Model cannot be deployed to an
3550    * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
3551    * online predictions
3552    * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3553    * or
3554    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
3555    * Such a Model can serve predictions by using a
3556    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
3557    * if it has at least one entry each in
3558    * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
3559    * and
3560    * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
3561    * </pre>
3562    *
3563    * <code>
3564    * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3565    * </code>
3566    *
3567    * @param index The index of the value to return.
3568    * @return The enum numeric value on the wire of supportedDeploymentResourcesTypes at the given
3569    *     index.
3570    */
3571   @java.lang.Override
getSupportedDeploymentResourcesTypesValue(int index)3572   public int getSupportedDeploymentResourcesTypesValue(int index) {
3573     return supportedDeploymentResourcesTypes_.get(index);
3574   }
3575 
3576   private int supportedDeploymentResourcesTypesMemoizedSerializedSize;
3577 
3578   public static final int SUPPORTED_INPUT_STORAGE_FORMATS_FIELD_NUMBER = 11;
3579 
3580   @SuppressWarnings("serial")
3581   private com.google.protobuf.LazyStringList supportedInputStorageFormats_;
3582   /**
3583    *
3584    *
3585    * <pre>
3586    * Output only. The formats this Model supports in
3587    * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
3588    * If
3589    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3590    * exists, the instances should be given as per that schema.
3591    * The possible formats are:
3592    * * `jsonl`
3593    * The JSON Lines format, where each instance is a single line. Uses
3594    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3595    * * `csv`
3596    * The CSV format, where each instance is a single comma-separated line.
3597    * The first line in the file is the header, containing comma-separated field
3598    * names. Uses
3599    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3600    * * `tf-record`
3601    * The TFRecord format, where each instance is a single record in tfrecord
3602    * syntax. Uses
3603    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3604    * * `tf-record-gzip`
3605    * Similar to `tf-record`, but the file is gzipped. Uses
3606    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3607    * * `bigquery`
3608    * Each instance is a single row in BigQuery. Uses
3609    * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
3610    * * `file-list`
3611    * Each line of the file is the location of an instance to process, uses
3612    * `gcs_source` field of the
3613    * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
3614    * object.
3615    * If this Model doesn't support any of these formats it means it cannot be
3616    * used with a
3617    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3618    * However, if it has
3619    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3620    * it could serve online predictions by using
3621    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3622    * or
3623    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3624    * </pre>
3625    *
3626    * <code>
3627    * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3628    * </code>
3629    *
3630    * @return A list containing the supportedInputStorageFormats.
3631    */
getSupportedInputStorageFormatsList()3632   public com.google.protobuf.ProtocolStringList getSupportedInputStorageFormatsList() {
3633     return supportedInputStorageFormats_;
3634   }
3635   /**
3636    *
3637    *
3638    * <pre>
3639    * Output only. The formats this Model supports in
3640    * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
3641    * If
3642    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3643    * exists, the instances should be given as per that schema.
3644    * The possible formats are:
3645    * * `jsonl`
3646    * The JSON Lines format, where each instance is a single line. Uses
3647    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3648    * * `csv`
3649    * The CSV format, where each instance is a single comma-separated line.
3650    * The first line in the file is the header, containing comma-separated field
3651    * names. Uses
3652    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3653    * * `tf-record`
3654    * The TFRecord format, where each instance is a single record in tfrecord
3655    * syntax. Uses
3656    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3657    * * `tf-record-gzip`
3658    * Similar to `tf-record`, but the file is gzipped. Uses
3659    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3660    * * `bigquery`
3661    * Each instance is a single row in BigQuery. Uses
3662    * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
3663    * * `file-list`
3664    * Each line of the file is the location of an instance to process, uses
3665    * `gcs_source` field of the
3666    * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
3667    * object.
3668    * If this Model doesn't support any of these formats it means it cannot be
3669    * used with a
3670    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3671    * However, if it has
3672    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3673    * it could serve online predictions by using
3674    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3675    * or
3676    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3677    * </pre>
3678    *
3679    * <code>
3680    * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3681    * </code>
3682    *
3683    * @return The count of supportedInputStorageFormats.
3684    */
getSupportedInputStorageFormatsCount()3685   public int getSupportedInputStorageFormatsCount() {
3686     return supportedInputStorageFormats_.size();
3687   }
3688   /**
3689    *
3690    *
3691    * <pre>
3692    * Output only. The formats this Model supports in
3693    * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
3694    * If
3695    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3696    * exists, the instances should be given as per that schema.
3697    * The possible formats are:
3698    * * `jsonl`
3699    * The JSON Lines format, where each instance is a single line. Uses
3700    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3701    * * `csv`
3702    * The CSV format, where each instance is a single comma-separated line.
3703    * The first line in the file is the header, containing comma-separated field
3704    * names. Uses
3705    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3706    * * `tf-record`
3707    * The TFRecord format, where each instance is a single record in tfrecord
3708    * syntax. Uses
3709    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3710    * * `tf-record-gzip`
3711    * Similar to `tf-record`, but the file is gzipped. Uses
3712    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3713    * * `bigquery`
3714    * Each instance is a single row in BigQuery. Uses
3715    * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
3716    * * `file-list`
3717    * Each line of the file is the location of an instance to process, uses
3718    * `gcs_source` field of the
3719    * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
3720    * object.
3721    * If this Model doesn't support any of these formats it means it cannot be
3722    * used with a
3723    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3724    * However, if it has
3725    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3726    * it could serve online predictions by using
3727    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3728    * or
3729    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3730    * </pre>
3731    *
3732    * <code>
3733    * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3734    * </code>
3735    *
3736    * @param index The index of the element to return.
3737    * @return The supportedInputStorageFormats at the given index.
3738    */
getSupportedInputStorageFormats(int index)3739   public java.lang.String getSupportedInputStorageFormats(int index) {
3740     return supportedInputStorageFormats_.get(index);
3741   }
3742   /**
3743    *
3744    *
3745    * <pre>
3746    * Output only. The formats this Model supports in
3747    * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
3748    * If
3749    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3750    * exists, the instances should be given as per that schema.
3751    * The possible formats are:
3752    * * `jsonl`
3753    * The JSON Lines format, where each instance is a single line. Uses
3754    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3755    * * `csv`
3756    * The CSV format, where each instance is a single comma-separated line.
3757    * The first line in the file is the header, containing comma-separated field
3758    * names. Uses
3759    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3760    * * `tf-record`
3761    * The TFRecord format, where each instance is a single record in tfrecord
3762    * syntax. Uses
3763    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3764    * * `tf-record-gzip`
3765    * Similar to `tf-record`, but the file is gzipped. Uses
3766    * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
3767    * * `bigquery`
3768    * Each instance is a single row in BigQuery. Uses
3769    * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
3770    * * `file-list`
3771    * Each line of the file is the location of an instance to process, uses
3772    * `gcs_source` field of the
3773    * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
3774    * object.
3775    * If this Model doesn't support any of these formats it means it cannot be
3776    * used with a
3777    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3778    * However, if it has
3779    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3780    * it could serve online predictions by using
3781    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3782    * or
3783    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3784    * </pre>
3785    *
3786    * <code>
3787    * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3788    * </code>
3789    *
3790    * @param index The index of the value to return.
3791    * @return The bytes of the supportedInputStorageFormats at the given index.
3792    */
getSupportedInputStorageFormatsBytes(int index)3793   public com.google.protobuf.ByteString getSupportedInputStorageFormatsBytes(int index) {
3794     return supportedInputStorageFormats_.getByteString(index);
3795   }
3796 
3797   public static final int SUPPORTED_OUTPUT_STORAGE_FORMATS_FIELD_NUMBER = 12;
3798 
3799   @SuppressWarnings("serial")
3800   private com.google.protobuf.LazyStringList supportedOutputStorageFormats_;
3801   /**
3802    *
3803    *
3804    * <pre>
3805    * Output only. The formats this Model supports in
3806    * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
3807    * If both
3808    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3809    * and
3810    * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
3811    * exist, the predictions are returned together with their instances. In other
3812    * words, the prediction has the original instance data first, followed by the
3813    * actual prediction content (as per the schema).
3814    * The possible formats are:
3815    * * `jsonl`
3816    * The JSON Lines format, where each prediction is a single line. Uses
3817    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3818    * * `csv`
3819    * The CSV format, where each prediction is a single comma-separated line.
3820    * The first line in the file is the header, containing comma-separated field
3821    * names. Uses
3822    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3823    * * `bigquery`
3824    * Each prediction is a single row in a BigQuery table, uses
3825    * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
3826    * .
3827    * If this Model doesn't support any of these formats it means it cannot be
3828    * used with a
3829    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3830    * However, if it has
3831    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3832    * it could serve online predictions by using
3833    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3834    * or
3835    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3836    * </pre>
3837    *
3838    * <code>
3839    * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3840    * </code>
3841    *
3842    * @return A list containing the supportedOutputStorageFormats.
3843    */
getSupportedOutputStorageFormatsList()3844   public com.google.protobuf.ProtocolStringList getSupportedOutputStorageFormatsList() {
3845     return supportedOutputStorageFormats_;
3846   }
3847   /**
3848    *
3849    *
3850    * <pre>
3851    * Output only. The formats this Model supports in
3852    * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
3853    * If both
3854    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3855    * and
3856    * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
3857    * exist, the predictions are returned together with their instances. In other
3858    * words, the prediction has the original instance data first, followed by the
3859    * actual prediction content (as per the schema).
3860    * The possible formats are:
3861    * * `jsonl`
3862    * The JSON Lines format, where each prediction is a single line. Uses
3863    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3864    * * `csv`
3865    * The CSV format, where each prediction is a single comma-separated line.
3866    * The first line in the file is the header, containing comma-separated field
3867    * names. Uses
3868    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3869    * * `bigquery`
3870    * Each prediction is a single row in a BigQuery table, uses
3871    * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
3872    * .
3873    * If this Model doesn't support any of these formats it means it cannot be
3874    * used with a
3875    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3876    * However, if it has
3877    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3878    * it could serve online predictions by using
3879    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3880    * or
3881    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3882    * </pre>
3883    *
3884    * <code>
3885    * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3886    * </code>
3887    *
3888    * @return The count of supportedOutputStorageFormats.
3889    */
getSupportedOutputStorageFormatsCount()3890   public int getSupportedOutputStorageFormatsCount() {
3891     return supportedOutputStorageFormats_.size();
3892   }
3893   /**
3894    *
3895    *
3896    * <pre>
3897    * Output only. The formats this Model supports in
3898    * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
3899    * If both
3900    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3901    * and
3902    * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
3903    * exist, the predictions are returned together with their instances. In other
3904    * words, the prediction has the original instance data first, followed by the
3905    * actual prediction content (as per the schema).
3906    * The possible formats are:
3907    * * `jsonl`
3908    * The JSON Lines format, where each prediction is a single line. Uses
3909    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3910    * * `csv`
3911    * The CSV format, where each prediction is a single comma-separated line.
3912    * The first line in the file is the header, containing comma-separated field
3913    * names. Uses
3914    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3915    * * `bigquery`
3916    * Each prediction is a single row in a BigQuery table, uses
3917    * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
3918    * .
3919    * If this Model doesn't support any of these formats it means it cannot be
3920    * used with a
3921    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3922    * However, if it has
3923    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3924    * it could serve online predictions by using
3925    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3926    * or
3927    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3928    * </pre>
3929    *
3930    * <code>
3931    * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3932    * </code>
3933    *
3934    * @param index The index of the element to return.
3935    * @return The supportedOutputStorageFormats at the given index.
3936    */
getSupportedOutputStorageFormats(int index)3937   public java.lang.String getSupportedOutputStorageFormats(int index) {
3938     return supportedOutputStorageFormats_.get(index);
3939   }
3940   /**
3941    *
3942    *
3943    * <pre>
3944    * Output only. The formats this Model supports in
3945    * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
3946    * If both
3947    * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
3948    * and
3949    * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
3950    * exist, the predictions are returned together with their instances. In other
3951    * words, the prediction has the original instance data first, followed by the
3952    * actual prediction content (as per the schema).
3953    * The possible formats are:
3954    * * `jsonl`
3955    * The JSON Lines format, where each prediction is a single line. Uses
3956    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3957    * * `csv`
3958    * The CSV format, where each prediction is a single comma-separated line.
3959    * The first line in the file is the header, containing comma-separated field
3960    * names. Uses
3961    * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
3962    * * `bigquery`
3963    * Each prediction is a single row in a BigQuery table, uses
3964    * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
3965    * .
3966    * If this Model doesn't support any of these formats it means it cannot be
3967    * used with a
3968    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
3969    * However, if it has
3970    * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
3971    * it could serve online predictions by using
3972    * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
3973    * or
3974    * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
3975    * </pre>
3976    *
3977    * <code>
3978    * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
3979    * </code>
3980    *
3981    * @param index The index of the value to return.
3982    * @return The bytes of the supportedOutputStorageFormats at the given index.
3983    */
getSupportedOutputStorageFormatsBytes(int index)3984   public com.google.protobuf.ByteString getSupportedOutputStorageFormatsBytes(int index) {
3985     return supportedOutputStorageFormats_.getByteString(index);
3986   }
3987 
3988   public static final int CREATE_TIME_FIELD_NUMBER = 13;
3989   private com.google.protobuf.Timestamp createTime_;
3990   /**
3991    *
3992    *
3993    * <pre>
3994    * Output only. Timestamp when this Model was uploaded into Vertex AI.
3995    * </pre>
3996    *
3997    * <code>.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
3998    * </code>
3999    *
4000    * @return Whether the createTime field is set.
4001    */
4002   @java.lang.Override
hasCreateTime()4003   public boolean hasCreateTime() {
4004     return createTime_ != null;
4005   }
4006   /**
4007    *
4008    *
4009    * <pre>
4010    * Output only. Timestamp when this Model was uploaded into Vertex AI.
4011    * </pre>
4012    *
4013    * <code>.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4014    * </code>
4015    *
4016    * @return The createTime.
4017    */
4018   @java.lang.Override
getCreateTime()4019   public com.google.protobuf.Timestamp getCreateTime() {
4020     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
4021   }
4022   /**
4023    *
4024    *
4025    * <pre>
4026    * Output only. Timestamp when this Model was uploaded into Vertex AI.
4027    * </pre>
4028    *
4029    * <code>.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
4030    * </code>
4031    */
4032   @java.lang.Override
getCreateTimeOrBuilder()4033   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
4034     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
4035   }
4036 
4037   public static final int UPDATE_TIME_FIELD_NUMBER = 14;
4038   private com.google.protobuf.Timestamp updateTime_;
4039   /**
4040    *
4041    *
4042    * <pre>
4043    * Output only. Timestamp when this Model was most recently updated.
4044    * </pre>
4045    *
4046    * <code>.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4047    * </code>
4048    *
4049    * @return Whether the updateTime field is set.
4050    */
4051   @java.lang.Override
hasUpdateTime()4052   public boolean hasUpdateTime() {
4053     return updateTime_ != null;
4054   }
4055   /**
4056    *
4057    *
4058    * <pre>
4059    * Output only. Timestamp when this Model was most recently updated.
4060    * </pre>
4061    *
4062    * <code>.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4063    * </code>
4064    *
4065    * @return The updateTime.
4066    */
4067   @java.lang.Override
getUpdateTime()4068   public com.google.protobuf.Timestamp getUpdateTime() {
4069     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
4070   }
4071   /**
4072    *
4073    *
4074    * <pre>
4075    * Output only. Timestamp when this Model was most recently updated.
4076    * </pre>
4077    *
4078    * <code>.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
4079    * </code>
4080    */
4081   @java.lang.Override
getUpdateTimeOrBuilder()4082   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
4083     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
4084   }
4085 
4086   public static final int DEPLOYED_MODELS_FIELD_NUMBER = 15;
4087 
4088   @SuppressWarnings("serial")
4089   private java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedModelRef> deployedModels_;
4090   /**
4091    *
4092    *
4093    * <pre>
4094    * Output only. The pointers to DeployedModels created from this Model. Note
4095    * that Model could have been deployed to Endpoints in different Locations.
4096    * </pre>
4097    *
4098    * <code>
4099    * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
4100    * </code>
4101    */
4102   @java.lang.Override
4103   public java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedModelRef>
getDeployedModelsList()4104       getDeployedModelsList() {
4105     return deployedModels_;
4106   }
4107   /**
4108    *
4109    *
4110    * <pre>
4111    * Output only. The pointers to DeployedModels created from this Model. Note
4112    * that Model could have been deployed to Endpoints in different Locations.
4113    * </pre>
4114    *
4115    * <code>
4116    * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
4117    * </code>
4118    */
4119   @java.lang.Override
4120   public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>
getDeployedModelsOrBuilderList()4121       getDeployedModelsOrBuilderList() {
4122     return deployedModels_;
4123   }
4124   /**
4125    *
4126    *
4127    * <pre>
4128    * Output only. The pointers to DeployedModels created from this Model. Note
4129    * that Model could have been deployed to Endpoints in different Locations.
4130    * </pre>
4131    *
4132    * <code>
4133    * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
4134    * </code>
4135    */
4136   @java.lang.Override
getDeployedModelsCount()4137   public int getDeployedModelsCount() {
4138     return deployedModels_.size();
4139   }
4140   /**
4141    *
4142    *
4143    * <pre>
4144    * Output only. The pointers to DeployedModels created from this Model. Note
4145    * that Model could have been deployed to Endpoints in different Locations.
4146    * </pre>
4147    *
4148    * <code>
4149    * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
4150    * </code>
4151    */
4152   @java.lang.Override
getDeployedModels(int index)4153   public com.google.cloud.aiplatform.v1beta1.DeployedModelRef getDeployedModels(int index) {
4154     return deployedModels_.get(index);
4155   }
4156   /**
4157    *
4158    *
4159    * <pre>
4160    * Output only. The pointers to DeployedModels created from this Model. Note
4161    * that Model could have been deployed to Endpoints in different Locations.
4162    * </pre>
4163    *
4164    * <code>
4165    * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
4166    * </code>
4167    */
4168   @java.lang.Override
getDeployedModelsOrBuilder( int index)4169   public com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsOrBuilder(
4170       int index) {
4171     return deployedModels_.get(index);
4172   }
4173 
4174   public static final int EXPLANATION_SPEC_FIELD_NUMBER = 23;
4175   private com.google.cloud.aiplatform.v1beta1.ExplanationSpec explanationSpec_;
4176   /**
4177    *
4178    *
4179    * <pre>
4180    * The default explanation specification for this Model.
4181    * The Model can be used for
4182    * [requesting
4183    * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
4184    * after being
4185    * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
4186    * it is populated. The Model can be used for [batch
4187    * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
4188    * if it is populated.
4189    * All fields of the explanation_spec can be overridden by
4190    * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
4191    * of
4192    * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
4193    * or
4194    * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
4195    * of
4196    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
4197    * If the default explanation specification is not set for this Model, this
4198    * Model can still be used for
4199    * [requesting
4200    * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
4201    * setting
4202    * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
4203    * of
4204    * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
4205    * and for [batch
4206    * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
4207    * by setting
4208    * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
4209    * of
4210    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
4211    * </pre>
4212    *
4213    * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
4214    *
4215    * @return Whether the explanationSpec field is set.
4216    */
4217   @java.lang.Override
hasExplanationSpec()4218   public boolean hasExplanationSpec() {
4219     return explanationSpec_ != null;
4220   }
4221   /**
4222    *
4223    *
4224    * <pre>
4225    * The default explanation specification for this Model.
4226    * The Model can be used for
4227    * [requesting
4228    * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
4229    * after being
4230    * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
4231    * it is populated. The Model can be used for [batch
4232    * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
4233    * if it is populated.
4234    * All fields of the explanation_spec can be overridden by
4235    * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
4236    * of
4237    * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
4238    * or
4239    * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
4240    * of
4241    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
4242    * If the default explanation specification is not set for this Model, this
4243    * Model can still be used for
4244    * [requesting
4245    * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
4246    * setting
4247    * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
4248    * of
4249    * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
4250    * and for [batch
4251    * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
4252    * by setting
4253    * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
4254    * of
4255    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
4256    * </pre>
4257    *
4258    * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
4259    *
4260    * @return The explanationSpec.
4261    */
4262   @java.lang.Override
getExplanationSpec()4263   public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() {
4264     return explanationSpec_ == null
4265         ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()
4266         : explanationSpec_;
4267   }
4268   /**
4269    *
4270    *
4271    * <pre>
4272    * The default explanation specification for this Model.
4273    * The Model can be used for
4274    * [requesting
4275    * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
4276    * after being
4277    * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
4278    * it is populated. The Model can be used for [batch
4279    * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
4280    * if it is populated.
4281    * All fields of the explanation_spec can be overridden by
4282    * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
4283    * of
4284    * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
4285    * or
4286    * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
4287    * of
4288    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
4289    * If the default explanation specification is not set for this Model, this
4290    * Model can still be used for
4291    * [requesting
4292    * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
4293    * setting
4294    * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
4295    * of
4296    * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
4297    * and for [batch
4298    * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
4299    * by setting
4300    * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
4301    * of
4302    * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
4303    * </pre>
4304    *
4305    * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
4306    */
4307   @java.lang.Override
4308   public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder
getExplanationSpecOrBuilder()4309       getExplanationSpecOrBuilder() {
4310     return explanationSpec_ == null
4311         ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()
4312         : explanationSpec_;
4313   }
4314 
4315   public static final int ETAG_FIELD_NUMBER = 16;
4316 
4317   @SuppressWarnings("serial")
4318   private volatile java.lang.Object etag_ = "";
4319   /**
4320    *
4321    *
4322    * <pre>
4323    * Used to perform consistent read-modify-write updates. If not set, a blind
4324    * "overwrite" update happens.
4325    * </pre>
4326    *
4327    * <code>string etag = 16;</code>
4328    *
4329    * @return The etag.
4330    */
4331   @java.lang.Override
getEtag()4332   public java.lang.String getEtag() {
4333     java.lang.Object ref = etag_;
4334     if (ref instanceof java.lang.String) {
4335       return (java.lang.String) ref;
4336     } else {
4337       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4338       java.lang.String s = bs.toStringUtf8();
4339       etag_ = s;
4340       return s;
4341     }
4342   }
4343   /**
4344    *
4345    *
4346    * <pre>
4347    * Used to perform consistent read-modify-write updates. If not set, a blind
4348    * "overwrite" update happens.
4349    * </pre>
4350    *
4351    * <code>string etag = 16;</code>
4352    *
4353    * @return The bytes for etag.
4354    */
4355   @java.lang.Override
getEtagBytes()4356   public com.google.protobuf.ByteString getEtagBytes() {
4357     java.lang.Object ref = etag_;
4358     if (ref instanceof java.lang.String) {
4359       com.google.protobuf.ByteString b =
4360           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4361       etag_ = b;
4362       return b;
4363     } else {
4364       return (com.google.protobuf.ByteString) ref;
4365     }
4366   }
4367 
4368   public static final int LABELS_FIELD_NUMBER = 17;
4369 
4370   private static final class LabelsDefaultEntryHolder {
4371     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
4372         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
4373             com.google.cloud.aiplatform.v1beta1.ModelProto
4374                 .internal_static_google_cloud_aiplatform_v1beta1_Model_LabelsEntry_descriptor,
4375             com.google.protobuf.WireFormat.FieldType.STRING,
4376             "",
4377             com.google.protobuf.WireFormat.FieldType.STRING,
4378             "");
4379   }
4380 
4381   @SuppressWarnings("serial")
4382   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
4383 
internalGetLabels()4384   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
4385     if (labels_ == null) {
4386       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
4387     }
4388     return labels_;
4389   }
4390 
getLabelsCount()4391   public int getLabelsCount() {
4392     return internalGetLabels().getMap().size();
4393   }
4394   /**
4395    *
4396    *
4397    * <pre>
4398    * The labels with user-defined metadata to organize your Models.
4399    * Label keys and values can be no longer than 64 characters
4400    * (Unicode codepoints), can only contain lowercase letters, numeric
4401    * characters, underscores and dashes. International characters are allowed.
4402    * See https://goo.gl/xmQnxf for more information and examples of labels.
4403    * </pre>
4404    *
4405    * <code>map&lt;string, string&gt; labels = 17;</code>
4406    */
4407   @java.lang.Override
containsLabels(java.lang.String key)4408   public boolean containsLabels(java.lang.String key) {
4409     if (key == null) {
4410       throw new NullPointerException("map key");
4411     }
4412     return internalGetLabels().getMap().containsKey(key);
4413   }
4414   /** Use {@link #getLabelsMap()} instead. */
4415   @java.lang.Override
4416   @java.lang.Deprecated
getLabels()4417   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
4418     return getLabelsMap();
4419   }
4420   /**
4421    *
4422    *
4423    * <pre>
4424    * The labels with user-defined metadata to organize your Models.
4425    * Label keys and values can be no longer than 64 characters
4426    * (Unicode codepoints), can only contain lowercase letters, numeric
4427    * characters, underscores and dashes. International characters are allowed.
4428    * See https://goo.gl/xmQnxf for more information and examples of labels.
4429    * </pre>
4430    *
4431    * <code>map&lt;string, string&gt; labels = 17;</code>
4432    */
4433   @java.lang.Override
getLabelsMap()4434   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
4435     return internalGetLabels().getMap();
4436   }
4437   /**
4438    *
4439    *
4440    * <pre>
4441    * The labels with user-defined metadata to organize your Models.
4442    * Label keys and values can be no longer than 64 characters
4443    * (Unicode codepoints), can only contain lowercase letters, numeric
4444    * characters, underscores and dashes. International characters are allowed.
4445    * See https://goo.gl/xmQnxf for more information and examples of labels.
4446    * </pre>
4447    *
4448    * <code>map&lt;string, string&gt; labels = 17;</code>
4449    */
4450   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)4451   public /* nullable */ java.lang.String getLabelsOrDefault(
4452       java.lang.String key,
4453       /* nullable */
4454       java.lang.String defaultValue) {
4455     if (key == null) {
4456       throw new NullPointerException("map key");
4457     }
4458     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
4459     return map.containsKey(key) ? map.get(key) : defaultValue;
4460   }
4461   /**
4462    *
4463    *
4464    * <pre>
4465    * The labels with user-defined metadata to organize your Models.
4466    * Label keys and values can be no longer than 64 characters
4467    * (Unicode codepoints), can only contain lowercase letters, numeric
4468    * characters, underscores and dashes. International characters are allowed.
4469    * See https://goo.gl/xmQnxf for more information and examples of labels.
4470    * </pre>
4471    *
4472    * <code>map&lt;string, string&gt; labels = 17;</code>
4473    */
4474   @java.lang.Override
getLabelsOrThrow(java.lang.String key)4475   public java.lang.String getLabelsOrThrow(java.lang.String key) {
4476     if (key == null) {
4477       throw new NullPointerException("map key");
4478     }
4479     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
4480     if (!map.containsKey(key)) {
4481       throw new java.lang.IllegalArgumentException();
4482     }
4483     return map.get(key);
4484   }
4485 
4486   public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 24;
4487   private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_;
4488   /**
4489    *
4490    *
4491    * <pre>
4492    * Customer-managed encryption key spec for a Model. If set, this
4493    * Model and all sub-resources of this Model will be secured by this key.
4494    * </pre>
4495    *
4496    * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
4497    *
4498    * @return Whether the encryptionSpec field is set.
4499    */
4500   @java.lang.Override
hasEncryptionSpec()4501   public boolean hasEncryptionSpec() {
4502     return encryptionSpec_ != null;
4503   }
4504   /**
4505    *
4506    *
4507    * <pre>
4508    * Customer-managed encryption key spec for a Model. If set, this
4509    * Model and all sub-resources of this Model will be secured by this key.
4510    * </pre>
4511    *
4512    * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
4513    *
4514    * @return The encryptionSpec.
4515    */
4516   @java.lang.Override
getEncryptionSpec()4517   public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() {
4518     return encryptionSpec_ == null
4519         ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
4520         : encryptionSpec_;
4521   }
4522   /**
4523    *
4524    *
4525    * <pre>
4526    * Customer-managed encryption key spec for a Model. If set, this
4527    * Model and all sub-resources of this Model will be secured by this key.
4528    * </pre>
4529    *
4530    * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
4531    */
4532   @java.lang.Override
getEncryptionSpecOrBuilder()4533   public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() {
4534     return encryptionSpec_ == null
4535         ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
4536         : encryptionSpec_;
4537   }
4538 
4539   public static final int MODEL_SOURCE_INFO_FIELD_NUMBER = 38;
4540   private com.google.cloud.aiplatform.v1beta1.ModelSourceInfo modelSourceInfo_;
4541   /**
4542    *
4543    *
4544    * <pre>
4545    * Output only. Source of a model. It can either be automl training pipeline,
4546    * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
4547    * </pre>
4548    *
4549    * <code>
4550    * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
4551    * </code>
4552    *
4553    * @return Whether the modelSourceInfo field is set.
4554    */
4555   @java.lang.Override
hasModelSourceInfo()4556   public boolean hasModelSourceInfo() {
4557     return modelSourceInfo_ != null;
4558   }
4559   /**
4560    *
4561    *
4562    * <pre>
4563    * Output only. Source of a model. It can either be automl training pipeline,
4564    * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
4565    * </pre>
4566    *
4567    * <code>
4568    * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
4569    * </code>
4570    *
4571    * @return The modelSourceInfo.
4572    */
4573   @java.lang.Override
getModelSourceInfo()4574   public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo getModelSourceInfo() {
4575     return modelSourceInfo_ == null
4576         ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()
4577         : modelSourceInfo_;
4578   }
4579   /**
4580    *
4581    *
4582    * <pre>
4583    * Output only. Source of a model. It can either be automl training pipeline,
4584    * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
4585    * </pre>
4586    *
4587    * <code>
4588    * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
4589    * </code>
4590    */
4591   @java.lang.Override
4592   public com.google.cloud.aiplatform.v1beta1.ModelSourceInfoOrBuilder
getModelSourceInfoOrBuilder()4593       getModelSourceInfoOrBuilder() {
4594     return modelSourceInfo_ == null
4595         ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()
4596         : modelSourceInfo_;
4597   }
4598 
4599   public static final int ORIGINAL_MODEL_INFO_FIELD_NUMBER = 34;
4600   private com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo originalModelInfo_;
4601   /**
4602    *
4603    *
4604    * <pre>
4605    * Output only. If this Model is a copy of another Model, this contains info
4606    * about the original.
4607    * </pre>
4608    *
4609    * <code>
4610    * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
4611    * </code>
4612    *
4613    * @return Whether the originalModelInfo field is set.
4614    */
4615   @java.lang.Override
hasOriginalModelInfo()4616   public boolean hasOriginalModelInfo() {
4617     return originalModelInfo_ != null;
4618   }
4619   /**
4620    *
4621    *
4622    * <pre>
4623    * Output only. If this Model is a copy of another Model, this contains info
4624    * about the original.
4625    * </pre>
4626    *
4627    * <code>
4628    * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
4629    * </code>
4630    *
4631    * @return The originalModelInfo.
4632    */
4633   @java.lang.Override
getOriginalModelInfo()4634   public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo getOriginalModelInfo() {
4635     return originalModelInfo_ == null
4636         ? com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.getDefaultInstance()
4637         : originalModelInfo_;
4638   }
4639   /**
4640    *
4641    *
4642    * <pre>
4643    * Output only. If this Model is a copy of another Model, this contains info
4644    * about the original.
4645    * </pre>
4646    *
4647    * <code>
4648    * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
4649    * </code>
4650    */
4651   @java.lang.Override
4652   public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfoOrBuilder
getOriginalModelInfoOrBuilder()4653       getOriginalModelInfoOrBuilder() {
4654     return originalModelInfo_ == null
4655         ? com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.getDefaultInstance()
4656         : originalModelInfo_;
4657   }
4658 
4659   public static final int METADATA_ARTIFACT_FIELD_NUMBER = 44;
4660 
4661   @SuppressWarnings("serial")
4662   private volatile java.lang.Object metadataArtifact_ = "";
4663   /**
4664    *
4665    *
4666    * <pre>
4667    * Output only. The resource name of the Artifact that was created in
4668    * MetadataStore when creating the Model. The Artifact resource name pattern
4669    * is
4670    * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
4671    * </pre>
4672    *
4673    * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
4674    *
4675    * @return The metadataArtifact.
4676    */
4677   @java.lang.Override
getMetadataArtifact()4678   public java.lang.String getMetadataArtifact() {
4679     java.lang.Object ref = metadataArtifact_;
4680     if (ref instanceof java.lang.String) {
4681       return (java.lang.String) ref;
4682     } else {
4683       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4684       java.lang.String s = bs.toStringUtf8();
4685       metadataArtifact_ = s;
4686       return s;
4687     }
4688   }
4689   /**
4690    *
4691    *
4692    * <pre>
4693    * Output only. The resource name of the Artifact that was created in
4694    * MetadataStore when creating the Model. The Artifact resource name pattern
4695    * is
4696    * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
4697    * </pre>
4698    *
4699    * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
4700    *
4701    * @return The bytes for metadataArtifact.
4702    */
4703   @java.lang.Override
getMetadataArtifactBytes()4704   public com.google.protobuf.ByteString getMetadataArtifactBytes() {
4705     java.lang.Object ref = metadataArtifact_;
4706     if (ref instanceof java.lang.String) {
4707       com.google.protobuf.ByteString b =
4708           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4709       metadataArtifact_ = b;
4710       return b;
4711     } else {
4712       return (com.google.protobuf.ByteString) ref;
4713     }
4714   }
4715 
4716   private byte memoizedIsInitialized = -1;
4717 
4718   @java.lang.Override
isInitialized()4719   public final boolean isInitialized() {
4720     byte isInitialized = memoizedIsInitialized;
4721     if (isInitialized == 1) return true;
4722     if (isInitialized == 0) return false;
4723 
4724     memoizedIsInitialized = 1;
4725     return true;
4726   }
4727 
4728   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)4729   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
4730     getSerializedSize();
4731     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
4732       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
4733     }
4734     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
4735       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
4736     }
4737     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
4738       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
4739     }
4740     if (predictSchemata_ != null) {
4741       output.writeMessage(4, getPredictSchemata());
4742     }
4743     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataSchemaUri_)) {
4744       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, metadataSchemaUri_);
4745     }
4746     if (metadata_ != null) {
4747       output.writeMessage(6, getMetadata());
4748     }
4749     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainingPipeline_)) {
4750       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, trainingPipeline_);
4751     }
4752     if (containerSpec_ != null) {
4753       output.writeMessage(9, getContainerSpec());
4754     }
4755     if (getSupportedDeploymentResourcesTypesList().size() > 0) {
4756       output.writeUInt32NoTag(82);
4757       output.writeUInt32NoTag(supportedDeploymentResourcesTypesMemoizedSerializedSize);
4758     }
4759     for (int i = 0; i < supportedDeploymentResourcesTypes_.size(); i++) {
4760       output.writeEnumNoTag(supportedDeploymentResourcesTypes_.get(i));
4761     }
4762     for (int i = 0; i < supportedInputStorageFormats_.size(); i++) {
4763       com.google.protobuf.GeneratedMessageV3.writeString(
4764           output, 11, supportedInputStorageFormats_.getRaw(i));
4765     }
4766     for (int i = 0; i < supportedOutputStorageFormats_.size(); i++) {
4767       com.google.protobuf.GeneratedMessageV3.writeString(
4768           output, 12, supportedOutputStorageFormats_.getRaw(i));
4769     }
4770     if (createTime_ != null) {
4771       output.writeMessage(13, getCreateTime());
4772     }
4773     if (updateTime_ != null) {
4774       output.writeMessage(14, getUpdateTime());
4775     }
4776     for (int i = 0; i < deployedModels_.size(); i++) {
4777       output.writeMessage(15, deployedModels_.get(i));
4778     }
4779     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
4780       com.google.protobuf.GeneratedMessageV3.writeString(output, 16, etag_);
4781     }
4782     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
4783         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 17);
4784     for (int i = 0; i < supportedExportFormats_.size(); i++) {
4785       output.writeMessage(20, supportedExportFormats_.get(i));
4786     }
4787     if (explanationSpec_ != null) {
4788       output.writeMessage(23, getExplanationSpec());
4789     }
4790     if (encryptionSpec_ != null) {
4791       output.writeMessage(24, getEncryptionSpec());
4792     }
4793     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) {
4794       com.google.protobuf.GeneratedMessageV3.writeString(output, 26, artifactUri_);
4795     }
4796     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
4797       com.google.protobuf.GeneratedMessageV3.writeString(output, 28, versionId_);
4798     }
4799     for (int i = 0; i < versionAliases_.size(); i++) {
4800       com.google.protobuf.GeneratedMessageV3.writeString(output, 29, versionAliases_.getRaw(i));
4801     }
4802     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) {
4803       com.google.protobuf.GeneratedMessageV3.writeString(output, 30, versionDescription_);
4804     }
4805     if (versionCreateTime_ != null) {
4806       output.writeMessage(31, getVersionCreateTime());
4807     }
4808     if (versionUpdateTime_ != null) {
4809       output.writeMessage(32, getVersionUpdateTime());
4810     }
4811     if (originalModelInfo_ != null) {
4812       output.writeMessage(34, getOriginalModelInfo());
4813     }
4814     if (modelSourceInfo_ != null) {
4815       output.writeMessage(38, getModelSourceInfo());
4816     }
4817     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) {
4818       com.google.protobuf.GeneratedMessageV3.writeString(output, 44, metadataArtifact_);
4819     }
4820     getUnknownFields().writeTo(output);
4821   }
4822 
4823   @java.lang.Override
getSerializedSize()4824   public int getSerializedSize() {
4825     int size = memoizedSize;
4826     if (size != -1) return size;
4827 
4828     size = 0;
4829     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
4830       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
4831     }
4832     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
4833       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
4834     }
4835     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
4836       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
4837     }
4838     if (predictSchemata_ != null) {
4839       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPredictSchemata());
4840     }
4841     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataSchemaUri_)) {
4842       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, metadataSchemaUri_);
4843     }
4844     if (metadata_ != null) {
4845       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata());
4846     }
4847     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainingPipeline_)) {
4848       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, trainingPipeline_);
4849     }
4850     if (containerSpec_ != null) {
4851       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getContainerSpec());
4852     }
4853     {
4854       int dataSize = 0;
4855       for (int i = 0; i < supportedDeploymentResourcesTypes_.size(); i++) {
4856         dataSize +=
4857             com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
4858                 supportedDeploymentResourcesTypes_.get(i));
4859       }
4860       size += dataSize;
4861       if (!getSupportedDeploymentResourcesTypesList().isEmpty()) {
4862         size += 1;
4863         size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
4864       }
4865       supportedDeploymentResourcesTypesMemoizedSerializedSize = dataSize;
4866     }
4867     {
4868       int dataSize = 0;
4869       for (int i = 0; i < supportedInputStorageFormats_.size(); i++) {
4870         dataSize += computeStringSizeNoTag(supportedInputStorageFormats_.getRaw(i));
4871       }
4872       size += dataSize;
4873       size += 1 * getSupportedInputStorageFormatsList().size();
4874     }
4875     {
4876       int dataSize = 0;
4877       for (int i = 0; i < supportedOutputStorageFormats_.size(); i++) {
4878         dataSize += computeStringSizeNoTag(supportedOutputStorageFormats_.getRaw(i));
4879       }
4880       size += dataSize;
4881       size += 1 * getSupportedOutputStorageFormatsList().size();
4882     }
4883     if (createTime_ != null) {
4884       size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime());
4885     }
4886     if (updateTime_ != null) {
4887       size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime());
4888     }
4889     for (int i = 0; i < deployedModels_.size(); i++) {
4890       size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, deployedModels_.get(i));
4891     }
4892     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
4893       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, etag_);
4894     }
4895     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
4896         internalGetLabels().getMap().entrySet()) {
4897       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
4898           LabelsDefaultEntryHolder.defaultEntry
4899               .newBuilderForType()
4900               .setKey(entry.getKey())
4901               .setValue(entry.getValue())
4902               .build();
4903       size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, labels__);
4904     }
4905     for (int i = 0; i < supportedExportFormats_.size(); i++) {
4906       size +=
4907           com.google.protobuf.CodedOutputStream.computeMessageSize(
4908               20, supportedExportFormats_.get(i));
4909     }
4910     if (explanationSpec_ != null) {
4911       size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getExplanationSpec());
4912     }
4913     if (encryptionSpec_ != null) {
4914       size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEncryptionSpec());
4915     }
4916     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) {
4917       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, artifactUri_);
4918     }
4919     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) {
4920       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, versionId_);
4921     }
4922     {
4923       int dataSize = 0;
4924       for (int i = 0; i < versionAliases_.size(); i++) {
4925         dataSize += computeStringSizeNoTag(versionAliases_.getRaw(i));
4926       }
4927       size += dataSize;
4928       size += 2 * getVersionAliasesList().size();
4929     }
4930     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionDescription_)) {
4931       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, versionDescription_);
4932     }
4933     if (versionCreateTime_ != null) {
4934       size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getVersionCreateTime());
4935     }
4936     if (versionUpdateTime_ != null) {
4937       size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getVersionUpdateTime());
4938     }
4939     if (originalModelInfo_ != null) {
4940       size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getOriginalModelInfo());
4941     }
4942     if (modelSourceInfo_ != null) {
4943       size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getModelSourceInfo());
4944     }
4945     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) {
4946       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44, metadataArtifact_);
4947     }
4948     size += getUnknownFields().getSerializedSize();
4949     memoizedSize = size;
4950     return size;
4951   }
4952 
4953   @java.lang.Override
equals(final java.lang.Object obj)4954   public boolean equals(final java.lang.Object obj) {
4955     if (obj == this) {
4956       return true;
4957     }
4958     if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Model)) {
4959       return super.equals(obj);
4960     }
4961     com.google.cloud.aiplatform.v1beta1.Model other =
4962         (com.google.cloud.aiplatform.v1beta1.Model) obj;
4963 
4964     if (!getName().equals(other.getName())) return false;
4965     if (!getVersionId().equals(other.getVersionId())) return false;
4966     if (!getVersionAliasesList().equals(other.getVersionAliasesList())) return false;
4967     if (hasVersionCreateTime() != other.hasVersionCreateTime()) return false;
4968     if (hasVersionCreateTime()) {
4969       if (!getVersionCreateTime().equals(other.getVersionCreateTime())) return false;
4970     }
4971     if (hasVersionUpdateTime() != other.hasVersionUpdateTime()) return false;
4972     if (hasVersionUpdateTime()) {
4973       if (!getVersionUpdateTime().equals(other.getVersionUpdateTime())) return false;
4974     }
4975     if (!getDisplayName().equals(other.getDisplayName())) return false;
4976     if (!getDescription().equals(other.getDescription())) return false;
4977     if (!getVersionDescription().equals(other.getVersionDescription())) return false;
4978     if (hasPredictSchemata() != other.hasPredictSchemata()) return false;
4979     if (hasPredictSchemata()) {
4980       if (!getPredictSchemata().equals(other.getPredictSchemata())) return false;
4981     }
4982     if (!getMetadataSchemaUri().equals(other.getMetadataSchemaUri())) return false;
4983     if (hasMetadata() != other.hasMetadata()) return false;
4984     if (hasMetadata()) {
4985       if (!getMetadata().equals(other.getMetadata())) return false;
4986     }
4987     if (!getSupportedExportFormatsList().equals(other.getSupportedExportFormatsList()))
4988       return false;
4989     if (!getTrainingPipeline().equals(other.getTrainingPipeline())) return false;
4990     if (hasContainerSpec() != other.hasContainerSpec()) return false;
4991     if (hasContainerSpec()) {
4992       if (!getContainerSpec().equals(other.getContainerSpec())) return false;
4993     }
4994     if (!getArtifactUri().equals(other.getArtifactUri())) return false;
4995     if (!supportedDeploymentResourcesTypes_.equals(other.supportedDeploymentResourcesTypes_))
4996       return false;
4997     if (!getSupportedInputStorageFormatsList().equals(other.getSupportedInputStorageFormatsList()))
4998       return false;
4999     if (!getSupportedOutputStorageFormatsList()
5000         .equals(other.getSupportedOutputStorageFormatsList())) return false;
5001     if (hasCreateTime() != other.hasCreateTime()) return false;
5002     if (hasCreateTime()) {
5003       if (!getCreateTime().equals(other.getCreateTime())) return false;
5004     }
5005     if (hasUpdateTime() != other.hasUpdateTime()) return false;
5006     if (hasUpdateTime()) {
5007       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
5008     }
5009     if (!getDeployedModelsList().equals(other.getDeployedModelsList())) return false;
5010     if (hasExplanationSpec() != other.hasExplanationSpec()) return false;
5011     if (hasExplanationSpec()) {
5012       if (!getExplanationSpec().equals(other.getExplanationSpec())) return false;
5013     }
5014     if (!getEtag().equals(other.getEtag())) return false;
5015     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
5016     if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false;
5017     if (hasEncryptionSpec()) {
5018       if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false;
5019     }
5020     if (hasModelSourceInfo() != other.hasModelSourceInfo()) return false;
5021     if (hasModelSourceInfo()) {
5022       if (!getModelSourceInfo().equals(other.getModelSourceInfo())) return false;
5023     }
5024     if (hasOriginalModelInfo() != other.hasOriginalModelInfo()) return false;
5025     if (hasOriginalModelInfo()) {
5026       if (!getOriginalModelInfo().equals(other.getOriginalModelInfo())) return false;
5027     }
5028     if (!getMetadataArtifact().equals(other.getMetadataArtifact())) return false;
5029     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
5030     return true;
5031   }
5032 
5033   @java.lang.Override
hashCode()5034   public int hashCode() {
5035     if (memoizedHashCode != 0) {
5036       return memoizedHashCode;
5037     }
5038     int hash = 41;
5039     hash = (19 * hash) + getDescriptor().hashCode();
5040     hash = (37 * hash) + NAME_FIELD_NUMBER;
5041     hash = (53 * hash) + getName().hashCode();
5042     hash = (37 * hash) + VERSION_ID_FIELD_NUMBER;
5043     hash = (53 * hash) + getVersionId().hashCode();
5044     if (getVersionAliasesCount() > 0) {
5045       hash = (37 * hash) + VERSION_ALIASES_FIELD_NUMBER;
5046       hash = (53 * hash) + getVersionAliasesList().hashCode();
5047     }
5048     if (hasVersionCreateTime()) {
5049       hash = (37 * hash) + VERSION_CREATE_TIME_FIELD_NUMBER;
5050       hash = (53 * hash) + getVersionCreateTime().hashCode();
5051     }
5052     if (hasVersionUpdateTime()) {
5053       hash = (37 * hash) + VERSION_UPDATE_TIME_FIELD_NUMBER;
5054       hash = (53 * hash) + getVersionUpdateTime().hashCode();
5055     }
5056     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
5057     hash = (53 * hash) + getDisplayName().hashCode();
5058     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
5059     hash = (53 * hash) + getDescription().hashCode();
5060     hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER;
5061     hash = (53 * hash) + getVersionDescription().hashCode();
5062     if (hasPredictSchemata()) {
5063       hash = (37 * hash) + PREDICT_SCHEMATA_FIELD_NUMBER;
5064       hash = (53 * hash) + getPredictSchemata().hashCode();
5065     }
5066     hash = (37 * hash) + METADATA_SCHEMA_URI_FIELD_NUMBER;
5067     hash = (53 * hash) + getMetadataSchemaUri().hashCode();
5068     if (hasMetadata()) {
5069       hash = (37 * hash) + METADATA_FIELD_NUMBER;
5070       hash = (53 * hash) + getMetadata().hashCode();
5071     }
5072     if (getSupportedExportFormatsCount() > 0) {
5073       hash = (37 * hash) + SUPPORTED_EXPORT_FORMATS_FIELD_NUMBER;
5074       hash = (53 * hash) + getSupportedExportFormatsList().hashCode();
5075     }
5076     hash = (37 * hash) + TRAINING_PIPELINE_FIELD_NUMBER;
5077     hash = (53 * hash) + getTrainingPipeline().hashCode();
5078     if (hasContainerSpec()) {
5079       hash = (37 * hash) + CONTAINER_SPEC_FIELD_NUMBER;
5080       hash = (53 * hash) + getContainerSpec().hashCode();
5081     }
5082     hash = (37 * hash) + ARTIFACT_URI_FIELD_NUMBER;
5083     hash = (53 * hash) + getArtifactUri().hashCode();
5084     if (getSupportedDeploymentResourcesTypesCount() > 0) {
5085       hash = (37 * hash) + SUPPORTED_DEPLOYMENT_RESOURCES_TYPES_FIELD_NUMBER;
5086       hash = (53 * hash) + supportedDeploymentResourcesTypes_.hashCode();
5087     }
5088     if (getSupportedInputStorageFormatsCount() > 0) {
5089       hash = (37 * hash) + SUPPORTED_INPUT_STORAGE_FORMATS_FIELD_NUMBER;
5090       hash = (53 * hash) + getSupportedInputStorageFormatsList().hashCode();
5091     }
5092     if (getSupportedOutputStorageFormatsCount() > 0) {
5093       hash = (37 * hash) + SUPPORTED_OUTPUT_STORAGE_FORMATS_FIELD_NUMBER;
5094       hash = (53 * hash) + getSupportedOutputStorageFormatsList().hashCode();
5095     }
5096     if (hasCreateTime()) {
5097       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
5098       hash = (53 * hash) + getCreateTime().hashCode();
5099     }
5100     if (hasUpdateTime()) {
5101       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
5102       hash = (53 * hash) + getUpdateTime().hashCode();
5103     }
5104     if (getDeployedModelsCount() > 0) {
5105       hash = (37 * hash) + DEPLOYED_MODELS_FIELD_NUMBER;
5106       hash = (53 * hash) + getDeployedModelsList().hashCode();
5107     }
5108     if (hasExplanationSpec()) {
5109       hash = (37 * hash) + EXPLANATION_SPEC_FIELD_NUMBER;
5110       hash = (53 * hash) + getExplanationSpec().hashCode();
5111     }
5112     hash = (37 * hash) + ETAG_FIELD_NUMBER;
5113     hash = (53 * hash) + getEtag().hashCode();
5114     if (!internalGetLabels().getMap().isEmpty()) {
5115       hash = (37 * hash) + LABELS_FIELD_NUMBER;
5116       hash = (53 * hash) + internalGetLabels().hashCode();
5117     }
5118     if (hasEncryptionSpec()) {
5119       hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER;
5120       hash = (53 * hash) + getEncryptionSpec().hashCode();
5121     }
5122     if (hasModelSourceInfo()) {
5123       hash = (37 * hash) + MODEL_SOURCE_INFO_FIELD_NUMBER;
5124       hash = (53 * hash) + getModelSourceInfo().hashCode();
5125     }
5126     if (hasOriginalModelInfo()) {
5127       hash = (37 * hash) + ORIGINAL_MODEL_INFO_FIELD_NUMBER;
5128       hash = (53 * hash) + getOriginalModelInfo().hashCode();
5129     }
5130     hash = (37 * hash) + METADATA_ARTIFACT_FIELD_NUMBER;
5131     hash = (53 * hash) + getMetadataArtifact().hashCode();
5132     hash = (29 * hash) + getUnknownFields().hashCode();
5133     memoizedHashCode = hash;
5134     return hash;
5135   }
5136 
parseFrom(java.nio.ByteBuffer data)5137   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(java.nio.ByteBuffer data)
5138       throws com.google.protobuf.InvalidProtocolBufferException {
5139     return PARSER.parseFrom(data);
5140   }
5141 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5142   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5143       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5144       throws com.google.protobuf.InvalidProtocolBufferException {
5145     return PARSER.parseFrom(data, extensionRegistry);
5146   }
5147 
parseFrom( com.google.protobuf.ByteString data)5148   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5149       com.google.protobuf.ByteString data)
5150       throws com.google.protobuf.InvalidProtocolBufferException {
5151     return PARSER.parseFrom(data);
5152   }
5153 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5154   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5155       com.google.protobuf.ByteString data,
5156       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5157       throws com.google.protobuf.InvalidProtocolBufferException {
5158     return PARSER.parseFrom(data, extensionRegistry);
5159   }
5160 
parseFrom(byte[] data)5161   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(byte[] data)
5162       throws com.google.protobuf.InvalidProtocolBufferException {
5163     return PARSER.parseFrom(data);
5164   }
5165 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5166   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5167       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5168       throws com.google.protobuf.InvalidProtocolBufferException {
5169     return PARSER.parseFrom(data, extensionRegistry);
5170   }
5171 
parseFrom(java.io.InputStream input)5172   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(java.io.InputStream input)
5173       throws java.io.IOException {
5174     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
5175   }
5176 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5177   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5178       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5179       throws java.io.IOException {
5180     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
5181         PARSER, input, extensionRegistry);
5182   }
5183 
parseDelimitedFrom( java.io.InputStream input)5184   public static com.google.cloud.aiplatform.v1beta1.Model parseDelimitedFrom(
5185       java.io.InputStream input) throws java.io.IOException {
5186     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
5187   }
5188 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5189   public static com.google.cloud.aiplatform.v1beta1.Model parseDelimitedFrom(
5190       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5191       throws java.io.IOException {
5192     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
5193         PARSER, input, extensionRegistry);
5194   }
5195 
parseFrom( com.google.protobuf.CodedInputStream input)5196   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5197       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
5198     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
5199   }
5200 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5201   public static com.google.cloud.aiplatform.v1beta1.Model parseFrom(
5202       com.google.protobuf.CodedInputStream input,
5203       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5204       throws java.io.IOException {
5205     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
5206         PARSER, input, extensionRegistry);
5207   }
5208 
5209   @java.lang.Override
newBuilderForType()5210   public Builder newBuilderForType() {
5211     return newBuilder();
5212   }
5213 
newBuilder()5214   public static Builder newBuilder() {
5215     return DEFAULT_INSTANCE.toBuilder();
5216   }
5217 
newBuilder(com.google.cloud.aiplatform.v1beta1.Model prototype)5218   public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Model prototype) {
5219     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
5220   }
5221 
5222   @java.lang.Override
toBuilder()5223   public Builder toBuilder() {
5224     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
5225   }
5226 
5227   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5228   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
5229     Builder builder = new Builder(parent);
5230     return builder;
5231   }
5232   /**
5233    *
5234    *
5235    * <pre>
5236    * A trained machine learning Model.
5237    * </pre>
5238    *
5239    * Protobuf type {@code google.cloud.aiplatform.v1beta1.Model}
5240    */
5241   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
5242       implements
5243       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Model)
5244       com.google.cloud.aiplatform.v1beta1.ModelOrBuilder {
getDescriptor()5245     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
5246       return com.google.cloud.aiplatform.v1beta1.ModelProto
5247           .internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor;
5248     }
5249 
5250     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)5251     protected com.google.protobuf.MapField internalGetMapField(int number) {
5252       switch (number) {
5253         case 17:
5254           return internalGetLabels();
5255         default:
5256           throw new RuntimeException("Invalid map field number: " + number);
5257       }
5258     }
5259 
5260     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)5261     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
5262       switch (number) {
5263         case 17:
5264           return internalGetMutableLabels();
5265         default:
5266           throw new RuntimeException("Invalid map field number: " + number);
5267       }
5268     }
5269 
5270     @java.lang.Override
5271     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()5272         internalGetFieldAccessorTable() {
5273       return com.google.cloud.aiplatform.v1beta1.ModelProto
5274           .internal_static_google_cloud_aiplatform_v1beta1_Model_fieldAccessorTable
5275           .ensureFieldAccessorsInitialized(
5276               com.google.cloud.aiplatform.v1beta1.Model.class,
5277               com.google.cloud.aiplatform.v1beta1.Model.Builder.class);
5278     }
5279 
5280     // Construct using com.google.cloud.aiplatform.v1beta1.Model.newBuilder()
Builder()5281     private Builder() {}
5282 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)5283     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
5284       super(parent);
5285     }
5286 
5287     @java.lang.Override
clear()5288     public Builder clear() {
5289       super.clear();
5290       bitField0_ = 0;
5291       name_ = "";
5292       versionId_ = "";
5293       versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
5294       bitField0_ = (bitField0_ & ~0x00000004);
5295       versionCreateTime_ = null;
5296       if (versionCreateTimeBuilder_ != null) {
5297         versionCreateTimeBuilder_.dispose();
5298         versionCreateTimeBuilder_ = null;
5299       }
5300       versionUpdateTime_ = null;
5301       if (versionUpdateTimeBuilder_ != null) {
5302         versionUpdateTimeBuilder_.dispose();
5303         versionUpdateTimeBuilder_ = null;
5304       }
5305       displayName_ = "";
5306       description_ = "";
5307       versionDescription_ = "";
5308       predictSchemata_ = null;
5309       if (predictSchemataBuilder_ != null) {
5310         predictSchemataBuilder_.dispose();
5311         predictSchemataBuilder_ = null;
5312       }
5313       metadataSchemaUri_ = "";
5314       metadata_ = null;
5315       if (metadataBuilder_ != null) {
5316         metadataBuilder_.dispose();
5317         metadataBuilder_ = null;
5318       }
5319       if (supportedExportFormatsBuilder_ == null) {
5320         supportedExportFormats_ = java.util.Collections.emptyList();
5321       } else {
5322         supportedExportFormats_ = null;
5323         supportedExportFormatsBuilder_.clear();
5324       }
5325       bitField0_ = (bitField0_ & ~0x00000800);
5326       trainingPipeline_ = "";
5327       containerSpec_ = null;
5328       if (containerSpecBuilder_ != null) {
5329         containerSpecBuilder_.dispose();
5330         containerSpecBuilder_ = null;
5331       }
5332       artifactUri_ = "";
5333       supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList();
5334       bitField0_ = (bitField0_ & ~0x00008000);
5335       supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
5336       bitField0_ = (bitField0_ & ~0x00010000);
5337       supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
5338       bitField0_ = (bitField0_ & ~0x00020000);
5339       createTime_ = null;
5340       if (createTimeBuilder_ != null) {
5341         createTimeBuilder_.dispose();
5342         createTimeBuilder_ = null;
5343       }
5344       updateTime_ = null;
5345       if (updateTimeBuilder_ != null) {
5346         updateTimeBuilder_.dispose();
5347         updateTimeBuilder_ = null;
5348       }
5349       if (deployedModelsBuilder_ == null) {
5350         deployedModels_ = java.util.Collections.emptyList();
5351       } else {
5352         deployedModels_ = null;
5353         deployedModelsBuilder_.clear();
5354       }
5355       bitField0_ = (bitField0_ & ~0x00100000);
5356       explanationSpec_ = null;
5357       if (explanationSpecBuilder_ != null) {
5358         explanationSpecBuilder_.dispose();
5359         explanationSpecBuilder_ = null;
5360       }
5361       etag_ = "";
5362       internalGetMutableLabels().clear();
5363       encryptionSpec_ = null;
5364       if (encryptionSpecBuilder_ != null) {
5365         encryptionSpecBuilder_.dispose();
5366         encryptionSpecBuilder_ = null;
5367       }
5368       modelSourceInfo_ = null;
5369       if (modelSourceInfoBuilder_ != null) {
5370         modelSourceInfoBuilder_.dispose();
5371         modelSourceInfoBuilder_ = null;
5372       }
5373       originalModelInfo_ = null;
5374       if (originalModelInfoBuilder_ != null) {
5375         originalModelInfoBuilder_.dispose();
5376         originalModelInfoBuilder_ = null;
5377       }
5378       metadataArtifact_ = "";
5379       return this;
5380     }
5381 
5382     @java.lang.Override
getDescriptorForType()5383     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
5384       return com.google.cloud.aiplatform.v1beta1.ModelProto
5385           .internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor;
5386     }
5387 
5388     @java.lang.Override
getDefaultInstanceForType()5389     public com.google.cloud.aiplatform.v1beta1.Model getDefaultInstanceForType() {
5390       return com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance();
5391     }
5392 
5393     @java.lang.Override
build()5394     public com.google.cloud.aiplatform.v1beta1.Model build() {
5395       com.google.cloud.aiplatform.v1beta1.Model result = buildPartial();
5396       if (!result.isInitialized()) {
5397         throw newUninitializedMessageException(result);
5398       }
5399       return result;
5400     }
5401 
5402     @java.lang.Override
buildPartial()5403     public com.google.cloud.aiplatform.v1beta1.Model buildPartial() {
5404       com.google.cloud.aiplatform.v1beta1.Model result =
5405           new com.google.cloud.aiplatform.v1beta1.Model(this);
5406       buildPartialRepeatedFields(result);
5407       if (bitField0_ != 0) {
5408         buildPartial0(result);
5409       }
5410       onBuilt();
5411       return result;
5412     }
5413 
buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Model result)5414     private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Model result) {
5415       if (((bitField0_ & 0x00000004) != 0)) {
5416         versionAliases_ = versionAliases_.getUnmodifiableView();
5417         bitField0_ = (bitField0_ & ~0x00000004);
5418       }
5419       result.versionAliases_ = versionAliases_;
5420       if (supportedExportFormatsBuilder_ == null) {
5421         if (((bitField0_ & 0x00000800) != 0)) {
5422           supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_);
5423           bitField0_ = (bitField0_ & ~0x00000800);
5424         }
5425         result.supportedExportFormats_ = supportedExportFormats_;
5426       } else {
5427         result.supportedExportFormats_ = supportedExportFormatsBuilder_.build();
5428       }
5429       if (((bitField0_ & 0x00008000) != 0)) {
5430         supportedDeploymentResourcesTypes_ =
5431             java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_);
5432         bitField0_ = (bitField0_ & ~0x00008000);
5433       }
5434       result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_;
5435       if (((bitField0_ & 0x00010000) != 0)) {
5436         supportedInputStorageFormats_ = supportedInputStorageFormats_.getUnmodifiableView();
5437         bitField0_ = (bitField0_ & ~0x00010000);
5438       }
5439       result.supportedInputStorageFormats_ = supportedInputStorageFormats_;
5440       if (((bitField0_ & 0x00020000) != 0)) {
5441         supportedOutputStorageFormats_ = supportedOutputStorageFormats_.getUnmodifiableView();
5442         bitField0_ = (bitField0_ & ~0x00020000);
5443       }
5444       result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_;
5445       if (deployedModelsBuilder_ == null) {
5446         if (((bitField0_ & 0x00100000) != 0)) {
5447           deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_);
5448           bitField0_ = (bitField0_ & ~0x00100000);
5449         }
5450         result.deployedModels_ = deployedModels_;
5451       } else {
5452         result.deployedModels_ = deployedModelsBuilder_.build();
5453       }
5454     }
5455 
buildPartial0(com.google.cloud.aiplatform.v1beta1.Model result)5456     private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model result) {
5457       int from_bitField0_ = bitField0_;
5458       if (((from_bitField0_ & 0x00000001) != 0)) {
5459         result.name_ = name_;
5460       }
5461       if (((from_bitField0_ & 0x00000002) != 0)) {
5462         result.versionId_ = versionId_;
5463       }
5464       if (((from_bitField0_ & 0x00000008) != 0)) {
5465         result.versionCreateTime_ =
5466             versionCreateTimeBuilder_ == null
5467                 ? versionCreateTime_
5468                 : versionCreateTimeBuilder_.build();
5469       }
5470       if (((from_bitField0_ & 0x00000010) != 0)) {
5471         result.versionUpdateTime_ =
5472             versionUpdateTimeBuilder_ == null
5473                 ? versionUpdateTime_
5474                 : versionUpdateTimeBuilder_.build();
5475       }
5476       if (((from_bitField0_ & 0x00000020) != 0)) {
5477         result.displayName_ = displayName_;
5478       }
5479       if (((from_bitField0_ & 0x00000040) != 0)) {
5480         result.description_ = description_;
5481       }
5482       if (((from_bitField0_ & 0x00000080) != 0)) {
5483         result.versionDescription_ = versionDescription_;
5484       }
5485       if (((from_bitField0_ & 0x00000100) != 0)) {
5486         result.predictSchemata_ =
5487             predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build();
5488       }
5489       if (((from_bitField0_ & 0x00000200) != 0)) {
5490         result.metadataSchemaUri_ = metadataSchemaUri_;
5491       }
5492       if (((from_bitField0_ & 0x00000400) != 0)) {
5493         result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
5494       }
5495       if (((from_bitField0_ & 0x00001000) != 0)) {
5496         result.trainingPipeline_ = trainingPipeline_;
5497       }
5498       if (((from_bitField0_ & 0x00002000) != 0)) {
5499         result.containerSpec_ =
5500             containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build();
5501       }
5502       if (((from_bitField0_ & 0x00004000) != 0)) {
5503         result.artifactUri_ = artifactUri_;
5504       }
5505       if (((from_bitField0_ & 0x00040000) != 0)) {
5506         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
5507       }
5508       if (((from_bitField0_ & 0x00080000) != 0)) {
5509         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
5510       }
5511       if (((from_bitField0_ & 0x00200000) != 0)) {
5512         result.explanationSpec_ =
5513             explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build();
5514       }
5515       if (((from_bitField0_ & 0x00400000) != 0)) {
5516         result.etag_ = etag_;
5517       }
5518       if (((from_bitField0_ & 0x00800000) != 0)) {
5519         result.labels_ = internalGetLabels();
5520         result.labels_.makeImmutable();
5521       }
5522       if (((from_bitField0_ & 0x01000000) != 0)) {
5523         result.encryptionSpec_ =
5524             encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build();
5525       }
5526       if (((from_bitField0_ & 0x02000000) != 0)) {
5527         result.modelSourceInfo_ =
5528             modelSourceInfoBuilder_ == null ? modelSourceInfo_ : modelSourceInfoBuilder_.build();
5529       }
5530       if (((from_bitField0_ & 0x04000000) != 0)) {
5531         result.originalModelInfo_ =
5532             originalModelInfoBuilder_ == null
5533                 ? originalModelInfo_
5534                 : originalModelInfoBuilder_.build();
5535       }
5536       if (((from_bitField0_ & 0x08000000) != 0)) {
5537         result.metadataArtifact_ = metadataArtifact_;
5538       }
5539     }
5540 
5541     @java.lang.Override
clone()5542     public Builder clone() {
5543       return super.clone();
5544     }
5545 
5546     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5547     public Builder setField(
5548         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
5549       return super.setField(field, value);
5550     }
5551 
5552     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)5553     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
5554       return super.clearField(field);
5555     }
5556 
5557     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)5558     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
5559       return super.clearOneof(oneof);
5560     }
5561 
5562     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)5563     public Builder setRepeatedField(
5564         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
5565       return super.setRepeatedField(field, index, value);
5566     }
5567 
5568     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)5569     public Builder addRepeatedField(
5570         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
5571       return super.addRepeatedField(field, value);
5572     }
5573 
5574     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)5575     public Builder mergeFrom(com.google.protobuf.Message other) {
5576       if (other instanceof com.google.cloud.aiplatform.v1beta1.Model) {
5577         return mergeFrom((com.google.cloud.aiplatform.v1beta1.Model) other);
5578       } else {
5579         super.mergeFrom(other);
5580         return this;
5581       }
5582     }
5583 
mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other)5584     public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) {
5585       if (other == com.google.cloud.aiplatform.v1beta1.Model.getDefaultInstance()) return this;
5586       if (!other.getName().isEmpty()) {
5587         name_ = other.name_;
5588         bitField0_ |= 0x00000001;
5589         onChanged();
5590       }
5591       if (!other.getVersionId().isEmpty()) {
5592         versionId_ = other.versionId_;
5593         bitField0_ |= 0x00000002;
5594         onChanged();
5595       }
5596       if (!other.versionAliases_.isEmpty()) {
5597         if (versionAliases_.isEmpty()) {
5598           versionAliases_ = other.versionAliases_;
5599           bitField0_ = (bitField0_ & ~0x00000004);
5600         } else {
5601           ensureVersionAliasesIsMutable();
5602           versionAliases_.addAll(other.versionAliases_);
5603         }
5604         onChanged();
5605       }
5606       if (other.hasVersionCreateTime()) {
5607         mergeVersionCreateTime(other.getVersionCreateTime());
5608       }
5609       if (other.hasVersionUpdateTime()) {
5610         mergeVersionUpdateTime(other.getVersionUpdateTime());
5611       }
5612       if (!other.getDisplayName().isEmpty()) {
5613         displayName_ = other.displayName_;
5614         bitField0_ |= 0x00000020;
5615         onChanged();
5616       }
5617       if (!other.getDescription().isEmpty()) {
5618         description_ = other.description_;
5619         bitField0_ |= 0x00000040;
5620         onChanged();
5621       }
5622       if (!other.getVersionDescription().isEmpty()) {
5623         versionDescription_ = other.versionDescription_;
5624         bitField0_ |= 0x00000080;
5625         onChanged();
5626       }
5627       if (other.hasPredictSchemata()) {
5628         mergePredictSchemata(other.getPredictSchemata());
5629       }
5630       if (!other.getMetadataSchemaUri().isEmpty()) {
5631         metadataSchemaUri_ = other.metadataSchemaUri_;
5632         bitField0_ |= 0x00000200;
5633         onChanged();
5634       }
5635       if (other.hasMetadata()) {
5636         mergeMetadata(other.getMetadata());
5637       }
5638       if (supportedExportFormatsBuilder_ == null) {
5639         if (!other.supportedExportFormats_.isEmpty()) {
5640           if (supportedExportFormats_.isEmpty()) {
5641             supportedExportFormats_ = other.supportedExportFormats_;
5642             bitField0_ = (bitField0_ & ~0x00000800);
5643           } else {
5644             ensureSupportedExportFormatsIsMutable();
5645             supportedExportFormats_.addAll(other.supportedExportFormats_);
5646           }
5647           onChanged();
5648         }
5649       } else {
5650         if (!other.supportedExportFormats_.isEmpty()) {
5651           if (supportedExportFormatsBuilder_.isEmpty()) {
5652             supportedExportFormatsBuilder_.dispose();
5653             supportedExportFormatsBuilder_ = null;
5654             supportedExportFormats_ = other.supportedExportFormats_;
5655             bitField0_ = (bitField0_ & ~0x00000800);
5656             supportedExportFormatsBuilder_ =
5657                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
5658                     ? getSupportedExportFormatsFieldBuilder()
5659                     : null;
5660           } else {
5661             supportedExportFormatsBuilder_.addAllMessages(other.supportedExportFormats_);
5662           }
5663         }
5664       }
5665       if (!other.getTrainingPipeline().isEmpty()) {
5666         trainingPipeline_ = other.trainingPipeline_;
5667         bitField0_ |= 0x00001000;
5668         onChanged();
5669       }
5670       if (other.hasContainerSpec()) {
5671         mergeContainerSpec(other.getContainerSpec());
5672       }
5673       if (!other.getArtifactUri().isEmpty()) {
5674         artifactUri_ = other.artifactUri_;
5675         bitField0_ |= 0x00004000;
5676         onChanged();
5677       }
5678       if (!other.supportedDeploymentResourcesTypes_.isEmpty()) {
5679         if (supportedDeploymentResourcesTypes_.isEmpty()) {
5680           supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_;
5681           bitField0_ = (bitField0_ & ~0x00008000);
5682         } else {
5683           ensureSupportedDeploymentResourcesTypesIsMutable();
5684           supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_);
5685         }
5686         onChanged();
5687       }
5688       if (!other.supportedInputStorageFormats_.isEmpty()) {
5689         if (supportedInputStorageFormats_.isEmpty()) {
5690           supportedInputStorageFormats_ = other.supportedInputStorageFormats_;
5691           bitField0_ = (bitField0_ & ~0x00010000);
5692         } else {
5693           ensureSupportedInputStorageFormatsIsMutable();
5694           supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_);
5695         }
5696         onChanged();
5697       }
5698       if (!other.supportedOutputStorageFormats_.isEmpty()) {
5699         if (supportedOutputStorageFormats_.isEmpty()) {
5700           supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_;
5701           bitField0_ = (bitField0_ & ~0x00020000);
5702         } else {
5703           ensureSupportedOutputStorageFormatsIsMutable();
5704           supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_);
5705         }
5706         onChanged();
5707       }
5708       if (other.hasCreateTime()) {
5709         mergeCreateTime(other.getCreateTime());
5710       }
5711       if (other.hasUpdateTime()) {
5712         mergeUpdateTime(other.getUpdateTime());
5713       }
5714       if (deployedModelsBuilder_ == null) {
5715         if (!other.deployedModels_.isEmpty()) {
5716           if (deployedModels_.isEmpty()) {
5717             deployedModels_ = other.deployedModels_;
5718             bitField0_ = (bitField0_ & ~0x00100000);
5719           } else {
5720             ensureDeployedModelsIsMutable();
5721             deployedModels_.addAll(other.deployedModels_);
5722           }
5723           onChanged();
5724         }
5725       } else {
5726         if (!other.deployedModels_.isEmpty()) {
5727           if (deployedModelsBuilder_.isEmpty()) {
5728             deployedModelsBuilder_.dispose();
5729             deployedModelsBuilder_ = null;
5730             deployedModels_ = other.deployedModels_;
5731             bitField0_ = (bitField0_ & ~0x00100000);
5732             deployedModelsBuilder_ =
5733                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
5734                     ? getDeployedModelsFieldBuilder()
5735                     : null;
5736           } else {
5737             deployedModelsBuilder_.addAllMessages(other.deployedModels_);
5738           }
5739         }
5740       }
5741       if (other.hasExplanationSpec()) {
5742         mergeExplanationSpec(other.getExplanationSpec());
5743       }
5744       if (!other.getEtag().isEmpty()) {
5745         etag_ = other.etag_;
5746         bitField0_ |= 0x00400000;
5747         onChanged();
5748       }
5749       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
5750       bitField0_ |= 0x00800000;
5751       if (other.hasEncryptionSpec()) {
5752         mergeEncryptionSpec(other.getEncryptionSpec());
5753       }
5754       if (other.hasModelSourceInfo()) {
5755         mergeModelSourceInfo(other.getModelSourceInfo());
5756       }
5757       if (other.hasOriginalModelInfo()) {
5758         mergeOriginalModelInfo(other.getOriginalModelInfo());
5759       }
5760       if (!other.getMetadataArtifact().isEmpty()) {
5761         metadataArtifact_ = other.metadataArtifact_;
5762         bitField0_ |= 0x08000000;
5763         onChanged();
5764       }
5765       this.mergeUnknownFields(other.getUnknownFields());
5766       onChanged();
5767       return this;
5768     }
5769 
5770     @java.lang.Override
isInitialized()5771     public final boolean isInitialized() {
5772       return true;
5773     }
5774 
5775     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)5776     public Builder mergeFrom(
5777         com.google.protobuf.CodedInputStream input,
5778         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5779         throws java.io.IOException {
5780       if (extensionRegistry == null) {
5781         throw new java.lang.NullPointerException();
5782       }
5783       try {
5784         boolean done = false;
5785         while (!done) {
5786           int tag = input.readTag();
5787           switch (tag) {
5788             case 0:
5789               done = true;
5790               break;
5791             case 10:
5792               {
5793                 name_ = input.readStringRequireUtf8();
5794                 bitField0_ |= 0x00000001;
5795                 break;
5796               } // case 10
5797             case 18:
5798               {
5799                 displayName_ = input.readStringRequireUtf8();
5800                 bitField0_ |= 0x00000020;
5801                 break;
5802               } // case 18
5803             case 26:
5804               {
5805                 description_ = input.readStringRequireUtf8();
5806                 bitField0_ |= 0x00000040;
5807                 break;
5808               } // case 26
5809             case 34:
5810               {
5811                 input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry);
5812                 bitField0_ |= 0x00000100;
5813                 break;
5814               } // case 34
5815             case 42:
5816               {
5817                 metadataSchemaUri_ = input.readStringRequireUtf8();
5818                 bitField0_ |= 0x00000200;
5819                 break;
5820               } // case 42
5821             case 50:
5822               {
5823                 input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
5824                 bitField0_ |= 0x00000400;
5825                 break;
5826               } // case 50
5827             case 58:
5828               {
5829                 trainingPipeline_ = input.readStringRequireUtf8();
5830                 bitField0_ |= 0x00001000;
5831                 break;
5832               } // case 58
5833             case 74:
5834               {
5835                 input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry);
5836                 bitField0_ |= 0x00002000;
5837                 break;
5838               } // case 74
5839             case 80:
5840               {
5841                 int tmpRaw = input.readEnum();
5842                 ensureSupportedDeploymentResourcesTypesIsMutable();
5843                 supportedDeploymentResourcesTypes_.add(tmpRaw);
5844                 break;
5845               } // case 80
5846             case 82:
5847               {
5848                 int length = input.readRawVarint32();
5849                 int oldLimit = input.pushLimit(length);
5850                 while (input.getBytesUntilLimit() > 0) {
5851                   int tmpRaw = input.readEnum();
5852                   ensureSupportedDeploymentResourcesTypesIsMutable();
5853                   supportedDeploymentResourcesTypes_.add(tmpRaw);
5854                 }
5855                 input.popLimit(oldLimit);
5856                 break;
5857               } // case 82
5858             case 90:
5859               {
5860                 java.lang.String s = input.readStringRequireUtf8();
5861                 ensureSupportedInputStorageFormatsIsMutable();
5862                 supportedInputStorageFormats_.add(s);
5863                 break;
5864               } // case 90
5865             case 98:
5866               {
5867                 java.lang.String s = input.readStringRequireUtf8();
5868                 ensureSupportedOutputStorageFormatsIsMutable();
5869                 supportedOutputStorageFormats_.add(s);
5870                 break;
5871               } // case 98
5872             case 106:
5873               {
5874                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
5875                 bitField0_ |= 0x00040000;
5876                 break;
5877               } // case 106
5878             case 114:
5879               {
5880                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
5881                 bitField0_ |= 0x00080000;
5882                 break;
5883               } // case 114
5884             case 122:
5885               {
5886                 com.google.cloud.aiplatform.v1beta1.DeployedModelRef m =
5887                     input.readMessage(
5888                         com.google.cloud.aiplatform.v1beta1.DeployedModelRef.parser(),
5889                         extensionRegistry);
5890                 if (deployedModelsBuilder_ == null) {
5891                   ensureDeployedModelsIsMutable();
5892                   deployedModels_.add(m);
5893                 } else {
5894                   deployedModelsBuilder_.addMessage(m);
5895                 }
5896                 break;
5897               } // case 122
5898             case 130:
5899               {
5900                 etag_ = input.readStringRequireUtf8();
5901                 bitField0_ |= 0x00400000;
5902                 break;
5903               } // case 130
5904             case 138:
5905               {
5906                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
5907                     input.readMessage(
5908                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
5909                         extensionRegistry);
5910                 internalGetMutableLabels()
5911                     .getMutableMap()
5912                     .put(labels__.getKey(), labels__.getValue());
5913                 bitField0_ |= 0x00800000;
5914                 break;
5915               } // case 138
5916             case 162:
5917               {
5918                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat m =
5919                     input.readMessage(
5920                         com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.parser(),
5921                         extensionRegistry);
5922                 if (supportedExportFormatsBuilder_ == null) {
5923                   ensureSupportedExportFormatsIsMutable();
5924                   supportedExportFormats_.add(m);
5925                 } else {
5926                   supportedExportFormatsBuilder_.addMessage(m);
5927                 }
5928                 break;
5929               } // case 162
5930             case 186:
5931               {
5932                 input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry);
5933                 bitField0_ |= 0x00200000;
5934                 break;
5935               } // case 186
5936             case 194:
5937               {
5938                 input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry);
5939                 bitField0_ |= 0x01000000;
5940                 break;
5941               } // case 194
5942             case 210:
5943               {
5944                 artifactUri_ = input.readStringRequireUtf8();
5945                 bitField0_ |= 0x00004000;
5946                 break;
5947               } // case 210
5948             case 226:
5949               {
5950                 versionId_ = input.readStringRequireUtf8();
5951                 bitField0_ |= 0x00000002;
5952                 break;
5953               } // case 226
5954             case 234:
5955               {
5956                 java.lang.String s = input.readStringRequireUtf8();
5957                 ensureVersionAliasesIsMutable();
5958                 versionAliases_.add(s);
5959                 break;
5960               } // case 234
5961             case 242:
5962               {
5963                 versionDescription_ = input.readStringRequireUtf8();
5964                 bitField0_ |= 0x00000080;
5965                 break;
5966               } // case 242
5967             case 250:
5968               {
5969                 input.readMessage(
5970                     getVersionCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
5971                 bitField0_ |= 0x00000008;
5972                 break;
5973               } // case 250
5974             case 258:
5975               {
5976                 input.readMessage(
5977                     getVersionUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
5978                 bitField0_ |= 0x00000010;
5979                 break;
5980               } // case 258
5981             case 274:
5982               {
5983                 input.readMessage(
5984                     getOriginalModelInfoFieldBuilder().getBuilder(), extensionRegistry);
5985                 bitField0_ |= 0x04000000;
5986                 break;
5987               } // case 274
5988             case 306:
5989               {
5990                 input.readMessage(getModelSourceInfoFieldBuilder().getBuilder(), extensionRegistry);
5991                 bitField0_ |= 0x02000000;
5992                 break;
5993               } // case 306
5994             case 354:
5995               {
5996                 metadataArtifact_ = input.readStringRequireUtf8();
5997                 bitField0_ |= 0x08000000;
5998                 break;
5999               } // case 354
6000             default:
6001               {
6002                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
6003                   done = true; // was an endgroup tag
6004                 }
6005                 break;
6006               } // default:
6007           } // switch (tag)
6008         } // while (!done)
6009       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6010         throw e.unwrapIOException();
6011       } finally {
6012         onChanged();
6013       } // finally
6014       return this;
6015     }
6016 
6017     private int bitField0_;
6018 
6019     private java.lang.Object name_ = "";
6020     /**
6021      *
6022      *
6023      * <pre>
6024      * The resource name of the Model.
6025      * </pre>
6026      *
6027      * <code>string name = 1;</code>
6028      *
6029      * @return The name.
6030      */
getName()6031     public java.lang.String getName() {
6032       java.lang.Object ref = name_;
6033       if (!(ref instanceof java.lang.String)) {
6034         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6035         java.lang.String s = bs.toStringUtf8();
6036         name_ = s;
6037         return s;
6038       } else {
6039         return (java.lang.String) ref;
6040       }
6041     }
6042     /**
6043      *
6044      *
6045      * <pre>
6046      * The resource name of the Model.
6047      * </pre>
6048      *
6049      * <code>string name = 1;</code>
6050      *
6051      * @return The bytes for name.
6052      */
getNameBytes()6053     public com.google.protobuf.ByteString getNameBytes() {
6054       java.lang.Object ref = name_;
6055       if (ref instanceof String) {
6056         com.google.protobuf.ByteString b =
6057             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6058         name_ = b;
6059         return b;
6060       } else {
6061         return (com.google.protobuf.ByteString) ref;
6062       }
6063     }
6064     /**
6065      *
6066      *
6067      * <pre>
6068      * The resource name of the Model.
6069      * </pre>
6070      *
6071      * <code>string name = 1;</code>
6072      *
6073      * @param value The name to set.
6074      * @return This builder for chaining.
6075      */
setName(java.lang.String value)6076     public Builder setName(java.lang.String value) {
6077       if (value == null) {
6078         throw new NullPointerException();
6079       }
6080       name_ = value;
6081       bitField0_ |= 0x00000001;
6082       onChanged();
6083       return this;
6084     }
6085     /**
6086      *
6087      *
6088      * <pre>
6089      * The resource name of the Model.
6090      * </pre>
6091      *
6092      * <code>string name = 1;</code>
6093      *
6094      * @return This builder for chaining.
6095      */
clearName()6096     public Builder clearName() {
6097       name_ = getDefaultInstance().getName();
6098       bitField0_ = (bitField0_ & ~0x00000001);
6099       onChanged();
6100       return this;
6101     }
6102     /**
6103      *
6104      *
6105      * <pre>
6106      * The resource name of the Model.
6107      * </pre>
6108      *
6109      * <code>string name = 1;</code>
6110      *
6111      * @param value The bytes for name to set.
6112      * @return This builder for chaining.
6113      */
setNameBytes(com.google.protobuf.ByteString value)6114     public Builder setNameBytes(com.google.protobuf.ByteString value) {
6115       if (value == null) {
6116         throw new NullPointerException();
6117       }
6118       checkByteStringIsUtf8(value);
6119       name_ = value;
6120       bitField0_ |= 0x00000001;
6121       onChanged();
6122       return this;
6123     }
6124 
6125     private java.lang.Object versionId_ = "";
6126     /**
6127      *
6128      *
6129      * <pre>
6130      * Output only. Immutable. The version ID of the model.
6131      * A new version is committed when a new model version is uploaded or
6132      * trained under an existing model id. It is an auto-incrementing decimal
6133      * number in string representation.
6134      * </pre>
6135      *
6136      * <code>
6137      * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
6138      * </code>
6139      *
6140      * @return The versionId.
6141      */
getVersionId()6142     public java.lang.String getVersionId() {
6143       java.lang.Object ref = versionId_;
6144       if (!(ref instanceof java.lang.String)) {
6145         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6146         java.lang.String s = bs.toStringUtf8();
6147         versionId_ = s;
6148         return s;
6149       } else {
6150         return (java.lang.String) ref;
6151       }
6152     }
6153     /**
6154      *
6155      *
6156      * <pre>
6157      * Output only. Immutable. The version ID of the model.
6158      * A new version is committed when a new model version is uploaded or
6159      * trained under an existing model id. It is an auto-incrementing decimal
6160      * number in string representation.
6161      * </pre>
6162      *
6163      * <code>
6164      * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
6165      * </code>
6166      *
6167      * @return The bytes for versionId.
6168      */
getVersionIdBytes()6169     public com.google.protobuf.ByteString getVersionIdBytes() {
6170       java.lang.Object ref = versionId_;
6171       if (ref instanceof String) {
6172         com.google.protobuf.ByteString b =
6173             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6174         versionId_ = b;
6175         return b;
6176       } else {
6177         return (com.google.protobuf.ByteString) ref;
6178       }
6179     }
6180     /**
6181      *
6182      *
6183      * <pre>
6184      * Output only. Immutable. The version ID of the model.
6185      * A new version is committed when a new model version is uploaded or
6186      * trained under an existing model id. It is an auto-incrementing decimal
6187      * number in string representation.
6188      * </pre>
6189      *
6190      * <code>
6191      * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
6192      * </code>
6193      *
6194      * @param value The versionId to set.
6195      * @return This builder for chaining.
6196      */
setVersionId(java.lang.String value)6197     public Builder setVersionId(java.lang.String value) {
6198       if (value == null) {
6199         throw new NullPointerException();
6200       }
6201       versionId_ = value;
6202       bitField0_ |= 0x00000002;
6203       onChanged();
6204       return this;
6205     }
6206     /**
6207      *
6208      *
6209      * <pre>
6210      * Output only. Immutable. The version ID of the model.
6211      * A new version is committed when a new model version is uploaded or
6212      * trained under an existing model id. It is an auto-incrementing decimal
6213      * number in string representation.
6214      * </pre>
6215      *
6216      * <code>
6217      * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
6218      * </code>
6219      *
6220      * @return This builder for chaining.
6221      */
clearVersionId()6222     public Builder clearVersionId() {
6223       versionId_ = getDefaultInstance().getVersionId();
6224       bitField0_ = (bitField0_ & ~0x00000002);
6225       onChanged();
6226       return this;
6227     }
6228     /**
6229      *
6230      *
6231      * <pre>
6232      * Output only. Immutable. The version ID of the model.
6233      * A new version is committed when a new model version is uploaded or
6234      * trained under an existing model id. It is an auto-incrementing decimal
6235      * number in string representation.
6236      * </pre>
6237      *
6238      * <code>
6239      * string version_id = 28 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
6240      * </code>
6241      *
6242      * @param value The bytes for versionId to set.
6243      * @return This builder for chaining.
6244      */
setVersionIdBytes(com.google.protobuf.ByteString value)6245     public Builder setVersionIdBytes(com.google.protobuf.ByteString value) {
6246       if (value == null) {
6247         throw new NullPointerException();
6248       }
6249       checkByteStringIsUtf8(value);
6250       versionId_ = value;
6251       bitField0_ |= 0x00000002;
6252       onChanged();
6253       return this;
6254     }
6255 
6256     private com.google.protobuf.LazyStringList versionAliases_ =
6257         com.google.protobuf.LazyStringArrayList.EMPTY;
6258 
ensureVersionAliasesIsMutable()6259     private void ensureVersionAliasesIsMutable() {
6260       if (!((bitField0_ & 0x00000004) != 0)) {
6261         versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_);
6262         bitField0_ |= 0x00000004;
6263       }
6264     }
6265     /**
6266      *
6267      *
6268      * <pre>
6269      * User provided version aliases so that a model version can be referenced via
6270      * alias (i.e.
6271      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6272      * instead of auto-generated version id (i.e.
6273      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6274      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6275      * version_id. A default version alias will be created for the first version
6276      * of the model, and there must be exactly one default version alias for a
6277      * model.
6278      * </pre>
6279      *
6280      * <code>repeated string version_aliases = 29;</code>
6281      *
6282      * @return A list containing the versionAliases.
6283      */
getVersionAliasesList()6284     public com.google.protobuf.ProtocolStringList getVersionAliasesList() {
6285       return versionAliases_.getUnmodifiableView();
6286     }
6287     /**
6288      *
6289      *
6290      * <pre>
6291      * User provided version aliases so that a model version can be referenced via
6292      * alias (i.e.
6293      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6294      * instead of auto-generated version id (i.e.
6295      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6296      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6297      * version_id. A default version alias will be created for the first version
6298      * of the model, and there must be exactly one default version alias for a
6299      * model.
6300      * </pre>
6301      *
6302      * <code>repeated string version_aliases = 29;</code>
6303      *
6304      * @return The count of versionAliases.
6305      */
getVersionAliasesCount()6306     public int getVersionAliasesCount() {
6307       return versionAliases_.size();
6308     }
6309     /**
6310      *
6311      *
6312      * <pre>
6313      * User provided version aliases so that a model version can be referenced via
6314      * alias (i.e.
6315      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6316      * instead of auto-generated version id (i.e.
6317      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6318      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6319      * version_id. A default version alias will be created for the first version
6320      * of the model, and there must be exactly one default version alias for a
6321      * model.
6322      * </pre>
6323      *
6324      * <code>repeated string version_aliases = 29;</code>
6325      *
6326      * @param index The index of the element to return.
6327      * @return The versionAliases at the given index.
6328      */
getVersionAliases(int index)6329     public java.lang.String getVersionAliases(int index) {
6330       return versionAliases_.get(index);
6331     }
6332     /**
6333      *
6334      *
6335      * <pre>
6336      * User provided version aliases so that a model version can be referenced via
6337      * alias (i.e.
6338      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6339      * instead of auto-generated version id (i.e.
6340      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6341      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6342      * version_id. A default version alias will be created for the first version
6343      * of the model, and there must be exactly one default version alias for a
6344      * model.
6345      * </pre>
6346      *
6347      * <code>repeated string version_aliases = 29;</code>
6348      *
6349      * @param index The index of the value to return.
6350      * @return The bytes of the versionAliases at the given index.
6351      */
getVersionAliasesBytes(int index)6352     public com.google.protobuf.ByteString getVersionAliasesBytes(int index) {
6353       return versionAliases_.getByteString(index);
6354     }
6355     /**
6356      *
6357      *
6358      * <pre>
6359      * User provided version aliases so that a model version can be referenced via
6360      * alias (i.e.
6361      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6362      * instead of auto-generated version id (i.e.
6363      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6364      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6365      * version_id. A default version alias will be created for the first version
6366      * of the model, and there must be exactly one default version alias for a
6367      * model.
6368      * </pre>
6369      *
6370      * <code>repeated string version_aliases = 29;</code>
6371      *
6372      * @param index The index to set the value at.
6373      * @param value The versionAliases to set.
6374      * @return This builder for chaining.
6375      */
setVersionAliases(int index, java.lang.String value)6376     public Builder setVersionAliases(int index, java.lang.String value) {
6377       if (value == null) {
6378         throw new NullPointerException();
6379       }
6380       ensureVersionAliasesIsMutable();
6381       versionAliases_.set(index, value);
6382       onChanged();
6383       return this;
6384     }
6385     /**
6386      *
6387      *
6388      * <pre>
6389      * User provided version aliases so that a model version can be referenced via
6390      * alias (i.e.
6391      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6392      * instead of auto-generated version id (i.e.
6393      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6394      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6395      * version_id. A default version alias will be created for the first version
6396      * of the model, and there must be exactly one default version alias for a
6397      * model.
6398      * </pre>
6399      *
6400      * <code>repeated string version_aliases = 29;</code>
6401      *
6402      * @param value The versionAliases to add.
6403      * @return This builder for chaining.
6404      */
addVersionAliases(java.lang.String value)6405     public Builder addVersionAliases(java.lang.String value) {
6406       if (value == null) {
6407         throw new NullPointerException();
6408       }
6409       ensureVersionAliasesIsMutable();
6410       versionAliases_.add(value);
6411       onChanged();
6412       return this;
6413     }
6414     /**
6415      *
6416      *
6417      * <pre>
6418      * User provided version aliases so that a model version can be referenced via
6419      * alias (i.e.
6420      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6421      * instead of auto-generated version id (i.e.
6422      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6423      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6424      * version_id. A default version alias will be created for the first version
6425      * of the model, and there must be exactly one default version alias for a
6426      * model.
6427      * </pre>
6428      *
6429      * <code>repeated string version_aliases = 29;</code>
6430      *
6431      * @param values The versionAliases to add.
6432      * @return This builder for chaining.
6433      */
addAllVersionAliases(java.lang.Iterable<java.lang.String> values)6434     public Builder addAllVersionAliases(java.lang.Iterable<java.lang.String> values) {
6435       ensureVersionAliasesIsMutable();
6436       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionAliases_);
6437       onChanged();
6438       return this;
6439     }
6440     /**
6441      *
6442      *
6443      * <pre>
6444      * User provided version aliases so that a model version can be referenced via
6445      * alias (i.e.
6446      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6447      * instead of auto-generated version id (i.e.
6448      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6449      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6450      * version_id. A default version alias will be created for the first version
6451      * of the model, and there must be exactly one default version alias for a
6452      * model.
6453      * </pre>
6454      *
6455      * <code>repeated string version_aliases = 29;</code>
6456      *
6457      * @return This builder for chaining.
6458      */
clearVersionAliases()6459     public Builder clearVersionAliases() {
6460       versionAliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
6461       bitField0_ = (bitField0_ & ~0x00000004);
6462       onChanged();
6463       return this;
6464     }
6465     /**
6466      *
6467      *
6468      * <pre>
6469      * User provided version aliases so that a model version can be referenced via
6470      * alias (i.e.
6471      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_alias}`
6472      * instead of auto-generated version id (i.e.
6473      * `projects/{project}/locations/{location}/models/{model_id}&#64;{version_id})`.
6474      * The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from
6475      * version_id. A default version alias will be created for the first version
6476      * of the model, and there must be exactly one default version alias for a
6477      * model.
6478      * </pre>
6479      *
6480      * <code>repeated string version_aliases = 29;</code>
6481      *
6482      * @param value The bytes of the versionAliases to add.
6483      * @return This builder for chaining.
6484      */
addVersionAliasesBytes(com.google.protobuf.ByteString value)6485     public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) {
6486       if (value == null) {
6487         throw new NullPointerException();
6488       }
6489       checkByteStringIsUtf8(value);
6490       ensureVersionAliasesIsMutable();
6491       versionAliases_.add(value);
6492       onChanged();
6493       return this;
6494     }
6495 
6496     private com.google.protobuf.Timestamp versionCreateTime_;
6497     private com.google.protobuf.SingleFieldBuilderV3<
6498             com.google.protobuf.Timestamp,
6499             com.google.protobuf.Timestamp.Builder,
6500             com.google.protobuf.TimestampOrBuilder>
6501         versionCreateTimeBuilder_;
6502     /**
6503      *
6504      *
6505      * <pre>
6506      * Output only. Timestamp when this version was created.
6507      * </pre>
6508      *
6509      * <code>
6510      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6511      * </code>
6512      *
6513      * @return Whether the versionCreateTime field is set.
6514      */
hasVersionCreateTime()6515     public boolean hasVersionCreateTime() {
6516       return ((bitField0_ & 0x00000008) != 0);
6517     }
6518     /**
6519      *
6520      *
6521      * <pre>
6522      * Output only. Timestamp when this version was created.
6523      * </pre>
6524      *
6525      * <code>
6526      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6527      * </code>
6528      *
6529      * @return The versionCreateTime.
6530      */
getVersionCreateTime()6531     public com.google.protobuf.Timestamp getVersionCreateTime() {
6532       if (versionCreateTimeBuilder_ == null) {
6533         return versionCreateTime_ == null
6534             ? com.google.protobuf.Timestamp.getDefaultInstance()
6535             : versionCreateTime_;
6536       } else {
6537         return versionCreateTimeBuilder_.getMessage();
6538       }
6539     }
6540     /**
6541      *
6542      *
6543      * <pre>
6544      * Output only. Timestamp when this version was created.
6545      * </pre>
6546      *
6547      * <code>
6548      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6549      * </code>
6550      */
setVersionCreateTime(com.google.protobuf.Timestamp value)6551     public Builder setVersionCreateTime(com.google.protobuf.Timestamp value) {
6552       if (versionCreateTimeBuilder_ == null) {
6553         if (value == null) {
6554           throw new NullPointerException();
6555         }
6556         versionCreateTime_ = value;
6557       } else {
6558         versionCreateTimeBuilder_.setMessage(value);
6559       }
6560       bitField0_ |= 0x00000008;
6561       onChanged();
6562       return this;
6563     }
6564     /**
6565      *
6566      *
6567      * <pre>
6568      * Output only. Timestamp when this version was created.
6569      * </pre>
6570      *
6571      * <code>
6572      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6573      * </code>
6574      */
setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)6575     public Builder setVersionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
6576       if (versionCreateTimeBuilder_ == null) {
6577         versionCreateTime_ = builderForValue.build();
6578       } else {
6579         versionCreateTimeBuilder_.setMessage(builderForValue.build());
6580       }
6581       bitField0_ |= 0x00000008;
6582       onChanged();
6583       return this;
6584     }
6585     /**
6586      *
6587      *
6588      * <pre>
6589      * Output only. Timestamp when this version was created.
6590      * </pre>
6591      *
6592      * <code>
6593      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6594      * </code>
6595      */
mergeVersionCreateTime(com.google.protobuf.Timestamp value)6596     public Builder mergeVersionCreateTime(com.google.protobuf.Timestamp value) {
6597       if (versionCreateTimeBuilder_ == null) {
6598         if (((bitField0_ & 0x00000008) != 0)
6599             && versionCreateTime_ != null
6600             && versionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
6601           getVersionCreateTimeBuilder().mergeFrom(value);
6602         } else {
6603           versionCreateTime_ = value;
6604         }
6605       } else {
6606         versionCreateTimeBuilder_.mergeFrom(value);
6607       }
6608       bitField0_ |= 0x00000008;
6609       onChanged();
6610       return this;
6611     }
6612     /**
6613      *
6614      *
6615      * <pre>
6616      * Output only. Timestamp when this version was created.
6617      * </pre>
6618      *
6619      * <code>
6620      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6621      * </code>
6622      */
clearVersionCreateTime()6623     public Builder clearVersionCreateTime() {
6624       bitField0_ = (bitField0_ & ~0x00000008);
6625       versionCreateTime_ = null;
6626       if (versionCreateTimeBuilder_ != null) {
6627         versionCreateTimeBuilder_.dispose();
6628         versionCreateTimeBuilder_ = null;
6629       }
6630       onChanged();
6631       return this;
6632     }
6633     /**
6634      *
6635      *
6636      * <pre>
6637      * Output only. Timestamp when this version was created.
6638      * </pre>
6639      *
6640      * <code>
6641      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6642      * </code>
6643      */
getVersionCreateTimeBuilder()6644     public com.google.protobuf.Timestamp.Builder getVersionCreateTimeBuilder() {
6645       bitField0_ |= 0x00000008;
6646       onChanged();
6647       return getVersionCreateTimeFieldBuilder().getBuilder();
6648     }
6649     /**
6650      *
6651      *
6652      * <pre>
6653      * Output only. Timestamp when this version was created.
6654      * </pre>
6655      *
6656      * <code>
6657      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6658      * </code>
6659      */
getVersionCreateTimeOrBuilder()6660     public com.google.protobuf.TimestampOrBuilder getVersionCreateTimeOrBuilder() {
6661       if (versionCreateTimeBuilder_ != null) {
6662         return versionCreateTimeBuilder_.getMessageOrBuilder();
6663       } else {
6664         return versionCreateTime_ == null
6665             ? com.google.protobuf.Timestamp.getDefaultInstance()
6666             : versionCreateTime_;
6667       }
6668     }
6669     /**
6670      *
6671      *
6672      * <pre>
6673      * Output only. Timestamp when this version was created.
6674      * </pre>
6675      *
6676      * <code>
6677      * .google.protobuf.Timestamp version_create_time = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6678      * </code>
6679      */
6680     private com.google.protobuf.SingleFieldBuilderV3<
6681             com.google.protobuf.Timestamp,
6682             com.google.protobuf.Timestamp.Builder,
6683             com.google.protobuf.TimestampOrBuilder>
getVersionCreateTimeFieldBuilder()6684         getVersionCreateTimeFieldBuilder() {
6685       if (versionCreateTimeBuilder_ == null) {
6686         versionCreateTimeBuilder_ =
6687             new com.google.protobuf.SingleFieldBuilderV3<
6688                 com.google.protobuf.Timestamp,
6689                 com.google.protobuf.Timestamp.Builder,
6690                 com.google.protobuf.TimestampOrBuilder>(
6691                 getVersionCreateTime(), getParentForChildren(), isClean());
6692         versionCreateTime_ = null;
6693       }
6694       return versionCreateTimeBuilder_;
6695     }
6696 
6697     private com.google.protobuf.Timestamp versionUpdateTime_;
6698     private com.google.protobuf.SingleFieldBuilderV3<
6699             com.google.protobuf.Timestamp,
6700             com.google.protobuf.Timestamp.Builder,
6701             com.google.protobuf.TimestampOrBuilder>
6702         versionUpdateTimeBuilder_;
6703     /**
6704      *
6705      *
6706      * <pre>
6707      * Output only. Timestamp when this version was most recently updated.
6708      * </pre>
6709      *
6710      * <code>
6711      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6712      * </code>
6713      *
6714      * @return Whether the versionUpdateTime field is set.
6715      */
hasVersionUpdateTime()6716     public boolean hasVersionUpdateTime() {
6717       return ((bitField0_ & 0x00000010) != 0);
6718     }
6719     /**
6720      *
6721      *
6722      * <pre>
6723      * Output only. Timestamp when this version was most recently updated.
6724      * </pre>
6725      *
6726      * <code>
6727      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6728      * </code>
6729      *
6730      * @return The versionUpdateTime.
6731      */
getVersionUpdateTime()6732     public com.google.protobuf.Timestamp getVersionUpdateTime() {
6733       if (versionUpdateTimeBuilder_ == null) {
6734         return versionUpdateTime_ == null
6735             ? com.google.protobuf.Timestamp.getDefaultInstance()
6736             : versionUpdateTime_;
6737       } else {
6738         return versionUpdateTimeBuilder_.getMessage();
6739       }
6740     }
6741     /**
6742      *
6743      *
6744      * <pre>
6745      * Output only. Timestamp when this version was most recently updated.
6746      * </pre>
6747      *
6748      * <code>
6749      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6750      * </code>
6751      */
setVersionUpdateTime(com.google.protobuf.Timestamp value)6752     public Builder setVersionUpdateTime(com.google.protobuf.Timestamp value) {
6753       if (versionUpdateTimeBuilder_ == null) {
6754         if (value == null) {
6755           throw new NullPointerException();
6756         }
6757         versionUpdateTime_ = value;
6758       } else {
6759         versionUpdateTimeBuilder_.setMessage(value);
6760       }
6761       bitField0_ |= 0x00000010;
6762       onChanged();
6763       return this;
6764     }
6765     /**
6766      *
6767      *
6768      * <pre>
6769      * Output only. Timestamp when this version was most recently updated.
6770      * </pre>
6771      *
6772      * <code>
6773      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6774      * </code>
6775      */
setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)6776     public Builder setVersionUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
6777       if (versionUpdateTimeBuilder_ == null) {
6778         versionUpdateTime_ = builderForValue.build();
6779       } else {
6780         versionUpdateTimeBuilder_.setMessage(builderForValue.build());
6781       }
6782       bitField0_ |= 0x00000010;
6783       onChanged();
6784       return this;
6785     }
6786     /**
6787      *
6788      *
6789      * <pre>
6790      * Output only. Timestamp when this version was most recently updated.
6791      * </pre>
6792      *
6793      * <code>
6794      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6795      * </code>
6796      */
mergeVersionUpdateTime(com.google.protobuf.Timestamp value)6797     public Builder mergeVersionUpdateTime(com.google.protobuf.Timestamp value) {
6798       if (versionUpdateTimeBuilder_ == null) {
6799         if (((bitField0_ & 0x00000010) != 0)
6800             && versionUpdateTime_ != null
6801             && versionUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
6802           getVersionUpdateTimeBuilder().mergeFrom(value);
6803         } else {
6804           versionUpdateTime_ = value;
6805         }
6806       } else {
6807         versionUpdateTimeBuilder_.mergeFrom(value);
6808       }
6809       bitField0_ |= 0x00000010;
6810       onChanged();
6811       return this;
6812     }
6813     /**
6814      *
6815      *
6816      * <pre>
6817      * Output only. Timestamp when this version was most recently updated.
6818      * </pre>
6819      *
6820      * <code>
6821      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6822      * </code>
6823      */
clearVersionUpdateTime()6824     public Builder clearVersionUpdateTime() {
6825       bitField0_ = (bitField0_ & ~0x00000010);
6826       versionUpdateTime_ = null;
6827       if (versionUpdateTimeBuilder_ != null) {
6828         versionUpdateTimeBuilder_.dispose();
6829         versionUpdateTimeBuilder_ = null;
6830       }
6831       onChanged();
6832       return this;
6833     }
6834     /**
6835      *
6836      *
6837      * <pre>
6838      * Output only. Timestamp when this version was most recently updated.
6839      * </pre>
6840      *
6841      * <code>
6842      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6843      * </code>
6844      */
getVersionUpdateTimeBuilder()6845     public com.google.protobuf.Timestamp.Builder getVersionUpdateTimeBuilder() {
6846       bitField0_ |= 0x00000010;
6847       onChanged();
6848       return getVersionUpdateTimeFieldBuilder().getBuilder();
6849     }
6850     /**
6851      *
6852      *
6853      * <pre>
6854      * Output only. Timestamp when this version was most recently updated.
6855      * </pre>
6856      *
6857      * <code>
6858      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6859      * </code>
6860      */
getVersionUpdateTimeOrBuilder()6861     public com.google.protobuf.TimestampOrBuilder getVersionUpdateTimeOrBuilder() {
6862       if (versionUpdateTimeBuilder_ != null) {
6863         return versionUpdateTimeBuilder_.getMessageOrBuilder();
6864       } else {
6865         return versionUpdateTime_ == null
6866             ? com.google.protobuf.Timestamp.getDefaultInstance()
6867             : versionUpdateTime_;
6868       }
6869     }
6870     /**
6871      *
6872      *
6873      * <pre>
6874      * Output only. Timestamp when this version was most recently updated.
6875      * </pre>
6876      *
6877      * <code>
6878      * .google.protobuf.Timestamp version_update_time = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
6879      * </code>
6880      */
6881     private com.google.protobuf.SingleFieldBuilderV3<
6882             com.google.protobuf.Timestamp,
6883             com.google.protobuf.Timestamp.Builder,
6884             com.google.protobuf.TimestampOrBuilder>
getVersionUpdateTimeFieldBuilder()6885         getVersionUpdateTimeFieldBuilder() {
6886       if (versionUpdateTimeBuilder_ == null) {
6887         versionUpdateTimeBuilder_ =
6888             new com.google.protobuf.SingleFieldBuilderV3<
6889                 com.google.protobuf.Timestamp,
6890                 com.google.protobuf.Timestamp.Builder,
6891                 com.google.protobuf.TimestampOrBuilder>(
6892                 getVersionUpdateTime(), getParentForChildren(), isClean());
6893         versionUpdateTime_ = null;
6894       }
6895       return versionUpdateTimeBuilder_;
6896     }
6897 
6898     private java.lang.Object displayName_ = "";
6899     /**
6900      *
6901      *
6902      * <pre>
6903      * Required. The display name of the Model.
6904      * The name can be up to 128 characters long and can consist of any UTF-8
6905      * characters.
6906      * </pre>
6907      *
6908      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
6909      *
6910      * @return The displayName.
6911      */
getDisplayName()6912     public java.lang.String getDisplayName() {
6913       java.lang.Object ref = displayName_;
6914       if (!(ref instanceof java.lang.String)) {
6915         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6916         java.lang.String s = bs.toStringUtf8();
6917         displayName_ = s;
6918         return s;
6919       } else {
6920         return (java.lang.String) ref;
6921       }
6922     }
6923     /**
6924      *
6925      *
6926      * <pre>
6927      * Required. The display name of the Model.
6928      * The name can be up to 128 characters long and can consist of any UTF-8
6929      * characters.
6930      * </pre>
6931      *
6932      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
6933      *
6934      * @return The bytes for displayName.
6935      */
getDisplayNameBytes()6936     public com.google.protobuf.ByteString getDisplayNameBytes() {
6937       java.lang.Object ref = displayName_;
6938       if (ref instanceof String) {
6939         com.google.protobuf.ByteString b =
6940             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6941         displayName_ = b;
6942         return b;
6943       } else {
6944         return (com.google.protobuf.ByteString) ref;
6945       }
6946     }
6947     /**
6948      *
6949      *
6950      * <pre>
6951      * Required. The display name of the Model.
6952      * The name can be up to 128 characters long and can consist of any UTF-8
6953      * characters.
6954      * </pre>
6955      *
6956      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
6957      *
6958      * @param value The displayName to set.
6959      * @return This builder for chaining.
6960      */
setDisplayName(java.lang.String value)6961     public Builder setDisplayName(java.lang.String value) {
6962       if (value == null) {
6963         throw new NullPointerException();
6964       }
6965       displayName_ = value;
6966       bitField0_ |= 0x00000020;
6967       onChanged();
6968       return this;
6969     }
6970     /**
6971      *
6972      *
6973      * <pre>
6974      * Required. The display name of the Model.
6975      * The name can be up to 128 characters long and can consist of any UTF-8
6976      * characters.
6977      * </pre>
6978      *
6979      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
6980      *
6981      * @return This builder for chaining.
6982      */
clearDisplayName()6983     public Builder clearDisplayName() {
6984       displayName_ = getDefaultInstance().getDisplayName();
6985       bitField0_ = (bitField0_ & ~0x00000020);
6986       onChanged();
6987       return this;
6988     }
6989     /**
6990      *
6991      *
6992      * <pre>
6993      * Required. The display name of the Model.
6994      * The name can be up to 128 characters long and can consist of any UTF-8
6995      * characters.
6996      * </pre>
6997      *
6998      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
6999      *
7000      * @param value The bytes for displayName to set.
7001      * @return This builder for chaining.
7002      */
setDisplayNameBytes(com.google.protobuf.ByteString value)7003     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
7004       if (value == null) {
7005         throw new NullPointerException();
7006       }
7007       checkByteStringIsUtf8(value);
7008       displayName_ = value;
7009       bitField0_ |= 0x00000020;
7010       onChanged();
7011       return this;
7012     }
7013 
7014     private java.lang.Object description_ = "";
7015     /**
7016      *
7017      *
7018      * <pre>
7019      * The description of the Model.
7020      * </pre>
7021      *
7022      * <code>string description = 3;</code>
7023      *
7024      * @return The description.
7025      */
getDescription()7026     public java.lang.String getDescription() {
7027       java.lang.Object ref = description_;
7028       if (!(ref instanceof java.lang.String)) {
7029         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
7030         java.lang.String s = bs.toStringUtf8();
7031         description_ = s;
7032         return s;
7033       } else {
7034         return (java.lang.String) ref;
7035       }
7036     }
7037     /**
7038      *
7039      *
7040      * <pre>
7041      * The description of the Model.
7042      * </pre>
7043      *
7044      * <code>string description = 3;</code>
7045      *
7046      * @return The bytes for description.
7047      */
getDescriptionBytes()7048     public com.google.protobuf.ByteString getDescriptionBytes() {
7049       java.lang.Object ref = description_;
7050       if (ref instanceof String) {
7051         com.google.protobuf.ByteString b =
7052             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
7053         description_ = b;
7054         return b;
7055       } else {
7056         return (com.google.protobuf.ByteString) ref;
7057       }
7058     }
7059     /**
7060      *
7061      *
7062      * <pre>
7063      * The description of the Model.
7064      * </pre>
7065      *
7066      * <code>string description = 3;</code>
7067      *
7068      * @param value The description to set.
7069      * @return This builder for chaining.
7070      */
setDescription(java.lang.String value)7071     public Builder setDescription(java.lang.String value) {
7072       if (value == null) {
7073         throw new NullPointerException();
7074       }
7075       description_ = value;
7076       bitField0_ |= 0x00000040;
7077       onChanged();
7078       return this;
7079     }
7080     /**
7081      *
7082      *
7083      * <pre>
7084      * The description of the Model.
7085      * </pre>
7086      *
7087      * <code>string description = 3;</code>
7088      *
7089      * @return This builder for chaining.
7090      */
clearDescription()7091     public Builder clearDescription() {
7092       description_ = getDefaultInstance().getDescription();
7093       bitField0_ = (bitField0_ & ~0x00000040);
7094       onChanged();
7095       return this;
7096     }
7097     /**
7098      *
7099      *
7100      * <pre>
7101      * The description of the Model.
7102      * </pre>
7103      *
7104      * <code>string description = 3;</code>
7105      *
7106      * @param value The bytes for description to set.
7107      * @return This builder for chaining.
7108      */
setDescriptionBytes(com.google.protobuf.ByteString value)7109     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
7110       if (value == null) {
7111         throw new NullPointerException();
7112       }
7113       checkByteStringIsUtf8(value);
7114       description_ = value;
7115       bitField0_ |= 0x00000040;
7116       onChanged();
7117       return this;
7118     }
7119 
7120     private java.lang.Object versionDescription_ = "";
7121     /**
7122      *
7123      *
7124      * <pre>
7125      * The description of this version.
7126      * </pre>
7127      *
7128      * <code>string version_description = 30;</code>
7129      *
7130      * @return The versionDescription.
7131      */
getVersionDescription()7132     public java.lang.String getVersionDescription() {
7133       java.lang.Object ref = versionDescription_;
7134       if (!(ref instanceof java.lang.String)) {
7135         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
7136         java.lang.String s = bs.toStringUtf8();
7137         versionDescription_ = s;
7138         return s;
7139       } else {
7140         return (java.lang.String) ref;
7141       }
7142     }
7143     /**
7144      *
7145      *
7146      * <pre>
7147      * The description of this version.
7148      * </pre>
7149      *
7150      * <code>string version_description = 30;</code>
7151      *
7152      * @return The bytes for versionDescription.
7153      */
getVersionDescriptionBytes()7154     public com.google.protobuf.ByteString getVersionDescriptionBytes() {
7155       java.lang.Object ref = versionDescription_;
7156       if (ref instanceof String) {
7157         com.google.protobuf.ByteString b =
7158             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
7159         versionDescription_ = b;
7160         return b;
7161       } else {
7162         return (com.google.protobuf.ByteString) ref;
7163       }
7164     }
7165     /**
7166      *
7167      *
7168      * <pre>
7169      * The description of this version.
7170      * </pre>
7171      *
7172      * <code>string version_description = 30;</code>
7173      *
7174      * @param value The versionDescription to set.
7175      * @return This builder for chaining.
7176      */
setVersionDescription(java.lang.String value)7177     public Builder setVersionDescription(java.lang.String value) {
7178       if (value == null) {
7179         throw new NullPointerException();
7180       }
7181       versionDescription_ = value;
7182       bitField0_ |= 0x00000080;
7183       onChanged();
7184       return this;
7185     }
7186     /**
7187      *
7188      *
7189      * <pre>
7190      * The description of this version.
7191      * </pre>
7192      *
7193      * <code>string version_description = 30;</code>
7194      *
7195      * @return This builder for chaining.
7196      */
clearVersionDescription()7197     public Builder clearVersionDescription() {
7198       versionDescription_ = getDefaultInstance().getVersionDescription();
7199       bitField0_ = (bitField0_ & ~0x00000080);
7200       onChanged();
7201       return this;
7202     }
7203     /**
7204      *
7205      *
7206      * <pre>
7207      * The description of this version.
7208      * </pre>
7209      *
7210      * <code>string version_description = 30;</code>
7211      *
7212      * @param value The bytes for versionDescription to set.
7213      * @return This builder for chaining.
7214      */
setVersionDescriptionBytes(com.google.protobuf.ByteString value)7215     public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) {
7216       if (value == null) {
7217         throw new NullPointerException();
7218       }
7219       checkByteStringIsUtf8(value);
7220       versionDescription_ = value;
7221       bitField0_ |= 0x00000080;
7222       onChanged();
7223       return this;
7224     }
7225 
7226     private com.google.cloud.aiplatform.v1beta1.PredictSchemata predictSchemata_;
7227     private com.google.protobuf.SingleFieldBuilderV3<
7228             com.google.cloud.aiplatform.v1beta1.PredictSchemata,
7229             com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder,
7230             com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder>
7231         predictSchemataBuilder_;
7232     /**
7233      *
7234      *
7235      * <pre>
7236      * The schemata that describe formats of the Model's predictions and
7237      * explanations as given and returned via
7238      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7239      * and
7240      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7241      * </pre>
7242      *
7243      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7244      *
7245      * @return Whether the predictSchemata field is set.
7246      */
hasPredictSchemata()7247     public boolean hasPredictSchemata() {
7248       return ((bitField0_ & 0x00000100) != 0);
7249     }
7250     /**
7251      *
7252      *
7253      * <pre>
7254      * The schemata that describe formats of the Model's predictions and
7255      * explanations as given and returned via
7256      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7257      * and
7258      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7259      * </pre>
7260      *
7261      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7262      *
7263      * @return The predictSchemata.
7264      */
getPredictSchemata()7265     public com.google.cloud.aiplatform.v1beta1.PredictSchemata getPredictSchemata() {
7266       if (predictSchemataBuilder_ == null) {
7267         return predictSchemata_ == null
7268             ? com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()
7269             : predictSchemata_;
7270       } else {
7271         return predictSchemataBuilder_.getMessage();
7272       }
7273     }
7274     /**
7275      *
7276      *
7277      * <pre>
7278      * The schemata that describe formats of the Model's predictions and
7279      * explanations as given and returned via
7280      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7281      * and
7282      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7283      * </pre>
7284      *
7285      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7286      */
setPredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value)7287     public Builder setPredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value) {
7288       if (predictSchemataBuilder_ == null) {
7289         if (value == null) {
7290           throw new NullPointerException();
7291         }
7292         predictSchemata_ = value;
7293       } else {
7294         predictSchemataBuilder_.setMessage(value);
7295       }
7296       bitField0_ |= 0x00000100;
7297       onChanged();
7298       return this;
7299     }
7300     /**
7301      *
7302      *
7303      * <pre>
7304      * The schemata that describe formats of the Model's predictions and
7305      * explanations as given and returned via
7306      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7307      * and
7308      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7309      * </pre>
7310      *
7311      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7312      */
setPredictSchemata( com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder builderForValue)7313     public Builder setPredictSchemata(
7314         com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder builderForValue) {
7315       if (predictSchemataBuilder_ == null) {
7316         predictSchemata_ = builderForValue.build();
7317       } else {
7318         predictSchemataBuilder_.setMessage(builderForValue.build());
7319       }
7320       bitField0_ |= 0x00000100;
7321       onChanged();
7322       return this;
7323     }
7324     /**
7325      *
7326      *
7327      * <pre>
7328      * The schemata that describe formats of the Model's predictions and
7329      * explanations as given and returned via
7330      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7331      * and
7332      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7333      * </pre>
7334      *
7335      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7336      */
mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value)7337     public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value) {
7338       if (predictSchemataBuilder_ == null) {
7339         if (((bitField0_ & 0x00000100) != 0)
7340             && predictSchemata_ != null
7341             && predictSchemata_
7342                 != com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()) {
7343           getPredictSchemataBuilder().mergeFrom(value);
7344         } else {
7345           predictSchemata_ = value;
7346         }
7347       } else {
7348         predictSchemataBuilder_.mergeFrom(value);
7349       }
7350       bitField0_ |= 0x00000100;
7351       onChanged();
7352       return this;
7353     }
7354     /**
7355      *
7356      *
7357      * <pre>
7358      * The schemata that describe formats of the Model's predictions and
7359      * explanations as given and returned via
7360      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7361      * and
7362      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7363      * </pre>
7364      *
7365      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7366      */
clearPredictSchemata()7367     public Builder clearPredictSchemata() {
7368       bitField0_ = (bitField0_ & ~0x00000100);
7369       predictSchemata_ = null;
7370       if (predictSchemataBuilder_ != null) {
7371         predictSchemataBuilder_.dispose();
7372         predictSchemataBuilder_ = null;
7373       }
7374       onChanged();
7375       return this;
7376     }
7377     /**
7378      *
7379      *
7380      * <pre>
7381      * The schemata that describe formats of the Model's predictions and
7382      * explanations as given and returned via
7383      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7384      * and
7385      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7386      * </pre>
7387      *
7388      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7389      */
getPredictSchemataBuilder()7390     public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSchemataBuilder() {
7391       bitField0_ |= 0x00000100;
7392       onChanged();
7393       return getPredictSchemataFieldBuilder().getBuilder();
7394     }
7395     /**
7396      *
7397      *
7398      * <pre>
7399      * The schemata that describe formats of the Model's predictions and
7400      * explanations as given and returned via
7401      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7402      * and
7403      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7404      * </pre>
7405      *
7406      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7407      */
7408     public com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder
getPredictSchemataOrBuilder()7409         getPredictSchemataOrBuilder() {
7410       if (predictSchemataBuilder_ != null) {
7411         return predictSchemataBuilder_.getMessageOrBuilder();
7412       } else {
7413         return predictSchemata_ == null
7414             ? com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()
7415             : predictSchemata_;
7416       }
7417     }
7418     /**
7419      *
7420      *
7421      * <pre>
7422      * The schemata that describe formats of the Model's predictions and
7423      * explanations as given and returned via
7424      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
7425      * and
7426      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
7427      * </pre>
7428      *
7429      * <code>.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4;</code>
7430      */
7431     private com.google.protobuf.SingleFieldBuilderV3<
7432             com.google.cloud.aiplatform.v1beta1.PredictSchemata,
7433             com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder,
7434             com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder>
getPredictSchemataFieldBuilder()7435         getPredictSchemataFieldBuilder() {
7436       if (predictSchemataBuilder_ == null) {
7437         predictSchemataBuilder_ =
7438             new com.google.protobuf.SingleFieldBuilderV3<
7439                 com.google.cloud.aiplatform.v1beta1.PredictSchemata,
7440                 com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder,
7441                 com.google.cloud.aiplatform.v1beta1.PredictSchemataOrBuilder>(
7442                 getPredictSchemata(), getParentForChildren(), isClean());
7443         predictSchemata_ = null;
7444       }
7445       return predictSchemataBuilder_;
7446     }
7447 
7448     private java.lang.Object metadataSchemaUri_ = "";
7449     /**
7450      *
7451      *
7452      * <pre>
7453      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
7454      * additional information about the Model, that is specific to it. Unset if
7455      * the Model does not have any additional information. The schema is defined
7456      * as an OpenAPI 3.0.2 [Schema
7457      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
7458      * AutoML Models always have this field populated by Vertex AI, if no
7459      * additional metadata is needed, this field is set to an empty string.
7460      * Note: The URI given on output will be immutable and probably different,
7461      * including the URI scheme, than the one given on input. The output URI will
7462      * point to a location where the user only has a read access.
7463      * </pre>
7464      *
7465      * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
7466      *
7467      * @return The metadataSchemaUri.
7468      */
getMetadataSchemaUri()7469     public java.lang.String getMetadataSchemaUri() {
7470       java.lang.Object ref = metadataSchemaUri_;
7471       if (!(ref instanceof java.lang.String)) {
7472         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
7473         java.lang.String s = bs.toStringUtf8();
7474         metadataSchemaUri_ = s;
7475         return s;
7476       } else {
7477         return (java.lang.String) ref;
7478       }
7479     }
7480     /**
7481      *
7482      *
7483      * <pre>
7484      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
7485      * additional information about the Model, that is specific to it. Unset if
7486      * the Model does not have any additional information. The schema is defined
7487      * as an OpenAPI 3.0.2 [Schema
7488      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
7489      * AutoML Models always have this field populated by Vertex AI, if no
7490      * additional metadata is needed, this field is set to an empty string.
7491      * Note: The URI given on output will be immutable and probably different,
7492      * including the URI scheme, than the one given on input. The output URI will
7493      * point to a location where the user only has a read access.
7494      * </pre>
7495      *
7496      * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
7497      *
7498      * @return The bytes for metadataSchemaUri.
7499      */
getMetadataSchemaUriBytes()7500     public com.google.protobuf.ByteString getMetadataSchemaUriBytes() {
7501       java.lang.Object ref = metadataSchemaUri_;
7502       if (ref instanceof String) {
7503         com.google.protobuf.ByteString b =
7504             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
7505         metadataSchemaUri_ = b;
7506         return b;
7507       } else {
7508         return (com.google.protobuf.ByteString) ref;
7509       }
7510     }
7511     /**
7512      *
7513      *
7514      * <pre>
7515      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
7516      * additional information about the Model, that is specific to it. Unset if
7517      * the Model does not have any additional information. The schema is defined
7518      * as an OpenAPI 3.0.2 [Schema
7519      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
7520      * AutoML Models always have this field populated by Vertex AI, if no
7521      * additional metadata is needed, this field is set to an empty string.
7522      * Note: The URI given on output will be immutable and probably different,
7523      * including the URI scheme, than the one given on input. The output URI will
7524      * point to a location where the user only has a read access.
7525      * </pre>
7526      *
7527      * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
7528      *
7529      * @param value The metadataSchemaUri to set.
7530      * @return This builder for chaining.
7531      */
setMetadataSchemaUri(java.lang.String value)7532     public Builder setMetadataSchemaUri(java.lang.String value) {
7533       if (value == null) {
7534         throw new NullPointerException();
7535       }
7536       metadataSchemaUri_ = value;
7537       bitField0_ |= 0x00000200;
7538       onChanged();
7539       return this;
7540     }
7541     /**
7542      *
7543      *
7544      * <pre>
7545      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
7546      * additional information about the Model, that is specific to it. Unset if
7547      * the Model does not have any additional information. The schema is defined
7548      * as an OpenAPI 3.0.2 [Schema
7549      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
7550      * AutoML Models always have this field populated by Vertex AI, if no
7551      * additional metadata is needed, this field is set to an empty string.
7552      * Note: The URI given on output will be immutable and probably different,
7553      * including the URI scheme, than the one given on input. The output URI will
7554      * point to a location where the user only has a read access.
7555      * </pre>
7556      *
7557      * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
7558      *
7559      * @return This builder for chaining.
7560      */
clearMetadataSchemaUri()7561     public Builder clearMetadataSchemaUri() {
7562       metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri();
7563       bitField0_ = (bitField0_ & ~0x00000200);
7564       onChanged();
7565       return this;
7566     }
7567     /**
7568      *
7569      *
7570      * <pre>
7571      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
7572      * additional information about the Model, that is specific to it. Unset if
7573      * the Model does not have any additional information. The schema is defined
7574      * as an OpenAPI 3.0.2 [Schema
7575      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
7576      * AutoML Models always have this field populated by Vertex AI, if no
7577      * additional metadata is needed, this field is set to an empty string.
7578      * Note: The URI given on output will be immutable and probably different,
7579      * including the URI scheme, than the one given on input. The output URI will
7580      * point to a location where the user only has a read access.
7581      * </pre>
7582      *
7583      * <code>string metadata_schema_uri = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
7584      *
7585      * @param value The bytes for metadataSchemaUri to set.
7586      * @return This builder for chaining.
7587      */
setMetadataSchemaUriBytes(com.google.protobuf.ByteString value)7588     public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) {
7589       if (value == null) {
7590         throw new NullPointerException();
7591       }
7592       checkByteStringIsUtf8(value);
7593       metadataSchemaUri_ = value;
7594       bitField0_ |= 0x00000200;
7595       onChanged();
7596       return this;
7597     }
7598 
7599     private com.google.protobuf.Value metadata_;
7600     private com.google.protobuf.SingleFieldBuilderV3<
7601             com.google.protobuf.Value,
7602             com.google.protobuf.Value.Builder,
7603             com.google.protobuf.ValueOrBuilder>
7604         metadataBuilder_;
7605     /**
7606      *
7607      *
7608      * <pre>
7609      * Immutable. An additional information about the Model; the schema of the
7610      * metadata can be found in
7611      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7612      * Unset if the Model does not have any additional information.
7613      * </pre>
7614      *
7615      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7616      *
7617      * @return Whether the metadata field is set.
7618      */
hasMetadata()7619     public boolean hasMetadata() {
7620       return ((bitField0_ & 0x00000400) != 0);
7621     }
7622     /**
7623      *
7624      *
7625      * <pre>
7626      * Immutable. An additional information about the Model; the schema of the
7627      * metadata can be found in
7628      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7629      * Unset if the Model does not have any additional information.
7630      * </pre>
7631      *
7632      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7633      *
7634      * @return The metadata.
7635      */
getMetadata()7636     public com.google.protobuf.Value getMetadata() {
7637       if (metadataBuilder_ == null) {
7638         return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
7639       } else {
7640         return metadataBuilder_.getMessage();
7641       }
7642     }
7643     /**
7644      *
7645      *
7646      * <pre>
7647      * Immutable. An additional information about the Model; the schema of the
7648      * metadata can be found in
7649      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7650      * Unset if the Model does not have any additional information.
7651      * </pre>
7652      *
7653      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7654      */
setMetadata(com.google.protobuf.Value value)7655     public Builder setMetadata(com.google.protobuf.Value value) {
7656       if (metadataBuilder_ == null) {
7657         if (value == null) {
7658           throw new NullPointerException();
7659         }
7660         metadata_ = value;
7661       } else {
7662         metadataBuilder_.setMessage(value);
7663       }
7664       bitField0_ |= 0x00000400;
7665       onChanged();
7666       return this;
7667     }
7668     /**
7669      *
7670      *
7671      * <pre>
7672      * Immutable. An additional information about the Model; the schema of the
7673      * metadata can be found in
7674      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7675      * Unset if the Model does not have any additional information.
7676      * </pre>
7677      *
7678      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7679      */
setMetadata(com.google.protobuf.Value.Builder builderForValue)7680     public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) {
7681       if (metadataBuilder_ == null) {
7682         metadata_ = builderForValue.build();
7683       } else {
7684         metadataBuilder_.setMessage(builderForValue.build());
7685       }
7686       bitField0_ |= 0x00000400;
7687       onChanged();
7688       return this;
7689     }
7690     /**
7691      *
7692      *
7693      * <pre>
7694      * Immutable. An additional information about the Model; the schema of the
7695      * metadata can be found in
7696      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7697      * Unset if the Model does not have any additional information.
7698      * </pre>
7699      *
7700      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7701      */
mergeMetadata(com.google.protobuf.Value value)7702     public Builder mergeMetadata(com.google.protobuf.Value value) {
7703       if (metadataBuilder_ == null) {
7704         if (((bitField0_ & 0x00000400) != 0)
7705             && metadata_ != null
7706             && metadata_ != com.google.protobuf.Value.getDefaultInstance()) {
7707           getMetadataBuilder().mergeFrom(value);
7708         } else {
7709           metadata_ = value;
7710         }
7711       } else {
7712         metadataBuilder_.mergeFrom(value);
7713       }
7714       bitField0_ |= 0x00000400;
7715       onChanged();
7716       return this;
7717     }
7718     /**
7719      *
7720      *
7721      * <pre>
7722      * Immutable. An additional information about the Model; the schema of the
7723      * metadata can be found in
7724      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7725      * Unset if the Model does not have any additional information.
7726      * </pre>
7727      *
7728      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7729      */
clearMetadata()7730     public Builder clearMetadata() {
7731       bitField0_ = (bitField0_ & ~0x00000400);
7732       metadata_ = null;
7733       if (metadataBuilder_ != null) {
7734         metadataBuilder_.dispose();
7735         metadataBuilder_ = null;
7736       }
7737       onChanged();
7738       return this;
7739     }
7740     /**
7741      *
7742      *
7743      * <pre>
7744      * Immutable. An additional information about the Model; the schema of the
7745      * metadata can be found in
7746      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7747      * Unset if the Model does not have any additional information.
7748      * </pre>
7749      *
7750      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7751      */
getMetadataBuilder()7752     public com.google.protobuf.Value.Builder getMetadataBuilder() {
7753       bitField0_ |= 0x00000400;
7754       onChanged();
7755       return getMetadataFieldBuilder().getBuilder();
7756     }
7757     /**
7758      *
7759      *
7760      * <pre>
7761      * Immutable. An additional information about the Model; the schema of the
7762      * metadata can be found in
7763      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7764      * Unset if the Model does not have any additional information.
7765      * </pre>
7766      *
7767      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7768      */
getMetadataOrBuilder()7769     public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() {
7770       if (metadataBuilder_ != null) {
7771         return metadataBuilder_.getMessageOrBuilder();
7772       } else {
7773         return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
7774       }
7775     }
7776     /**
7777      *
7778      *
7779      * <pre>
7780      * Immutable. An additional information about the Model; the schema of the
7781      * metadata can be found in
7782      * [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri].
7783      * Unset if the Model does not have any additional information.
7784      * </pre>
7785      *
7786      * <code>.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE];</code>
7787      */
7788     private com.google.protobuf.SingleFieldBuilderV3<
7789             com.google.protobuf.Value,
7790             com.google.protobuf.Value.Builder,
7791             com.google.protobuf.ValueOrBuilder>
getMetadataFieldBuilder()7792         getMetadataFieldBuilder() {
7793       if (metadataBuilder_ == null) {
7794         metadataBuilder_ =
7795             new com.google.protobuf.SingleFieldBuilderV3<
7796                 com.google.protobuf.Value,
7797                 com.google.protobuf.Value.Builder,
7798                 com.google.protobuf.ValueOrBuilder>(
7799                 getMetadata(), getParentForChildren(), isClean());
7800         metadata_ = null;
7801       }
7802       return metadataBuilder_;
7803     }
7804 
7805     private java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>
7806         supportedExportFormats_ = java.util.Collections.emptyList();
7807 
ensureSupportedExportFormatsIsMutable()7808     private void ensureSupportedExportFormatsIsMutable() {
7809       if (!((bitField0_ & 0x00000800) != 0)) {
7810         supportedExportFormats_ =
7811             new java.util.ArrayList<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>(
7812                 supportedExportFormats_);
7813         bitField0_ |= 0x00000800;
7814       }
7815     }
7816 
7817     private com.google.protobuf.RepeatedFieldBuilderV3<
7818             com.google.cloud.aiplatform.v1beta1.Model.ExportFormat,
7819             com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder,
7820             com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>
7821         supportedExportFormatsBuilder_;
7822 
7823     /**
7824      *
7825      *
7826      * <pre>
7827      * Output only. The formats in which this Model may be exported. If empty,
7828      * this Model is not available for export.
7829      * </pre>
7830      *
7831      * <code>
7832      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7833      * </code>
7834      */
7835     public java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>
getSupportedExportFormatsList()7836         getSupportedExportFormatsList() {
7837       if (supportedExportFormatsBuilder_ == null) {
7838         return java.util.Collections.unmodifiableList(supportedExportFormats_);
7839       } else {
7840         return supportedExportFormatsBuilder_.getMessageList();
7841       }
7842     }
7843     /**
7844      *
7845      *
7846      * <pre>
7847      * Output only. The formats in which this Model may be exported. If empty,
7848      * this Model is not available for export.
7849      * </pre>
7850      *
7851      * <code>
7852      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7853      * </code>
7854      */
getSupportedExportFormatsCount()7855     public int getSupportedExportFormatsCount() {
7856       if (supportedExportFormatsBuilder_ == null) {
7857         return supportedExportFormats_.size();
7858       } else {
7859         return supportedExportFormatsBuilder_.getCount();
7860       }
7861     }
7862     /**
7863      *
7864      *
7865      * <pre>
7866      * Output only. The formats in which this Model may be exported. If empty,
7867      * this Model is not available for export.
7868      * </pre>
7869      *
7870      * <code>
7871      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7872      * </code>
7873      */
getSupportedExportFormats( int index)7874     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat getSupportedExportFormats(
7875         int index) {
7876       if (supportedExportFormatsBuilder_ == null) {
7877         return supportedExportFormats_.get(index);
7878       } else {
7879         return supportedExportFormatsBuilder_.getMessage(index);
7880       }
7881     }
7882     /**
7883      *
7884      *
7885      * <pre>
7886      * Output only. The formats in which this Model may be exported. If empty,
7887      * this Model is not available for export.
7888      * </pre>
7889      *
7890      * <code>
7891      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7892      * </code>
7893      */
setSupportedExportFormats( int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat value)7894     public Builder setSupportedExportFormats(
7895         int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat value) {
7896       if (supportedExportFormatsBuilder_ == null) {
7897         if (value == null) {
7898           throw new NullPointerException();
7899         }
7900         ensureSupportedExportFormatsIsMutable();
7901         supportedExportFormats_.set(index, value);
7902         onChanged();
7903       } else {
7904         supportedExportFormatsBuilder_.setMessage(index, value);
7905       }
7906       return this;
7907     }
7908     /**
7909      *
7910      *
7911      * <pre>
7912      * Output only. The formats in which this Model may be exported. If empty,
7913      * this Model is not available for export.
7914      * </pre>
7915      *
7916      * <code>
7917      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7918      * </code>
7919      */
setSupportedExportFormats( int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder builderForValue)7920     public Builder setSupportedExportFormats(
7921         int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder builderForValue) {
7922       if (supportedExportFormatsBuilder_ == null) {
7923         ensureSupportedExportFormatsIsMutable();
7924         supportedExportFormats_.set(index, builderForValue.build());
7925         onChanged();
7926       } else {
7927         supportedExportFormatsBuilder_.setMessage(index, builderForValue.build());
7928       }
7929       return this;
7930     }
7931     /**
7932      *
7933      *
7934      * <pre>
7935      * Output only. The formats in which this Model may be exported. If empty,
7936      * this Model is not available for export.
7937      * </pre>
7938      *
7939      * <code>
7940      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7941      * </code>
7942      */
addSupportedExportFormats( com.google.cloud.aiplatform.v1beta1.Model.ExportFormat value)7943     public Builder addSupportedExportFormats(
7944         com.google.cloud.aiplatform.v1beta1.Model.ExportFormat value) {
7945       if (supportedExportFormatsBuilder_ == null) {
7946         if (value == null) {
7947           throw new NullPointerException();
7948         }
7949         ensureSupportedExportFormatsIsMutable();
7950         supportedExportFormats_.add(value);
7951         onChanged();
7952       } else {
7953         supportedExportFormatsBuilder_.addMessage(value);
7954       }
7955       return this;
7956     }
7957     /**
7958      *
7959      *
7960      * <pre>
7961      * Output only. The formats in which this Model may be exported. If empty,
7962      * this Model is not available for export.
7963      * </pre>
7964      *
7965      * <code>
7966      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7967      * </code>
7968      */
addSupportedExportFormats( int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat value)7969     public Builder addSupportedExportFormats(
7970         int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat value) {
7971       if (supportedExportFormatsBuilder_ == null) {
7972         if (value == null) {
7973           throw new NullPointerException();
7974         }
7975         ensureSupportedExportFormatsIsMutable();
7976         supportedExportFormats_.add(index, value);
7977         onChanged();
7978       } else {
7979         supportedExportFormatsBuilder_.addMessage(index, value);
7980       }
7981       return this;
7982     }
7983     /**
7984      *
7985      *
7986      * <pre>
7987      * Output only. The formats in which this Model may be exported. If empty,
7988      * this Model is not available for export.
7989      * </pre>
7990      *
7991      * <code>
7992      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
7993      * </code>
7994      */
addSupportedExportFormats( com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder builderForValue)7995     public Builder addSupportedExportFormats(
7996         com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder builderForValue) {
7997       if (supportedExportFormatsBuilder_ == null) {
7998         ensureSupportedExportFormatsIsMutable();
7999         supportedExportFormats_.add(builderForValue.build());
8000         onChanged();
8001       } else {
8002         supportedExportFormatsBuilder_.addMessage(builderForValue.build());
8003       }
8004       return this;
8005     }
8006     /**
8007      *
8008      *
8009      * <pre>
8010      * Output only. The formats in which this Model may be exported. If empty,
8011      * this Model is not available for export.
8012      * </pre>
8013      *
8014      * <code>
8015      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8016      * </code>
8017      */
addSupportedExportFormats( int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder builderForValue)8018     public Builder addSupportedExportFormats(
8019         int index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder builderForValue) {
8020       if (supportedExportFormatsBuilder_ == null) {
8021         ensureSupportedExportFormatsIsMutable();
8022         supportedExportFormats_.add(index, builderForValue.build());
8023         onChanged();
8024       } else {
8025         supportedExportFormatsBuilder_.addMessage(index, builderForValue.build());
8026       }
8027       return this;
8028     }
8029     /**
8030      *
8031      *
8032      * <pre>
8033      * Output only. The formats in which this Model may be exported. If empty,
8034      * this Model is not available for export.
8035      * </pre>
8036      *
8037      * <code>
8038      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8039      * </code>
8040      */
addAllSupportedExportFormats( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Model.ExportFormat> values)8041     public Builder addAllSupportedExportFormats(
8042         java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Model.ExportFormat>
8043             values) {
8044       if (supportedExportFormatsBuilder_ == null) {
8045         ensureSupportedExportFormatsIsMutable();
8046         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedExportFormats_);
8047         onChanged();
8048       } else {
8049         supportedExportFormatsBuilder_.addAllMessages(values);
8050       }
8051       return this;
8052     }
8053     /**
8054      *
8055      *
8056      * <pre>
8057      * Output only. The formats in which this Model may be exported. If empty,
8058      * this Model is not available for export.
8059      * </pre>
8060      *
8061      * <code>
8062      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8063      * </code>
8064      */
clearSupportedExportFormats()8065     public Builder clearSupportedExportFormats() {
8066       if (supportedExportFormatsBuilder_ == null) {
8067         supportedExportFormats_ = java.util.Collections.emptyList();
8068         bitField0_ = (bitField0_ & ~0x00000800);
8069         onChanged();
8070       } else {
8071         supportedExportFormatsBuilder_.clear();
8072       }
8073       return this;
8074     }
8075     /**
8076      *
8077      *
8078      * <pre>
8079      * Output only. The formats in which this Model may be exported. If empty,
8080      * this Model is not available for export.
8081      * </pre>
8082      *
8083      * <code>
8084      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8085      * </code>
8086      */
removeSupportedExportFormats(int index)8087     public Builder removeSupportedExportFormats(int index) {
8088       if (supportedExportFormatsBuilder_ == null) {
8089         ensureSupportedExportFormatsIsMutable();
8090         supportedExportFormats_.remove(index);
8091         onChanged();
8092       } else {
8093         supportedExportFormatsBuilder_.remove(index);
8094       }
8095       return this;
8096     }
8097     /**
8098      *
8099      *
8100      * <pre>
8101      * Output only. The formats in which this Model may be exported. If empty,
8102      * this Model is not available for export.
8103      * </pre>
8104      *
8105      * <code>
8106      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8107      * </code>
8108      */
8109     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder
getSupportedExportFormatsBuilder(int index)8110         getSupportedExportFormatsBuilder(int index) {
8111       return getSupportedExportFormatsFieldBuilder().getBuilder(index);
8112     }
8113     /**
8114      *
8115      *
8116      * <pre>
8117      * Output only. The formats in which this Model may be exported. If empty,
8118      * this Model is not available for export.
8119      * </pre>
8120      *
8121      * <code>
8122      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8123      * </code>
8124      */
8125     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder
getSupportedExportFormatsOrBuilder(int index)8126         getSupportedExportFormatsOrBuilder(int index) {
8127       if (supportedExportFormatsBuilder_ == null) {
8128         return supportedExportFormats_.get(index);
8129       } else {
8130         return supportedExportFormatsBuilder_.getMessageOrBuilder(index);
8131       }
8132     }
8133     /**
8134      *
8135      *
8136      * <pre>
8137      * Output only. The formats in which this Model may be exported. If empty,
8138      * this Model is not available for export.
8139      * </pre>
8140      *
8141      * <code>
8142      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8143      * </code>
8144      */
8145     public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>
getSupportedExportFormatsOrBuilderList()8146         getSupportedExportFormatsOrBuilderList() {
8147       if (supportedExportFormatsBuilder_ != null) {
8148         return supportedExportFormatsBuilder_.getMessageOrBuilderList();
8149       } else {
8150         return java.util.Collections.unmodifiableList(supportedExportFormats_);
8151       }
8152     }
8153     /**
8154      *
8155      *
8156      * <pre>
8157      * Output only. The formats in which this Model may be exported. If empty,
8158      * this Model is not available for export.
8159      * </pre>
8160      *
8161      * <code>
8162      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8163      * </code>
8164      */
8165     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder
addSupportedExportFormatsBuilder()8166         addSupportedExportFormatsBuilder() {
8167       return getSupportedExportFormatsFieldBuilder()
8168           .addBuilder(com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.getDefaultInstance());
8169     }
8170     /**
8171      *
8172      *
8173      * <pre>
8174      * Output only. The formats in which this Model may be exported. If empty,
8175      * this Model is not available for export.
8176      * </pre>
8177      *
8178      * <code>
8179      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8180      * </code>
8181      */
8182     public com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder
addSupportedExportFormatsBuilder(int index)8183         addSupportedExportFormatsBuilder(int index) {
8184       return getSupportedExportFormatsFieldBuilder()
8185           .addBuilder(
8186               index, com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.getDefaultInstance());
8187     }
8188     /**
8189      *
8190      *
8191      * <pre>
8192      * Output only. The formats in which this Model may be exported. If empty,
8193      * this Model is not available for export.
8194      * </pre>
8195      *
8196      * <code>
8197      * repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat supported_export_formats = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
8198      * </code>
8199      */
8200     public java.util.List<com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder>
getSupportedExportFormatsBuilderList()8201         getSupportedExportFormatsBuilderList() {
8202       return getSupportedExportFormatsFieldBuilder().getBuilderList();
8203     }
8204 
8205     private com.google.protobuf.RepeatedFieldBuilderV3<
8206             com.google.cloud.aiplatform.v1beta1.Model.ExportFormat,
8207             com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder,
8208             com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>
getSupportedExportFormatsFieldBuilder()8209         getSupportedExportFormatsFieldBuilder() {
8210       if (supportedExportFormatsBuilder_ == null) {
8211         supportedExportFormatsBuilder_ =
8212             new com.google.protobuf.RepeatedFieldBuilderV3<
8213                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat,
8214                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder,
8215                 com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>(
8216                 supportedExportFormats_,
8217                 ((bitField0_ & 0x00000800) != 0),
8218                 getParentForChildren(),
8219                 isClean());
8220         supportedExportFormats_ = null;
8221       }
8222       return supportedExportFormatsBuilder_;
8223     }
8224 
8225     private java.lang.Object trainingPipeline_ = "";
8226     /**
8227      *
8228      *
8229      * <pre>
8230      * Output only. The resource name of the TrainingPipeline that uploaded this
8231      * Model, if any.
8232      * </pre>
8233      *
8234      * <code>
8235      * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
8236      * </code>
8237      *
8238      * @return The trainingPipeline.
8239      */
getTrainingPipeline()8240     public java.lang.String getTrainingPipeline() {
8241       java.lang.Object ref = trainingPipeline_;
8242       if (!(ref instanceof java.lang.String)) {
8243         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
8244         java.lang.String s = bs.toStringUtf8();
8245         trainingPipeline_ = s;
8246         return s;
8247       } else {
8248         return (java.lang.String) ref;
8249       }
8250     }
8251     /**
8252      *
8253      *
8254      * <pre>
8255      * Output only. The resource name of the TrainingPipeline that uploaded this
8256      * Model, if any.
8257      * </pre>
8258      *
8259      * <code>
8260      * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
8261      * </code>
8262      *
8263      * @return The bytes for trainingPipeline.
8264      */
getTrainingPipelineBytes()8265     public com.google.protobuf.ByteString getTrainingPipelineBytes() {
8266       java.lang.Object ref = trainingPipeline_;
8267       if (ref instanceof String) {
8268         com.google.protobuf.ByteString b =
8269             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
8270         trainingPipeline_ = b;
8271         return b;
8272       } else {
8273         return (com.google.protobuf.ByteString) ref;
8274       }
8275     }
8276     /**
8277      *
8278      *
8279      * <pre>
8280      * Output only. The resource name of the TrainingPipeline that uploaded this
8281      * Model, if any.
8282      * </pre>
8283      *
8284      * <code>
8285      * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
8286      * </code>
8287      *
8288      * @param value The trainingPipeline to set.
8289      * @return This builder for chaining.
8290      */
setTrainingPipeline(java.lang.String value)8291     public Builder setTrainingPipeline(java.lang.String value) {
8292       if (value == null) {
8293         throw new NullPointerException();
8294       }
8295       trainingPipeline_ = value;
8296       bitField0_ |= 0x00001000;
8297       onChanged();
8298       return this;
8299     }
8300     /**
8301      *
8302      *
8303      * <pre>
8304      * Output only. The resource name of the TrainingPipeline that uploaded this
8305      * Model, if any.
8306      * </pre>
8307      *
8308      * <code>
8309      * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
8310      * </code>
8311      *
8312      * @return This builder for chaining.
8313      */
clearTrainingPipeline()8314     public Builder clearTrainingPipeline() {
8315       trainingPipeline_ = getDefaultInstance().getTrainingPipeline();
8316       bitField0_ = (bitField0_ & ~0x00001000);
8317       onChanged();
8318       return this;
8319     }
8320     /**
8321      *
8322      *
8323      * <pre>
8324      * Output only. The resource name of the TrainingPipeline that uploaded this
8325      * Model, if any.
8326      * </pre>
8327      *
8328      * <code>
8329      * string training_pipeline = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
8330      * </code>
8331      *
8332      * @param value The bytes for trainingPipeline to set.
8333      * @return This builder for chaining.
8334      */
setTrainingPipelineBytes(com.google.protobuf.ByteString value)8335     public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) {
8336       if (value == null) {
8337         throw new NullPointerException();
8338       }
8339       checkByteStringIsUtf8(value);
8340       trainingPipeline_ = value;
8341       bitField0_ |= 0x00001000;
8342       onChanged();
8343       return this;
8344     }
8345 
8346     private com.google.cloud.aiplatform.v1beta1.ModelContainerSpec containerSpec_;
8347     private com.google.protobuf.SingleFieldBuilderV3<
8348             com.google.cloud.aiplatform.v1beta1.ModelContainerSpec,
8349             com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder,
8350             com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder>
8351         containerSpecBuilder_;
8352     /**
8353      *
8354      *
8355      * <pre>
8356      * Input only. The specification of the container that is to be used when
8357      * deploying this Model. The specification is ingested upon
8358      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8359      * and all binaries it contains are copied and stored internally by Vertex AI.
8360      * Not present for AutoML Models or Large Models.
8361      * </pre>
8362      *
8363      * <code>
8364      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8365      * </code>
8366      *
8367      * @return Whether the containerSpec field is set.
8368      */
hasContainerSpec()8369     public boolean hasContainerSpec() {
8370       return ((bitField0_ & 0x00002000) != 0);
8371     }
8372     /**
8373      *
8374      *
8375      * <pre>
8376      * Input only. The specification of the container that is to be used when
8377      * deploying this Model. The specification is ingested upon
8378      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8379      * and all binaries it contains are copied and stored internally by Vertex AI.
8380      * Not present for AutoML Models or Large Models.
8381      * </pre>
8382      *
8383      * <code>
8384      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8385      * </code>
8386      *
8387      * @return The containerSpec.
8388      */
getContainerSpec()8389     public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec getContainerSpec() {
8390       if (containerSpecBuilder_ == null) {
8391         return containerSpec_ == null
8392             ? com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()
8393             : containerSpec_;
8394       } else {
8395         return containerSpecBuilder_.getMessage();
8396       }
8397     }
8398     /**
8399      *
8400      *
8401      * <pre>
8402      * Input only. The specification of the container that is to be used when
8403      * deploying this Model. The specification is ingested upon
8404      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8405      * and all binaries it contains are copied and stored internally by Vertex AI.
8406      * Not present for AutoML Models or Large Models.
8407      * </pre>
8408      *
8409      * <code>
8410      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8411      * </code>
8412      */
setContainerSpec(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value)8413     public Builder setContainerSpec(com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value) {
8414       if (containerSpecBuilder_ == null) {
8415         if (value == null) {
8416           throw new NullPointerException();
8417         }
8418         containerSpec_ = value;
8419       } else {
8420         containerSpecBuilder_.setMessage(value);
8421       }
8422       bitField0_ |= 0x00002000;
8423       onChanged();
8424       return this;
8425     }
8426     /**
8427      *
8428      *
8429      * <pre>
8430      * Input only. The specification of the container that is to be used when
8431      * deploying this Model. The specification is ingested upon
8432      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8433      * and all binaries it contains are copied and stored internally by Vertex AI.
8434      * Not present for AutoML Models or Large Models.
8435      * </pre>
8436      *
8437      * <code>
8438      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8439      * </code>
8440      */
setContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder builderForValue)8441     public Builder setContainerSpec(
8442         com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder builderForValue) {
8443       if (containerSpecBuilder_ == null) {
8444         containerSpec_ = builderForValue.build();
8445       } else {
8446         containerSpecBuilder_.setMessage(builderForValue.build());
8447       }
8448       bitField0_ |= 0x00002000;
8449       onChanged();
8450       return this;
8451     }
8452     /**
8453      *
8454      *
8455      * <pre>
8456      * Input only. The specification of the container that is to be used when
8457      * deploying this Model. The specification is ingested upon
8458      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8459      * and all binaries it contains are copied and stored internally by Vertex AI.
8460      * Not present for AutoML Models or Large Models.
8461      * </pre>
8462      *
8463      * <code>
8464      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8465      * </code>
8466      */
mergeContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value)8467     public Builder mergeContainerSpec(
8468         com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value) {
8469       if (containerSpecBuilder_ == null) {
8470         if (((bitField0_ & 0x00002000) != 0)
8471             && containerSpec_ != null
8472             && containerSpec_
8473                 != com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()) {
8474           getContainerSpecBuilder().mergeFrom(value);
8475         } else {
8476           containerSpec_ = value;
8477         }
8478       } else {
8479         containerSpecBuilder_.mergeFrom(value);
8480       }
8481       bitField0_ |= 0x00002000;
8482       onChanged();
8483       return this;
8484     }
8485     /**
8486      *
8487      *
8488      * <pre>
8489      * Input only. The specification of the container that is to be used when
8490      * deploying this Model. The specification is ingested upon
8491      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8492      * and all binaries it contains are copied and stored internally by Vertex AI.
8493      * Not present for AutoML Models or Large Models.
8494      * </pre>
8495      *
8496      * <code>
8497      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8498      * </code>
8499      */
clearContainerSpec()8500     public Builder clearContainerSpec() {
8501       bitField0_ = (bitField0_ & ~0x00002000);
8502       containerSpec_ = null;
8503       if (containerSpecBuilder_ != null) {
8504         containerSpecBuilder_.dispose();
8505         containerSpecBuilder_ = null;
8506       }
8507       onChanged();
8508       return this;
8509     }
8510     /**
8511      *
8512      *
8513      * <pre>
8514      * Input only. The specification of the container that is to be used when
8515      * deploying this Model. The specification is ingested upon
8516      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8517      * and all binaries it contains are copied and stored internally by Vertex AI.
8518      * Not present for AutoML Models or Large Models.
8519      * </pre>
8520      *
8521      * <code>
8522      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8523      * </code>
8524      */
8525     public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder
getContainerSpecBuilder()8526         getContainerSpecBuilder() {
8527       bitField0_ |= 0x00002000;
8528       onChanged();
8529       return getContainerSpecFieldBuilder().getBuilder();
8530     }
8531     /**
8532      *
8533      *
8534      * <pre>
8535      * Input only. The specification of the container that is to be used when
8536      * deploying this Model. The specification is ingested upon
8537      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8538      * and all binaries it contains are copied and stored internally by Vertex AI.
8539      * Not present for AutoML Models or Large Models.
8540      * </pre>
8541      *
8542      * <code>
8543      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8544      * </code>
8545      */
8546     public com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder
getContainerSpecOrBuilder()8547         getContainerSpecOrBuilder() {
8548       if (containerSpecBuilder_ != null) {
8549         return containerSpecBuilder_.getMessageOrBuilder();
8550       } else {
8551         return containerSpec_ == null
8552             ? com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()
8553             : containerSpec_;
8554       }
8555     }
8556     /**
8557      *
8558      *
8559      * <pre>
8560      * Input only. The specification of the container that is to be used when
8561      * deploying this Model. The specification is ingested upon
8562      * [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel],
8563      * and all binaries it contains are copied and stored internally by Vertex AI.
8564      * Not present for AutoML Models or Large Models.
8565      * </pre>
8566      *
8567      * <code>
8568      * .google.cloud.aiplatform.v1beta1.ModelContainerSpec container_spec = 9 [(.google.api.field_behavior) = INPUT_ONLY];
8569      * </code>
8570      */
8571     private com.google.protobuf.SingleFieldBuilderV3<
8572             com.google.cloud.aiplatform.v1beta1.ModelContainerSpec,
8573             com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder,
8574             com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder>
getContainerSpecFieldBuilder()8575         getContainerSpecFieldBuilder() {
8576       if (containerSpecBuilder_ == null) {
8577         containerSpecBuilder_ =
8578             new com.google.protobuf.SingleFieldBuilderV3<
8579                 com.google.cloud.aiplatform.v1beta1.ModelContainerSpec,
8580                 com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder,
8581                 com.google.cloud.aiplatform.v1beta1.ModelContainerSpecOrBuilder>(
8582                 getContainerSpec(), getParentForChildren(), isClean());
8583         containerSpec_ = null;
8584       }
8585       return containerSpecBuilder_;
8586     }
8587 
8588     private java.lang.Object artifactUri_ = "";
8589     /**
8590      *
8591      *
8592      * <pre>
8593      * Immutable. The path to the directory containing the Model artifact and any
8594      * of its supporting files. Not present for AutoML Models or Large Models.
8595      * </pre>
8596      *
8597      * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
8598      *
8599      * @return The artifactUri.
8600      */
getArtifactUri()8601     public java.lang.String getArtifactUri() {
8602       java.lang.Object ref = artifactUri_;
8603       if (!(ref instanceof java.lang.String)) {
8604         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
8605         java.lang.String s = bs.toStringUtf8();
8606         artifactUri_ = s;
8607         return s;
8608       } else {
8609         return (java.lang.String) ref;
8610       }
8611     }
8612     /**
8613      *
8614      *
8615      * <pre>
8616      * Immutable. The path to the directory containing the Model artifact and any
8617      * of its supporting files. Not present for AutoML Models or Large Models.
8618      * </pre>
8619      *
8620      * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
8621      *
8622      * @return The bytes for artifactUri.
8623      */
getArtifactUriBytes()8624     public com.google.protobuf.ByteString getArtifactUriBytes() {
8625       java.lang.Object ref = artifactUri_;
8626       if (ref instanceof String) {
8627         com.google.protobuf.ByteString b =
8628             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
8629         artifactUri_ = b;
8630         return b;
8631       } else {
8632         return (com.google.protobuf.ByteString) ref;
8633       }
8634     }
8635     /**
8636      *
8637      *
8638      * <pre>
8639      * Immutable. The path to the directory containing the Model artifact and any
8640      * of its supporting files. Not present for AutoML Models or Large Models.
8641      * </pre>
8642      *
8643      * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
8644      *
8645      * @param value The artifactUri to set.
8646      * @return This builder for chaining.
8647      */
setArtifactUri(java.lang.String value)8648     public Builder setArtifactUri(java.lang.String value) {
8649       if (value == null) {
8650         throw new NullPointerException();
8651       }
8652       artifactUri_ = value;
8653       bitField0_ |= 0x00004000;
8654       onChanged();
8655       return this;
8656     }
8657     /**
8658      *
8659      *
8660      * <pre>
8661      * Immutable. The path to the directory containing the Model artifact and any
8662      * of its supporting files. Not present for AutoML Models or Large Models.
8663      * </pre>
8664      *
8665      * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
8666      *
8667      * @return This builder for chaining.
8668      */
clearArtifactUri()8669     public Builder clearArtifactUri() {
8670       artifactUri_ = getDefaultInstance().getArtifactUri();
8671       bitField0_ = (bitField0_ & ~0x00004000);
8672       onChanged();
8673       return this;
8674     }
8675     /**
8676      *
8677      *
8678      * <pre>
8679      * Immutable. The path to the directory containing the Model artifact and any
8680      * of its supporting files. Not present for AutoML Models or Large Models.
8681      * </pre>
8682      *
8683      * <code>string artifact_uri = 26 [(.google.api.field_behavior) = IMMUTABLE];</code>
8684      *
8685      * @param value The bytes for artifactUri to set.
8686      * @return This builder for chaining.
8687      */
setArtifactUriBytes(com.google.protobuf.ByteString value)8688     public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) {
8689       if (value == null) {
8690         throw new NullPointerException();
8691       }
8692       checkByteStringIsUtf8(value);
8693       artifactUri_ = value;
8694       bitField0_ |= 0x00004000;
8695       onChanged();
8696       return this;
8697     }
8698 
8699     private java.util.List<java.lang.Integer> supportedDeploymentResourcesTypes_ =
8700         java.util.Collections.emptyList();
8701 
ensureSupportedDeploymentResourcesTypesIsMutable()8702     private void ensureSupportedDeploymentResourcesTypesIsMutable() {
8703       if (!((bitField0_ & 0x00008000) != 0)) {
8704         supportedDeploymentResourcesTypes_ =
8705             new java.util.ArrayList<java.lang.Integer>(supportedDeploymentResourcesTypes_);
8706         bitField0_ |= 0x00008000;
8707       }
8708     }
8709     /**
8710      *
8711      *
8712      * <pre>
8713      * Output only. When this Model is deployed, its prediction resources are
8714      * described by the `prediction_resources` field of the
8715      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8716      * object. Because not all Models support all resource configuration types,
8717      * the configuration types this Model supports are listed here. If no
8718      * configuration types are listed, the Model cannot be deployed to an
8719      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8720      * online predictions
8721      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8722      * or
8723      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8724      * Such a Model can serve predictions by using a
8725      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8726      * if it has at least one entry each in
8727      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8728      * and
8729      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8730      * </pre>
8731      *
8732      * <code>
8733      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8734      * </code>
8735      *
8736      * @return A list containing the supportedDeploymentResourcesTypes.
8737      */
8738     public java.util.List<com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>
getSupportedDeploymentResourcesTypesList()8739         getSupportedDeploymentResourcesTypesList() {
8740       return new com.google.protobuf.Internal.ListAdapter<
8741           java.lang.Integer, com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>(
8742           supportedDeploymentResourcesTypes_, supportedDeploymentResourcesTypes_converter_);
8743     }
8744     /**
8745      *
8746      *
8747      * <pre>
8748      * Output only. When this Model is deployed, its prediction resources are
8749      * described by the `prediction_resources` field of the
8750      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8751      * object. Because not all Models support all resource configuration types,
8752      * the configuration types this Model supports are listed here. If no
8753      * configuration types are listed, the Model cannot be deployed to an
8754      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8755      * online predictions
8756      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8757      * or
8758      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8759      * Such a Model can serve predictions by using a
8760      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8761      * if it has at least one entry each in
8762      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8763      * and
8764      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8765      * </pre>
8766      *
8767      * <code>
8768      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8769      * </code>
8770      *
8771      * @return The count of supportedDeploymentResourcesTypes.
8772      */
getSupportedDeploymentResourcesTypesCount()8773     public int getSupportedDeploymentResourcesTypesCount() {
8774       return supportedDeploymentResourcesTypes_.size();
8775     }
8776     /**
8777      *
8778      *
8779      * <pre>
8780      * Output only. When this Model is deployed, its prediction resources are
8781      * described by the `prediction_resources` field of the
8782      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8783      * object. Because not all Models support all resource configuration types,
8784      * the configuration types this Model supports are listed here. If no
8785      * configuration types are listed, the Model cannot be deployed to an
8786      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8787      * online predictions
8788      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8789      * or
8790      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8791      * Such a Model can serve predictions by using a
8792      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8793      * if it has at least one entry each in
8794      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8795      * and
8796      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8797      * </pre>
8798      *
8799      * <code>
8800      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8801      * </code>
8802      *
8803      * @param index The index of the element to return.
8804      * @return The supportedDeploymentResourcesTypes at the given index.
8805      */
8806     public com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType
getSupportedDeploymentResourcesTypes(int index)8807         getSupportedDeploymentResourcesTypes(int index) {
8808       return supportedDeploymentResourcesTypes_converter_.convert(
8809           supportedDeploymentResourcesTypes_.get(index));
8810     }
8811     /**
8812      *
8813      *
8814      * <pre>
8815      * Output only. When this Model is deployed, its prediction resources are
8816      * described by the `prediction_resources` field of the
8817      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8818      * object. Because not all Models support all resource configuration types,
8819      * the configuration types this Model supports are listed here. If no
8820      * configuration types are listed, the Model cannot be deployed to an
8821      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8822      * online predictions
8823      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8824      * or
8825      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8826      * Such a Model can serve predictions by using a
8827      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8828      * if it has at least one entry each in
8829      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8830      * and
8831      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8832      * </pre>
8833      *
8834      * <code>
8835      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8836      * </code>
8837      *
8838      * @param index The index to set the value at.
8839      * @param value The supportedDeploymentResourcesTypes to set.
8840      * @return This builder for chaining.
8841      */
setSupportedDeploymentResourcesTypes( int index, com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType value)8842     public Builder setSupportedDeploymentResourcesTypes(
8843         int index, com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType value) {
8844       if (value == null) {
8845         throw new NullPointerException();
8846       }
8847       ensureSupportedDeploymentResourcesTypesIsMutable();
8848       supportedDeploymentResourcesTypes_.set(index, value.getNumber());
8849       onChanged();
8850       return this;
8851     }
8852     /**
8853      *
8854      *
8855      * <pre>
8856      * Output only. When this Model is deployed, its prediction resources are
8857      * described by the `prediction_resources` field of the
8858      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8859      * object. Because not all Models support all resource configuration types,
8860      * the configuration types this Model supports are listed here. If no
8861      * configuration types are listed, the Model cannot be deployed to an
8862      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8863      * online predictions
8864      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8865      * or
8866      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8867      * Such a Model can serve predictions by using a
8868      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8869      * if it has at least one entry each in
8870      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8871      * and
8872      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8873      * </pre>
8874      *
8875      * <code>
8876      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8877      * </code>
8878      *
8879      * @param value The supportedDeploymentResourcesTypes to add.
8880      * @return This builder for chaining.
8881      */
addSupportedDeploymentResourcesTypes( com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType value)8882     public Builder addSupportedDeploymentResourcesTypes(
8883         com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType value) {
8884       if (value == null) {
8885         throw new NullPointerException();
8886       }
8887       ensureSupportedDeploymentResourcesTypesIsMutable();
8888       supportedDeploymentResourcesTypes_.add(value.getNumber());
8889       onChanged();
8890       return this;
8891     }
8892     /**
8893      *
8894      *
8895      * <pre>
8896      * Output only. When this Model is deployed, its prediction resources are
8897      * described by the `prediction_resources` field of the
8898      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8899      * object. Because not all Models support all resource configuration types,
8900      * the configuration types this Model supports are listed here. If no
8901      * configuration types are listed, the Model cannot be deployed to an
8902      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8903      * online predictions
8904      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8905      * or
8906      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8907      * Such a Model can serve predictions by using a
8908      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8909      * if it has at least one entry each in
8910      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8911      * and
8912      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8913      * </pre>
8914      *
8915      * <code>
8916      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8917      * </code>
8918      *
8919      * @param values The supportedDeploymentResourcesTypes to add.
8920      * @return This builder for chaining.
8921      */
addAllSupportedDeploymentResourcesTypes( java.lang.Iterable< ? extends com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType> values)8922     public Builder addAllSupportedDeploymentResourcesTypes(
8923         java.lang.Iterable<
8924                 ? extends com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType>
8925             values) {
8926       ensureSupportedDeploymentResourcesTypesIsMutable();
8927       for (com.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType value : values) {
8928         supportedDeploymentResourcesTypes_.add(value.getNumber());
8929       }
8930       onChanged();
8931       return this;
8932     }
8933     /**
8934      *
8935      *
8936      * <pre>
8937      * Output only. When this Model is deployed, its prediction resources are
8938      * described by the `prediction_resources` field of the
8939      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8940      * object. Because not all Models support all resource configuration types,
8941      * the configuration types this Model supports are listed here. If no
8942      * configuration types are listed, the Model cannot be deployed to an
8943      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8944      * online predictions
8945      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8946      * or
8947      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8948      * Such a Model can serve predictions by using a
8949      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8950      * if it has at least one entry each in
8951      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8952      * and
8953      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8954      * </pre>
8955      *
8956      * <code>
8957      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8958      * </code>
8959      *
8960      * @return This builder for chaining.
8961      */
clearSupportedDeploymentResourcesTypes()8962     public Builder clearSupportedDeploymentResourcesTypes() {
8963       supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList();
8964       bitField0_ = (bitField0_ & ~0x00008000);
8965       onChanged();
8966       return this;
8967     }
8968     /**
8969      *
8970      *
8971      * <pre>
8972      * Output only. When this Model is deployed, its prediction resources are
8973      * described by the `prediction_resources` field of the
8974      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
8975      * object. Because not all Models support all resource configuration types,
8976      * the configuration types this Model supports are listed here. If no
8977      * configuration types are listed, the Model cannot be deployed to an
8978      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
8979      * online predictions
8980      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
8981      * or
8982      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
8983      * Such a Model can serve predictions by using a
8984      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
8985      * if it has at least one entry each in
8986      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
8987      * and
8988      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
8989      * </pre>
8990      *
8991      * <code>
8992      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
8993      * </code>
8994      *
8995      * @return A list containing the enum numeric values on the wire for
8996      *     supportedDeploymentResourcesTypes.
8997      */
getSupportedDeploymentResourcesTypesValueList()8998     public java.util.List<java.lang.Integer> getSupportedDeploymentResourcesTypesValueList() {
8999       return java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_);
9000     }
9001     /**
9002      *
9003      *
9004      * <pre>
9005      * Output only. When this Model is deployed, its prediction resources are
9006      * described by the `prediction_resources` field of the
9007      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
9008      * object. Because not all Models support all resource configuration types,
9009      * the configuration types this Model supports are listed here. If no
9010      * configuration types are listed, the Model cannot be deployed to an
9011      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
9012      * online predictions
9013      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9014      * or
9015      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
9016      * Such a Model can serve predictions by using a
9017      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
9018      * if it has at least one entry each in
9019      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
9020      * and
9021      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
9022      * </pre>
9023      *
9024      * <code>
9025      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
9026      * </code>
9027      *
9028      * @param index The index of the value to return.
9029      * @return The enum numeric value on the wire of supportedDeploymentResourcesTypes at the given
9030      *     index.
9031      */
getSupportedDeploymentResourcesTypesValue(int index)9032     public int getSupportedDeploymentResourcesTypesValue(int index) {
9033       return supportedDeploymentResourcesTypes_.get(index);
9034     }
9035     /**
9036      *
9037      *
9038      * <pre>
9039      * Output only. When this Model is deployed, its prediction resources are
9040      * described by the `prediction_resources` field of the
9041      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
9042      * object. Because not all Models support all resource configuration types,
9043      * the configuration types this Model supports are listed here. If no
9044      * configuration types are listed, the Model cannot be deployed to an
9045      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
9046      * online predictions
9047      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9048      * or
9049      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
9050      * Such a Model can serve predictions by using a
9051      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
9052      * if it has at least one entry each in
9053      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
9054      * and
9055      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
9056      * </pre>
9057      *
9058      * <code>
9059      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
9060      * </code>
9061      *
9062      * @param index The index to set the value at.
9063      * @param value The enum numeric value on the wire for supportedDeploymentResourcesTypes to set.
9064      * @return This builder for chaining.
9065      */
setSupportedDeploymentResourcesTypesValue(int index, int value)9066     public Builder setSupportedDeploymentResourcesTypesValue(int index, int value) {
9067       ensureSupportedDeploymentResourcesTypesIsMutable();
9068       supportedDeploymentResourcesTypes_.set(index, value);
9069       onChanged();
9070       return this;
9071     }
9072     /**
9073      *
9074      *
9075      * <pre>
9076      * Output only. When this Model is deployed, its prediction resources are
9077      * described by the `prediction_resources` field of the
9078      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
9079      * object. Because not all Models support all resource configuration types,
9080      * the configuration types this Model supports are listed here. If no
9081      * configuration types are listed, the Model cannot be deployed to an
9082      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
9083      * online predictions
9084      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9085      * or
9086      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
9087      * Such a Model can serve predictions by using a
9088      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
9089      * if it has at least one entry each in
9090      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
9091      * and
9092      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
9093      * </pre>
9094      *
9095      * <code>
9096      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
9097      * </code>
9098      *
9099      * @param value The enum numeric value on the wire for supportedDeploymentResourcesTypes to add.
9100      * @return This builder for chaining.
9101      */
addSupportedDeploymentResourcesTypesValue(int value)9102     public Builder addSupportedDeploymentResourcesTypesValue(int value) {
9103       ensureSupportedDeploymentResourcesTypesIsMutable();
9104       supportedDeploymentResourcesTypes_.add(value);
9105       onChanged();
9106       return this;
9107     }
9108     /**
9109      *
9110      *
9111      * <pre>
9112      * Output only. When this Model is deployed, its prediction resources are
9113      * described by the `prediction_resources` field of the
9114      * [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models]
9115      * object. Because not all Models support all resource configuration types,
9116      * the configuration types this Model supports are listed here. If no
9117      * configuration types are listed, the Model cannot be deployed to an
9118      * [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support
9119      * online predictions
9120      * ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9121      * or
9122      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]).
9123      * Such a Model can serve predictions by using a
9124      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob],
9125      * if it has at least one entry each in
9126      * [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats]
9127      * and
9128      * [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats].
9129      * </pre>
9130      *
9131      * <code>
9132      * repeated .google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType supported_deployment_resources_types = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
9133      * </code>
9134      *
9135      * @param values The enum numeric values on the wire for supportedDeploymentResourcesTypes to
9136      *     add.
9137      * @return This builder for chaining.
9138      */
addAllSupportedDeploymentResourcesTypesValue( java.lang.Iterable<java.lang.Integer> values)9139     public Builder addAllSupportedDeploymentResourcesTypesValue(
9140         java.lang.Iterable<java.lang.Integer> values) {
9141       ensureSupportedDeploymentResourcesTypesIsMutable();
9142       for (int value : values) {
9143         supportedDeploymentResourcesTypes_.add(value);
9144       }
9145       onChanged();
9146       return this;
9147     }
9148 
9149     private com.google.protobuf.LazyStringList supportedInputStorageFormats_ =
9150         com.google.protobuf.LazyStringArrayList.EMPTY;
9151 
ensureSupportedInputStorageFormatsIsMutable()9152     private void ensureSupportedInputStorageFormatsIsMutable() {
9153       if (!((bitField0_ & 0x00010000) != 0)) {
9154         supportedInputStorageFormats_ =
9155             new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_);
9156         bitField0_ |= 0x00010000;
9157       }
9158     }
9159     /**
9160      *
9161      *
9162      * <pre>
9163      * Output only. The formats this Model supports in
9164      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9165      * If
9166      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9167      * exists, the instances should be given as per that schema.
9168      * The possible formats are:
9169      * * `jsonl`
9170      * The JSON Lines format, where each instance is a single line. Uses
9171      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9172      * * `csv`
9173      * The CSV format, where each instance is a single comma-separated line.
9174      * The first line in the file is the header, containing comma-separated field
9175      * names. Uses
9176      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9177      * * `tf-record`
9178      * The TFRecord format, where each instance is a single record in tfrecord
9179      * syntax. Uses
9180      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9181      * * `tf-record-gzip`
9182      * Similar to `tf-record`, but the file is gzipped. Uses
9183      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9184      * * `bigquery`
9185      * Each instance is a single row in BigQuery. Uses
9186      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9187      * * `file-list`
9188      * Each line of the file is the location of an instance to process, uses
9189      * `gcs_source` field of the
9190      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9191      * object.
9192      * If this Model doesn't support any of these formats it means it cannot be
9193      * used with a
9194      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9195      * However, if it has
9196      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9197      * it could serve online predictions by using
9198      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9199      * or
9200      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9201      * </pre>
9202      *
9203      * <code>
9204      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9205      * </code>
9206      *
9207      * @return A list containing the supportedInputStorageFormats.
9208      */
getSupportedInputStorageFormatsList()9209     public com.google.protobuf.ProtocolStringList getSupportedInputStorageFormatsList() {
9210       return supportedInputStorageFormats_.getUnmodifiableView();
9211     }
9212     /**
9213      *
9214      *
9215      * <pre>
9216      * Output only. The formats this Model supports in
9217      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9218      * If
9219      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9220      * exists, the instances should be given as per that schema.
9221      * The possible formats are:
9222      * * `jsonl`
9223      * The JSON Lines format, where each instance is a single line. Uses
9224      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9225      * * `csv`
9226      * The CSV format, where each instance is a single comma-separated line.
9227      * The first line in the file is the header, containing comma-separated field
9228      * names. Uses
9229      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9230      * * `tf-record`
9231      * The TFRecord format, where each instance is a single record in tfrecord
9232      * syntax. Uses
9233      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9234      * * `tf-record-gzip`
9235      * Similar to `tf-record`, but the file is gzipped. Uses
9236      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9237      * * `bigquery`
9238      * Each instance is a single row in BigQuery. Uses
9239      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9240      * * `file-list`
9241      * Each line of the file is the location of an instance to process, uses
9242      * `gcs_source` field of the
9243      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9244      * object.
9245      * If this Model doesn't support any of these formats it means it cannot be
9246      * used with a
9247      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9248      * However, if it has
9249      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9250      * it could serve online predictions by using
9251      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9252      * or
9253      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9254      * </pre>
9255      *
9256      * <code>
9257      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9258      * </code>
9259      *
9260      * @return The count of supportedInputStorageFormats.
9261      */
getSupportedInputStorageFormatsCount()9262     public int getSupportedInputStorageFormatsCount() {
9263       return supportedInputStorageFormats_.size();
9264     }
9265     /**
9266      *
9267      *
9268      * <pre>
9269      * Output only. The formats this Model supports in
9270      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9271      * If
9272      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9273      * exists, the instances should be given as per that schema.
9274      * The possible formats are:
9275      * * `jsonl`
9276      * The JSON Lines format, where each instance is a single line. Uses
9277      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9278      * * `csv`
9279      * The CSV format, where each instance is a single comma-separated line.
9280      * The first line in the file is the header, containing comma-separated field
9281      * names. Uses
9282      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9283      * * `tf-record`
9284      * The TFRecord format, where each instance is a single record in tfrecord
9285      * syntax. Uses
9286      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9287      * * `tf-record-gzip`
9288      * Similar to `tf-record`, but the file is gzipped. Uses
9289      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9290      * * `bigquery`
9291      * Each instance is a single row in BigQuery. Uses
9292      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9293      * * `file-list`
9294      * Each line of the file is the location of an instance to process, uses
9295      * `gcs_source` field of the
9296      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9297      * object.
9298      * If this Model doesn't support any of these formats it means it cannot be
9299      * used with a
9300      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9301      * However, if it has
9302      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9303      * it could serve online predictions by using
9304      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9305      * or
9306      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9307      * </pre>
9308      *
9309      * <code>
9310      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9311      * </code>
9312      *
9313      * @param index The index of the element to return.
9314      * @return The supportedInputStorageFormats at the given index.
9315      */
getSupportedInputStorageFormats(int index)9316     public java.lang.String getSupportedInputStorageFormats(int index) {
9317       return supportedInputStorageFormats_.get(index);
9318     }
9319     /**
9320      *
9321      *
9322      * <pre>
9323      * Output only. The formats this Model supports in
9324      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9325      * If
9326      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9327      * exists, the instances should be given as per that schema.
9328      * The possible formats are:
9329      * * `jsonl`
9330      * The JSON Lines format, where each instance is a single line. Uses
9331      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9332      * * `csv`
9333      * The CSV format, where each instance is a single comma-separated line.
9334      * The first line in the file is the header, containing comma-separated field
9335      * names. Uses
9336      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9337      * * `tf-record`
9338      * The TFRecord format, where each instance is a single record in tfrecord
9339      * syntax. Uses
9340      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9341      * * `tf-record-gzip`
9342      * Similar to `tf-record`, but the file is gzipped. Uses
9343      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9344      * * `bigquery`
9345      * Each instance is a single row in BigQuery. Uses
9346      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9347      * * `file-list`
9348      * Each line of the file is the location of an instance to process, uses
9349      * `gcs_source` field of the
9350      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9351      * object.
9352      * If this Model doesn't support any of these formats it means it cannot be
9353      * used with a
9354      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9355      * However, if it has
9356      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9357      * it could serve online predictions by using
9358      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9359      * or
9360      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9361      * </pre>
9362      *
9363      * <code>
9364      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9365      * </code>
9366      *
9367      * @param index The index of the value to return.
9368      * @return The bytes of the supportedInputStorageFormats at the given index.
9369      */
getSupportedInputStorageFormatsBytes(int index)9370     public com.google.protobuf.ByteString getSupportedInputStorageFormatsBytes(int index) {
9371       return supportedInputStorageFormats_.getByteString(index);
9372     }
9373     /**
9374      *
9375      *
9376      * <pre>
9377      * Output only. The formats this Model supports in
9378      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9379      * If
9380      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9381      * exists, the instances should be given as per that schema.
9382      * The possible formats are:
9383      * * `jsonl`
9384      * The JSON Lines format, where each instance is a single line. Uses
9385      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9386      * * `csv`
9387      * The CSV format, where each instance is a single comma-separated line.
9388      * The first line in the file is the header, containing comma-separated field
9389      * names. Uses
9390      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9391      * * `tf-record`
9392      * The TFRecord format, where each instance is a single record in tfrecord
9393      * syntax. Uses
9394      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9395      * * `tf-record-gzip`
9396      * Similar to `tf-record`, but the file is gzipped. Uses
9397      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9398      * * `bigquery`
9399      * Each instance is a single row in BigQuery. Uses
9400      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9401      * * `file-list`
9402      * Each line of the file is the location of an instance to process, uses
9403      * `gcs_source` field of the
9404      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9405      * object.
9406      * If this Model doesn't support any of these formats it means it cannot be
9407      * used with a
9408      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9409      * However, if it has
9410      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9411      * it could serve online predictions by using
9412      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9413      * or
9414      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9415      * </pre>
9416      *
9417      * <code>
9418      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9419      * </code>
9420      *
9421      * @param index The index to set the value at.
9422      * @param value The supportedInputStorageFormats to set.
9423      * @return This builder for chaining.
9424      */
setSupportedInputStorageFormats(int index, java.lang.String value)9425     public Builder setSupportedInputStorageFormats(int index, java.lang.String value) {
9426       if (value == null) {
9427         throw new NullPointerException();
9428       }
9429       ensureSupportedInputStorageFormatsIsMutable();
9430       supportedInputStorageFormats_.set(index, value);
9431       onChanged();
9432       return this;
9433     }
9434     /**
9435      *
9436      *
9437      * <pre>
9438      * Output only. The formats this Model supports in
9439      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9440      * If
9441      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9442      * exists, the instances should be given as per that schema.
9443      * The possible formats are:
9444      * * `jsonl`
9445      * The JSON Lines format, where each instance is a single line. Uses
9446      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9447      * * `csv`
9448      * The CSV format, where each instance is a single comma-separated line.
9449      * The first line in the file is the header, containing comma-separated field
9450      * names. Uses
9451      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9452      * * `tf-record`
9453      * The TFRecord format, where each instance is a single record in tfrecord
9454      * syntax. Uses
9455      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9456      * * `tf-record-gzip`
9457      * Similar to `tf-record`, but the file is gzipped. Uses
9458      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9459      * * `bigquery`
9460      * Each instance is a single row in BigQuery. Uses
9461      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9462      * * `file-list`
9463      * Each line of the file is the location of an instance to process, uses
9464      * `gcs_source` field of the
9465      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9466      * object.
9467      * If this Model doesn't support any of these formats it means it cannot be
9468      * used with a
9469      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9470      * However, if it has
9471      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9472      * it could serve online predictions by using
9473      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9474      * or
9475      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9476      * </pre>
9477      *
9478      * <code>
9479      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9480      * </code>
9481      *
9482      * @param value The supportedInputStorageFormats to add.
9483      * @return This builder for chaining.
9484      */
addSupportedInputStorageFormats(java.lang.String value)9485     public Builder addSupportedInputStorageFormats(java.lang.String value) {
9486       if (value == null) {
9487         throw new NullPointerException();
9488       }
9489       ensureSupportedInputStorageFormatsIsMutable();
9490       supportedInputStorageFormats_.add(value);
9491       onChanged();
9492       return this;
9493     }
9494     /**
9495      *
9496      *
9497      * <pre>
9498      * Output only. The formats this Model supports in
9499      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9500      * If
9501      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9502      * exists, the instances should be given as per that schema.
9503      * The possible formats are:
9504      * * `jsonl`
9505      * The JSON Lines format, where each instance is a single line. Uses
9506      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9507      * * `csv`
9508      * The CSV format, where each instance is a single comma-separated line.
9509      * The first line in the file is the header, containing comma-separated field
9510      * names. Uses
9511      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9512      * * `tf-record`
9513      * The TFRecord format, where each instance is a single record in tfrecord
9514      * syntax. Uses
9515      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9516      * * `tf-record-gzip`
9517      * Similar to `tf-record`, but the file is gzipped. Uses
9518      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9519      * * `bigquery`
9520      * Each instance is a single row in BigQuery. Uses
9521      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9522      * * `file-list`
9523      * Each line of the file is the location of an instance to process, uses
9524      * `gcs_source` field of the
9525      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9526      * object.
9527      * If this Model doesn't support any of these formats it means it cannot be
9528      * used with a
9529      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9530      * However, if it has
9531      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9532      * it could serve online predictions by using
9533      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9534      * or
9535      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9536      * </pre>
9537      *
9538      * <code>
9539      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9540      * </code>
9541      *
9542      * @param values The supportedInputStorageFormats to add.
9543      * @return This builder for chaining.
9544      */
addAllSupportedInputStorageFormats(java.lang.Iterable<java.lang.String> values)9545     public Builder addAllSupportedInputStorageFormats(java.lang.Iterable<java.lang.String> values) {
9546       ensureSupportedInputStorageFormatsIsMutable();
9547       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedInputStorageFormats_);
9548       onChanged();
9549       return this;
9550     }
9551     /**
9552      *
9553      *
9554      * <pre>
9555      * Output only. The formats this Model supports in
9556      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9557      * If
9558      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9559      * exists, the instances should be given as per that schema.
9560      * The possible formats are:
9561      * * `jsonl`
9562      * The JSON Lines format, where each instance is a single line. Uses
9563      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9564      * * `csv`
9565      * The CSV format, where each instance is a single comma-separated line.
9566      * The first line in the file is the header, containing comma-separated field
9567      * names. Uses
9568      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9569      * * `tf-record`
9570      * The TFRecord format, where each instance is a single record in tfrecord
9571      * syntax. Uses
9572      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9573      * * `tf-record-gzip`
9574      * Similar to `tf-record`, but the file is gzipped. Uses
9575      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9576      * * `bigquery`
9577      * Each instance is a single row in BigQuery. Uses
9578      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9579      * * `file-list`
9580      * Each line of the file is the location of an instance to process, uses
9581      * `gcs_source` field of the
9582      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9583      * object.
9584      * If this Model doesn't support any of these formats it means it cannot be
9585      * used with a
9586      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9587      * However, if it has
9588      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9589      * it could serve online predictions by using
9590      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9591      * or
9592      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9593      * </pre>
9594      *
9595      * <code>
9596      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9597      * </code>
9598      *
9599      * @return This builder for chaining.
9600      */
clearSupportedInputStorageFormats()9601     public Builder clearSupportedInputStorageFormats() {
9602       supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
9603       bitField0_ = (bitField0_ & ~0x00010000);
9604       onChanged();
9605       return this;
9606     }
9607     /**
9608      *
9609      *
9610      * <pre>
9611      * Output only. The formats this Model supports in
9612      * [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config].
9613      * If
9614      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9615      * exists, the instances should be given as per that schema.
9616      * The possible formats are:
9617      * * `jsonl`
9618      * The JSON Lines format, where each instance is a single line. Uses
9619      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9620      * * `csv`
9621      * The CSV format, where each instance is a single comma-separated line.
9622      * The first line in the file is the header, containing comma-separated field
9623      * names. Uses
9624      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9625      * * `tf-record`
9626      * The TFRecord format, where each instance is a single record in tfrecord
9627      * syntax. Uses
9628      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9629      * * `tf-record-gzip`
9630      * Similar to `tf-record`, but the file is gzipped. Uses
9631      * [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source].
9632      * * `bigquery`
9633      * Each instance is a single row in BigQuery. Uses
9634      * [BigQuerySource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.bigquery_source].
9635      * * `file-list`
9636      * Each line of the file is the location of an instance to process, uses
9637      * `gcs_source` field of the
9638      * [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig]
9639      * object.
9640      * If this Model doesn't support any of these formats it means it cannot be
9641      * used with a
9642      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9643      * However, if it has
9644      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9645      * it could serve online predictions by using
9646      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9647      * or
9648      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9649      * </pre>
9650      *
9651      * <code>
9652      * repeated string supported_input_storage_formats = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
9653      * </code>
9654      *
9655      * @param value The bytes of the supportedInputStorageFormats to add.
9656      * @return This builder for chaining.
9657      */
addSupportedInputStorageFormatsBytes(com.google.protobuf.ByteString value)9658     public Builder addSupportedInputStorageFormatsBytes(com.google.protobuf.ByteString value) {
9659       if (value == null) {
9660         throw new NullPointerException();
9661       }
9662       checkByteStringIsUtf8(value);
9663       ensureSupportedInputStorageFormatsIsMutable();
9664       supportedInputStorageFormats_.add(value);
9665       onChanged();
9666       return this;
9667     }
9668 
9669     private com.google.protobuf.LazyStringList supportedOutputStorageFormats_ =
9670         com.google.protobuf.LazyStringArrayList.EMPTY;
9671 
ensureSupportedOutputStorageFormatsIsMutable()9672     private void ensureSupportedOutputStorageFormatsIsMutable() {
9673       if (!((bitField0_ & 0x00020000) != 0)) {
9674         supportedOutputStorageFormats_ =
9675             new com.google.protobuf.LazyStringArrayList(supportedOutputStorageFormats_);
9676         bitField0_ |= 0x00020000;
9677       }
9678     }
9679     /**
9680      *
9681      *
9682      * <pre>
9683      * Output only. The formats this Model supports in
9684      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9685      * If both
9686      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9687      * and
9688      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9689      * exist, the predictions are returned together with their instances. In other
9690      * words, the prediction has the original instance data first, followed by the
9691      * actual prediction content (as per the schema).
9692      * The possible formats are:
9693      * * `jsonl`
9694      * The JSON Lines format, where each prediction is a single line. Uses
9695      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9696      * * `csv`
9697      * The CSV format, where each prediction is a single comma-separated line.
9698      * The first line in the file is the header, containing comma-separated field
9699      * names. Uses
9700      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9701      * * `bigquery`
9702      * Each prediction is a single row in a BigQuery table, uses
9703      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9704      * .
9705      * If this Model doesn't support any of these formats it means it cannot be
9706      * used with a
9707      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9708      * However, if it has
9709      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9710      * it could serve online predictions by using
9711      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9712      * or
9713      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9714      * </pre>
9715      *
9716      * <code>
9717      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
9718      * </code>
9719      *
9720      * @return A list containing the supportedOutputStorageFormats.
9721      */
getSupportedOutputStorageFormatsList()9722     public com.google.protobuf.ProtocolStringList getSupportedOutputStorageFormatsList() {
9723       return supportedOutputStorageFormats_.getUnmodifiableView();
9724     }
9725     /**
9726      *
9727      *
9728      * <pre>
9729      * Output only. The formats this Model supports in
9730      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9731      * If both
9732      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9733      * and
9734      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9735      * exist, the predictions are returned together with their instances. In other
9736      * words, the prediction has the original instance data first, followed by the
9737      * actual prediction content (as per the schema).
9738      * The possible formats are:
9739      * * `jsonl`
9740      * The JSON Lines format, where each prediction is a single line. Uses
9741      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9742      * * `csv`
9743      * The CSV format, where each prediction is a single comma-separated line.
9744      * The first line in the file is the header, containing comma-separated field
9745      * names. Uses
9746      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9747      * * `bigquery`
9748      * Each prediction is a single row in a BigQuery table, uses
9749      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9750      * .
9751      * If this Model doesn't support any of these formats it means it cannot be
9752      * used with a
9753      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9754      * However, if it has
9755      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9756      * it could serve online predictions by using
9757      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9758      * or
9759      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9760      * </pre>
9761      *
9762      * <code>
9763      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
9764      * </code>
9765      *
9766      * @return The count of supportedOutputStorageFormats.
9767      */
getSupportedOutputStorageFormatsCount()9768     public int getSupportedOutputStorageFormatsCount() {
9769       return supportedOutputStorageFormats_.size();
9770     }
9771     /**
9772      *
9773      *
9774      * <pre>
9775      * Output only. The formats this Model supports in
9776      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9777      * If both
9778      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9779      * and
9780      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9781      * exist, the predictions are returned together with their instances. In other
9782      * words, the prediction has the original instance data first, followed by the
9783      * actual prediction content (as per the schema).
9784      * The possible formats are:
9785      * * `jsonl`
9786      * The JSON Lines format, where each prediction is a single line. Uses
9787      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9788      * * `csv`
9789      * The CSV format, where each prediction is a single comma-separated line.
9790      * The first line in the file is the header, containing comma-separated field
9791      * names. Uses
9792      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9793      * * `bigquery`
9794      * Each prediction is a single row in a BigQuery table, uses
9795      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9796      * .
9797      * If this Model doesn't support any of these formats it means it cannot be
9798      * used with a
9799      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9800      * However, if it has
9801      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9802      * it could serve online predictions by using
9803      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9804      * or
9805      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9806      * </pre>
9807      *
9808      * <code>
9809      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
9810      * </code>
9811      *
9812      * @param index The index of the element to return.
9813      * @return The supportedOutputStorageFormats at the given index.
9814      */
getSupportedOutputStorageFormats(int index)9815     public java.lang.String getSupportedOutputStorageFormats(int index) {
9816       return supportedOutputStorageFormats_.get(index);
9817     }
9818     /**
9819      *
9820      *
9821      * <pre>
9822      * Output only. The formats this Model supports in
9823      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9824      * If both
9825      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9826      * and
9827      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9828      * exist, the predictions are returned together with their instances. In other
9829      * words, the prediction has the original instance data first, followed by the
9830      * actual prediction content (as per the schema).
9831      * The possible formats are:
9832      * * `jsonl`
9833      * The JSON Lines format, where each prediction is a single line. Uses
9834      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9835      * * `csv`
9836      * The CSV format, where each prediction is a single comma-separated line.
9837      * The first line in the file is the header, containing comma-separated field
9838      * names. Uses
9839      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9840      * * `bigquery`
9841      * Each prediction is a single row in a BigQuery table, uses
9842      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9843      * .
9844      * If this Model doesn't support any of these formats it means it cannot be
9845      * used with a
9846      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9847      * However, if it has
9848      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9849      * it could serve online predictions by using
9850      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9851      * or
9852      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9853      * </pre>
9854      *
9855      * <code>
9856      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
9857      * </code>
9858      *
9859      * @param index The index of the value to return.
9860      * @return The bytes of the supportedOutputStorageFormats at the given index.
9861      */
getSupportedOutputStorageFormatsBytes(int index)9862     public com.google.protobuf.ByteString getSupportedOutputStorageFormatsBytes(int index) {
9863       return supportedOutputStorageFormats_.getByteString(index);
9864     }
9865     /**
9866      *
9867      *
9868      * <pre>
9869      * Output only. The formats this Model supports in
9870      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9871      * If both
9872      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9873      * and
9874      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9875      * exist, the predictions are returned together with their instances. In other
9876      * words, the prediction has the original instance data first, followed by the
9877      * actual prediction content (as per the schema).
9878      * The possible formats are:
9879      * * `jsonl`
9880      * The JSON Lines format, where each prediction is a single line. Uses
9881      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9882      * * `csv`
9883      * The CSV format, where each prediction is a single comma-separated line.
9884      * The first line in the file is the header, containing comma-separated field
9885      * names. Uses
9886      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9887      * * `bigquery`
9888      * Each prediction is a single row in a BigQuery table, uses
9889      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9890      * .
9891      * If this Model doesn't support any of these formats it means it cannot be
9892      * used with a
9893      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9894      * However, if it has
9895      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9896      * it could serve online predictions by using
9897      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9898      * or
9899      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9900      * </pre>
9901      *
9902      * <code>
9903      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
9904      * </code>
9905      *
9906      * @param index The index to set the value at.
9907      * @param value The supportedOutputStorageFormats to set.
9908      * @return This builder for chaining.
9909      */
setSupportedOutputStorageFormats(int index, java.lang.String value)9910     public Builder setSupportedOutputStorageFormats(int index, java.lang.String value) {
9911       if (value == null) {
9912         throw new NullPointerException();
9913       }
9914       ensureSupportedOutputStorageFormatsIsMutable();
9915       supportedOutputStorageFormats_.set(index, value);
9916       onChanged();
9917       return this;
9918     }
9919     /**
9920      *
9921      *
9922      * <pre>
9923      * Output only. The formats this Model supports in
9924      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9925      * If both
9926      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9927      * and
9928      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9929      * exist, the predictions are returned together with their instances. In other
9930      * words, the prediction has the original instance data first, followed by the
9931      * actual prediction content (as per the schema).
9932      * The possible formats are:
9933      * * `jsonl`
9934      * The JSON Lines format, where each prediction is a single line. Uses
9935      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9936      * * `csv`
9937      * The CSV format, where each prediction is a single comma-separated line.
9938      * The first line in the file is the header, containing comma-separated field
9939      * names. Uses
9940      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9941      * * `bigquery`
9942      * Each prediction is a single row in a BigQuery table, uses
9943      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9944      * .
9945      * If this Model doesn't support any of these formats it means it cannot be
9946      * used with a
9947      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
9948      * However, if it has
9949      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
9950      * it could serve online predictions by using
9951      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
9952      * or
9953      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
9954      * </pre>
9955      *
9956      * <code>
9957      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
9958      * </code>
9959      *
9960      * @param value The supportedOutputStorageFormats to add.
9961      * @return This builder for chaining.
9962      */
addSupportedOutputStorageFormats(java.lang.String value)9963     public Builder addSupportedOutputStorageFormats(java.lang.String value) {
9964       if (value == null) {
9965         throw new NullPointerException();
9966       }
9967       ensureSupportedOutputStorageFormatsIsMutable();
9968       supportedOutputStorageFormats_.add(value);
9969       onChanged();
9970       return this;
9971     }
9972     /**
9973      *
9974      *
9975      * <pre>
9976      * Output only. The formats this Model supports in
9977      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
9978      * If both
9979      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
9980      * and
9981      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
9982      * exist, the predictions are returned together with their instances. In other
9983      * words, the prediction has the original instance data first, followed by the
9984      * actual prediction content (as per the schema).
9985      * The possible formats are:
9986      * * `jsonl`
9987      * The JSON Lines format, where each prediction is a single line. Uses
9988      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9989      * * `csv`
9990      * The CSV format, where each prediction is a single comma-separated line.
9991      * The first line in the file is the header, containing comma-separated field
9992      * names. Uses
9993      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
9994      * * `bigquery`
9995      * Each prediction is a single row in a BigQuery table, uses
9996      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
9997      * .
9998      * If this Model doesn't support any of these formats it means it cannot be
9999      * used with a
10000      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
10001      * However, if it has
10002      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
10003      * it could serve online predictions by using
10004      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
10005      * or
10006      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
10007      * </pre>
10008      *
10009      * <code>
10010      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
10011      * </code>
10012      *
10013      * @param values The supportedOutputStorageFormats to add.
10014      * @return This builder for chaining.
10015      */
addAllSupportedOutputStorageFormats( java.lang.Iterable<java.lang.String> values)10016     public Builder addAllSupportedOutputStorageFormats(
10017         java.lang.Iterable<java.lang.String> values) {
10018       ensureSupportedOutputStorageFormatsIsMutable();
10019       com.google.protobuf.AbstractMessageLite.Builder.addAll(
10020           values, supportedOutputStorageFormats_);
10021       onChanged();
10022       return this;
10023     }
10024     /**
10025      *
10026      *
10027      * <pre>
10028      * Output only. The formats this Model supports in
10029      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
10030      * If both
10031      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
10032      * and
10033      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
10034      * exist, the predictions are returned together with their instances. In other
10035      * words, the prediction has the original instance data first, followed by the
10036      * actual prediction content (as per the schema).
10037      * The possible formats are:
10038      * * `jsonl`
10039      * The JSON Lines format, where each prediction is a single line. Uses
10040      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
10041      * * `csv`
10042      * The CSV format, where each prediction is a single comma-separated line.
10043      * The first line in the file is the header, containing comma-separated field
10044      * names. Uses
10045      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
10046      * * `bigquery`
10047      * Each prediction is a single row in a BigQuery table, uses
10048      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
10049      * .
10050      * If this Model doesn't support any of these formats it means it cannot be
10051      * used with a
10052      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
10053      * However, if it has
10054      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
10055      * it could serve online predictions by using
10056      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
10057      * or
10058      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
10059      * </pre>
10060      *
10061      * <code>
10062      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
10063      * </code>
10064      *
10065      * @return This builder for chaining.
10066      */
clearSupportedOutputStorageFormats()10067     public Builder clearSupportedOutputStorageFormats() {
10068       supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.EMPTY;
10069       bitField0_ = (bitField0_ & ~0x00020000);
10070       onChanged();
10071       return this;
10072     }
10073     /**
10074      *
10075      *
10076      * <pre>
10077      * Output only. The formats this Model supports in
10078      * [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config].
10079      * If both
10080      * [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]
10081      * and
10082      * [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]
10083      * exist, the predictions are returned together with their instances. In other
10084      * words, the prediction has the original instance data first, followed by the
10085      * actual prediction content (as per the schema).
10086      * The possible formats are:
10087      * * `jsonl`
10088      * The JSON Lines format, where each prediction is a single line. Uses
10089      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
10090      * * `csv`
10091      * The CSV format, where each prediction is a single comma-separated line.
10092      * The first line in the file is the header, containing comma-separated field
10093      * names. Uses
10094      * [GcsDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.gcs_destination].
10095      * * `bigquery`
10096      * Each prediction is a single row in a BigQuery table, uses
10097      * [BigQueryDestination][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.bigquery_destination]
10098      * .
10099      * If this Model doesn't support any of these formats it means it cannot be
10100      * used with a
10101      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
10102      * However, if it has
10103      * [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types],
10104      * it could serve online predictions by using
10105      * [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]
10106      * or
10107      * [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain].
10108      * </pre>
10109      *
10110      * <code>
10111      * repeated string supported_output_storage_formats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
10112      * </code>
10113      *
10114      * @param value The bytes of the supportedOutputStorageFormats to add.
10115      * @return This builder for chaining.
10116      */
addSupportedOutputStorageFormatsBytes(com.google.protobuf.ByteString value)10117     public Builder addSupportedOutputStorageFormatsBytes(com.google.protobuf.ByteString value) {
10118       if (value == null) {
10119         throw new NullPointerException();
10120       }
10121       checkByteStringIsUtf8(value);
10122       ensureSupportedOutputStorageFormatsIsMutable();
10123       supportedOutputStorageFormats_.add(value);
10124       onChanged();
10125       return this;
10126     }
10127 
10128     private com.google.protobuf.Timestamp createTime_;
10129     private com.google.protobuf.SingleFieldBuilderV3<
10130             com.google.protobuf.Timestamp,
10131             com.google.protobuf.Timestamp.Builder,
10132             com.google.protobuf.TimestampOrBuilder>
10133         createTimeBuilder_;
10134     /**
10135      *
10136      *
10137      * <pre>
10138      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10139      * </pre>
10140      *
10141      * <code>
10142      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10143      * </code>
10144      *
10145      * @return Whether the createTime field is set.
10146      */
hasCreateTime()10147     public boolean hasCreateTime() {
10148       return ((bitField0_ & 0x00040000) != 0);
10149     }
10150     /**
10151      *
10152      *
10153      * <pre>
10154      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10155      * </pre>
10156      *
10157      * <code>
10158      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10159      * </code>
10160      *
10161      * @return The createTime.
10162      */
getCreateTime()10163     public com.google.protobuf.Timestamp getCreateTime() {
10164       if (createTimeBuilder_ == null) {
10165         return createTime_ == null
10166             ? com.google.protobuf.Timestamp.getDefaultInstance()
10167             : createTime_;
10168       } else {
10169         return createTimeBuilder_.getMessage();
10170       }
10171     }
10172     /**
10173      *
10174      *
10175      * <pre>
10176      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10177      * </pre>
10178      *
10179      * <code>
10180      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10181      * </code>
10182      */
setCreateTime(com.google.protobuf.Timestamp value)10183     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
10184       if (createTimeBuilder_ == null) {
10185         if (value == null) {
10186           throw new NullPointerException();
10187         }
10188         createTime_ = value;
10189       } else {
10190         createTimeBuilder_.setMessage(value);
10191       }
10192       bitField0_ |= 0x00040000;
10193       onChanged();
10194       return this;
10195     }
10196     /**
10197      *
10198      *
10199      * <pre>
10200      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10201      * </pre>
10202      *
10203      * <code>
10204      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10205      * </code>
10206      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)10207     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
10208       if (createTimeBuilder_ == null) {
10209         createTime_ = builderForValue.build();
10210       } else {
10211         createTimeBuilder_.setMessage(builderForValue.build());
10212       }
10213       bitField0_ |= 0x00040000;
10214       onChanged();
10215       return this;
10216     }
10217     /**
10218      *
10219      *
10220      * <pre>
10221      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10222      * </pre>
10223      *
10224      * <code>
10225      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10226      * </code>
10227      */
mergeCreateTime(com.google.protobuf.Timestamp value)10228     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
10229       if (createTimeBuilder_ == null) {
10230         if (((bitField0_ & 0x00040000) != 0)
10231             && createTime_ != null
10232             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
10233           getCreateTimeBuilder().mergeFrom(value);
10234         } else {
10235           createTime_ = value;
10236         }
10237       } else {
10238         createTimeBuilder_.mergeFrom(value);
10239       }
10240       bitField0_ |= 0x00040000;
10241       onChanged();
10242       return this;
10243     }
10244     /**
10245      *
10246      *
10247      * <pre>
10248      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10249      * </pre>
10250      *
10251      * <code>
10252      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10253      * </code>
10254      */
clearCreateTime()10255     public Builder clearCreateTime() {
10256       bitField0_ = (bitField0_ & ~0x00040000);
10257       createTime_ = null;
10258       if (createTimeBuilder_ != null) {
10259         createTimeBuilder_.dispose();
10260         createTimeBuilder_ = null;
10261       }
10262       onChanged();
10263       return this;
10264     }
10265     /**
10266      *
10267      *
10268      * <pre>
10269      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10270      * </pre>
10271      *
10272      * <code>
10273      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10274      * </code>
10275      */
getCreateTimeBuilder()10276     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
10277       bitField0_ |= 0x00040000;
10278       onChanged();
10279       return getCreateTimeFieldBuilder().getBuilder();
10280     }
10281     /**
10282      *
10283      *
10284      * <pre>
10285      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10286      * </pre>
10287      *
10288      * <code>
10289      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10290      * </code>
10291      */
getCreateTimeOrBuilder()10292     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
10293       if (createTimeBuilder_ != null) {
10294         return createTimeBuilder_.getMessageOrBuilder();
10295       } else {
10296         return createTime_ == null
10297             ? com.google.protobuf.Timestamp.getDefaultInstance()
10298             : createTime_;
10299       }
10300     }
10301     /**
10302      *
10303      *
10304      * <pre>
10305      * Output only. Timestamp when this Model was uploaded into Vertex AI.
10306      * </pre>
10307      *
10308      * <code>
10309      * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
10310      * </code>
10311      */
10312     private com.google.protobuf.SingleFieldBuilderV3<
10313             com.google.protobuf.Timestamp,
10314             com.google.protobuf.Timestamp.Builder,
10315             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()10316         getCreateTimeFieldBuilder() {
10317       if (createTimeBuilder_ == null) {
10318         createTimeBuilder_ =
10319             new com.google.protobuf.SingleFieldBuilderV3<
10320                 com.google.protobuf.Timestamp,
10321                 com.google.protobuf.Timestamp.Builder,
10322                 com.google.protobuf.TimestampOrBuilder>(
10323                 getCreateTime(), getParentForChildren(), isClean());
10324         createTime_ = null;
10325       }
10326       return createTimeBuilder_;
10327     }
10328 
10329     private com.google.protobuf.Timestamp updateTime_;
10330     private com.google.protobuf.SingleFieldBuilderV3<
10331             com.google.protobuf.Timestamp,
10332             com.google.protobuf.Timestamp.Builder,
10333             com.google.protobuf.TimestampOrBuilder>
10334         updateTimeBuilder_;
10335     /**
10336      *
10337      *
10338      * <pre>
10339      * Output only. Timestamp when this Model was most recently updated.
10340      * </pre>
10341      *
10342      * <code>
10343      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10344      * </code>
10345      *
10346      * @return Whether the updateTime field is set.
10347      */
hasUpdateTime()10348     public boolean hasUpdateTime() {
10349       return ((bitField0_ & 0x00080000) != 0);
10350     }
10351     /**
10352      *
10353      *
10354      * <pre>
10355      * Output only. Timestamp when this Model was most recently updated.
10356      * </pre>
10357      *
10358      * <code>
10359      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10360      * </code>
10361      *
10362      * @return The updateTime.
10363      */
getUpdateTime()10364     public com.google.protobuf.Timestamp getUpdateTime() {
10365       if (updateTimeBuilder_ == null) {
10366         return updateTime_ == null
10367             ? com.google.protobuf.Timestamp.getDefaultInstance()
10368             : updateTime_;
10369       } else {
10370         return updateTimeBuilder_.getMessage();
10371       }
10372     }
10373     /**
10374      *
10375      *
10376      * <pre>
10377      * Output only. Timestamp when this Model was most recently updated.
10378      * </pre>
10379      *
10380      * <code>
10381      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10382      * </code>
10383      */
setUpdateTime(com.google.protobuf.Timestamp value)10384     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
10385       if (updateTimeBuilder_ == null) {
10386         if (value == null) {
10387           throw new NullPointerException();
10388         }
10389         updateTime_ = value;
10390       } else {
10391         updateTimeBuilder_.setMessage(value);
10392       }
10393       bitField0_ |= 0x00080000;
10394       onChanged();
10395       return this;
10396     }
10397     /**
10398      *
10399      *
10400      * <pre>
10401      * Output only. Timestamp when this Model was most recently updated.
10402      * </pre>
10403      *
10404      * <code>
10405      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10406      * </code>
10407      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)10408     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
10409       if (updateTimeBuilder_ == null) {
10410         updateTime_ = builderForValue.build();
10411       } else {
10412         updateTimeBuilder_.setMessage(builderForValue.build());
10413       }
10414       bitField0_ |= 0x00080000;
10415       onChanged();
10416       return this;
10417     }
10418     /**
10419      *
10420      *
10421      * <pre>
10422      * Output only. Timestamp when this Model was most recently updated.
10423      * </pre>
10424      *
10425      * <code>
10426      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10427      * </code>
10428      */
mergeUpdateTime(com.google.protobuf.Timestamp value)10429     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
10430       if (updateTimeBuilder_ == null) {
10431         if (((bitField0_ & 0x00080000) != 0)
10432             && updateTime_ != null
10433             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
10434           getUpdateTimeBuilder().mergeFrom(value);
10435         } else {
10436           updateTime_ = value;
10437         }
10438       } else {
10439         updateTimeBuilder_.mergeFrom(value);
10440       }
10441       bitField0_ |= 0x00080000;
10442       onChanged();
10443       return this;
10444     }
10445     /**
10446      *
10447      *
10448      * <pre>
10449      * Output only. Timestamp when this Model was most recently updated.
10450      * </pre>
10451      *
10452      * <code>
10453      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10454      * </code>
10455      */
clearUpdateTime()10456     public Builder clearUpdateTime() {
10457       bitField0_ = (bitField0_ & ~0x00080000);
10458       updateTime_ = null;
10459       if (updateTimeBuilder_ != null) {
10460         updateTimeBuilder_.dispose();
10461         updateTimeBuilder_ = null;
10462       }
10463       onChanged();
10464       return this;
10465     }
10466     /**
10467      *
10468      *
10469      * <pre>
10470      * Output only. Timestamp when this Model was most recently updated.
10471      * </pre>
10472      *
10473      * <code>
10474      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10475      * </code>
10476      */
getUpdateTimeBuilder()10477     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
10478       bitField0_ |= 0x00080000;
10479       onChanged();
10480       return getUpdateTimeFieldBuilder().getBuilder();
10481     }
10482     /**
10483      *
10484      *
10485      * <pre>
10486      * Output only. Timestamp when this Model was most recently updated.
10487      * </pre>
10488      *
10489      * <code>
10490      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10491      * </code>
10492      */
getUpdateTimeOrBuilder()10493     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
10494       if (updateTimeBuilder_ != null) {
10495         return updateTimeBuilder_.getMessageOrBuilder();
10496       } else {
10497         return updateTime_ == null
10498             ? com.google.protobuf.Timestamp.getDefaultInstance()
10499             : updateTime_;
10500       }
10501     }
10502     /**
10503      *
10504      *
10505      * <pre>
10506      * Output only. Timestamp when this Model was most recently updated.
10507      * </pre>
10508      *
10509      * <code>
10510      * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
10511      * </code>
10512      */
10513     private com.google.protobuf.SingleFieldBuilderV3<
10514             com.google.protobuf.Timestamp,
10515             com.google.protobuf.Timestamp.Builder,
10516             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()10517         getUpdateTimeFieldBuilder() {
10518       if (updateTimeBuilder_ == null) {
10519         updateTimeBuilder_ =
10520             new com.google.protobuf.SingleFieldBuilderV3<
10521                 com.google.protobuf.Timestamp,
10522                 com.google.protobuf.Timestamp.Builder,
10523                 com.google.protobuf.TimestampOrBuilder>(
10524                 getUpdateTime(), getParentForChildren(), isClean());
10525         updateTime_ = null;
10526       }
10527       return updateTimeBuilder_;
10528     }
10529 
10530     private java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedModelRef> deployedModels_ =
10531         java.util.Collections.emptyList();
10532 
ensureDeployedModelsIsMutable()10533     private void ensureDeployedModelsIsMutable() {
10534       if (!((bitField0_ & 0x00100000) != 0)) {
10535         deployedModels_ =
10536             new java.util.ArrayList<com.google.cloud.aiplatform.v1beta1.DeployedModelRef>(
10537                 deployedModels_);
10538         bitField0_ |= 0x00100000;
10539       }
10540     }
10541 
10542     private com.google.protobuf.RepeatedFieldBuilderV3<
10543             com.google.cloud.aiplatform.v1beta1.DeployedModelRef,
10544             com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder,
10545             com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>
10546         deployedModelsBuilder_;
10547 
10548     /**
10549      *
10550      *
10551      * <pre>
10552      * Output only. The pointers to DeployedModels created from this Model. Note
10553      * that Model could have been deployed to Endpoints in different Locations.
10554      * </pre>
10555      *
10556      * <code>
10557      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10558      * </code>
10559      */
10560     public java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedModelRef>
getDeployedModelsList()10561         getDeployedModelsList() {
10562       if (deployedModelsBuilder_ == null) {
10563         return java.util.Collections.unmodifiableList(deployedModels_);
10564       } else {
10565         return deployedModelsBuilder_.getMessageList();
10566       }
10567     }
10568     /**
10569      *
10570      *
10571      * <pre>
10572      * Output only. The pointers to DeployedModels created from this Model. Note
10573      * that Model could have been deployed to Endpoints in different Locations.
10574      * </pre>
10575      *
10576      * <code>
10577      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10578      * </code>
10579      */
getDeployedModelsCount()10580     public int getDeployedModelsCount() {
10581       if (deployedModelsBuilder_ == null) {
10582         return deployedModels_.size();
10583       } else {
10584         return deployedModelsBuilder_.getCount();
10585       }
10586     }
10587     /**
10588      *
10589      *
10590      * <pre>
10591      * Output only. The pointers to DeployedModels created from this Model. Note
10592      * that Model could have been deployed to Endpoints in different Locations.
10593      * </pre>
10594      *
10595      * <code>
10596      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10597      * </code>
10598      */
getDeployedModels(int index)10599     public com.google.cloud.aiplatform.v1beta1.DeployedModelRef getDeployedModels(int index) {
10600       if (deployedModelsBuilder_ == null) {
10601         return deployedModels_.get(index);
10602       } else {
10603         return deployedModelsBuilder_.getMessage(index);
10604       }
10605     }
10606     /**
10607      *
10608      *
10609      * <pre>
10610      * Output only. The pointers to DeployedModels created from this Model. Note
10611      * that Model could have been deployed to Endpoints in different Locations.
10612      * </pre>
10613      *
10614      * <code>
10615      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10616      * </code>
10617      */
setDeployedModels( int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef value)10618     public Builder setDeployedModels(
10619         int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef value) {
10620       if (deployedModelsBuilder_ == null) {
10621         if (value == null) {
10622           throw new NullPointerException();
10623         }
10624         ensureDeployedModelsIsMutable();
10625         deployedModels_.set(index, value);
10626         onChanged();
10627       } else {
10628         deployedModelsBuilder_.setMessage(index, value);
10629       }
10630       return this;
10631     }
10632     /**
10633      *
10634      *
10635      * <pre>
10636      * Output only. The pointers to DeployedModels created from this Model. Note
10637      * that Model could have been deployed to Endpoints in different Locations.
10638      * </pre>
10639      *
10640      * <code>
10641      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10642      * </code>
10643      */
setDeployedModels( int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue)10644     public Builder setDeployedModels(
10645         int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue) {
10646       if (deployedModelsBuilder_ == null) {
10647         ensureDeployedModelsIsMutable();
10648         deployedModels_.set(index, builderForValue.build());
10649         onChanged();
10650       } else {
10651         deployedModelsBuilder_.setMessage(index, builderForValue.build());
10652       }
10653       return this;
10654     }
10655     /**
10656      *
10657      *
10658      * <pre>
10659      * Output only. The pointers to DeployedModels created from this Model. Note
10660      * that Model could have been deployed to Endpoints in different Locations.
10661      * </pre>
10662      *
10663      * <code>
10664      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10665      * </code>
10666      */
addDeployedModels(com.google.cloud.aiplatform.v1beta1.DeployedModelRef value)10667     public Builder addDeployedModels(com.google.cloud.aiplatform.v1beta1.DeployedModelRef value) {
10668       if (deployedModelsBuilder_ == null) {
10669         if (value == null) {
10670           throw new NullPointerException();
10671         }
10672         ensureDeployedModelsIsMutable();
10673         deployedModels_.add(value);
10674         onChanged();
10675       } else {
10676         deployedModelsBuilder_.addMessage(value);
10677       }
10678       return this;
10679     }
10680     /**
10681      *
10682      *
10683      * <pre>
10684      * Output only. The pointers to DeployedModels created from this Model. Note
10685      * that Model could have been deployed to Endpoints in different Locations.
10686      * </pre>
10687      *
10688      * <code>
10689      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10690      * </code>
10691      */
addDeployedModels( int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef value)10692     public Builder addDeployedModels(
10693         int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef value) {
10694       if (deployedModelsBuilder_ == null) {
10695         if (value == null) {
10696           throw new NullPointerException();
10697         }
10698         ensureDeployedModelsIsMutable();
10699         deployedModels_.add(index, value);
10700         onChanged();
10701       } else {
10702         deployedModelsBuilder_.addMessage(index, value);
10703       }
10704       return this;
10705     }
10706     /**
10707      *
10708      *
10709      * <pre>
10710      * Output only. The pointers to DeployedModels created from this Model. Note
10711      * that Model could have been deployed to Endpoints in different Locations.
10712      * </pre>
10713      *
10714      * <code>
10715      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10716      * </code>
10717      */
addDeployedModels( com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue)10718     public Builder addDeployedModels(
10719         com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue) {
10720       if (deployedModelsBuilder_ == null) {
10721         ensureDeployedModelsIsMutable();
10722         deployedModels_.add(builderForValue.build());
10723         onChanged();
10724       } else {
10725         deployedModelsBuilder_.addMessage(builderForValue.build());
10726       }
10727       return this;
10728     }
10729     /**
10730      *
10731      *
10732      * <pre>
10733      * Output only. The pointers to DeployedModels created from this Model. Note
10734      * that Model could have been deployed to Endpoints in different Locations.
10735      * </pre>
10736      *
10737      * <code>
10738      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10739      * </code>
10740      */
addDeployedModels( int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue)10741     public Builder addDeployedModels(
10742         int index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder builderForValue) {
10743       if (deployedModelsBuilder_ == null) {
10744         ensureDeployedModelsIsMutable();
10745         deployedModels_.add(index, builderForValue.build());
10746         onChanged();
10747       } else {
10748         deployedModelsBuilder_.addMessage(index, builderForValue.build());
10749       }
10750       return this;
10751     }
10752     /**
10753      *
10754      *
10755      * <pre>
10756      * Output only. The pointers to DeployedModels created from this Model. Note
10757      * that Model could have been deployed to Endpoints in different Locations.
10758      * </pre>
10759      *
10760      * <code>
10761      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10762      * </code>
10763      */
addAllDeployedModels( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.DeployedModelRef> values)10764     public Builder addAllDeployedModels(
10765         java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.DeployedModelRef> values) {
10766       if (deployedModelsBuilder_ == null) {
10767         ensureDeployedModelsIsMutable();
10768         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployedModels_);
10769         onChanged();
10770       } else {
10771         deployedModelsBuilder_.addAllMessages(values);
10772       }
10773       return this;
10774     }
10775     /**
10776      *
10777      *
10778      * <pre>
10779      * Output only. The pointers to DeployedModels created from this Model. Note
10780      * that Model could have been deployed to Endpoints in different Locations.
10781      * </pre>
10782      *
10783      * <code>
10784      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10785      * </code>
10786      */
clearDeployedModels()10787     public Builder clearDeployedModels() {
10788       if (deployedModelsBuilder_ == null) {
10789         deployedModels_ = java.util.Collections.emptyList();
10790         bitField0_ = (bitField0_ & ~0x00100000);
10791         onChanged();
10792       } else {
10793         deployedModelsBuilder_.clear();
10794       }
10795       return this;
10796     }
10797     /**
10798      *
10799      *
10800      * <pre>
10801      * Output only. The pointers to DeployedModels created from this Model. Note
10802      * that Model could have been deployed to Endpoints in different Locations.
10803      * </pre>
10804      *
10805      * <code>
10806      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10807      * </code>
10808      */
removeDeployedModels(int index)10809     public Builder removeDeployedModels(int index) {
10810       if (deployedModelsBuilder_ == null) {
10811         ensureDeployedModelsIsMutable();
10812         deployedModels_.remove(index);
10813         onChanged();
10814       } else {
10815         deployedModelsBuilder_.remove(index);
10816       }
10817       return this;
10818     }
10819     /**
10820      *
10821      *
10822      * <pre>
10823      * Output only. The pointers to DeployedModels created from this Model. Note
10824      * that Model could have been deployed to Endpoints in different Locations.
10825      * </pre>
10826      *
10827      * <code>
10828      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10829      * </code>
10830      */
getDeployedModelsBuilder( int index)10831     public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder getDeployedModelsBuilder(
10832         int index) {
10833       return getDeployedModelsFieldBuilder().getBuilder(index);
10834     }
10835     /**
10836      *
10837      *
10838      * <pre>
10839      * Output only. The pointers to DeployedModels created from this Model. Note
10840      * that Model could have been deployed to Endpoints in different Locations.
10841      * </pre>
10842      *
10843      * <code>
10844      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10845      * </code>
10846      */
getDeployedModelsOrBuilder( int index)10847     public com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder getDeployedModelsOrBuilder(
10848         int index) {
10849       if (deployedModelsBuilder_ == null) {
10850         return deployedModels_.get(index);
10851       } else {
10852         return deployedModelsBuilder_.getMessageOrBuilder(index);
10853       }
10854     }
10855     /**
10856      *
10857      *
10858      * <pre>
10859      * Output only. The pointers to DeployedModels created from this Model. Note
10860      * that Model could have been deployed to Endpoints in different Locations.
10861      * </pre>
10862      *
10863      * <code>
10864      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10865      * </code>
10866      */
10867     public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>
getDeployedModelsOrBuilderList()10868         getDeployedModelsOrBuilderList() {
10869       if (deployedModelsBuilder_ != null) {
10870         return deployedModelsBuilder_.getMessageOrBuilderList();
10871       } else {
10872         return java.util.Collections.unmodifiableList(deployedModels_);
10873       }
10874     }
10875     /**
10876      *
10877      *
10878      * <pre>
10879      * Output only. The pointers to DeployedModels created from this Model. Note
10880      * that Model could have been deployed to Endpoints in different Locations.
10881      * </pre>
10882      *
10883      * <code>
10884      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10885      * </code>
10886      */
addDeployedModelsBuilder()10887     public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedModelsBuilder() {
10888       return getDeployedModelsFieldBuilder()
10889           .addBuilder(com.google.cloud.aiplatform.v1beta1.DeployedModelRef.getDefaultInstance());
10890     }
10891     /**
10892      *
10893      *
10894      * <pre>
10895      * Output only. The pointers to DeployedModels created from this Model. Note
10896      * that Model could have been deployed to Endpoints in different Locations.
10897      * </pre>
10898      *
10899      * <code>
10900      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10901      * </code>
10902      */
addDeployedModelsBuilder( int index)10903     public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedModelsBuilder(
10904         int index) {
10905       return getDeployedModelsFieldBuilder()
10906           .addBuilder(
10907               index, com.google.cloud.aiplatform.v1beta1.DeployedModelRef.getDefaultInstance());
10908     }
10909     /**
10910      *
10911      *
10912      * <pre>
10913      * Output only. The pointers to DeployedModels created from this Model. Note
10914      * that Model could have been deployed to Endpoints in different Locations.
10915      * </pre>
10916      *
10917      * <code>
10918      * repeated .google.cloud.aiplatform.v1beta1.DeployedModelRef deployed_models = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
10919      * </code>
10920      */
10921     public java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder>
getDeployedModelsBuilderList()10922         getDeployedModelsBuilderList() {
10923       return getDeployedModelsFieldBuilder().getBuilderList();
10924     }
10925 
10926     private com.google.protobuf.RepeatedFieldBuilderV3<
10927             com.google.cloud.aiplatform.v1beta1.DeployedModelRef,
10928             com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder,
10929             com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>
getDeployedModelsFieldBuilder()10930         getDeployedModelsFieldBuilder() {
10931       if (deployedModelsBuilder_ == null) {
10932         deployedModelsBuilder_ =
10933             new com.google.protobuf.RepeatedFieldBuilderV3<
10934                 com.google.cloud.aiplatform.v1beta1.DeployedModelRef,
10935                 com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder,
10936                 com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>(
10937                 deployedModels_,
10938                 ((bitField0_ & 0x00100000) != 0),
10939                 getParentForChildren(),
10940                 isClean());
10941         deployedModels_ = null;
10942       }
10943       return deployedModelsBuilder_;
10944     }
10945 
10946     private com.google.cloud.aiplatform.v1beta1.ExplanationSpec explanationSpec_;
10947     private com.google.protobuf.SingleFieldBuilderV3<
10948             com.google.cloud.aiplatform.v1beta1.ExplanationSpec,
10949             com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder,
10950             com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder>
10951         explanationSpecBuilder_;
10952     /**
10953      *
10954      *
10955      * <pre>
10956      * The default explanation specification for this Model.
10957      * The Model can be used for
10958      * [requesting
10959      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
10960      * after being
10961      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
10962      * it is populated. The Model can be used for [batch
10963      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
10964      * if it is populated.
10965      * All fields of the explanation_spec can be overridden by
10966      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
10967      * of
10968      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
10969      * or
10970      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
10971      * of
10972      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
10973      * If the default explanation specification is not set for this Model, this
10974      * Model can still be used for
10975      * [requesting
10976      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
10977      * setting
10978      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
10979      * of
10980      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
10981      * and for [batch
10982      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
10983      * by setting
10984      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
10985      * of
10986      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
10987      * </pre>
10988      *
10989      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
10990      *
10991      * @return Whether the explanationSpec field is set.
10992      */
hasExplanationSpec()10993     public boolean hasExplanationSpec() {
10994       return ((bitField0_ & 0x00200000) != 0);
10995     }
10996     /**
10997      *
10998      *
10999      * <pre>
11000      * The default explanation specification for this Model.
11001      * The Model can be used for
11002      * [requesting
11003      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11004      * after being
11005      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11006      * it is populated. The Model can be used for [batch
11007      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11008      * if it is populated.
11009      * All fields of the explanation_spec can be overridden by
11010      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11011      * of
11012      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11013      * or
11014      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11015      * of
11016      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11017      * If the default explanation specification is not set for this Model, this
11018      * Model can still be used for
11019      * [requesting
11020      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11021      * setting
11022      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11023      * of
11024      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11025      * and for [batch
11026      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11027      * by setting
11028      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11029      * of
11030      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11031      * </pre>
11032      *
11033      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11034      *
11035      * @return The explanationSpec.
11036      */
getExplanationSpec()11037     public com.google.cloud.aiplatform.v1beta1.ExplanationSpec getExplanationSpec() {
11038       if (explanationSpecBuilder_ == null) {
11039         return explanationSpec_ == null
11040             ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()
11041             : explanationSpec_;
11042       } else {
11043         return explanationSpecBuilder_.getMessage();
11044       }
11045     }
11046     /**
11047      *
11048      *
11049      * <pre>
11050      * The default explanation specification for this Model.
11051      * The Model can be used for
11052      * [requesting
11053      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11054      * after being
11055      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11056      * it is populated. The Model can be used for [batch
11057      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11058      * if it is populated.
11059      * All fields of the explanation_spec can be overridden by
11060      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11061      * of
11062      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11063      * or
11064      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11065      * of
11066      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11067      * If the default explanation specification is not set for this Model, this
11068      * Model can still be used for
11069      * [requesting
11070      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11071      * setting
11072      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11073      * of
11074      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11075      * and for [batch
11076      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11077      * by setting
11078      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11079      * of
11080      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11081      * </pre>
11082      *
11083      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11084      */
setExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value)11085     public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) {
11086       if (explanationSpecBuilder_ == null) {
11087         if (value == null) {
11088           throw new NullPointerException();
11089         }
11090         explanationSpec_ = value;
11091       } else {
11092         explanationSpecBuilder_.setMessage(value);
11093       }
11094       bitField0_ |= 0x00200000;
11095       onChanged();
11096       return this;
11097     }
11098     /**
11099      *
11100      *
11101      * <pre>
11102      * The default explanation specification for this Model.
11103      * The Model can be used for
11104      * [requesting
11105      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11106      * after being
11107      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11108      * it is populated. The Model can be used for [batch
11109      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11110      * if it is populated.
11111      * All fields of the explanation_spec can be overridden by
11112      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11113      * of
11114      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11115      * or
11116      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11117      * of
11118      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11119      * If the default explanation specification is not set for this Model, this
11120      * Model can still be used for
11121      * [requesting
11122      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11123      * setting
11124      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11125      * of
11126      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11127      * and for [batch
11128      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11129      * by setting
11130      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11131      * of
11132      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11133      * </pre>
11134      *
11135      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11136      */
setExplanationSpec( com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder builderForValue)11137     public Builder setExplanationSpec(
11138         com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder builderForValue) {
11139       if (explanationSpecBuilder_ == null) {
11140         explanationSpec_ = builderForValue.build();
11141       } else {
11142         explanationSpecBuilder_.setMessage(builderForValue.build());
11143       }
11144       bitField0_ |= 0x00200000;
11145       onChanged();
11146       return this;
11147     }
11148     /**
11149      *
11150      *
11151      * <pre>
11152      * The default explanation specification for this Model.
11153      * The Model can be used for
11154      * [requesting
11155      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11156      * after being
11157      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11158      * it is populated. The Model can be used for [batch
11159      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11160      * if it is populated.
11161      * All fields of the explanation_spec can be overridden by
11162      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11163      * of
11164      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11165      * or
11166      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11167      * of
11168      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11169      * If the default explanation specification is not set for this Model, this
11170      * Model can still be used for
11171      * [requesting
11172      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11173      * setting
11174      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11175      * of
11176      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11177      * and for [batch
11178      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11179      * by setting
11180      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11181      * of
11182      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11183      * </pre>
11184      *
11185      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11186      */
mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value)11187     public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) {
11188       if (explanationSpecBuilder_ == null) {
11189         if (((bitField0_ & 0x00200000) != 0)
11190             && explanationSpec_ != null
11191             && explanationSpec_
11192                 != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) {
11193           getExplanationSpecBuilder().mergeFrom(value);
11194         } else {
11195           explanationSpec_ = value;
11196         }
11197       } else {
11198         explanationSpecBuilder_.mergeFrom(value);
11199       }
11200       bitField0_ |= 0x00200000;
11201       onChanged();
11202       return this;
11203     }
11204     /**
11205      *
11206      *
11207      * <pre>
11208      * The default explanation specification for this Model.
11209      * The Model can be used for
11210      * [requesting
11211      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11212      * after being
11213      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11214      * it is populated. The Model can be used for [batch
11215      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11216      * if it is populated.
11217      * All fields of the explanation_spec can be overridden by
11218      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11219      * of
11220      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11221      * or
11222      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11223      * of
11224      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11225      * If the default explanation specification is not set for this Model, this
11226      * Model can still be used for
11227      * [requesting
11228      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11229      * setting
11230      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11231      * of
11232      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11233      * and for [batch
11234      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11235      * by setting
11236      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11237      * of
11238      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11239      * </pre>
11240      *
11241      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11242      */
clearExplanationSpec()11243     public Builder clearExplanationSpec() {
11244       bitField0_ = (bitField0_ & ~0x00200000);
11245       explanationSpec_ = null;
11246       if (explanationSpecBuilder_ != null) {
11247         explanationSpecBuilder_.dispose();
11248         explanationSpecBuilder_ = null;
11249       }
11250       onChanged();
11251       return this;
11252     }
11253     /**
11254      *
11255      *
11256      * <pre>
11257      * The default explanation specification for this Model.
11258      * The Model can be used for
11259      * [requesting
11260      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11261      * after being
11262      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11263      * it is populated. The Model can be used for [batch
11264      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11265      * if it is populated.
11266      * All fields of the explanation_spec can be overridden by
11267      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11268      * of
11269      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11270      * or
11271      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11272      * of
11273      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11274      * If the default explanation specification is not set for this Model, this
11275      * Model can still be used for
11276      * [requesting
11277      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11278      * setting
11279      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11280      * of
11281      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11282      * and for [batch
11283      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11284      * by setting
11285      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11286      * of
11287      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11288      * </pre>
11289      *
11290      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11291      */
getExplanationSpecBuilder()11292     public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() {
11293       bitField0_ |= 0x00200000;
11294       onChanged();
11295       return getExplanationSpecFieldBuilder().getBuilder();
11296     }
11297     /**
11298      *
11299      *
11300      * <pre>
11301      * The default explanation specification for this Model.
11302      * The Model can be used for
11303      * [requesting
11304      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11305      * after being
11306      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11307      * it is populated. The Model can be used for [batch
11308      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11309      * if it is populated.
11310      * All fields of the explanation_spec can be overridden by
11311      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11312      * of
11313      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11314      * or
11315      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11316      * of
11317      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11318      * If the default explanation specification is not set for this Model, this
11319      * Model can still be used for
11320      * [requesting
11321      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11322      * setting
11323      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11324      * of
11325      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11326      * and for [batch
11327      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11328      * by setting
11329      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11330      * of
11331      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11332      * </pre>
11333      *
11334      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11335      */
11336     public com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder
getExplanationSpecOrBuilder()11337         getExplanationSpecOrBuilder() {
11338       if (explanationSpecBuilder_ != null) {
11339         return explanationSpecBuilder_.getMessageOrBuilder();
11340       } else {
11341         return explanationSpec_ == null
11342             ? com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()
11343             : explanationSpec_;
11344       }
11345     }
11346     /**
11347      *
11348      *
11349      * <pre>
11350      * The default explanation specification for this Model.
11351      * The Model can be used for
11352      * [requesting
11353      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain]
11354      * after being
11355      * [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if
11356      * it is populated. The Model can be used for [batch
11357      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11358      * if it is populated.
11359      * All fields of the explanation_spec can be overridden by
11360      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11361      * of
11362      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model],
11363      * or
11364      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11365      * of
11366      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11367      * If the default explanation specification is not set for this Model, this
11368      * Model can still be used for
11369      * [requesting
11370      * explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] by
11371      * setting
11372      * [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]
11373      * of
11374      * [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model]
11375      * and for [batch
11376      * explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation]
11377      * by setting
11378      * [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec]
11379      * of
11380      * [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob].
11381      * </pre>
11382      *
11383      * <code>.google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23;</code>
11384      */
11385     private com.google.protobuf.SingleFieldBuilderV3<
11386             com.google.cloud.aiplatform.v1beta1.ExplanationSpec,
11387             com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder,
11388             com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder>
getExplanationSpecFieldBuilder()11389         getExplanationSpecFieldBuilder() {
11390       if (explanationSpecBuilder_ == null) {
11391         explanationSpecBuilder_ =
11392             new com.google.protobuf.SingleFieldBuilderV3<
11393                 com.google.cloud.aiplatform.v1beta1.ExplanationSpec,
11394                 com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder,
11395                 com.google.cloud.aiplatform.v1beta1.ExplanationSpecOrBuilder>(
11396                 getExplanationSpec(), getParentForChildren(), isClean());
11397         explanationSpec_ = null;
11398       }
11399       return explanationSpecBuilder_;
11400     }
11401 
11402     private java.lang.Object etag_ = "";
11403     /**
11404      *
11405      *
11406      * <pre>
11407      * Used to perform consistent read-modify-write updates. If not set, a blind
11408      * "overwrite" update happens.
11409      * </pre>
11410      *
11411      * <code>string etag = 16;</code>
11412      *
11413      * @return The etag.
11414      */
getEtag()11415     public java.lang.String getEtag() {
11416       java.lang.Object ref = etag_;
11417       if (!(ref instanceof java.lang.String)) {
11418         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
11419         java.lang.String s = bs.toStringUtf8();
11420         etag_ = s;
11421         return s;
11422       } else {
11423         return (java.lang.String) ref;
11424       }
11425     }
11426     /**
11427      *
11428      *
11429      * <pre>
11430      * Used to perform consistent read-modify-write updates. If not set, a blind
11431      * "overwrite" update happens.
11432      * </pre>
11433      *
11434      * <code>string etag = 16;</code>
11435      *
11436      * @return The bytes for etag.
11437      */
getEtagBytes()11438     public com.google.protobuf.ByteString getEtagBytes() {
11439       java.lang.Object ref = etag_;
11440       if (ref instanceof String) {
11441         com.google.protobuf.ByteString b =
11442             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
11443         etag_ = b;
11444         return b;
11445       } else {
11446         return (com.google.protobuf.ByteString) ref;
11447       }
11448     }
11449     /**
11450      *
11451      *
11452      * <pre>
11453      * Used to perform consistent read-modify-write updates. If not set, a blind
11454      * "overwrite" update happens.
11455      * </pre>
11456      *
11457      * <code>string etag = 16;</code>
11458      *
11459      * @param value The etag to set.
11460      * @return This builder for chaining.
11461      */
setEtag(java.lang.String value)11462     public Builder setEtag(java.lang.String value) {
11463       if (value == null) {
11464         throw new NullPointerException();
11465       }
11466       etag_ = value;
11467       bitField0_ |= 0x00400000;
11468       onChanged();
11469       return this;
11470     }
11471     /**
11472      *
11473      *
11474      * <pre>
11475      * Used to perform consistent read-modify-write updates. If not set, a blind
11476      * "overwrite" update happens.
11477      * </pre>
11478      *
11479      * <code>string etag = 16;</code>
11480      *
11481      * @return This builder for chaining.
11482      */
clearEtag()11483     public Builder clearEtag() {
11484       etag_ = getDefaultInstance().getEtag();
11485       bitField0_ = (bitField0_ & ~0x00400000);
11486       onChanged();
11487       return this;
11488     }
11489     /**
11490      *
11491      *
11492      * <pre>
11493      * Used to perform consistent read-modify-write updates. If not set, a blind
11494      * "overwrite" update happens.
11495      * </pre>
11496      *
11497      * <code>string etag = 16;</code>
11498      *
11499      * @param value The bytes for etag to set.
11500      * @return This builder for chaining.
11501      */
setEtagBytes(com.google.protobuf.ByteString value)11502     public Builder setEtagBytes(com.google.protobuf.ByteString value) {
11503       if (value == null) {
11504         throw new NullPointerException();
11505       }
11506       checkByteStringIsUtf8(value);
11507       etag_ = value;
11508       bitField0_ |= 0x00400000;
11509       onChanged();
11510       return this;
11511     }
11512 
11513     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
11514 
internalGetLabels()11515     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
11516       if (labels_ == null) {
11517         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
11518       }
11519       return labels_;
11520     }
11521 
11522     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()11523         internalGetMutableLabels() {
11524       if (labels_ == null) {
11525         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
11526       }
11527       if (!labels_.isMutable()) {
11528         labels_ = labels_.copy();
11529       }
11530       bitField0_ |= 0x00800000;
11531       onChanged();
11532       return labels_;
11533     }
11534 
getLabelsCount()11535     public int getLabelsCount() {
11536       return internalGetLabels().getMap().size();
11537     }
11538     /**
11539      *
11540      *
11541      * <pre>
11542      * The labels with user-defined metadata to organize your Models.
11543      * Label keys and values can be no longer than 64 characters
11544      * (Unicode codepoints), can only contain lowercase letters, numeric
11545      * characters, underscores and dashes. International characters are allowed.
11546      * See https://goo.gl/xmQnxf for more information and examples of labels.
11547      * </pre>
11548      *
11549      * <code>map&lt;string, string&gt; labels = 17;</code>
11550      */
11551     @java.lang.Override
containsLabels(java.lang.String key)11552     public boolean containsLabels(java.lang.String key) {
11553       if (key == null) {
11554         throw new NullPointerException("map key");
11555       }
11556       return internalGetLabels().getMap().containsKey(key);
11557     }
11558     /** Use {@link #getLabelsMap()} instead. */
11559     @java.lang.Override
11560     @java.lang.Deprecated
getLabels()11561     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
11562       return getLabelsMap();
11563     }
11564     /**
11565      *
11566      *
11567      * <pre>
11568      * The labels with user-defined metadata to organize your Models.
11569      * Label keys and values can be no longer than 64 characters
11570      * (Unicode codepoints), can only contain lowercase letters, numeric
11571      * characters, underscores and dashes. International characters are allowed.
11572      * See https://goo.gl/xmQnxf for more information and examples of labels.
11573      * </pre>
11574      *
11575      * <code>map&lt;string, string&gt; labels = 17;</code>
11576      */
11577     @java.lang.Override
getLabelsMap()11578     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
11579       return internalGetLabels().getMap();
11580     }
11581     /**
11582      *
11583      *
11584      * <pre>
11585      * The labels with user-defined metadata to organize your Models.
11586      * Label keys and values can be no longer than 64 characters
11587      * (Unicode codepoints), can only contain lowercase letters, numeric
11588      * characters, underscores and dashes. International characters are allowed.
11589      * See https://goo.gl/xmQnxf for more information and examples of labels.
11590      * </pre>
11591      *
11592      * <code>map&lt;string, string&gt; labels = 17;</code>
11593      */
11594     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)11595     public /* nullable */ java.lang.String getLabelsOrDefault(
11596         java.lang.String key,
11597         /* nullable */
11598         java.lang.String defaultValue) {
11599       if (key == null) {
11600         throw new NullPointerException("map key");
11601       }
11602       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
11603       return map.containsKey(key) ? map.get(key) : defaultValue;
11604     }
11605     /**
11606      *
11607      *
11608      * <pre>
11609      * The labels with user-defined metadata to organize your Models.
11610      * Label keys and values can be no longer than 64 characters
11611      * (Unicode codepoints), can only contain lowercase letters, numeric
11612      * characters, underscores and dashes. International characters are allowed.
11613      * See https://goo.gl/xmQnxf for more information and examples of labels.
11614      * </pre>
11615      *
11616      * <code>map&lt;string, string&gt; labels = 17;</code>
11617      */
11618     @java.lang.Override
getLabelsOrThrow(java.lang.String key)11619     public java.lang.String getLabelsOrThrow(java.lang.String key) {
11620       if (key == null) {
11621         throw new NullPointerException("map key");
11622       }
11623       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
11624       if (!map.containsKey(key)) {
11625         throw new java.lang.IllegalArgumentException();
11626       }
11627       return map.get(key);
11628     }
11629 
clearLabels()11630     public Builder clearLabels() {
11631       bitField0_ = (bitField0_ & ~0x00800000);
11632       internalGetMutableLabels().getMutableMap().clear();
11633       return this;
11634     }
11635     /**
11636      *
11637      *
11638      * <pre>
11639      * The labels with user-defined metadata to organize your Models.
11640      * Label keys and values can be no longer than 64 characters
11641      * (Unicode codepoints), can only contain lowercase letters, numeric
11642      * characters, underscores and dashes. International characters are allowed.
11643      * See https://goo.gl/xmQnxf for more information and examples of labels.
11644      * </pre>
11645      *
11646      * <code>map&lt;string, string&gt; labels = 17;</code>
11647      */
removeLabels(java.lang.String key)11648     public Builder removeLabels(java.lang.String key) {
11649       if (key == null) {
11650         throw new NullPointerException("map key");
11651       }
11652       internalGetMutableLabels().getMutableMap().remove(key);
11653       return this;
11654     }
11655     /** Use alternate mutation accessors instead. */
11656     @java.lang.Deprecated
getMutableLabels()11657     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
11658       bitField0_ |= 0x00800000;
11659       return internalGetMutableLabels().getMutableMap();
11660     }
11661     /**
11662      *
11663      *
11664      * <pre>
11665      * The labels with user-defined metadata to organize your Models.
11666      * Label keys and values can be no longer than 64 characters
11667      * (Unicode codepoints), can only contain lowercase letters, numeric
11668      * characters, underscores and dashes. International characters are allowed.
11669      * See https://goo.gl/xmQnxf for more information and examples of labels.
11670      * </pre>
11671      *
11672      * <code>map&lt;string, string&gt; labels = 17;</code>
11673      */
putLabels(java.lang.String key, java.lang.String value)11674     public Builder putLabels(java.lang.String key, java.lang.String value) {
11675       if (key == null) {
11676         throw new NullPointerException("map key");
11677       }
11678       if (value == null) {
11679         throw new NullPointerException("map value");
11680       }
11681       internalGetMutableLabels().getMutableMap().put(key, value);
11682       bitField0_ |= 0x00800000;
11683       return this;
11684     }
11685     /**
11686      *
11687      *
11688      * <pre>
11689      * The labels with user-defined metadata to organize your Models.
11690      * Label keys and values can be no longer than 64 characters
11691      * (Unicode codepoints), can only contain lowercase letters, numeric
11692      * characters, underscores and dashes. International characters are allowed.
11693      * See https://goo.gl/xmQnxf for more information and examples of labels.
11694      * </pre>
11695      *
11696      * <code>map&lt;string, string&gt; labels = 17;</code>
11697      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)11698     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
11699       internalGetMutableLabels().getMutableMap().putAll(values);
11700       bitField0_ |= 0x00800000;
11701       return this;
11702     }
11703 
11704     private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_;
11705     private com.google.protobuf.SingleFieldBuilderV3<
11706             com.google.cloud.aiplatform.v1beta1.EncryptionSpec,
11707             com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder,
11708             com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>
11709         encryptionSpecBuilder_;
11710     /**
11711      *
11712      *
11713      * <pre>
11714      * Customer-managed encryption key spec for a Model. If set, this
11715      * Model and all sub-resources of this Model will be secured by this key.
11716      * </pre>
11717      *
11718      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11719      *
11720      * @return Whether the encryptionSpec field is set.
11721      */
hasEncryptionSpec()11722     public boolean hasEncryptionSpec() {
11723       return ((bitField0_ & 0x01000000) != 0);
11724     }
11725     /**
11726      *
11727      *
11728      * <pre>
11729      * Customer-managed encryption key spec for a Model. If set, this
11730      * Model and all sub-resources of this Model will be secured by this key.
11731      * </pre>
11732      *
11733      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11734      *
11735      * @return The encryptionSpec.
11736      */
getEncryptionSpec()11737     public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() {
11738       if (encryptionSpecBuilder_ == null) {
11739         return encryptionSpec_ == null
11740             ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
11741             : encryptionSpec_;
11742       } else {
11743         return encryptionSpecBuilder_.getMessage();
11744       }
11745     }
11746     /**
11747      *
11748      *
11749      * <pre>
11750      * Customer-managed encryption key spec for a Model. If set, this
11751      * Model and all sub-resources of this Model will be secured by this key.
11752      * </pre>
11753      *
11754      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11755      */
setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value)11756     public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) {
11757       if (encryptionSpecBuilder_ == null) {
11758         if (value == null) {
11759           throw new NullPointerException();
11760         }
11761         encryptionSpec_ = value;
11762       } else {
11763         encryptionSpecBuilder_.setMessage(value);
11764       }
11765       bitField0_ |= 0x01000000;
11766       onChanged();
11767       return this;
11768     }
11769     /**
11770      *
11771      *
11772      * <pre>
11773      * Customer-managed encryption key spec for a Model. If set, this
11774      * Model and all sub-resources of this Model will be secured by this key.
11775      * </pre>
11776      *
11777      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11778      */
setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue)11779     public Builder setEncryptionSpec(
11780         com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) {
11781       if (encryptionSpecBuilder_ == null) {
11782         encryptionSpec_ = builderForValue.build();
11783       } else {
11784         encryptionSpecBuilder_.setMessage(builderForValue.build());
11785       }
11786       bitField0_ |= 0x01000000;
11787       onChanged();
11788       return this;
11789     }
11790     /**
11791      *
11792      *
11793      * <pre>
11794      * Customer-managed encryption key spec for a Model. If set, this
11795      * Model and all sub-resources of this Model will be secured by this key.
11796      * </pre>
11797      *
11798      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11799      */
mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value)11800     public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) {
11801       if (encryptionSpecBuilder_ == null) {
11802         if (((bitField0_ & 0x01000000) != 0)
11803             && encryptionSpec_ != null
11804             && encryptionSpec_
11805                 != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) {
11806           getEncryptionSpecBuilder().mergeFrom(value);
11807         } else {
11808           encryptionSpec_ = value;
11809         }
11810       } else {
11811         encryptionSpecBuilder_.mergeFrom(value);
11812       }
11813       bitField0_ |= 0x01000000;
11814       onChanged();
11815       return this;
11816     }
11817     /**
11818      *
11819      *
11820      * <pre>
11821      * Customer-managed encryption key spec for a Model. If set, this
11822      * Model and all sub-resources of this Model will be secured by this key.
11823      * </pre>
11824      *
11825      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11826      */
clearEncryptionSpec()11827     public Builder clearEncryptionSpec() {
11828       bitField0_ = (bitField0_ & ~0x01000000);
11829       encryptionSpec_ = null;
11830       if (encryptionSpecBuilder_ != null) {
11831         encryptionSpecBuilder_.dispose();
11832         encryptionSpecBuilder_ = null;
11833       }
11834       onChanged();
11835       return this;
11836     }
11837     /**
11838      *
11839      *
11840      * <pre>
11841      * Customer-managed encryption key spec for a Model. If set, this
11842      * Model and all sub-resources of this Model will be secured by this key.
11843      * </pre>
11844      *
11845      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11846      */
getEncryptionSpecBuilder()11847     public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() {
11848       bitField0_ |= 0x01000000;
11849       onChanged();
11850       return getEncryptionSpecFieldBuilder().getBuilder();
11851     }
11852     /**
11853      *
11854      *
11855      * <pre>
11856      * Customer-managed encryption key spec for a Model. If set, this
11857      * Model and all sub-resources of this Model will be secured by this key.
11858      * </pre>
11859      *
11860      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11861      */
11862     public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder
getEncryptionSpecOrBuilder()11863         getEncryptionSpecOrBuilder() {
11864       if (encryptionSpecBuilder_ != null) {
11865         return encryptionSpecBuilder_.getMessageOrBuilder();
11866       } else {
11867         return encryptionSpec_ == null
11868             ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()
11869             : encryptionSpec_;
11870       }
11871     }
11872     /**
11873      *
11874      *
11875      * <pre>
11876      * Customer-managed encryption key spec for a Model. If set, this
11877      * Model and all sub-resources of this Model will be secured by this key.
11878      * </pre>
11879      *
11880      * <code>.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24;</code>
11881      */
11882     private com.google.protobuf.SingleFieldBuilderV3<
11883             com.google.cloud.aiplatform.v1beta1.EncryptionSpec,
11884             com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder,
11885             com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>
getEncryptionSpecFieldBuilder()11886         getEncryptionSpecFieldBuilder() {
11887       if (encryptionSpecBuilder_ == null) {
11888         encryptionSpecBuilder_ =
11889             new com.google.protobuf.SingleFieldBuilderV3<
11890                 com.google.cloud.aiplatform.v1beta1.EncryptionSpec,
11891                 com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder,
11892                 com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>(
11893                 getEncryptionSpec(), getParentForChildren(), isClean());
11894         encryptionSpec_ = null;
11895       }
11896       return encryptionSpecBuilder_;
11897     }
11898 
11899     private com.google.cloud.aiplatform.v1beta1.ModelSourceInfo modelSourceInfo_;
11900     private com.google.protobuf.SingleFieldBuilderV3<
11901             com.google.cloud.aiplatform.v1beta1.ModelSourceInfo,
11902             com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder,
11903             com.google.cloud.aiplatform.v1beta1.ModelSourceInfoOrBuilder>
11904         modelSourceInfoBuilder_;
11905     /**
11906      *
11907      *
11908      * <pre>
11909      * Output only. Source of a model. It can either be automl training pipeline,
11910      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
11911      * </pre>
11912      *
11913      * <code>
11914      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
11915      * </code>
11916      *
11917      * @return Whether the modelSourceInfo field is set.
11918      */
hasModelSourceInfo()11919     public boolean hasModelSourceInfo() {
11920       return ((bitField0_ & 0x02000000) != 0);
11921     }
11922     /**
11923      *
11924      *
11925      * <pre>
11926      * Output only. Source of a model. It can either be automl training pipeline,
11927      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
11928      * </pre>
11929      *
11930      * <code>
11931      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
11932      * </code>
11933      *
11934      * @return The modelSourceInfo.
11935      */
getModelSourceInfo()11936     public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo getModelSourceInfo() {
11937       if (modelSourceInfoBuilder_ == null) {
11938         return modelSourceInfo_ == null
11939             ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()
11940             : modelSourceInfo_;
11941       } else {
11942         return modelSourceInfoBuilder_.getMessage();
11943       }
11944     }
11945     /**
11946      *
11947      *
11948      * <pre>
11949      * Output only. Source of a model. It can either be automl training pipeline,
11950      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
11951      * </pre>
11952      *
11953      * <code>
11954      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
11955      * </code>
11956      */
setModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo value)11957     public Builder setModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo value) {
11958       if (modelSourceInfoBuilder_ == null) {
11959         if (value == null) {
11960           throw new NullPointerException();
11961         }
11962         modelSourceInfo_ = value;
11963       } else {
11964         modelSourceInfoBuilder_.setMessage(value);
11965       }
11966       bitField0_ |= 0x02000000;
11967       onChanged();
11968       return this;
11969     }
11970     /**
11971      *
11972      *
11973      * <pre>
11974      * Output only. Source of a model. It can either be automl training pipeline,
11975      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
11976      * </pre>
11977      *
11978      * <code>
11979      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
11980      * </code>
11981      */
setModelSourceInfo( com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder builderForValue)11982     public Builder setModelSourceInfo(
11983         com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder builderForValue) {
11984       if (modelSourceInfoBuilder_ == null) {
11985         modelSourceInfo_ = builderForValue.build();
11986       } else {
11987         modelSourceInfoBuilder_.setMessage(builderForValue.build());
11988       }
11989       bitField0_ |= 0x02000000;
11990       onChanged();
11991       return this;
11992     }
11993     /**
11994      *
11995      *
11996      * <pre>
11997      * Output only. Source of a model. It can either be automl training pipeline,
11998      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
11999      * </pre>
12000      *
12001      * <code>
12002      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
12003      * </code>
12004      */
mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo value)12005     public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo value) {
12006       if (modelSourceInfoBuilder_ == null) {
12007         if (((bitField0_ & 0x02000000) != 0)
12008             && modelSourceInfo_ != null
12009             && modelSourceInfo_
12010                 != com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()) {
12011           getModelSourceInfoBuilder().mergeFrom(value);
12012         } else {
12013           modelSourceInfo_ = value;
12014         }
12015       } else {
12016         modelSourceInfoBuilder_.mergeFrom(value);
12017       }
12018       bitField0_ |= 0x02000000;
12019       onChanged();
12020       return this;
12021     }
12022     /**
12023      *
12024      *
12025      * <pre>
12026      * Output only. Source of a model. It can either be automl training pipeline,
12027      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
12028      * </pre>
12029      *
12030      * <code>
12031      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
12032      * </code>
12033      */
clearModelSourceInfo()12034     public Builder clearModelSourceInfo() {
12035       bitField0_ = (bitField0_ & ~0x02000000);
12036       modelSourceInfo_ = null;
12037       if (modelSourceInfoBuilder_ != null) {
12038         modelSourceInfoBuilder_.dispose();
12039         modelSourceInfoBuilder_ = null;
12040       }
12041       onChanged();
12042       return this;
12043     }
12044     /**
12045      *
12046      *
12047      * <pre>
12048      * Output only. Source of a model. It can either be automl training pipeline,
12049      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
12050      * </pre>
12051      *
12052      * <code>
12053      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
12054      * </code>
12055      */
getModelSourceInfoBuilder()12056     public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder getModelSourceInfoBuilder() {
12057       bitField0_ |= 0x02000000;
12058       onChanged();
12059       return getModelSourceInfoFieldBuilder().getBuilder();
12060     }
12061     /**
12062      *
12063      *
12064      * <pre>
12065      * Output only. Source of a model. It can either be automl training pipeline,
12066      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
12067      * </pre>
12068      *
12069      * <code>
12070      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
12071      * </code>
12072      */
12073     public com.google.cloud.aiplatform.v1beta1.ModelSourceInfoOrBuilder
getModelSourceInfoOrBuilder()12074         getModelSourceInfoOrBuilder() {
12075       if (modelSourceInfoBuilder_ != null) {
12076         return modelSourceInfoBuilder_.getMessageOrBuilder();
12077       } else {
12078         return modelSourceInfo_ == null
12079             ? com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()
12080             : modelSourceInfo_;
12081       }
12082     }
12083     /**
12084      *
12085      *
12086      * <pre>
12087      * Output only. Source of a model. It can either be automl training pipeline,
12088      * custom training pipeline, BigQuery ML, or existing Vertex AI Model.
12089      * </pre>
12090      *
12091      * <code>
12092      * .google.cloud.aiplatform.v1beta1.ModelSourceInfo model_source_info = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
12093      * </code>
12094      */
12095     private com.google.protobuf.SingleFieldBuilderV3<
12096             com.google.cloud.aiplatform.v1beta1.ModelSourceInfo,
12097             com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder,
12098             com.google.cloud.aiplatform.v1beta1.ModelSourceInfoOrBuilder>
getModelSourceInfoFieldBuilder()12099         getModelSourceInfoFieldBuilder() {
12100       if (modelSourceInfoBuilder_ == null) {
12101         modelSourceInfoBuilder_ =
12102             new com.google.protobuf.SingleFieldBuilderV3<
12103                 com.google.cloud.aiplatform.v1beta1.ModelSourceInfo,
12104                 com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder,
12105                 com.google.cloud.aiplatform.v1beta1.ModelSourceInfoOrBuilder>(
12106                 getModelSourceInfo(), getParentForChildren(), isClean());
12107         modelSourceInfo_ = null;
12108       }
12109       return modelSourceInfoBuilder_;
12110     }
12111 
12112     private com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo originalModelInfo_;
12113     private com.google.protobuf.SingleFieldBuilderV3<
12114             com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo,
12115             com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder,
12116             com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfoOrBuilder>
12117         originalModelInfoBuilder_;
12118     /**
12119      *
12120      *
12121      * <pre>
12122      * Output only. If this Model is a copy of another Model, this contains info
12123      * about the original.
12124      * </pre>
12125      *
12126      * <code>
12127      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12128      * </code>
12129      *
12130      * @return Whether the originalModelInfo field is set.
12131      */
hasOriginalModelInfo()12132     public boolean hasOriginalModelInfo() {
12133       return ((bitField0_ & 0x04000000) != 0);
12134     }
12135     /**
12136      *
12137      *
12138      * <pre>
12139      * Output only. If this Model is a copy of another Model, this contains info
12140      * about the original.
12141      * </pre>
12142      *
12143      * <code>
12144      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12145      * </code>
12146      *
12147      * @return The originalModelInfo.
12148      */
getOriginalModelInfo()12149     public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo getOriginalModelInfo() {
12150       if (originalModelInfoBuilder_ == null) {
12151         return originalModelInfo_ == null
12152             ? com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.getDefaultInstance()
12153             : originalModelInfo_;
12154       } else {
12155         return originalModelInfoBuilder_.getMessage();
12156       }
12157     }
12158     /**
12159      *
12160      *
12161      * <pre>
12162      * Output only. If this Model is a copy of another Model, this contains info
12163      * about the original.
12164      * </pre>
12165      *
12166      * <code>
12167      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12168      * </code>
12169      */
setOriginalModelInfo( com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo value)12170     public Builder setOriginalModelInfo(
12171         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo value) {
12172       if (originalModelInfoBuilder_ == null) {
12173         if (value == null) {
12174           throw new NullPointerException();
12175         }
12176         originalModelInfo_ = value;
12177       } else {
12178         originalModelInfoBuilder_.setMessage(value);
12179       }
12180       bitField0_ |= 0x04000000;
12181       onChanged();
12182       return this;
12183     }
12184     /**
12185      *
12186      *
12187      * <pre>
12188      * Output only. If this Model is a copy of another Model, this contains info
12189      * about the original.
12190      * </pre>
12191      *
12192      * <code>
12193      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12194      * </code>
12195      */
setOriginalModelInfo( com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder builderForValue)12196     public Builder setOriginalModelInfo(
12197         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder builderForValue) {
12198       if (originalModelInfoBuilder_ == null) {
12199         originalModelInfo_ = builderForValue.build();
12200       } else {
12201         originalModelInfoBuilder_.setMessage(builderForValue.build());
12202       }
12203       bitField0_ |= 0x04000000;
12204       onChanged();
12205       return this;
12206     }
12207     /**
12208      *
12209      *
12210      * <pre>
12211      * Output only. If this Model is a copy of another Model, this contains info
12212      * about the original.
12213      * </pre>
12214      *
12215      * <code>
12216      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12217      * </code>
12218      */
mergeOriginalModelInfo( com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo value)12219     public Builder mergeOriginalModelInfo(
12220         com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo value) {
12221       if (originalModelInfoBuilder_ == null) {
12222         if (((bitField0_ & 0x04000000) != 0)
12223             && originalModelInfo_ != null
12224             && originalModelInfo_
12225                 != com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo
12226                     .getDefaultInstance()) {
12227           getOriginalModelInfoBuilder().mergeFrom(value);
12228         } else {
12229           originalModelInfo_ = value;
12230         }
12231       } else {
12232         originalModelInfoBuilder_.mergeFrom(value);
12233       }
12234       bitField0_ |= 0x04000000;
12235       onChanged();
12236       return this;
12237     }
12238     /**
12239      *
12240      *
12241      * <pre>
12242      * Output only. If this Model is a copy of another Model, this contains info
12243      * about the original.
12244      * </pre>
12245      *
12246      * <code>
12247      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12248      * </code>
12249      */
clearOriginalModelInfo()12250     public Builder clearOriginalModelInfo() {
12251       bitField0_ = (bitField0_ & ~0x04000000);
12252       originalModelInfo_ = null;
12253       if (originalModelInfoBuilder_ != null) {
12254         originalModelInfoBuilder_.dispose();
12255         originalModelInfoBuilder_ = null;
12256       }
12257       onChanged();
12258       return this;
12259     }
12260     /**
12261      *
12262      *
12263      * <pre>
12264      * Output only. If this Model is a copy of another Model, this contains info
12265      * about the original.
12266      * </pre>
12267      *
12268      * <code>
12269      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12270      * </code>
12271      */
12272     public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder
getOriginalModelInfoBuilder()12273         getOriginalModelInfoBuilder() {
12274       bitField0_ |= 0x04000000;
12275       onChanged();
12276       return getOriginalModelInfoFieldBuilder().getBuilder();
12277     }
12278     /**
12279      *
12280      *
12281      * <pre>
12282      * Output only. If this Model is a copy of another Model, this contains info
12283      * about the original.
12284      * </pre>
12285      *
12286      * <code>
12287      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12288      * </code>
12289      */
12290     public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfoOrBuilder
getOriginalModelInfoOrBuilder()12291         getOriginalModelInfoOrBuilder() {
12292       if (originalModelInfoBuilder_ != null) {
12293         return originalModelInfoBuilder_.getMessageOrBuilder();
12294       } else {
12295         return originalModelInfo_ == null
12296             ? com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.getDefaultInstance()
12297             : originalModelInfo_;
12298       }
12299     }
12300     /**
12301      *
12302      *
12303      * <pre>
12304      * Output only. If this Model is a copy of another Model, this contains info
12305      * about the original.
12306      * </pre>
12307      *
12308      * <code>
12309      * .google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo original_model_info = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
12310      * </code>
12311      */
12312     private com.google.protobuf.SingleFieldBuilderV3<
12313             com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo,
12314             com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder,
12315             com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfoOrBuilder>
getOriginalModelInfoFieldBuilder()12316         getOriginalModelInfoFieldBuilder() {
12317       if (originalModelInfoBuilder_ == null) {
12318         originalModelInfoBuilder_ =
12319             new com.google.protobuf.SingleFieldBuilderV3<
12320                 com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo,
12321                 com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder,
12322                 com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfoOrBuilder>(
12323                 getOriginalModelInfo(), getParentForChildren(), isClean());
12324         originalModelInfo_ = null;
12325       }
12326       return originalModelInfoBuilder_;
12327     }
12328 
12329     private java.lang.Object metadataArtifact_ = "";
12330     /**
12331      *
12332      *
12333      * <pre>
12334      * Output only. The resource name of the Artifact that was created in
12335      * MetadataStore when creating the Model. The Artifact resource name pattern
12336      * is
12337      * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
12338      * </pre>
12339      *
12340      * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
12341      *
12342      * @return The metadataArtifact.
12343      */
getMetadataArtifact()12344     public java.lang.String getMetadataArtifact() {
12345       java.lang.Object ref = metadataArtifact_;
12346       if (!(ref instanceof java.lang.String)) {
12347         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
12348         java.lang.String s = bs.toStringUtf8();
12349         metadataArtifact_ = s;
12350         return s;
12351       } else {
12352         return (java.lang.String) ref;
12353       }
12354     }
12355     /**
12356      *
12357      *
12358      * <pre>
12359      * Output only. The resource name of the Artifact that was created in
12360      * MetadataStore when creating the Model. The Artifact resource name pattern
12361      * is
12362      * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
12363      * </pre>
12364      *
12365      * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
12366      *
12367      * @return The bytes for metadataArtifact.
12368      */
getMetadataArtifactBytes()12369     public com.google.protobuf.ByteString getMetadataArtifactBytes() {
12370       java.lang.Object ref = metadataArtifact_;
12371       if (ref instanceof String) {
12372         com.google.protobuf.ByteString b =
12373             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
12374         metadataArtifact_ = b;
12375         return b;
12376       } else {
12377         return (com.google.protobuf.ByteString) ref;
12378       }
12379     }
12380     /**
12381      *
12382      *
12383      * <pre>
12384      * Output only. The resource name of the Artifact that was created in
12385      * MetadataStore when creating the Model. The Artifact resource name pattern
12386      * is
12387      * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
12388      * </pre>
12389      *
12390      * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
12391      *
12392      * @param value The metadataArtifact to set.
12393      * @return This builder for chaining.
12394      */
setMetadataArtifact(java.lang.String value)12395     public Builder setMetadataArtifact(java.lang.String value) {
12396       if (value == null) {
12397         throw new NullPointerException();
12398       }
12399       metadataArtifact_ = value;
12400       bitField0_ |= 0x08000000;
12401       onChanged();
12402       return this;
12403     }
12404     /**
12405      *
12406      *
12407      * <pre>
12408      * Output only. The resource name of the Artifact that was created in
12409      * MetadataStore when creating the Model. The Artifact resource name pattern
12410      * is
12411      * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
12412      * </pre>
12413      *
12414      * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
12415      *
12416      * @return This builder for chaining.
12417      */
clearMetadataArtifact()12418     public Builder clearMetadataArtifact() {
12419       metadataArtifact_ = getDefaultInstance().getMetadataArtifact();
12420       bitField0_ = (bitField0_ & ~0x08000000);
12421       onChanged();
12422       return this;
12423     }
12424     /**
12425      *
12426      *
12427      * <pre>
12428      * Output only. The resource name of the Artifact that was created in
12429      * MetadataStore when creating the Model. The Artifact resource name pattern
12430      * is
12431      * `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
12432      * </pre>
12433      *
12434      * <code>string metadata_artifact = 44 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
12435      *
12436      * @param value The bytes for metadataArtifact to set.
12437      * @return This builder for chaining.
12438      */
setMetadataArtifactBytes(com.google.protobuf.ByteString value)12439     public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) {
12440       if (value == null) {
12441         throw new NullPointerException();
12442       }
12443       checkByteStringIsUtf8(value);
12444       metadataArtifact_ = value;
12445       bitField0_ |= 0x08000000;
12446       onChanged();
12447       return this;
12448     }
12449 
12450     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)12451     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
12452       return super.setUnknownFields(unknownFields);
12453     }
12454 
12455     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)12456     public final Builder mergeUnknownFields(
12457         final com.google.protobuf.UnknownFieldSet unknownFields) {
12458       return super.mergeUnknownFields(unknownFields);
12459     }
12460 
12461     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Model)
12462   }
12463 
12464   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Model)
12465   private static final com.google.cloud.aiplatform.v1beta1.Model DEFAULT_INSTANCE;
12466 
12467   static {
12468     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Model();
12469   }
12470 
getDefaultInstance()12471   public static com.google.cloud.aiplatform.v1beta1.Model getDefaultInstance() {
12472     return DEFAULT_INSTANCE;
12473   }
12474 
12475   private static final com.google.protobuf.Parser<Model> PARSER =
12476       new com.google.protobuf.AbstractParser<Model>() {
12477         @java.lang.Override
12478         public Model parsePartialFrom(
12479             com.google.protobuf.CodedInputStream input,
12480             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
12481             throws com.google.protobuf.InvalidProtocolBufferException {
12482           Builder builder = newBuilder();
12483           try {
12484             builder.mergeFrom(input, extensionRegistry);
12485           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
12486             throw e.setUnfinishedMessage(builder.buildPartial());
12487           } catch (com.google.protobuf.UninitializedMessageException e) {
12488             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
12489           } catch (java.io.IOException e) {
12490             throw new com.google.protobuf.InvalidProtocolBufferException(e)
12491                 .setUnfinishedMessage(builder.buildPartial());
12492           }
12493           return builder.buildPartial();
12494         }
12495       };
12496 
parser()12497   public static com.google.protobuf.Parser<Model> parser() {
12498     return PARSER;
12499   }
12500 
12501   @java.lang.Override
getParserForType()12502   public com.google.protobuf.Parser<Model> getParserForType() {
12503     return PARSER;
12504   }
12505 
12506   @java.lang.Override
getDefaultInstanceForType()12507   public com.google.cloud.aiplatform.v1beta1.Model getDefaultInstanceForType() {
12508     return DEFAULT_INSTANCE;
12509   }
12510 }
12511