• 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/index.proto
18 
19 package com.google.cloud.aiplatform.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A representation of a collection of database items organized in a way that
26  * allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.aiplatform.v1beta1.Index}
30  */
31 public final class Index extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Index)
34     IndexOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use Index.newBuilder() to construct.
Index(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private Index(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
Index()41   private Index() {
42     name_ = "";
43     displayName_ = "";
44     description_ = "";
45     metadataSchemaUri_ = "";
46     deployedIndexes_ = java.util.Collections.emptyList();
47     etag_ = "";
48     indexUpdateMethod_ = 0;
49   }
50 
51   @java.lang.Override
52   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)53   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
54     return new Index();
55   }
56 
57   @java.lang.Override
getUnknownFields()58   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
59     return this.unknownFields;
60   }
61 
getDescriptor()62   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
63     return com.google.cloud.aiplatform.v1beta1.IndexProto
64         .internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor;
65   }
66 
67   @SuppressWarnings({"rawtypes"})
68   @java.lang.Override
internalGetMapField(int number)69   protected com.google.protobuf.MapField internalGetMapField(int number) {
70     switch (number) {
71       case 9:
72         return internalGetLabels();
73       default:
74         throw new RuntimeException("Invalid map field number: " + number);
75     }
76   }
77 
78   @java.lang.Override
79   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()80       internalGetFieldAccessorTable() {
81     return com.google.cloud.aiplatform.v1beta1.IndexProto
82         .internal_static_google_cloud_aiplatform_v1beta1_Index_fieldAccessorTable
83         .ensureFieldAccessorsInitialized(
84             com.google.cloud.aiplatform.v1beta1.Index.class,
85             com.google.cloud.aiplatform.v1beta1.Index.Builder.class);
86   }
87 
88   /**
89    *
90    *
91    * <pre>
92    * The update method of an Index.
93    * </pre>
94    *
95    * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod}
96    */
97   public enum IndexUpdateMethod implements com.google.protobuf.ProtocolMessageEnum {
98     /**
99      *
100      *
101      * <pre>
102      * Should not be used.
103      * </pre>
104      *
105      * <code>INDEX_UPDATE_METHOD_UNSPECIFIED = 0;</code>
106      */
107     INDEX_UPDATE_METHOD_UNSPECIFIED(0),
108     /**
109      *
110      *
111      * <pre>
112      * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
113      * datapoints to update.
114      * </pre>
115      *
116      * <code>BATCH_UPDATE = 1;</code>
117      */
118     BATCH_UPDATE(1),
119     /**
120      *
121      *
122      * <pre>
123      * StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update
124      * the Index and the updates will be applied in corresponding
125      * DeployedIndexes in nearly real-time.
126      * </pre>
127      *
128      * <code>STREAM_UPDATE = 2;</code>
129      */
130     STREAM_UPDATE(2),
131     UNRECOGNIZED(-1),
132     ;
133 
134     /**
135      *
136      *
137      * <pre>
138      * Should not be used.
139      * </pre>
140      *
141      * <code>INDEX_UPDATE_METHOD_UNSPECIFIED = 0;</code>
142      */
143     public static final int INDEX_UPDATE_METHOD_UNSPECIFIED_VALUE = 0;
144     /**
145      *
146      *
147      * <pre>
148      * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
149      * datapoints to update.
150      * </pre>
151      *
152      * <code>BATCH_UPDATE = 1;</code>
153      */
154     public static final int BATCH_UPDATE_VALUE = 1;
155     /**
156      *
157      *
158      * <pre>
159      * StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update
160      * the Index and the updates will be applied in corresponding
161      * DeployedIndexes in nearly real-time.
162      * </pre>
163      *
164      * <code>STREAM_UPDATE = 2;</code>
165      */
166     public static final int STREAM_UPDATE_VALUE = 2;
167 
getNumber()168     public final int getNumber() {
169       if (this == UNRECOGNIZED) {
170         throw new java.lang.IllegalArgumentException(
171             "Can't get the number of an unknown enum value.");
172       }
173       return value;
174     }
175 
176     /**
177      * @param value The numeric wire value of the corresponding enum entry.
178      * @return The enum associated with the given numeric wire value.
179      * @deprecated Use {@link #forNumber(int)} instead.
180      */
181     @java.lang.Deprecated
valueOf(int value)182     public static IndexUpdateMethod valueOf(int value) {
183       return forNumber(value);
184     }
185 
186     /**
187      * @param value The numeric wire value of the corresponding enum entry.
188      * @return The enum associated with the given numeric wire value.
189      */
forNumber(int value)190     public static IndexUpdateMethod forNumber(int value) {
191       switch (value) {
192         case 0:
193           return INDEX_UPDATE_METHOD_UNSPECIFIED;
194         case 1:
195           return BATCH_UPDATE;
196         case 2:
197           return STREAM_UPDATE;
198         default:
199           return null;
200       }
201     }
202 
203     public static com.google.protobuf.Internal.EnumLiteMap<IndexUpdateMethod>
internalGetValueMap()204         internalGetValueMap() {
205       return internalValueMap;
206     }
207 
208     private static final com.google.protobuf.Internal.EnumLiteMap<IndexUpdateMethod>
209         internalValueMap =
210             new com.google.protobuf.Internal.EnumLiteMap<IndexUpdateMethod>() {
211               public IndexUpdateMethod findValueByNumber(int number) {
212                 return IndexUpdateMethod.forNumber(number);
213               }
214             };
215 
getValueDescriptor()216     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
217       if (this == UNRECOGNIZED) {
218         throw new java.lang.IllegalStateException(
219             "Can't get the descriptor of an unrecognized enum value.");
220       }
221       return getDescriptor().getValues().get(ordinal());
222     }
223 
getDescriptorForType()224     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
225       return getDescriptor();
226     }
227 
getDescriptor()228     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
229       return com.google.cloud.aiplatform.v1beta1.Index.getDescriptor().getEnumTypes().get(0);
230     }
231 
232     private static final IndexUpdateMethod[] VALUES = values();
233 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)234     public static IndexUpdateMethod valueOf(
235         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
236       if (desc.getType() != getDescriptor()) {
237         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
238       }
239       if (desc.getIndex() == -1) {
240         return UNRECOGNIZED;
241       }
242       return VALUES[desc.getIndex()];
243     }
244 
245     private final int value;
246 
IndexUpdateMethod(int value)247     private IndexUpdateMethod(int value) {
248       this.value = value;
249     }
250 
251     // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod)
252   }
253 
254   public static final int NAME_FIELD_NUMBER = 1;
255 
256   @SuppressWarnings("serial")
257   private volatile java.lang.Object name_ = "";
258   /**
259    *
260    *
261    * <pre>
262    * Output only. The resource name of the Index.
263    * </pre>
264    *
265    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
266    *
267    * @return The name.
268    */
269   @java.lang.Override
getName()270   public java.lang.String getName() {
271     java.lang.Object ref = name_;
272     if (ref instanceof java.lang.String) {
273       return (java.lang.String) ref;
274     } else {
275       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
276       java.lang.String s = bs.toStringUtf8();
277       name_ = s;
278       return s;
279     }
280   }
281   /**
282    *
283    *
284    * <pre>
285    * Output only. The resource name of the Index.
286    * </pre>
287    *
288    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
289    *
290    * @return The bytes for name.
291    */
292   @java.lang.Override
getNameBytes()293   public com.google.protobuf.ByteString getNameBytes() {
294     java.lang.Object ref = name_;
295     if (ref instanceof java.lang.String) {
296       com.google.protobuf.ByteString b =
297           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
298       name_ = b;
299       return b;
300     } else {
301       return (com.google.protobuf.ByteString) ref;
302     }
303   }
304 
305   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
306 
307   @SuppressWarnings("serial")
308   private volatile java.lang.Object displayName_ = "";
309   /**
310    *
311    *
312    * <pre>
313    * Required. The display name of the Index.
314    * The name can be up to 128 characters long and can consist of any UTF-8
315    * characters.
316    * </pre>
317    *
318    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
319    *
320    * @return The displayName.
321    */
322   @java.lang.Override
getDisplayName()323   public java.lang.String getDisplayName() {
324     java.lang.Object ref = displayName_;
325     if (ref instanceof java.lang.String) {
326       return (java.lang.String) ref;
327     } else {
328       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
329       java.lang.String s = bs.toStringUtf8();
330       displayName_ = s;
331       return s;
332     }
333   }
334   /**
335    *
336    *
337    * <pre>
338    * Required. The display name of the Index.
339    * The name can be up to 128 characters long and can consist of any UTF-8
340    * characters.
341    * </pre>
342    *
343    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
344    *
345    * @return The bytes for displayName.
346    */
347   @java.lang.Override
getDisplayNameBytes()348   public com.google.protobuf.ByteString getDisplayNameBytes() {
349     java.lang.Object ref = displayName_;
350     if (ref instanceof java.lang.String) {
351       com.google.protobuf.ByteString b =
352           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
353       displayName_ = b;
354       return b;
355     } else {
356       return (com.google.protobuf.ByteString) ref;
357     }
358   }
359 
360   public static final int DESCRIPTION_FIELD_NUMBER = 3;
361 
362   @SuppressWarnings("serial")
363   private volatile java.lang.Object description_ = "";
364   /**
365    *
366    *
367    * <pre>
368    * The description of the Index.
369    * </pre>
370    *
371    * <code>string description = 3;</code>
372    *
373    * @return The description.
374    */
375   @java.lang.Override
getDescription()376   public java.lang.String getDescription() {
377     java.lang.Object ref = description_;
378     if (ref instanceof java.lang.String) {
379       return (java.lang.String) ref;
380     } else {
381       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
382       java.lang.String s = bs.toStringUtf8();
383       description_ = s;
384       return s;
385     }
386   }
387   /**
388    *
389    *
390    * <pre>
391    * The description of the Index.
392    * </pre>
393    *
394    * <code>string description = 3;</code>
395    *
396    * @return The bytes for description.
397    */
398   @java.lang.Override
getDescriptionBytes()399   public com.google.protobuf.ByteString getDescriptionBytes() {
400     java.lang.Object ref = description_;
401     if (ref instanceof java.lang.String) {
402       com.google.protobuf.ByteString b =
403           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
404       description_ = b;
405       return b;
406     } else {
407       return (com.google.protobuf.ByteString) ref;
408     }
409   }
410 
411   public static final int METADATA_SCHEMA_URI_FIELD_NUMBER = 4;
412 
413   @SuppressWarnings("serial")
414   private volatile java.lang.Object metadataSchemaUri_ = "";
415   /**
416    *
417    *
418    * <pre>
419    * Immutable. Points to a YAML file stored on Google Cloud Storage describing
420    * additional information about the Index, that is specific to it. Unset if
421    * the Index does not have any additional information. The schema is defined
422    * as an OpenAPI 3.0.2 [Schema
423    * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
424    * Note: The URI given on output will be immutable and probably different,
425    * including the URI scheme, than the one given on input. The output URI will
426    * point to a location where the user only has a read access.
427    * </pre>
428    *
429    * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
430    *
431    * @return The metadataSchemaUri.
432    */
433   @java.lang.Override
getMetadataSchemaUri()434   public java.lang.String getMetadataSchemaUri() {
435     java.lang.Object ref = metadataSchemaUri_;
436     if (ref instanceof java.lang.String) {
437       return (java.lang.String) ref;
438     } else {
439       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
440       java.lang.String s = bs.toStringUtf8();
441       metadataSchemaUri_ = s;
442       return s;
443     }
444   }
445   /**
446    *
447    *
448    * <pre>
449    * Immutable. Points to a YAML file stored on Google Cloud Storage describing
450    * additional information about the Index, that is specific to it. Unset if
451    * the Index does not have any additional information. The schema is defined
452    * as an OpenAPI 3.0.2 [Schema
453    * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
454    * Note: The URI given on output will be immutable and probably different,
455    * including the URI scheme, than the one given on input. The output URI will
456    * point to a location where the user only has a read access.
457    * </pre>
458    *
459    * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
460    *
461    * @return The bytes for metadataSchemaUri.
462    */
463   @java.lang.Override
getMetadataSchemaUriBytes()464   public com.google.protobuf.ByteString getMetadataSchemaUriBytes() {
465     java.lang.Object ref = metadataSchemaUri_;
466     if (ref instanceof java.lang.String) {
467       com.google.protobuf.ByteString b =
468           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
469       metadataSchemaUri_ = b;
470       return b;
471     } else {
472       return (com.google.protobuf.ByteString) ref;
473     }
474   }
475 
476   public static final int METADATA_FIELD_NUMBER = 6;
477   private com.google.protobuf.Value metadata_;
478   /**
479    *
480    *
481    * <pre>
482    * An additional information about the Index; the schema of the metadata can
483    * be found in
484    * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
485    * </pre>
486    *
487    * <code>.google.protobuf.Value metadata = 6;</code>
488    *
489    * @return Whether the metadata field is set.
490    */
491   @java.lang.Override
hasMetadata()492   public boolean hasMetadata() {
493     return metadata_ != null;
494   }
495   /**
496    *
497    *
498    * <pre>
499    * An additional information about the Index; the schema of the metadata can
500    * be found in
501    * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
502    * </pre>
503    *
504    * <code>.google.protobuf.Value metadata = 6;</code>
505    *
506    * @return The metadata.
507    */
508   @java.lang.Override
getMetadata()509   public com.google.protobuf.Value getMetadata() {
510     return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
511   }
512   /**
513    *
514    *
515    * <pre>
516    * An additional information about the Index; the schema of the metadata can
517    * be found in
518    * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
519    * </pre>
520    *
521    * <code>.google.protobuf.Value metadata = 6;</code>
522    */
523   @java.lang.Override
getMetadataOrBuilder()524   public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() {
525     return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
526   }
527 
528   public static final int DEPLOYED_INDEXES_FIELD_NUMBER = 7;
529 
530   @SuppressWarnings("serial")
531   private java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedIndexRef> deployedIndexes_;
532   /**
533    *
534    *
535    * <pre>
536    * Output only. The pointers to DeployedIndexes created from this Index.
537    * An Index can be only deleted if all its DeployedIndexes had been undeployed
538    * first.
539    * </pre>
540    *
541    * <code>
542    * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
543    * </code>
544    */
545   @java.lang.Override
546   public java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedIndexRef>
getDeployedIndexesList()547       getDeployedIndexesList() {
548     return deployedIndexes_;
549   }
550   /**
551    *
552    *
553    * <pre>
554    * Output only. The pointers to DeployedIndexes created from this Index.
555    * An Index can be only deleted if all its DeployedIndexes had been undeployed
556    * first.
557    * </pre>
558    *
559    * <code>
560    * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
561    * </code>
562    */
563   @java.lang.Override
564   public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>
getDeployedIndexesOrBuilderList()565       getDeployedIndexesOrBuilderList() {
566     return deployedIndexes_;
567   }
568   /**
569    *
570    *
571    * <pre>
572    * Output only. The pointers to DeployedIndexes created from this Index.
573    * An Index can be only deleted if all its DeployedIndexes had been undeployed
574    * first.
575    * </pre>
576    *
577    * <code>
578    * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
579    * </code>
580    */
581   @java.lang.Override
getDeployedIndexesCount()582   public int getDeployedIndexesCount() {
583     return deployedIndexes_.size();
584   }
585   /**
586    *
587    *
588    * <pre>
589    * Output only. The pointers to DeployedIndexes created from this Index.
590    * An Index can be only deleted if all its DeployedIndexes had been undeployed
591    * first.
592    * </pre>
593    *
594    * <code>
595    * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
596    * </code>
597    */
598   @java.lang.Override
getDeployedIndexes(int index)599   public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDeployedIndexes(int index) {
600     return deployedIndexes_.get(index);
601   }
602   /**
603    *
604    *
605    * <pre>
606    * Output only. The pointers to DeployedIndexes created from this Index.
607    * An Index can be only deleted if all its DeployedIndexes had been undeployed
608    * first.
609    * </pre>
610    *
611    * <code>
612    * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
613    * </code>
614    */
615   @java.lang.Override
getDeployedIndexesOrBuilder( int index)616   public com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder getDeployedIndexesOrBuilder(
617       int index) {
618     return deployedIndexes_.get(index);
619   }
620 
621   public static final int ETAG_FIELD_NUMBER = 8;
622 
623   @SuppressWarnings("serial")
624   private volatile java.lang.Object etag_ = "";
625   /**
626    *
627    *
628    * <pre>
629    * Used to perform consistent read-modify-write updates. If not set, a blind
630    * "overwrite" update happens.
631    * </pre>
632    *
633    * <code>string etag = 8;</code>
634    *
635    * @return The etag.
636    */
637   @java.lang.Override
getEtag()638   public java.lang.String getEtag() {
639     java.lang.Object ref = etag_;
640     if (ref instanceof java.lang.String) {
641       return (java.lang.String) ref;
642     } else {
643       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
644       java.lang.String s = bs.toStringUtf8();
645       etag_ = s;
646       return s;
647     }
648   }
649   /**
650    *
651    *
652    * <pre>
653    * Used to perform consistent read-modify-write updates. If not set, a blind
654    * "overwrite" update happens.
655    * </pre>
656    *
657    * <code>string etag = 8;</code>
658    *
659    * @return The bytes for etag.
660    */
661   @java.lang.Override
getEtagBytes()662   public com.google.protobuf.ByteString getEtagBytes() {
663     java.lang.Object ref = etag_;
664     if (ref instanceof java.lang.String) {
665       com.google.protobuf.ByteString b =
666           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
667       etag_ = b;
668       return b;
669     } else {
670       return (com.google.protobuf.ByteString) ref;
671     }
672   }
673 
674   public static final int LABELS_FIELD_NUMBER = 9;
675 
676   private static final class LabelsDefaultEntryHolder {
677     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
678         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
679             com.google.cloud.aiplatform.v1beta1.IndexProto
680                 .internal_static_google_cloud_aiplatform_v1beta1_Index_LabelsEntry_descriptor,
681             com.google.protobuf.WireFormat.FieldType.STRING,
682             "",
683             com.google.protobuf.WireFormat.FieldType.STRING,
684             "");
685   }
686 
687   @SuppressWarnings("serial")
688   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
689 
internalGetLabels()690   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
691     if (labels_ == null) {
692       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
693     }
694     return labels_;
695   }
696 
getLabelsCount()697   public int getLabelsCount() {
698     return internalGetLabels().getMap().size();
699   }
700   /**
701    *
702    *
703    * <pre>
704    * The labels with user-defined metadata to organize your Indexes.
705    * Label keys and values can be no longer than 64 characters
706    * (Unicode codepoints), can only contain lowercase letters, numeric
707    * characters, underscores and dashes. International characters are allowed.
708    * See https://goo.gl/xmQnxf for more information and examples of labels.
709    * </pre>
710    *
711    * <code>map&lt;string, string&gt; labels = 9;</code>
712    */
713   @java.lang.Override
containsLabels(java.lang.String key)714   public boolean containsLabels(java.lang.String key) {
715     if (key == null) {
716       throw new NullPointerException("map key");
717     }
718     return internalGetLabels().getMap().containsKey(key);
719   }
720   /** Use {@link #getLabelsMap()} instead. */
721   @java.lang.Override
722   @java.lang.Deprecated
getLabels()723   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
724     return getLabelsMap();
725   }
726   /**
727    *
728    *
729    * <pre>
730    * The labels with user-defined metadata to organize your Indexes.
731    * Label keys and values can be no longer than 64 characters
732    * (Unicode codepoints), can only contain lowercase letters, numeric
733    * characters, underscores and dashes. International characters are allowed.
734    * See https://goo.gl/xmQnxf for more information and examples of labels.
735    * </pre>
736    *
737    * <code>map&lt;string, string&gt; labels = 9;</code>
738    */
739   @java.lang.Override
getLabelsMap()740   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
741     return internalGetLabels().getMap();
742   }
743   /**
744    *
745    *
746    * <pre>
747    * The labels with user-defined metadata to organize your Indexes.
748    * Label keys and values can be no longer than 64 characters
749    * (Unicode codepoints), can only contain lowercase letters, numeric
750    * characters, underscores and dashes. International characters are allowed.
751    * See https://goo.gl/xmQnxf for more information and examples of labels.
752    * </pre>
753    *
754    * <code>map&lt;string, string&gt; labels = 9;</code>
755    */
756   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)757   public /* nullable */ java.lang.String getLabelsOrDefault(
758       java.lang.String key,
759       /* nullable */
760       java.lang.String defaultValue) {
761     if (key == null) {
762       throw new NullPointerException("map key");
763     }
764     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
765     return map.containsKey(key) ? map.get(key) : defaultValue;
766   }
767   /**
768    *
769    *
770    * <pre>
771    * The labels with user-defined metadata to organize your Indexes.
772    * Label keys and values can be no longer than 64 characters
773    * (Unicode codepoints), can only contain lowercase letters, numeric
774    * characters, underscores and dashes. International characters are allowed.
775    * See https://goo.gl/xmQnxf for more information and examples of labels.
776    * </pre>
777    *
778    * <code>map&lt;string, string&gt; labels = 9;</code>
779    */
780   @java.lang.Override
getLabelsOrThrow(java.lang.String key)781   public java.lang.String getLabelsOrThrow(java.lang.String key) {
782     if (key == null) {
783       throw new NullPointerException("map key");
784     }
785     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
786     if (!map.containsKey(key)) {
787       throw new java.lang.IllegalArgumentException();
788     }
789     return map.get(key);
790   }
791 
792   public static final int CREATE_TIME_FIELD_NUMBER = 10;
793   private com.google.protobuf.Timestamp createTime_;
794   /**
795    *
796    *
797    * <pre>
798    * Output only. Timestamp when this Index was created.
799    * </pre>
800    *
801    * <code>.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
802    * </code>
803    *
804    * @return Whether the createTime field is set.
805    */
806   @java.lang.Override
hasCreateTime()807   public boolean hasCreateTime() {
808     return createTime_ != null;
809   }
810   /**
811    *
812    *
813    * <pre>
814    * Output only. Timestamp when this Index was created.
815    * </pre>
816    *
817    * <code>.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
818    * </code>
819    *
820    * @return The createTime.
821    */
822   @java.lang.Override
getCreateTime()823   public com.google.protobuf.Timestamp getCreateTime() {
824     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
825   }
826   /**
827    *
828    *
829    * <pre>
830    * Output only. Timestamp when this Index was created.
831    * </pre>
832    *
833    * <code>.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
834    * </code>
835    */
836   @java.lang.Override
getCreateTimeOrBuilder()837   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
838     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
839   }
840 
841   public static final int UPDATE_TIME_FIELD_NUMBER = 11;
842   private com.google.protobuf.Timestamp updateTime_;
843   /**
844    *
845    *
846    * <pre>
847    * Output only. Timestamp when this Index was most recently updated.
848    * This also includes any update to the contents of the Index.
849    * Note that Operations working on this Index may have their
850    * [Operations.metadata.generic_metadata.update_time]
851    * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
852    * little after the value of this timestamp, yet that does not mean their
853    * results are not already reflected in the Index. Result of any successfully
854    * completed Operation on the Index is reflected in it.
855    * </pre>
856    *
857    * <code>.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
858    * </code>
859    *
860    * @return Whether the updateTime field is set.
861    */
862   @java.lang.Override
hasUpdateTime()863   public boolean hasUpdateTime() {
864     return updateTime_ != null;
865   }
866   /**
867    *
868    *
869    * <pre>
870    * Output only. Timestamp when this Index was most recently updated.
871    * This also includes any update to the contents of the Index.
872    * Note that Operations working on this Index may have their
873    * [Operations.metadata.generic_metadata.update_time]
874    * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
875    * little after the value of this timestamp, yet that does not mean their
876    * results are not already reflected in the Index. Result of any successfully
877    * completed Operation on the Index is reflected in it.
878    * </pre>
879    *
880    * <code>.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
881    * </code>
882    *
883    * @return The updateTime.
884    */
885   @java.lang.Override
getUpdateTime()886   public com.google.protobuf.Timestamp getUpdateTime() {
887     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
888   }
889   /**
890    *
891    *
892    * <pre>
893    * Output only. Timestamp when this Index was most recently updated.
894    * This also includes any update to the contents of the Index.
895    * Note that Operations working on this Index may have their
896    * [Operations.metadata.generic_metadata.update_time]
897    * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
898    * little after the value of this timestamp, yet that does not mean their
899    * results are not already reflected in the Index. Result of any successfully
900    * completed Operation on the Index is reflected in it.
901    * </pre>
902    *
903    * <code>.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
904    * </code>
905    */
906   @java.lang.Override
getUpdateTimeOrBuilder()907   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
908     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
909   }
910 
911   public static final int INDEX_STATS_FIELD_NUMBER = 14;
912   private com.google.cloud.aiplatform.v1beta1.IndexStats indexStats_;
913   /**
914    *
915    *
916    * <pre>
917    * Output only. Stats of the index resource.
918    * </pre>
919    *
920    * <code>
921    * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
922    * </code>
923    *
924    * @return Whether the indexStats field is set.
925    */
926   @java.lang.Override
hasIndexStats()927   public boolean hasIndexStats() {
928     return indexStats_ != null;
929   }
930   /**
931    *
932    *
933    * <pre>
934    * Output only. Stats of the index resource.
935    * </pre>
936    *
937    * <code>
938    * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
939    * </code>
940    *
941    * @return The indexStats.
942    */
943   @java.lang.Override
getIndexStats()944   public com.google.cloud.aiplatform.v1beta1.IndexStats getIndexStats() {
945     return indexStats_ == null
946         ? com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance()
947         : indexStats_;
948   }
949   /**
950    *
951    *
952    * <pre>
953    * Output only. Stats of the index resource.
954    * </pre>
955    *
956    * <code>
957    * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
958    * </code>
959    */
960   @java.lang.Override
getIndexStatsOrBuilder()961   public com.google.cloud.aiplatform.v1beta1.IndexStatsOrBuilder getIndexStatsOrBuilder() {
962     return indexStats_ == null
963         ? com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance()
964         : indexStats_;
965   }
966 
967   public static final int INDEX_UPDATE_METHOD_FIELD_NUMBER = 16;
968   private int indexUpdateMethod_ = 0;
969   /**
970    *
971    *
972    * <pre>
973    * Immutable. The update method to use with this Index. If not set,
974    * BATCH_UPDATE will be used by default.
975    * </pre>
976    *
977    * <code>
978    * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
979    * </code>
980    *
981    * @return The enum numeric value on the wire for indexUpdateMethod.
982    */
983   @java.lang.Override
getIndexUpdateMethodValue()984   public int getIndexUpdateMethodValue() {
985     return indexUpdateMethod_;
986   }
987   /**
988    *
989    *
990    * <pre>
991    * Immutable. The update method to use with this Index. If not set,
992    * BATCH_UPDATE will be used by default.
993    * </pre>
994    *
995    * <code>
996    * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
997    * </code>
998    *
999    * @return The indexUpdateMethod.
1000    */
1001   @java.lang.Override
getIndexUpdateMethod()1002   public com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod getIndexUpdateMethod() {
1003     com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod result =
1004         com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.forNumber(indexUpdateMethod_);
1005     return result == null
1006         ? com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.UNRECOGNIZED
1007         : result;
1008   }
1009 
1010   private byte memoizedIsInitialized = -1;
1011 
1012   @java.lang.Override
isInitialized()1013   public final boolean isInitialized() {
1014     byte isInitialized = memoizedIsInitialized;
1015     if (isInitialized == 1) return true;
1016     if (isInitialized == 0) return false;
1017 
1018     memoizedIsInitialized = 1;
1019     return true;
1020   }
1021 
1022   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1023   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1024     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1025       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1026     }
1027     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
1028       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
1029     }
1030     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1031       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
1032     }
1033     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataSchemaUri_)) {
1034       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, metadataSchemaUri_);
1035     }
1036     if (metadata_ != null) {
1037       output.writeMessage(6, getMetadata());
1038     }
1039     for (int i = 0; i < deployedIndexes_.size(); i++) {
1040       output.writeMessage(7, deployedIndexes_.get(i));
1041     }
1042     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
1043       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_);
1044     }
1045     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1046         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
1047     if (createTime_ != null) {
1048       output.writeMessage(10, getCreateTime());
1049     }
1050     if (updateTime_ != null) {
1051       output.writeMessage(11, getUpdateTime());
1052     }
1053     if (indexStats_ != null) {
1054       output.writeMessage(14, getIndexStats());
1055     }
1056     if (indexUpdateMethod_
1057         != com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod
1058             .INDEX_UPDATE_METHOD_UNSPECIFIED
1059             .getNumber()) {
1060       output.writeEnum(16, indexUpdateMethod_);
1061     }
1062     getUnknownFields().writeTo(output);
1063   }
1064 
1065   @java.lang.Override
getSerializedSize()1066   public int getSerializedSize() {
1067     int size = memoizedSize;
1068     if (size != -1) return size;
1069 
1070     size = 0;
1071     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1072       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1073     }
1074     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
1075       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
1076     }
1077     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1078       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
1079     }
1080     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataSchemaUri_)) {
1081       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, metadataSchemaUri_);
1082     }
1083     if (metadata_ != null) {
1084       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata());
1085     }
1086     for (int i = 0; i < deployedIndexes_.size(); i++) {
1087       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, deployedIndexes_.get(i));
1088     }
1089     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
1090       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_);
1091     }
1092     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1093         internalGetLabels().getMap().entrySet()) {
1094       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1095           LabelsDefaultEntryHolder.defaultEntry
1096               .newBuilderForType()
1097               .setKey(entry.getKey())
1098               .setValue(entry.getValue())
1099               .build();
1100       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
1101     }
1102     if (createTime_ != null) {
1103       size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime());
1104     }
1105     if (updateTime_ != null) {
1106       size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime());
1107     }
1108     if (indexStats_ != null) {
1109       size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getIndexStats());
1110     }
1111     if (indexUpdateMethod_
1112         != com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod
1113             .INDEX_UPDATE_METHOD_UNSPECIFIED
1114             .getNumber()) {
1115       size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, indexUpdateMethod_);
1116     }
1117     size += getUnknownFields().getSerializedSize();
1118     memoizedSize = size;
1119     return size;
1120   }
1121 
1122   @java.lang.Override
equals(final java.lang.Object obj)1123   public boolean equals(final java.lang.Object obj) {
1124     if (obj == this) {
1125       return true;
1126     }
1127     if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.Index)) {
1128       return super.equals(obj);
1129     }
1130     com.google.cloud.aiplatform.v1beta1.Index other =
1131         (com.google.cloud.aiplatform.v1beta1.Index) obj;
1132 
1133     if (!getName().equals(other.getName())) return false;
1134     if (!getDisplayName().equals(other.getDisplayName())) return false;
1135     if (!getDescription().equals(other.getDescription())) return false;
1136     if (!getMetadataSchemaUri().equals(other.getMetadataSchemaUri())) return false;
1137     if (hasMetadata() != other.hasMetadata()) return false;
1138     if (hasMetadata()) {
1139       if (!getMetadata().equals(other.getMetadata())) return false;
1140     }
1141     if (!getDeployedIndexesList().equals(other.getDeployedIndexesList())) return false;
1142     if (!getEtag().equals(other.getEtag())) return false;
1143     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
1144     if (hasCreateTime() != other.hasCreateTime()) return false;
1145     if (hasCreateTime()) {
1146       if (!getCreateTime().equals(other.getCreateTime())) return false;
1147     }
1148     if (hasUpdateTime() != other.hasUpdateTime()) return false;
1149     if (hasUpdateTime()) {
1150       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
1151     }
1152     if (hasIndexStats() != other.hasIndexStats()) return false;
1153     if (hasIndexStats()) {
1154       if (!getIndexStats().equals(other.getIndexStats())) return false;
1155     }
1156     if (indexUpdateMethod_ != other.indexUpdateMethod_) return false;
1157     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1158     return true;
1159   }
1160 
1161   @java.lang.Override
hashCode()1162   public int hashCode() {
1163     if (memoizedHashCode != 0) {
1164       return memoizedHashCode;
1165     }
1166     int hash = 41;
1167     hash = (19 * hash) + getDescriptor().hashCode();
1168     hash = (37 * hash) + NAME_FIELD_NUMBER;
1169     hash = (53 * hash) + getName().hashCode();
1170     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
1171     hash = (53 * hash) + getDisplayName().hashCode();
1172     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1173     hash = (53 * hash) + getDescription().hashCode();
1174     hash = (37 * hash) + METADATA_SCHEMA_URI_FIELD_NUMBER;
1175     hash = (53 * hash) + getMetadataSchemaUri().hashCode();
1176     if (hasMetadata()) {
1177       hash = (37 * hash) + METADATA_FIELD_NUMBER;
1178       hash = (53 * hash) + getMetadata().hashCode();
1179     }
1180     if (getDeployedIndexesCount() > 0) {
1181       hash = (37 * hash) + DEPLOYED_INDEXES_FIELD_NUMBER;
1182       hash = (53 * hash) + getDeployedIndexesList().hashCode();
1183     }
1184     hash = (37 * hash) + ETAG_FIELD_NUMBER;
1185     hash = (53 * hash) + getEtag().hashCode();
1186     if (!internalGetLabels().getMap().isEmpty()) {
1187       hash = (37 * hash) + LABELS_FIELD_NUMBER;
1188       hash = (53 * hash) + internalGetLabels().hashCode();
1189     }
1190     if (hasCreateTime()) {
1191       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1192       hash = (53 * hash) + getCreateTime().hashCode();
1193     }
1194     if (hasUpdateTime()) {
1195       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1196       hash = (53 * hash) + getUpdateTime().hashCode();
1197     }
1198     if (hasIndexStats()) {
1199       hash = (37 * hash) + INDEX_STATS_FIELD_NUMBER;
1200       hash = (53 * hash) + getIndexStats().hashCode();
1201     }
1202     hash = (37 * hash) + INDEX_UPDATE_METHOD_FIELD_NUMBER;
1203     hash = (53 * hash) + indexUpdateMethod_;
1204     hash = (29 * hash) + getUnknownFields().hashCode();
1205     memoizedHashCode = hash;
1206     return hash;
1207   }
1208 
parseFrom(java.nio.ByteBuffer data)1209   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(java.nio.ByteBuffer data)
1210       throws com.google.protobuf.InvalidProtocolBufferException {
1211     return PARSER.parseFrom(data);
1212   }
1213 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1214   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1215       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1216       throws com.google.protobuf.InvalidProtocolBufferException {
1217     return PARSER.parseFrom(data, extensionRegistry);
1218   }
1219 
parseFrom( com.google.protobuf.ByteString data)1220   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1221       com.google.protobuf.ByteString data)
1222       throws com.google.protobuf.InvalidProtocolBufferException {
1223     return PARSER.parseFrom(data);
1224   }
1225 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1226   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1227       com.google.protobuf.ByteString data,
1228       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1229       throws com.google.protobuf.InvalidProtocolBufferException {
1230     return PARSER.parseFrom(data, extensionRegistry);
1231   }
1232 
parseFrom(byte[] data)1233   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(byte[] data)
1234       throws com.google.protobuf.InvalidProtocolBufferException {
1235     return PARSER.parseFrom(data);
1236   }
1237 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1238   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1239       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1240       throws com.google.protobuf.InvalidProtocolBufferException {
1241     return PARSER.parseFrom(data, extensionRegistry);
1242   }
1243 
parseFrom(java.io.InputStream input)1244   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(java.io.InputStream input)
1245       throws java.io.IOException {
1246     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1247   }
1248 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1249   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1250       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1251       throws java.io.IOException {
1252     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1253         PARSER, input, extensionRegistry);
1254   }
1255 
parseDelimitedFrom( java.io.InputStream input)1256   public static com.google.cloud.aiplatform.v1beta1.Index parseDelimitedFrom(
1257       java.io.InputStream input) throws java.io.IOException {
1258     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1259   }
1260 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1261   public static com.google.cloud.aiplatform.v1beta1.Index parseDelimitedFrom(
1262       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1263       throws java.io.IOException {
1264     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1265         PARSER, input, extensionRegistry);
1266   }
1267 
parseFrom( com.google.protobuf.CodedInputStream input)1268   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1269       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1270     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1271   }
1272 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1273   public static com.google.cloud.aiplatform.v1beta1.Index parseFrom(
1274       com.google.protobuf.CodedInputStream input,
1275       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1276       throws java.io.IOException {
1277     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1278         PARSER, input, extensionRegistry);
1279   }
1280 
1281   @java.lang.Override
newBuilderForType()1282   public Builder newBuilderForType() {
1283     return newBuilder();
1284   }
1285 
newBuilder()1286   public static Builder newBuilder() {
1287     return DEFAULT_INSTANCE.toBuilder();
1288   }
1289 
newBuilder(com.google.cloud.aiplatform.v1beta1.Index prototype)1290   public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Index prototype) {
1291     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1292   }
1293 
1294   @java.lang.Override
toBuilder()1295   public Builder toBuilder() {
1296     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1297   }
1298 
1299   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1300   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1301     Builder builder = new Builder(parent);
1302     return builder;
1303   }
1304   /**
1305    *
1306    *
1307    * <pre>
1308    * A representation of a collection of database items organized in a way that
1309    * allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
1310    * </pre>
1311    *
1312    * Protobuf type {@code google.cloud.aiplatform.v1beta1.Index}
1313    */
1314   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1315       implements
1316       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Index)
1317       com.google.cloud.aiplatform.v1beta1.IndexOrBuilder {
getDescriptor()1318     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1319       return com.google.cloud.aiplatform.v1beta1.IndexProto
1320           .internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor;
1321     }
1322 
1323     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)1324     protected com.google.protobuf.MapField internalGetMapField(int number) {
1325       switch (number) {
1326         case 9:
1327           return internalGetLabels();
1328         default:
1329           throw new RuntimeException("Invalid map field number: " + number);
1330       }
1331     }
1332 
1333     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)1334     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
1335       switch (number) {
1336         case 9:
1337           return internalGetMutableLabels();
1338         default:
1339           throw new RuntimeException("Invalid map field number: " + number);
1340       }
1341     }
1342 
1343     @java.lang.Override
1344     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1345         internalGetFieldAccessorTable() {
1346       return com.google.cloud.aiplatform.v1beta1.IndexProto
1347           .internal_static_google_cloud_aiplatform_v1beta1_Index_fieldAccessorTable
1348           .ensureFieldAccessorsInitialized(
1349               com.google.cloud.aiplatform.v1beta1.Index.class,
1350               com.google.cloud.aiplatform.v1beta1.Index.Builder.class);
1351     }
1352 
1353     // Construct using com.google.cloud.aiplatform.v1beta1.Index.newBuilder()
Builder()1354     private Builder() {}
1355 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1356     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1357       super(parent);
1358     }
1359 
1360     @java.lang.Override
clear()1361     public Builder clear() {
1362       super.clear();
1363       bitField0_ = 0;
1364       name_ = "";
1365       displayName_ = "";
1366       description_ = "";
1367       metadataSchemaUri_ = "";
1368       metadata_ = null;
1369       if (metadataBuilder_ != null) {
1370         metadataBuilder_.dispose();
1371         metadataBuilder_ = null;
1372       }
1373       if (deployedIndexesBuilder_ == null) {
1374         deployedIndexes_ = java.util.Collections.emptyList();
1375       } else {
1376         deployedIndexes_ = null;
1377         deployedIndexesBuilder_.clear();
1378       }
1379       bitField0_ = (bitField0_ & ~0x00000020);
1380       etag_ = "";
1381       internalGetMutableLabels().clear();
1382       createTime_ = null;
1383       if (createTimeBuilder_ != null) {
1384         createTimeBuilder_.dispose();
1385         createTimeBuilder_ = null;
1386       }
1387       updateTime_ = null;
1388       if (updateTimeBuilder_ != null) {
1389         updateTimeBuilder_.dispose();
1390         updateTimeBuilder_ = null;
1391       }
1392       indexStats_ = null;
1393       if (indexStatsBuilder_ != null) {
1394         indexStatsBuilder_.dispose();
1395         indexStatsBuilder_ = null;
1396       }
1397       indexUpdateMethod_ = 0;
1398       return this;
1399     }
1400 
1401     @java.lang.Override
getDescriptorForType()1402     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1403       return com.google.cloud.aiplatform.v1beta1.IndexProto
1404           .internal_static_google_cloud_aiplatform_v1beta1_Index_descriptor;
1405     }
1406 
1407     @java.lang.Override
getDefaultInstanceForType()1408     public com.google.cloud.aiplatform.v1beta1.Index getDefaultInstanceForType() {
1409       return com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance();
1410     }
1411 
1412     @java.lang.Override
build()1413     public com.google.cloud.aiplatform.v1beta1.Index build() {
1414       com.google.cloud.aiplatform.v1beta1.Index result = buildPartial();
1415       if (!result.isInitialized()) {
1416         throw newUninitializedMessageException(result);
1417       }
1418       return result;
1419     }
1420 
1421     @java.lang.Override
buildPartial()1422     public com.google.cloud.aiplatform.v1beta1.Index buildPartial() {
1423       com.google.cloud.aiplatform.v1beta1.Index result =
1424           new com.google.cloud.aiplatform.v1beta1.Index(this);
1425       buildPartialRepeatedFields(result);
1426       if (bitField0_ != 0) {
1427         buildPartial0(result);
1428       }
1429       onBuilt();
1430       return result;
1431     }
1432 
buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Index result)1433     private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Index result) {
1434       if (deployedIndexesBuilder_ == null) {
1435         if (((bitField0_ & 0x00000020) != 0)) {
1436           deployedIndexes_ = java.util.Collections.unmodifiableList(deployedIndexes_);
1437           bitField0_ = (bitField0_ & ~0x00000020);
1438         }
1439         result.deployedIndexes_ = deployedIndexes_;
1440       } else {
1441         result.deployedIndexes_ = deployedIndexesBuilder_.build();
1442       }
1443     }
1444 
buildPartial0(com.google.cloud.aiplatform.v1beta1.Index result)1445     private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Index result) {
1446       int from_bitField0_ = bitField0_;
1447       if (((from_bitField0_ & 0x00000001) != 0)) {
1448         result.name_ = name_;
1449       }
1450       if (((from_bitField0_ & 0x00000002) != 0)) {
1451         result.displayName_ = displayName_;
1452       }
1453       if (((from_bitField0_ & 0x00000004) != 0)) {
1454         result.description_ = description_;
1455       }
1456       if (((from_bitField0_ & 0x00000008) != 0)) {
1457         result.metadataSchemaUri_ = metadataSchemaUri_;
1458       }
1459       if (((from_bitField0_ & 0x00000010) != 0)) {
1460         result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
1461       }
1462       if (((from_bitField0_ & 0x00000040) != 0)) {
1463         result.etag_ = etag_;
1464       }
1465       if (((from_bitField0_ & 0x00000080) != 0)) {
1466         result.labels_ = internalGetLabels();
1467         result.labels_.makeImmutable();
1468       }
1469       if (((from_bitField0_ & 0x00000100) != 0)) {
1470         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
1471       }
1472       if (((from_bitField0_ & 0x00000200) != 0)) {
1473         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
1474       }
1475       if (((from_bitField0_ & 0x00000400) != 0)) {
1476         result.indexStats_ = indexStatsBuilder_ == null ? indexStats_ : indexStatsBuilder_.build();
1477       }
1478       if (((from_bitField0_ & 0x00000800) != 0)) {
1479         result.indexUpdateMethod_ = indexUpdateMethod_;
1480       }
1481     }
1482 
1483     @java.lang.Override
clone()1484     public Builder clone() {
1485       return super.clone();
1486     }
1487 
1488     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1489     public Builder setField(
1490         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1491       return super.setField(field, value);
1492     }
1493 
1494     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1495     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1496       return super.clearField(field);
1497     }
1498 
1499     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1500     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1501       return super.clearOneof(oneof);
1502     }
1503 
1504     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1505     public Builder setRepeatedField(
1506         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1507       return super.setRepeatedField(field, index, value);
1508     }
1509 
1510     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1511     public Builder addRepeatedField(
1512         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1513       return super.addRepeatedField(field, value);
1514     }
1515 
1516     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1517     public Builder mergeFrom(com.google.protobuf.Message other) {
1518       if (other instanceof com.google.cloud.aiplatform.v1beta1.Index) {
1519         return mergeFrom((com.google.cloud.aiplatform.v1beta1.Index) other);
1520       } else {
1521         super.mergeFrom(other);
1522         return this;
1523       }
1524     }
1525 
mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other)1526     public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Index other) {
1527       if (other == com.google.cloud.aiplatform.v1beta1.Index.getDefaultInstance()) return this;
1528       if (!other.getName().isEmpty()) {
1529         name_ = other.name_;
1530         bitField0_ |= 0x00000001;
1531         onChanged();
1532       }
1533       if (!other.getDisplayName().isEmpty()) {
1534         displayName_ = other.displayName_;
1535         bitField0_ |= 0x00000002;
1536         onChanged();
1537       }
1538       if (!other.getDescription().isEmpty()) {
1539         description_ = other.description_;
1540         bitField0_ |= 0x00000004;
1541         onChanged();
1542       }
1543       if (!other.getMetadataSchemaUri().isEmpty()) {
1544         metadataSchemaUri_ = other.metadataSchemaUri_;
1545         bitField0_ |= 0x00000008;
1546         onChanged();
1547       }
1548       if (other.hasMetadata()) {
1549         mergeMetadata(other.getMetadata());
1550       }
1551       if (deployedIndexesBuilder_ == null) {
1552         if (!other.deployedIndexes_.isEmpty()) {
1553           if (deployedIndexes_.isEmpty()) {
1554             deployedIndexes_ = other.deployedIndexes_;
1555             bitField0_ = (bitField0_ & ~0x00000020);
1556           } else {
1557             ensureDeployedIndexesIsMutable();
1558             deployedIndexes_.addAll(other.deployedIndexes_);
1559           }
1560           onChanged();
1561         }
1562       } else {
1563         if (!other.deployedIndexes_.isEmpty()) {
1564           if (deployedIndexesBuilder_.isEmpty()) {
1565             deployedIndexesBuilder_.dispose();
1566             deployedIndexesBuilder_ = null;
1567             deployedIndexes_ = other.deployedIndexes_;
1568             bitField0_ = (bitField0_ & ~0x00000020);
1569             deployedIndexesBuilder_ =
1570                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1571                     ? getDeployedIndexesFieldBuilder()
1572                     : null;
1573           } else {
1574             deployedIndexesBuilder_.addAllMessages(other.deployedIndexes_);
1575           }
1576         }
1577       }
1578       if (!other.getEtag().isEmpty()) {
1579         etag_ = other.etag_;
1580         bitField0_ |= 0x00000040;
1581         onChanged();
1582       }
1583       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
1584       bitField0_ |= 0x00000080;
1585       if (other.hasCreateTime()) {
1586         mergeCreateTime(other.getCreateTime());
1587       }
1588       if (other.hasUpdateTime()) {
1589         mergeUpdateTime(other.getUpdateTime());
1590       }
1591       if (other.hasIndexStats()) {
1592         mergeIndexStats(other.getIndexStats());
1593       }
1594       if (other.indexUpdateMethod_ != 0) {
1595         setIndexUpdateMethodValue(other.getIndexUpdateMethodValue());
1596       }
1597       this.mergeUnknownFields(other.getUnknownFields());
1598       onChanged();
1599       return this;
1600     }
1601 
1602     @java.lang.Override
isInitialized()1603     public final boolean isInitialized() {
1604       return true;
1605     }
1606 
1607     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1608     public Builder mergeFrom(
1609         com.google.protobuf.CodedInputStream input,
1610         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1611         throws java.io.IOException {
1612       if (extensionRegistry == null) {
1613         throw new java.lang.NullPointerException();
1614       }
1615       try {
1616         boolean done = false;
1617         while (!done) {
1618           int tag = input.readTag();
1619           switch (tag) {
1620             case 0:
1621               done = true;
1622               break;
1623             case 10:
1624               {
1625                 name_ = input.readStringRequireUtf8();
1626                 bitField0_ |= 0x00000001;
1627                 break;
1628               } // case 10
1629             case 18:
1630               {
1631                 displayName_ = input.readStringRequireUtf8();
1632                 bitField0_ |= 0x00000002;
1633                 break;
1634               } // case 18
1635             case 26:
1636               {
1637                 description_ = input.readStringRequireUtf8();
1638                 bitField0_ |= 0x00000004;
1639                 break;
1640               } // case 26
1641             case 34:
1642               {
1643                 metadataSchemaUri_ = input.readStringRequireUtf8();
1644                 bitField0_ |= 0x00000008;
1645                 break;
1646               } // case 34
1647             case 50:
1648               {
1649                 input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
1650                 bitField0_ |= 0x00000010;
1651                 break;
1652               } // case 50
1653             case 58:
1654               {
1655                 com.google.cloud.aiplatform.v1beta1.DeployedIndexRef m =
1656                     input.readMessage(
1657                         com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.parser(),
1658                         extensionRegistry);
1659                 if (deployedIndexesBuilder_ == null) {
1660                   ensureDeployedIndexesIsMutable();
1661                   deployedIndexes_.add(m);
1662                 } else {
1663                   deployedIndexesBuilder_.addMessage(m);
1664                 }
1665                 break;
1666               } // case 58
1667             case 66:
1668               {
1669                 etag_ = input.readStringRequireUtf8();
1670                 bitField0_ |= 0x00000040;
1671                 break;
1672               } // case 66
1673             case 74:
1674               {
1675                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1676                     input.readMessage(
1677                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
1678                         extensionRegistry);
1679                 internalGetMutableLabels()
1680                     .getMutableMap()
1681                     .put(labels__.getKey(), labels__.getValue());
1682                 bitField0_ |= 0x00000080;
1683                 break;
1684               } // case 74
1685             case 82:
1686               {
1687                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1688                 bitField0_ |= 0x00000100;
1689                 break;
1690               } // case 82
1691             case 90:
1692               {
1693                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1694                 bitField0_ |= 0x00000200;
1695                 break;
1696               } // case 90
1697             case 114:
1698               {
1699                 input.readMessage(getIndexStatsFieldBuilder().getBuilder(), extensionRegistry);
1700                 bitField0_ |= 0x00000400;
1701                 break;
1702               } // case 114
1703             case 128:
1704               {
1705                 indexUpdateMethod_ = input.readEnum();
1706                 bitField0_ |= 0x00000800;
1707                 break;
1708               } // case 128
1709             default:
1710               {
1711                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1712                   done = true; // was an endgroup tag
1713                 }
1714                 break;
1715               } // default:
1716           } // switch (tag)
1717         } // while (!done)
1718       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1719         throw e.unwrapIOException();
1720       } finally {
1721         onChanged();
1722       } // finally
1723       return this;
1724     }
1725 
1726     private int bitField0_;
1727 
1728     private java.lang.Object name_ = "";
1729     /**
1730      *
1731      *
1732      * <pre>
1733      * Output only. The resource name of the Index.
1734      * </pre>
1735      *
1736      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1737      *
1738      * @return The name.
1739      */
getName()1740     public java.lang.String getName() {
1741       java.lang.Object ref = name_;
1742       if (!(ref instanceof java.lang.String)) {
1743         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1744         java.lang.String s = bs.toStringUtf8();
1745         name_ = s;
1746         return s;
1747       } else {
1748         return (java.lang.String) ref;
1749       }
1750     }
1751     /**
1752      *
1753      *
1754      * <pre>
1755      * Output only. The resource name of the Index.
1756      * </pre>
1757      *
1758      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1759      *
1760      * @return The bytes for name.
1761      */
getNameBytes()1762     public com.google.protobuf.ByteString getNameBytes() {
1763       java.lang.Object ref = name_;
1764       if (ref instanceof String) {
1765         com.google.protobuf.ByteString b =
1766             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1767         name_ = b;
1768         return b;
1769       } else {
1770         return (com.google.protobuf.ByteString) ref;
1771       }
1772     }
1773     /**
1774      *
1775      *
1776      * <pre>
1777      * Output only. The resource name of the Index.
1778      * </pre>
1779      *
1780      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1781      *
1782      * @param value The name to set.
1783      * @return This builder for chaining.
1784      */
setName(java.lang.String value)1785     public Builder setName(java.lang.String value) {
1786       if (value == null) {
1787         throw new NullPointerException();
1788       }
1789       name_ = value;
1790       bitField0_ |= 0x00000001;
1791       onChanged();
1792       return this;
1793     }
1794     /**
1795      *
1796      *
1797      * <pre>
1798      * Output only. The resource name of the Index.
1799      * </pre>
1800      *
1801      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1802      *
1803      * @return This builder for chaining.
1804      */
clearName()1805     public Builder clearName() {
1806       name_ = getDefaultInstance().getName();
1807       bitField0_ = (bitField0_ & ~0x00000001);
1808       onChanged();
1809       return this;
1810     }
1811     /**
1812      *
1813      *
1814      * <pre>
1815      * Output only. The resource name of the Index.
1816      * </pre>
1817      *
1818      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1819      *
1820      * @param value The bytes for name to set.
1821      * @return This builder for chaining.
1822      */
setNameBytes(com.google.protobuf.ByteString value)1823     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1824       if (value == null) {
1825         throw new NullPointerException();
1826       }
1827       checkByteStringIsUtf8(value);
1828       name_ = value;
1829       bitField0_ |= 0x00000001;
1830       onChanged();
1831       return this;
1832     }
1833 
1834     private java.lang.Object displayName_ = "";
1835     /**
1836      *
1837      *
1838      * <pre>
1839      * Required. The display name of the Index.
1840      * The name can be up to 128 characters long and can consist of any UTF-8
1841      * characters.
1842      * </pre>
1843      *
1844      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1845      *
1846      * @return The displayName.
1847      */
getDisplayName()1848     public java.lang.String getDisplayName() {
1849       java.lang.Object ref = displayName_;
1850       if (!(ref instanceof java.lang.String)) {
1851         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1852         java.lang.String s = bs.toStringUtf8();
1853         displayName_ = s;
1854         return s;
1855       } else {
1856         return (java.lang.String) ref;
1857       }
1858     }
1859     /**
1860      *
1861      *
1862      * <pre>
1863      * Required. The display name of the Index.
1864      * The name can be up to 128 characters long and can consist of any UTF-8
1865      * characters.
1866      * </pre>
1867      *
1868      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1869      *
1870      * @return The bytes for displayName.
1871      */
getDisplayNameBytes()1872     public com.google.protobuf.ByteString getDisplayNameBytes() {
1873       java.lang.Object ref = displayName_;
1874       if (ref instanceof String) {
1875         com.google.protobuf.ByteString b =
1876             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1877         displayName_ = b;
1878         return b;
1879       } else {
1880         return (com.google.protobuf.ByteString) ref;
1881       }
1882     }
1883     /**
1884      *
1885      *
1886      * <pre>
1887      * Required. The display name of the Index.
1888      * The name can be up to 128 characters long and can consist of any UTF-8
1889      * characters.
1890      * </pre>
1891      *
1892      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1893      *
1894      * @param value The displayName to set.
1895      * @return This builder for chaining.
1896      */
setDisplayName(java.lang.String value)1897     public Builder setDisplayName(java.lang.String value) {
1898       if (value == null) {
1899         throw new NullPointerException();
1900       }
1901       displayName_ = value;
1902       bitField0_ |= 0x00000002;
1903       onChanged();
1904       return this;
1905     }
1906     /**
1907      *
1908      *
1909      * <pre>
1910      * Required. The display name of the Index.
1911      * The name can be up to 128 characters long and can consist of any UTF-8
1912      * characters.
1913      * </pre>
1914      *
1915      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1916      *
1917      * @return This builder for chaining.
1918      */
clearDisplayName()1919     public Builder clearDisplayName() {
1920       displayName_ = getDefaultInstance().getDisplayName();
1921       bitField0_ = (bitField0_ & ~0x00000002);
1922       onChanged();
1923       return this;
1924     }
1925     /**
1926      *
1927      *
1928      * <pre>
1929      * Required. The display name of the Index.
1930      * The name can be up to 128 characters long and can consist of any UTF-8
1931      * characters.
1932      * </pre>
1933      *
1934      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1935      *
1936      * @param value The bytes for displayName to set.
1937      * @return This builder for chaining.
1938      */
setDisplayNameBytes(com.google.protobuf.ByteString value)1939     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
1940       if (value == null) {
1941         throw new NullPointerException();
1942       }
1943       checkByteStringIsUtf8(value);
1944       displayName_ = value;
1945       bitField0_ |= 0x00000002;
1946       onChanged();
1947       return this;
1948     }
1949 
1950     private java.lang.Object description_ = "";
1951     /**
1952      *
1953      *
1954      * <pre>
1955      * The description of the Index.
1956      * </pre>
1957      *
1958      * <code>string description = 3;</code>
1959      *
1960      * @return The description.
1961      */
getDescription()1962     public java.lang.String getDescription() {
1963       java.lang.Object ref = description_;
1964       if (!(ref instanceof java.lang.String)) {
1965         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1966         java.lang.String s = bs.toStringUtf8();
1967         description_ = s;
1968         return s;
1969       } else {
1970         return (java.lang.String) ref;
1971       }
1972     }
1973     /**
1974      *
1975      *
1976      * <pre>
1977      * The description of the Index.
1978      * </pre>
1979      *
1980      * <code>string description = 3;</code>
1981      *
1982      * @return The bytes for description.
1983      */
getDescriptionBytes()1984     public com.google.protobuf.ByteString getDescriptionBytes() {
1985       java.lang.Object ref = description_;
1986       if (ref instanceof String) {
1987         com.google.protobuf.ByteString b =
1988             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1989         description_ = b;
1990         return b;
1991       } else {
1992         return (com.google.protobuf.ByteString) ref;
1993       }
1994     }
1995     /**
1996      *
1997      *
1998      * <pre>
1999      * The description of the Index.
2000      * </pre>
2001      *
2002      * <code>string description = 3;</code>
2003      *
2004      * @param value The description to set.
2005      * @return This builder for chaining.
2006      */
setDescription(java.lang.String value)2007     public Builder setDescription(java.lang.String value) {
2008       if (value == null) {
2009         throw new NullPointerException();
2010       }
2011       description_ = value;
2012       bitField0_ |= 0x00000004;
2013       onChanged();
2014       return this;
2015     }
2016     /**
2017      *
2018      *
2019      * <pre>
2020      * The description of the Index.
2021      * </pre>
2022      *
2023      * <code>string description = 3;</code>
2024      *
2025      * @return This builder for chaining.
2026      */
clearDescription()2027     public Builder clearDescription() {
2028       description_ = getDefaultInstance().getDescription();
2029       bitField0_ = (bitField0_ & ~0x00000004);
2030       onChanged();
2031       return this;
2032     }
2033     /**
2034      *
2035      *
2036      * <pre>
2037      * The description of the Index.
2038      * </pre>
2039      *
2040      * <code>string description = 3;</code>
2041      *
2042      * @param value The bytes for description to set.
2043      * @return This builder for chaining.
2044      */
setDescriptionBytes(com.google.protobuf.ByteString value)2045     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2046       if (value == null) {
2047         throw new NullPointerException();
2048       }
2049       checkByteStringIsUtf8(value);
2050       description_ = value;
2051       bitField0_ |= 0x00000004;
2052       onChanged();
2053       return this;
2054     }
2055 
2056     private java.lang.Object metadataSchemaUri_ = "";
2057     /**
2058      *
2059      *
2060      * <pre>
2061      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
2062      * additional information about the Index, that is specific to it. Unset if
2063      * the Index does not have any additional information. The schema is defined
2064      * as an OpenAPI 3.0.2 [Schema
2065      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
2066      * Note: The URI given on output will be immutable and probably different,
2067      * including the URI scheme, than the one given on input. The output URI will
2068      * point to a location where the user only has a read access.
2069      * </pre>
2070      *
2071      * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
2072      *
2073      * @return The metadataSchemaUri.
2074      */
getMetadataSchemaUri()2075     public java.lang.String getMetadataSchemaUri() {
2076       java.lang.Object ref = metadataSchemaUri_;
2077       if (!(ref instanceof java.lang.String)) {
2078         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2079         java.lang.String s = bs.toStringUtf8();
2080         metadataSchemaUri_ = s;
2081         return s;
2082       } else {
2083         return (java.lang.String) ref;
2084       }
2085     }
2086     /**
2087      *
2088      *
2089      * <pre>
2090      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
2091      * additional information about the Index, that is specific to it. Unset if
2092      * the Index does not have any additional information. The schema is defined
2093      * as an OpenAPI 3.0.2 [Schema
2094      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
2095      * Note: The URI given on output will be immutable and probably different,
2096      * including the URI scheme, than the one given on input. The output URI will
2097      * point to a location where the user only has a read access.
2098      * </pre>
2099      *
2100      * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
2101      *
2102      * @return The bytes for metadataSchemaUri.
2103      */
getMetadataSchemaUriBytes()2104     public com.google.protobuf.ByteString getMetadataSchemaUriBytes() {
2105       java.lang.Object ref = metadataSchemaUri_;
2106       if (ref instanceof String) {
2107         com.google.protobuf.ByteString b =
2108             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2109         metadataSchemaUri_ = b;
2110         return b;
2111       } else {
2112         return (com.google.protobuf.ByteString) ref;
2113       }
2114     }
2115     /**
2116      *
2117      *
2118      * <pre>
2119      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
2120      * additional information about the Index, that is specific to it. Unset if
2121      * the Index does not have any additional information. The schema is defined
2122      * as an OpenAPI 3.0.2 [Schema
2123      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
2124      * Note: The URI given on output will be immutable and probably different,
2125      * including the URI scheme, than the one given on input. The output URI will
2126      * point to a location where the user only has a read access.
2127      * </pre>
2128      *
2129      * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
2130      *
2131      * @param value The metadataSchemaUri to set.
2132      * @return This builder for chaining.
2133      */
setMetadataSchemaUri(java.lang.String value)2134     public Builder setMetadataSchemaUri(java.lang.String value) {
2135       if (value == null) {
2136         throw new NullPointerException();
2137       }
2138       metadataSchemaUri_ = value;
2139       bitField0_ |= 0x00000008;
2140       onChanged();
2141       return this;
2142     }
2143     /**
2144      *
2145      *
2146      * <pre>
2147      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
2148      * additional information about the Index, that is specific to it. Unset if
2149      * the Index does not have any additional information. The schema is defined
2150      * as an OpenAPI 3.0.2 [Schema
2151      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
2152      * Note: The URI given on output will be immutable and probably different,
2153      * including the URI scheme, than the one given on input. The output URI will
2154      * point to a location where the user only has a read access.
2155      * </pre>
2156      *
2157      * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
2158      *
2159      * @return This builder for chaining.
2160      */
clearMetadataSchemaUri()2161     public Builder clearMetadataSchemaUri() {
2162       metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri();
2163       bitField0_ = (bitField0_ & ~0x00000008);
2164       onChanged();
2165       return this;
2166     }
2167     /**
2168      *
2169      *
2170      * <pre>
2171      * Immutable. Points to a YAML file stored on Google Cloud Storage describing
2172      * additional information about the Index, that is specific to it. Unset if
2173      * the Index does not have any additional information. The schema is defined
2174      * as an OpenAPI 3.0.2 [Schema
2175      * Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
2176      * Note: The URI given on output will be immutable and probably different,
2177      * including the URI scheme, than the one given on input. The output URI will
2178      * point to a location where the user only has a read access.
2179      * </pre>
2180      *
2181      * <code>string metadata_schema_uri = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
2182      *
2183      * @param value The bytes for metadataSchemaUri to set.
2184      * @return This builder for chaining.
2185      */
setMetadataSchemaUriBytes(com.google.protobuf.ByteString value)2186     public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) {
2187       if (value == null) {
2188         throw new NullPointerException();
2189       }
2190       checkByteStringIsUtf8(value);
2191       metadataSchemaUri_ = value;
2192       bitField0_ |= 0x00000008;
2193       onChanged();
2194       return this;
2195     }
2196 
2197     private com.google.protobuf.Value metadata_;
2198     private com.google.protobuf.SingleFieldBuilderV3<
2199             com.google.protobuf.Value,
2200             com.google.protobuf.Value.Builder,
2201             com.google.protobuf.ValueOrBuilder>
2202         metadataBuilder_;
2203     /**
2204      *
2205      *
2206      * <pre>
2207      * An additional information about the Index; the schema of the metadata can
2208      * be found in
2209      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2210      * </pre>
2211      *
2212      * <code>.google.protobuf.Value metadata = 6;</code>
2213      *
2214      * @return Whether the metadata field is set.
2215      */
hasMetadata()2216     public boolean hasMetadata() {
2217       return ((bitField0_ & 0x00000010) != 0);
2218     }
2219     /**
2220      *
2221      *
2222      * <pre>
2223      * An additional information about the Index; the schema of the metadata can
2224      * be found in
2225      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2226      * </pre>
2227      *
2228      * <code>.google.protobuf.Value metadata = 6;</code>
2229      *
2230      * @return The metadata.
2231      */
getMetadata()2232     public com.google.protobuf.Value getMetadata() {
2233       if (metadataBuilder_ == null) {
2234         return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
2235       } else {
2236         return metadataBuilder_.getMessage();
2237       }
2238     }
2239     /**
2240      *
2241      *
2242      * <pre>
2243      * An additional information about the Index; the schema of the metadata can
2244      * be found in
2245      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2246      * </pre>
2247      *
2248      * <code>.google.protobuf.Value metadata = 6;</code>
2249      */
setMetadata(com.google.protobuf.Value value)2250     public Builder setMetadata(com.google.protobuf.Value value) {
2251       if (metadataBuilder_ == null) {
2252         if (value == null) {
2253           throw new NullPointerException();
2254         }
2255         metadata_ = value;
2256       } else {
2257         metadataBuilder_.setMessage(value);
2258       }
2259       bitField0_ |= 0x00000010;
2260       onChanged();
2261       return this;
2262     }
2263     /**
2264      *
2265      *
2266      * <pre>
2267      * An additional information about the Index; the schema of the metadata can
2268      * be found in
2269      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2270      * </pre>
2271      *
2272      * <code>.google.protobuf.Value metadata = 6;</code>
2273      */
setMetadata(com.google.protobuf.Value.Builder builderForValue)2274     public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) {
2275       if (metadataBuilder_ == null) {
2276         metadata_ = builderForValue.build();
2277       } else {
2278         metadataBuilder_.setMessage(builderForValue.build());
2279       }
2280       bitField0_ |= 0x00000010;
2281       onChanged();
2282       return this;
2283     }
2284     /**
2285      *
2286      *
2287      * <pre>
2288      * An additional information about the Index; the schema of the metadata can
2289      * be found in
2290      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2291      * </pre>
2292      *
2293      * <code>.google.protobuf.Value metadata = 6;</code>
2294      */
mergeMetadata(com.google.protobuf.Value value)2295     public Builder mergeMetadata(com.google.protobuf.Value value) {
2296       if (metadataBuilder_ == null) {
2297         if (((bitField0_ & 0x00000010) != 0)
2298             && metadata_ != null
2299             && metadata_ != com.google.protobuf.Value.getDefaultInstance()) {
2300           getMetadataBuilder().mergeFrom(value);
2301         } else {
2302           metadata_ = value;
2303         }
2304       } else {
2305         metadataBuilder_.mergeFrom(value);
2306       }
2307       bitField0_ |= 0x00000010;
2308       onChanged();
2309       return this;
2310     }
2311     /**
2312      *
2313      *
2314      * <pre>
2315      * An additional information about the Index; the schema of the metadata can
2316      * be found in
2317      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2318      * </pre>
2319      *
2320      * <code>.google.protobuf.Value metadata = 6;</code>
2321      */
clearMetadata()2322     public Builder clearMetadata() {
2323       bitField0_ = (bitField0_ & ~0x00000010);
2324       metadata_ = null;
2325       if (metadataBuilder_ != null) {
2326         metadataBuilder_.dispose();
2327         metadataBuilder_ = null;
2328       }
2329       onChanged();
2330       return this;
2331     }
2332     /**
2333      *
2334      *
2335      * <pre>
2336      * An additional information about the Index; the schema of the metadata can
2337      * be found in
2338      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2339      * </pre>
2340      *
2341      * <code>.google.protobuf.Value metadata = 6;</code>
2342      */
getMetadataBuilder()2343     public com.google.protobuf.Value.Builder getMetadataBuilder() {
2344       bitField0_ |= 0x00000010;
2345       onChanged();
2346       return getMetadataFieldBuilder().getBuilder();
2347     }
2348     /**
2349      *
2350      *
2351      * <pre>
2352      * An additional information about the Index; the schema of the metadata can
2353      * be found in
2354      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2355      * </pre>
2356      *
2357      * <code>.google.protobuf.Value metadata = 6;</code>
2358      */
getMetadataOrBuilder()2359     public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() {
2360       if (metadataBuilder_ != null) {
2361         return metadataBuilder_.getMessageOrBuilder();
2362       } else {
2363         return metadata_ == null ? com.google.protobuf.Value.getDefaultInstance() : metadata_;
2364       }
2365     }
2366     /**
2367      *
2368      *
2369      * <pre>
2370      * An additional information about the Index; the schema of the metadata can
2371      * be found in
2372      * [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri].
2373      * </pre>
2374      *
2375      * <code>.google.protobuf.Value metadata = 6;</code>
2376      */
2377     private com.google.protobuf.SingleFieldBuilderV3<
2378             com.google.protobuf.Value,
2379             com.google.protobuf.Value.Builder,
2380             com.google.protobuf.ValueOrBuilder>
getMetadataFieldBuilder()2381         getMetadataFieldBuilder() {
2382       if (metadataBuilder_ == null) {
2383         metadataBuilder_ =
2384             new com.google.protobuf.SingleFieldBuilderV3<
2385                 com.google.protobuf.Value,
2386                 com.google.protobuf.Value.Builder,
2387                 com.google.protobuf.ValueOrBuilder>(
2388                 getMetadata(), getParentForChildren(), isClean());
2389         metadata_ = null;
2390       }
2391       return metadataBuilder_;
2392     }
2393 
2394     private java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedIndexRef> deployedIndexes_ =
2395         java.util.Collections.emptyList();
2396 
ensureDeployedIndexesIsMutable()2397     private void ensureDeployedIndexesIsMutable() {
2398       if (!((bitField0_ & 0x00000020) != 0)) {
2399         deployedIndexes_ =
2400             new java.util.ArrayList<com.google.cloud.aiplatform.v1beta1.DeployedIndexRef>(
2401                 deployedIndexes_);
2402         bitField0_ |= 0x00000020;
2403       }
2404     }
2405 
2406     private com.google.protobuf.RepeatedFieldBuilderV3<
2407             com.google.cloud.aiplatform.v1beta1.DeployedIndexRef,
2408             com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder,
2409             com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>
2410         deployedIndexesBuilder_;
2411 
2412     /**
2413      *
2414      *
2415      * <pre>
2416      * Output only. The pointers to DeployedIndexes created from this Index.
2417      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2418      * first.
2419      * </pre>
2420      *
2421      * <code>
2422      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2423      * </code>
2424      */
2425     public java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedIndexRef>
getDeployedIndexesList()2426         getDeployedIndexesList() {
2427       if (deployedIndexesBuilder_ == null) {
2428         return java.util.Collections.unmodifiableList(deployedIndexes_);
2429       } else {
2430         return deployedIndexesBuilder_.getMessageList();
2431       }
2432     }
2433     /**
2434      *
2435      *
2436      * <pre>
2437      * Output only. The pointers to DeployedIndexes created from this Index.
2438      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2439      * first.
2440      * </pre>
2441      *
2442      * <code>
2443      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2444      * </code>
2445      */
getDeployedIndexesCount()2446     public int getDeployedIndexesCount() {
2447       if (deployedIndexesBuilder_ == null) {
2448         return deployedIndexes_.size();
2449       } else {
2450         return deployedIndexesBuilder_.getCount();
2451       }
2452     }
2453     /**
2454      *
2455      *
2456      * <pre>
2457      * Output only. The pointers to DeployedIndexes created from this Index.
2458      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2459      * first.
2460      * </pre>
2461      *
2462      * <code>
2463      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2464      * </code>
2465      */
getDeployedIndexes(int index)2466     public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef getDeployedIndexes(int index) {
2467       if (deployedIndexesBuilder_ == null) {
2468         return deployedIndexes_.get(index);
2469       } else {
2470         return deployedIndexesBuilder_.getMessage(index);
2471       }
2472     }
2473     /**
2474      *
2475      *
2476      * <pre>
2477      * Output only. The pointers to DeployedIndexes created from this Index.
2478      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2479      * first.
2480      * </pre>
2481      *
2482      * <code>
2483      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2484      * </code>
2485      */
setDeployedIndexes( int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value)2486     public Builder setDeployedIndexes(
2487         int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value) {
2488       if (deployedIndexesBuilder_ == null) {
2489         if (value == null) {
2490           throw new NullPointerException();
2491         }
2492         ensureDeployedIndexesIsMutable();
2493         deployedIndexes_.set(index, value);
2494         onChanged();
2495       } else {
2496         deployedIndexesBuilder_.setMessage(index, value);
2497       }
2498       return this;
2499     }
2500     /**
2501      *
2502      *
2503      * <pre>
2504      * Output only. The pointers to DeployedIndexes created from this Index.
2505      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2506      * first.
2507      * </pre>
2508      *
2509      * <code>
2510      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2511      * </code>
2512      */
setDeployedIndexes( int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue)2513     public Builder setDeployedIndexes(
2514         int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue) {
2515       if (deployedIndexesBuilder_ == null) {
2516         ensureDeployedIndexesIsMutable();
2517         deployedIndexes_.set(index, builderForValue.build());
2518         onChanged();
2519       } else {
2520         deployedIndexesBuilder_.setMessage(index, builderForValue.build());
2521       }
2522       return this;
2523     }
2524     /**
2525      *
2526      *
2527      * <pre>
2528      * Output only. The pointers to DeployedIndexes created from this Index.
2529      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2530      * first.
2531      * </pre>
2532      *
2533      * <code>
2534      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2535      * </code>
2536      */
addDeployedIndexes(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value)2537     public Builder addDeployedIndexes(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value) {
2538       if (deployedIndexesBuilder_ == null) {
2539         if (value == null) {
2540           throw new NullPointerException();
2541         }
2542         ensureDeployedIndexesIsMutable();
2543         deployedIndexes_.add(value);
2544         onChanged();
2545       } else {
2546         deployedIndexesBuilder_.addMessage(value);
2547       }
2548       return this;
2549     }
2550     /**
2551      *
2552      *
2553      * <pre>
2554      * Output only. The pointers to DeployedIndexes created from this Index.
2555      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2556      * first.
2557      * </pre>
2558      *
2559      * <code>
2560      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2561      * </code>
2562      */
addDeployedIndexes( int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value)2563     public Builder addDeployedIndexes(
2564         int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef value) {
2565       if (deployedIndexesBuilder_ == null) {
2566         if (value == null) {
2567           throw new NullPointerException();
2568         }
2569         ensureDeployedIndexesIsMutable();
2570         deployedIndexes_.add(index, value);
2571         onChanged();
2572       } else {
2573         deployedIndexesBuilder_.addMessage(index, value);
2574       }
2575       return this;
2576     }
2577     /**
2578      *
2579      *
2580      * <pre>
2581      * Output only. The pointers to DeployedIndexes created from this Index.
2582      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2583      * first.
2584      * </pre>
2585      *
2586      * <code>
2587      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2588      * </code>
2589      */
addDeployedIndexes( com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue)2590     public Builder addDeployedIndexes(
2591         com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue) {
2592       if (deployedIndexesBuilder_ == null) {
2593         ensureDeployedIndexesIsMutable();
2594         deployedIndexes_.add(builderForValue.build());
2595         onChanged();
2596       } else {
2597         deployedIndexesBuilder_.addMessage(builderForValue.build());
2598       }
2599       return this;
2600     }
2601     /**
2602      *
2603      *
2604      * <pre>
2605      * Output only. The pointers to DeployedIndexes created from this Index.
2606      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2607      * first.
2608      * </pre>
2609      *
2610      * <code>
2611      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2612      * </code>
2613      */
addDeployedIndexes( int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue)2614     public Builder addDeployedIndexes(
2615         int index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder builderForValue) {
2616       if (deployedIndexesBuilder_ == null) {
2617         ensureDeployedIndexesIsMutable();
2618         deployedIndexes_.add(index, builderForValue.build());
2619         onChanged();
2620       } else {
2621         deployedIndexesBuilder_.addMessage(index, builderForValue.build());
2622       }
2623       return this;
2624     }
2625     /**
2626      *
2627      *
2628      * <pre>
2629      * Output only. The pointers to DeployedIndexes created from this Index.
2630      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2631      * first.
2632      * </pre>
2633      *
2634      * <code>
2635      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2636      * </code>
2637      */
addAllDeployedIndexes( java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.DeployedIndexRef> values)2638     public Builder addAllDeployedIndexes(
2639         java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.DeployedIndexRef> values) {
2640       if (deployedIndexesBuilder_ == null) {
2641         ensureDeployedIndexesIsMutable();
2642         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deployedIndexes_);
2643         onChanged();
2644       } else {
2645         deployedIndexesBuilder_.addAllMessages(values);
2646       }
2647       return this;
2648     }
2649     /**
2650      *
2651      *
2652      * <pre>
2653      * Output only. The pointers to DeployedIndexes created from this Index.
2654      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2655      * first.
2656      * </pre>
2657      *
2658      * <code>
2659      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2660      * </code>
2661      */
clearDeployedIndexes()2662     public Builder clearDeployedIndexes() {
2663       if (deployedIndexesBuilder_ == null) {
2664         deployedIndexes_ = java.util.Collections.emptyList();
2665         bitField0_ = (bitField0_ & ~0x00000020);
2666         onChanged();
2667       } else {
2668         deployedIndexesBuilder_.clear();
2669       }
2670       return this;
2671     }
2672     /**
2673      *
2674      *
2675      * <pre>
2676      * Output only. The pointers to DeployedIndexes created from this Index.
2677      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2678      * first.
2679      * </pre>
2680      *
2681      * <code>
2682      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2683      * </code>
2684      */
removeDeployedIndexes(int index)2685     public Builder removeDeployedIndexes(int index) {
2686       if (deployedIndexesBuilder_ == null) {
2687         ensureDeployedIndexesIsMutable();
2688         deployedIndexes_.remove(index);
2689         onChanged();
2690       } else {
2691         deployedIndexesBuilder_.remove(index);
2692       }
2693       return this;
2694     }
2695     /**
2696      *
2697      *
2698      * <pre>
2699      * Output only. The pointers to DeployedIndexes created from this Index.
2700      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2701      * first.
2702      * </pre>
2703      *
2704      * <code>
2705      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2706      * </code>
2707      */
getDeployedIndexesBuilder( int index)2708     public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder getDeployedIndexesBuilder(
2709         int index) {
2710       return getDeployedIndexesFieldBuilder().getBuilder(index);
2711     }
2712     /**
2713      *
2714      *
2715      * <pre>
2716      * Output only. The pointers to DeployedIndexes created from this Index.
2717      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2718      * first.
2719      * </pre>
2720      *
2721      * <code>
2722      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2723      * </code>
2724      */
2725     public com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder
getDeployedIndexesOrBuilder(int index)2726         getDeployedIndexesOrBuilder(int index) {
2727       if (deployedIndexesBuilder_ == null) {
2728         return deployedIndexes_.get(index);
2729       } else {
2730         return deployedIndexesBuilder_.getMessageOrBuilder(index);
2731       }
2732     }
2733     /**
2734      *
2735      *
2736      * <pre>
2737      * Output only. The pointers to DeployedIndexes created from this Index.
2738      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2739      * first.
2740      * </pre>
2741      *
2742      * <code>
2743      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2744      * </code>
2745      */
2746     public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>
getDeployedIndexesOrBuilderList()2747         getDeployedIndexesOrBuilderList() {
2748       if (deployedIndexesBuilder_ != null) {
2749         return deployedIndexesBuilder_.getMessageOrBuilderList();
2750       } else {
2751         return java.util.Collections.unmodifiableList(deployedIndexes_);
2752       }
2753     }
2754     /**
2755      *
2756      *
2757      * <pre>
2758      * Output only. The pointers to DeployedIndexes created from this Index.
2759      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2760      * first.
2761      * </pre>
2762      *
2763      * <code>
2764      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2765      * </code>
2766      */
2767     public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder
addDeployedIndexesBuilder()2768         addDeployedIndexesBuilder() {
2769       return getDeployedIndexesFieldBuilder()
2770           .addBuilder(com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.getDefaultInstance());
2771     }
2772     /**
2773      *
2774      *
2775      * <pre>
2776      * Output only. The pointers to DeployedIndexes created from this Index.
2777      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2778      * first.
2779      * </pre>
2780      *
2781      * <code>
2782      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2783      * </code>
2784      */
addDeployedIndexesBuilder( int index)2785     public com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder addDeployedIndexesBuilder(
2786         int index) {
2787       return getDeployedIndexesFieldBuilder()
2788           .addBuilder(
2789               index, com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.getDefaultInstance());
2790     }
2791     /**
2792      *
2793      *
2794      * <pre>
2795      * Output only. The pointers to DeployedIndexes created from this Index.
2796      * An Index can be only deleted if all its DeployedIndexes had been undeployed
2797      * first.
2798      * </pre>
2799      *
2800      * <code>
2801      * repeated .google.cloud.aiplatform.v1beta1.DeployedIndexRef deployed_indexes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
2802      * </code>
2803      */
2804     public java.util.List<com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder>
getDeployedIndexesBuilderList()2805         getDeployedIndexesBuilderList() {
2806       return getDeployedIndexesFieldBuilder().getBuilderList();
2807     }
2808 
2809     private com.google.protobuf.RepeatedFieldBuilderV3<
2810             com.google.cloud.aiplatform.v1beta1.DeployedIndexRef,
2811             com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder,
2812             com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>
getDeployedIndexesFieldBuilder()2813         getDeployedIndexesFieldBuilder() {
2814       if (deployedIndexesBuilder_ == null) {
2815         deployedIndexesBuilder_ =
2816             new com.google.protobuf.RepeatedFieldBuilderV3<
2817                 com.google.cloud.aiplatform.v1beta1.DeployedIndexRef,
2818                 com.google.cloud.aiplatform.v1beta1.DeployedIndexRef.Builder,
2819                 com.google.cloud.aiplatform.v1beta1.DeployedIndexRefOrBuilder>(
2820                 deployedIndexes_,
2821                 ((bitField0_ & 0x00000020) != 0),
2822                 getParentForChildren(),
2823                 isClean());
2824         deployedIndexes_ = null;
2825       }
2826       return deployedIndexesBuilder_;
2827     }
2828 
2829     private java.lang.Object etag_ = "";
2830     /**
2831      *
2832      *
2833      * <pre>
2834      * Used to perform consistent read-modify-write updates. If not set, a blind
2835      * "overwrite" update happens.
2836      * </pre>
2837      *
2838      * <code>string etag = 8;</code>
2839      *
2840      * @return The etag.
2841      */
getEtag()2842     public java.lang.String getEtag() {
2843       java.lang.Object ref = etag_;
2844       if (!(ref instanceof java.lang.String)) {
2845         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2846         java.lang.String s = bs.toStringUtf8();
2847         etag_ = s;
2848         return s;
2849       } else {
2850         return (java.lang.String) ref;
2851       }
2852     }
2853     /**
2854      *
2855      *
2856      * <pre>
2857      * Used to perform consistent read-modify-write updates. If not set, a blind
2858      * "overwrite" update happens.
2859      * </pre>
2860      *
2861      * <code>string etag = 8;</code>
2862      *
2863      * @return The bytes for etag.
2864      */
getEtagBytes()2865     public com.google.protobuf.ByteString getEtagBytes() {
2866       java.lang.Object ref = etag_;
2867       if (ref instanceof String) {
2868         com.google.protobuf.ByteString b =
2869             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2870         etag_ = b;
2871         return b;
2872       } else {
2873         return (com.google.protobuf.ByteString) ref;
2874       }
2875     }
2876     /**
2877      *
2878      *
2879      * <pre>
2880      * Used to perform consistent read-modify-write updates. If not set, a blind
2881      * "overwrite" update happens.
2882      * </pre>
2883      *
2884      * <code>string etag = 8;</code>
2885      *
2886      * @param value The etag to set.
2887      * @return This builder for chaining.
2888      */
setEtag(java.lang.String value)2889     public Builder setEtag(java.lang.String value) {
2890       if (value == null) {
2891         throw new NullPointerException();
2892       }
2893       etag_ = value;
2894       bitField0_ |= 0x00000040;
2895       onChanged();
2896       return this;
2897     }
2898     /**
2899      *
2900      *
2901      * <pre>
2902      * Used to perform consistent read-modify-write updates. If not set, a blind
2903      * "overwrite" update happens.
2904      * </pre>
2905      *
2906      * <code>string etag = 8;</code>
2907      *
2908      * @return This builder for chaining.
2909      */
clearEtag()2910     public Builder clearEtag() {
2911       etag_ = getDefaultInstance().getEtag();
2912       bitField0_ = (bitField0_ & ~0x00000040);
2913       onChanged();
2914       return this;
2915     }
2916     /**
2917      *
2918      *
2919      * <pre>
2920      * Used to perform consistent read-modify-write updates. If not set, a blind
2921      * "overwrite" update happens.
2922      * </pre>
2923      *
2924      * <code>string etag = 8;</code>
2925      *
2926      * @param value The bytes for etag to set.
2927      * @return This builder for chaining.
2928      */
setEtagBytes(com.google.protobuf.ByteString value)2929     public Builder setEtagBytes(com.google.protobuf.ByteString value) {
2930       if (value == null) {
2931         throw new NullPointerException();
2932       }
2933       checkByteStringIsUtf8(value);
2934       etag_ = value;
2935       bitField0_ |= 0x00000040;
2936       onChanged();
2937       return this;
2938     }
2939 
2940     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
2941 
internalGetLabels()2942     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
2943       if (labels_ == null) {
2944         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
2945       }
2946       return labels_;
2947     }
2948 
2949     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()2950         internalGetMutableLabels() {
2951       if (labels_ == null) {
2952         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
2953       }
2954       if (!labels_.isMutable()) {
2955         labels_ = labels_.copy();
2956       }
2957       bitField0_ |= 0x00000080;
2958       onChanged();
2959       return labels_;
2960     }
2961 
getLabelsCount()2962     public int getLabelsCount() {
2963       return internalGetLabels().getMap().size();
2964     }
2965     /**
2966      *
2967      *
2968      * <pre>
2969      * The labels with user-defined metadata to organize your Indexes.
2970      * Label keys and values can be no longer than 64 characters
2971      * (Unicode codepoints), can only contain lowercase letters, numeric
2972      * characters, underscores and dashes. International characters are allowed.
2973      * See https://goo.gl/xmQnxf for more information and examples of labels.
2974      * </pre>
2975      *
2976      * <code>map&lt;string, string&gt; labels = 9;</code>
2977      */
2978     @java.lang.Override
containsLabels(java.lang.String key)2979     public boolean containsLabels(java.lang.String key) {
2980       if (key == null) {
2981         throw new NullPointerException("map key");
2982       }
2983       return internalGetLabels().getMap().containsKey(key);
2984     }
2985     /** Use {@link #getLabelsMap()} instead. */
2986     @java.lang.Override
2987     @java.lang.Deprecated
getLabels()2988     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
2989       return getLabelsMap();
2990     }
2991     /**
2992      *
2993      *
2994      * <pre>
2995      * The labels with user-defined metadata to organize your Indexes.
2996      * Label keys and values can be no longer than 64 characters
2997      * (Unicode codepoints), can only contain lowercase letters, numeric
2998      * characters, underscores and dashes. International characters are allowed.
2999      * See https://goo.gl/xmQnxf for more information and examples of labels.
3000      * </pre>
3001      *
3002      * <code>map&lt;string, string&gt; labels = 9;</code>
3003      */
3004     @java.lang.Override
getLabelsMap()3005     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
3006       return internalGetLabels().getMap();
3007     }
3008     /**
3009      *
3010      *
3011      * <pre>
3012      * The labels with user-defined metadata to organize your Indexes.
3013      * Label keys and values can be no longer than 64 characters
3014      * (Unicode codepoints), can only contain lowercase letters, numeric
3015      * characters, underscores and dashes. International characters are allowed.
3016      * See https://goo.gl/xmQnxf for more information and examples of labels.
3017      * </pre>
3018      *
3019      * <code>map&lt;string, string&gt; labels = 9;</code>
3020      */
3021     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)3022     public /* nullable */ java.lang.String getLabelsOrDefault(
3023         java.lang.String key,
3024         /* nullable */
3025         java.lang.String defaultValue) {
3026       if (key == null) {
3027         throw new NullPointerException("map key");
3028       }
3029       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
3030       return map.containsKey(key) ? map.get(key) : defaultValue;
3031     }
3032     /**
3033      *
3034      *
3035      * <pre>
3036      * The labels with user-defined metadata to organize your Indexes.
3037      * Label keys and values can be no longer than 64 characters
3038      * (Unicode codepoints), can only contain lowercase letters, numeric
3039      * characters, underscores and dashes. International characters are allowed.
3040      * See https://goo.gl/xmQnxf for more information and examples of labels.
3041      * </pre>
3042      *
3043      * <code>map&lt;string, string&gt; labels = 9;</code>
3044      */
3045     @java.lang.Override
getLabelsOrThrow(java.lang.String key)3046     public java.lang.String getLabelsOrThrow(java.lang.String key) {
3047       if (key == null) {
3048         throw new NullPointerException("map key");
3049       }
3050       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
3051       if (!map.containsKey(key)) {
3052         throw new java.lang.IllegalArgumentException();
3053       }
3054       return map.get(key);
3055     }
3056 
clearLabels()3057     public Builder clearLabels() {
3058       bitField0_ = (bitField0_ & ~0x00000080);
3059       internalGetMutableLabels().getMutableMap().clear();
3060       return this;
3061     }
3062     /**
3063      *
3064      *
3065      * <pre>
3066      * The labels with user-defined metadata to organize your Indexes.
3067      * Label keys and values can be no longer than 64 characters
3068      * (Unicode codepoints), can only contain lowercase letters, numeric
3069      * characters, underscores and dashes. International characters are allowed.
3070      * See https://goo.gl/xmQnxf for more information and examples of labels.
3071      * </pre>
3072      *
3073      * <code>map&lt;string, string&gt; labels = 9;</code>
3074      */
removeLabels(java.lang.String key)3075     public Builder removeLabels(java.lang.String key) {
3076       if (key == null) {
3077         throw new NullPointerException("map key");
3078       }
3079       internalGetMutableLabels().getMutableMap().remove(key);
3080       return this;
3081     }
3082     /** Use alternate mutation accessors instead. */
3083     @java.lang.Deprecated
getMutableLabels()3084     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
3085       bitField0_ |= 0x00000080;
3086       return internalGetMutableLabels().getMutableMap();
3087     }
3088     /**
3089      *
3090      *
3091      * <pre>
3092      * The labels with user-defined metadata to organize your Indexes.
3093      * Label keys and values can be no longer than 64 characters
3094      * (Unicode codepoints), can only contain lowercase letters, numeric
3095      * characters, underscores and dashes. International characters are allowed.
3096      * See https://goo.gl/xmQnxf for more information and examples of labels.
3097      * </pre>
3098      *
3099      * <code>map&lt;string, string&gt; labels = 9;</code>
3100      */
putLabels(java.lang.String key, java.lang.String value)3101     public Builder putLabels(java.lang.String key, java.lang.String value) {
3102       if (key == null) {
3103         throw new NullPointerException("map key");
3104       }
3105       if (value == null) {
3106         throw new NullPointerException("map value");
3107       }
3108       internalGetMutableLabels().getMutableMap().put(key, value);
3109       bitField0_ |= 0x00000080;
3110       return this;
3111     }
3112     /**
3113      *
3114      *
3115      * <pre>
3116      * The labels with user-defined metadata to organize your Indexes.
3117      * Label keys and values can be no longer than 64 characters
3118      * (Unicode codepoints), can only contain lowercase letters, numeric
3119      * characters, underscores and dashes. International characters are allowed.
3120      * See https://goo.gl/xmQnxf for more information and examples of labels.
3121      * </pre>
3122      *
3123      * <code>map&lt;string, string&gt; labels = 9;</code>
3124      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)3125     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
3126       internalGetMutableLabels().getMutableMap().putAll(values);
3127       bitField0_ |= 0x00000080;
3128       return this;
3129     }
3130 
3131     private com.google.protobuf.Timestamp createTime_;
3132     private com.google.protobuf.SingleFieldBuilderV3<
3133             com.google.protobuf.Timestamp,
3134             com.google.protobuf.Timestamp.Builder,
3135             com.google.protobuf.TimestampOrBuilder>
3136         createTimeBuilder_;
3137     /**
3138      *
3139      *
3140      * <pre>
3141      * Output only. Timestamp when this Index was created.
3142      * </pre>
3143      *
3144      * <code>
3145      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3146      * </code>
3147      *
3148      * @return Whether the createTime field is set.
3149      */
hasCreateTime()3150     public boolean hasCreateTime() {
3151       return ((bitField0_ & 0x00000100) != 0);
3152     }
3153     /**
3154      *
3155      *
3156      * <pre>
3157      * Output only. Timestamp when this Index was created.
3158      * </pre>
3159      *
3160      * <code>
3161      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3162      * </code>
3163      *
3164      * @return The createTime.
3165      */
getCreateTime()3166     public com.google.protobuf.Timestamp getCreateTime() {
3167       if (createTimeBuilder_ == null) {
3168         return createTime_ == null
3169             ? com.google.protobuf.Timestamp.getDefaultInstance()
3170             : createTime_;
3171       } else {
3172         return createTimeBuilder_.getMessage();
3173       }
3174     }
3175     /**
3176      *
3177      *
3178      * <pre>
3179      * Output only. Timestamp when this Index was created.
3180      * </pre>
3181      *
3182      * <code>
3183      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3184      * </code>
3185      */
setCreateTime(com.google.protobuf.Timestamp value)3186     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
3187       if (createTimeBuilder_ == null) {
3188         if (value == null) {
3189           throw new NullPointerException();
3190         }
3191         createTime_ = value;
3192       } else {
3193         createTimeBuilder_.setMessage(value);
3194       }
3195       bitField0_ |= 0x00000100;
3196       onChanged();
3197       return this;
3198     }
3199     /**
3200      *
3201      *
3202      * <pre>
3203      * Output only. Timestamp when this Index was created.
3204      * </pre>
3205      *
3206      * <code>
3207      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3208      * </code>
3209      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3210     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3211       if (createTimeBuilder_ == null) {
3212         createTime_ = builderForValue.build();
3213       } else {
3214         createTimeBuilder_.setMessage(builderForValue.build());
3215       }
3216       bitField0_ |= 0x00000100;
3217       onChanged();
3218       return this;
3219     }
3220     /**
3221      *
3222      *
3223      * <pre>
3224      * Output only. Timestamp when this Index was created.
3225      * </pre>
3226      *
3227      * <code>
3228      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3229      * </code>
3230      */
mergeCreateTime(com.google.protobuf.Timestamp value)3231     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
3232       if (createTimeBuilder_ == null) {
3233         if (((bitField0_ & 0x00000100) != 0)
3234             && createTime_ != null
3235             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3236           getCreateTimeBuilder().mergeFrom(value);
3237         } else {
3238           createTime_ = value;
3239         }
3240       } else {
3241         createTimeBuilder_.mergeFrom(value);
3242       }
3243       bitField0_ |= 0x00000100;
3244       onChanged();
3245       return this;
3246     }
3247     /**
3248      *
3249      *
3250      * <pre>
3251      * Output only. Timestamp when this Index was created.
3252      * </pre>
3253      *
3254      * <code>
3255      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3256      * </code>
3257      */
clearCreateTime()3258     public Builder clearCreateTime() {
3259       bitField0_ = (bitField0_ & ~0x00000100);
3260       createTime_ = null;
3261       if (createTimeBuilder_ != null) {
3262         createTimeBuilder_.dispose();
3263         createTimeBuilder_ = null;
3264       }
3265       onChanged();
3266       return this;
3267     }
3268     /**
3269      *
3270      *
3271      * <pre>
3272      * Output only. Timestamp when this Index was created.
3273      * </pre>
3274      *
3275      * <code>
3276      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3277      * </code>
3278      */
getCreateTimeBuilder()3279     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
3280       bitField0_ |= 0x00000100;
3281       onChanged();
3282       return getCreateTimeFieldBuilder().getBuilder();
3283     }
3284     /**
3285      *
3286      *
3287      * <pre>
3288      * Output only. Timestamp when this Index was created.
3289      * </pre>
3290      *
3291      * <code>
3292      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3293      * </code>
3294      */
getCreateTimeOrBuilder()3295     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
3296       if (createTimeBuilder_ != null) {
3297         return createTimeBuilder_.getMessageOrBuilder();
3298       } else {
3299         return createTime_ == null
3300             ? com.google.protobuf.Timestamp.getDefaultInstance()
3301             : createTime_;
3302       }
3303     }
3304     /**
3305      *
3306      *
3307      * <pre>
3308      * Output only. Timestamp when this Index was created.
3309      * </pre>
3310      *
3311      * <code>
3312      * .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
3313      * </code>
3314      */
3315     private com.google.protobuf.SingleFieldBuilderV3<
3316             com.google.protobuf.Timestamp,
3317             com.google.protobuf.Timestamp.Builder,
3318             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()3319         getCreateTimeFieldBuilder() {
3320       if (createTimeBuilder_ == null) {
3321         createTimeBuilder_ =
3322             new com.google.protobuf.SingleFieldBuilderV3<
3323                 com.google.protobuf.Timestamp,
3324                 com.google.protobuf.Timestamp.Builder,
3325                 com.google.protobuf.TimestampOrBuilder>(
3326                 getCreateTime(), getParentForChildren(), isClean());
3327         createTime_ = null;
3328       }
3329       return createTimeBuilder_;
3330     }
3331 
3332     private com.google.protobuf.Timestamp updateTime_;
3333     private com.google.protobuf.SingleFieldBuilderV3<
3334             com.google.protobuf.Timestamp,
3335             com.google.protobuf.Timestamp.Builder,
3336             com.google.protobuf.TimestampOrBuilder>
3337         updateTimeBuilder_;
3338     /**
3339      *
3340      *
3341      * <pre>
3342      * Output only. Timestamp when this Index was most recently updated.
3343      * This also includes any update to the contents of the Index.
3344      * Note that Operations working on this Index may have their
3345      * [Operations.metadata.generic_metadata.update_time]
3346      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3347      * little after the value of this timestamp, yet that does not mean their
3348      * results are not already reflected in the Index. Result of any successfully
3349      * completed Operation on the Index is reflected in it.
3350      * </pre>
3351      *
3352      * <code>
3353      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3354      * </code>
3355      *
3356      * @return Whether the updateTime field is set.
3357      */
hasUpdateTime()3358     public boolean hasUpdateTime() {
3359       return ((bitField0_ & 0x00000200) != 0);
3360     }
3361     /**
3362      *
3363      *
3364      * <pre>
3365      * Output only. Timestamp when this Index was most recently updated.
3366      * This also includes any update to the contents of the Index.
3367      * Note that Operations working on this Index may have their
3368      * [Operations.metadata.generic_metadata.update_time]
3369      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3370      * little after the value of this timestamp, yet that does not mean their
3371      * results are not already reflected in the Index. Result of any successfully
3372      * completed Operation on the Index is reflected in it.
3373      * </pre>
3374      *
3375      * <code>
3376      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3377      * </code>
3378      *
3379      * @return The updateTime.
3380      */
getUpdateTime()3381     public com.google.protobuf.Timestamp getUpdateTime() {
3382       if (updateTimeBuilder_ == null) {
3383         return updateTime_ == null
3384             ? com.google.protobuf.Timestamp.getDefaultInstance()
3385             : updateTime_;
3386       } else {
3387         return updateTimeBuilder_.getMessage();
3388       }
3389     }
3390     /**
3391      *
3392      *
3393      * <pre>
3394      * Output only. Timestamp when this Index was most recently updated.
3395      * This also includes any update to the contents of the Index.
3396      * Note that Operations working on this Index may have their
3397      * [Operations.metadata.generic_metadata.update_time]
3398      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3399      * little after the value of this timestamp, yet that does not mean their
3400      * results are not already reflected in the Index. Result of any successfully
3401      * completed Operation on the Index is reflected in it.
3402      * </pre>
3403      *
3404      * <code>
3405      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3406      * </code>
3407      */
setUpdateTime(com.google.protobuf.Timestamp value)3408     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
3409       if (updateTimeBuilder_ == null) {
3410         if (value == null) {
3411           throw new NullPointerException();
3412         }
3413         updateTime_ = value;
3414       } else {
3415         updateTimeBuilder_.setMessage(value);
3416       }
3417       bitField0_ |= 0x00000200;
3418       onChanged();
3419       return this;
3420     }
3421     /**
3422      *
3423      *
3424      * <pre>
3425      * Output only. Timestamp when this Index was most recently updated.
3426      * This also includes any update to the contents of the Index.
3427      * Note that Operations working on this Index may have their
3428      * [Operations.metadata.generic_metadata.update_time]
3429      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3430      * little after the value of this timestamp, yet that does not mean their
3431      * results are not already reflected in the Index. Result of any successfully
3432      * completed Operation on the Index is reflected in it.
3433      * </pre>
3434      *
3435      * <code>
3436      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3437      * </code>
3438      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)3439     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3440       if (updateTimeBuilder_ == null) {
3441         updateTime_ = builderForValue.build();
3442       } else {
3443         updateTimeBuilder_.setMessage(builderForValue.build());
3444       }
3445       bitField0_ |= 0x00000200;
3446       onChanged();
3447       return this;
3448     }
3449     /**
3450      *
3451      *
3452      * <pre>
3453      * Output only. Timestamp when this Index was most recently updated.
3454      * This also includes any update to the contents of the Index.
3455      * Note that Operations working on this Index may have their
3456      * [Operations.metadata.generic_metadata.update_time]
3457      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3458      * little after the value of this timestamp, yet that does not mean their
3459      * results are not already reflected in the Index. Result of any successfully
3460      * completed Operation on the Index is reflected in it.
3461      * </pre>
3462      *
3463      * <code>
3464      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3465      * </code>
3466      */
mergeUpdateTime(com.google.protobuf.Timestamp value)3467     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
3468       if (updateTimeBuilder_ == null) {
3469         if (((bitField0_ & 0x00000200) != 0)
3470             && updateTime_ != null
3471             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3472           getUpdateTimeBuilder().mergeFrom(value);
3473         } else {
3474           updateTime_ = value;
3475         }
3476       } else {
3477         updateTimeBuilder_.mergeFrom(value);
3478       }
3479       bitField0_ |= 0x00000200;
3480       onChanged();
3481       return this;
3482     }
3483     /**
3484      *
3485      *
3486      * <pre>
3487      * Output only. Timestamp when this Index was most recently updated.
3488      * This also includes any update to the contents of the Index.
3489      * Note that Operations working on this Index may have their
3490      * [Operations.metadata.generic_metadata.update_time]
3491      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3492      * little after the value of this timestamp, yet that does not mean their
3493      * results are not already reflected in the Index. Result of any successfully
3494      * completed Operation on the Index is reflected in it.
3495      * </pre>
3496      *
3497      * <code>
3498      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3499      * </code>
3500      */
clearUpdateTime()3501     public Builder clearUpdateTime() {
3502       bitField0_ = (bitField0_ & ~0x00000200);
3503       updateTime_ = null;
3504       if (updateTimeBuilder_ != null) {
3505         updateTimeBuilder_.dispose();
3506         updateTimeBuilder_ = null;
3507       }
3508       onChanged();
3509       return this;
3510     }
3511     /**
3512      *
3513      *
3514      * <pre>
3515      * Output only. Timestamp when this Index was most recently updated.
3516      * This also includes any update to the contents of the Index.
3517      * Note that Operations working on this Index may have their
3518      * [Operations.metadata.generic_metadata.update_time]
3519      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3520      * little after the value of this timestamp, yet that does not mean their
3521      * results are not already reflected in the Index. Result of any successfully
3522      * completed Operation on the Index is reflected in it.
3523      * </pre>
3524      *
3525      * <code>
3526      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3527      * </code>
3528      */
getUpdateTimeBuilder()3529     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
3530       bitField0_ |= 0x00000200;
3531       onChanged();
3532       return getUpdateTimeFieldBuilder().getBuilder();
3533     }
3534     /**
3535      *
3536      *
3537      * <pre>
3538      * Output only. Timestamp when this Index was most recently updated.
3539      * This also includes any update to the contents of the Index.
3540      * Note that Operations working on this Index may have their
3541      * [Operations.metadata.generic_metadata.update_time]
3542      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3543      * little after the value of this timestamp, yet that does not mean their
3544      * results are not already reflected in the Index. Result of any successfully
3545      * completed Operation on the Index is reflected in it.
3546      * </pre>
3547      *
3548      * <code>
3549      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3550      * </code>
3551      */
getUpdateTimeOrBuilder()3552     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
3553       if (updateTimeBuilder_ != null) {
3554         return updateTimeBuilder_.getMessageOrBuilder();
3555       } else {
3556         return updateTime_ == null
3557             ? com.google.protobuf.Timestamp.getDefaultInstance()
3558             : updateTime_;
3559       }
3560     }
3561     /**
3562      *
3563      *
3564      * <pre>
3565      * Output only. Timestamp when this Index was most recently updated.
3566      * This also includes any update to the contents of the Index.
3567      * Note that Operations working on this Index may have their
3568      * [Operations.metadata.generic_metadata.update_time]
3569      * [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a
3570      * little after the value of this timestamp, yet that does not mean their
3571      * results are not already reflected in the Index. Result of any successfully
3572      * completed Operation on the Index is reflected in it.
3573      * </pre>
3574      *
3575      * <code>
3576      * .google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
3577      * </code>
3578      */
3579     private com.google.protobuf.SingleFieldBuilderV3<
3580             com.google.protobuf.Timestamp,
3581             com.google.protobuf.Timestamp.Builder,
3582             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()3583         getUpdateTimeFieldBuilder() {
3584       if (updateTimeBuilder_ == null) {
3585         updateTimeBuilder_ =
3586             new com.google.protobuf.SingleFieldBuilderV3<
3587                 com.google.protobuf.Timestamp,
3588                 com.google.protobuf.Timestamp.Builder,
3589                 com.google.protobuf.TimestampOrBuilder>(
3590                 getUpdateTime(), getParentForChildren(), isClean());
3591         updateTime_ = null;
3592       }
3593       return updateTimeBuilder_;
3594     }
3595 
3596     private com.google.cloud.aiplatform.v1beta1.IndexStats indexStats_;
3597     private com.google.protobuf.SingleFieldBuilderV3<
3598             com.google.cloud.aiplatform.v1beta1.IndexStats,
3599             com.google.cloud.aiplatform.v1beta1.IndexStats.Builder,
3600             com.google.cloud.aiplatform.v1beta1.IndexStatsOrBuilder>
3601         indexStatsBuilder_;
3602     /**
3603      *
3604      *
3605      * <pre>
3606      * Output only. Stats of the index resource.
3607      * </pre>
3608      *
3609      * <code>
3610      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3611      * </code>
3612      *
3613      * @return Whether the indexStats field is set.
3614      */
hasIndexStats()3615     public boolean hasIndexStats() {
3616       return ((bitField0_ & 0x00000400) != 0);
3617     }
3618     /**
3619      *
3620      *
3621      * <pre>
3622      * Output only. Stats of the index resource.
3623      * </pre>
3624      *
3625      * <code>
3626      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3627      * </code>
3628      *
3629      * @return The indexStats.
3630      */
getIndexStats()3631     public com.google.cloud.aiplatform.v1beta1.IndexStats getIndexStats() {
3632       if (indexStatsBuilder_ == null) {
3633         return indexStats_ == null
3634             ? com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance()
3635             : indexStats_;
3636       } else {
3637         return indexStatsBuilder_.getMessage();
3638       }
3639     }
3640     /**
3641      *
3642      *
3643      * <pre>
3644      * Output only. Stats of the index resource.
3645      * </pre>
3646      *
3647      * <code>
3648      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3649      * </code>
3650      */
setIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats value)3651     public Builder setIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats value) {
3652       if (indexStatsBuilder_ == null) {
3653         if (value == null) {
3654           throw new NullPointerException();
3655         }
3656         indexStats_ = value;
3657       } else {
3658         indexStatsBuilder_.setMessage(value);
3659       }
3660       bitField0_ |= 0x00000400;
3661       onChanged();
3662       return this;
3663     }
3664     /**
3665      *
3666      *
3667      * <pre>
3668      * Output only. Stats of the index resource.
3669      * </pre>
3670      *
3671      * <code>
3672      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3673      * </code>
3674      */
setIndexStats( com.google.cloud.aiplatform.v1beta1.IndexStats.Builder builderForValue)3675     public Builder setIndexStats(
3676         com.google.cloud.aiplatform.v1beta1.IndexStats.Builder builderForValue) {
3677       if (indexStatsBuilder_ == null) {
3678         indexStats_ = builderForValue.build();
3679       } else {
3680         indexStatsBuilder_.setMessage(builderForValue.build());
3681       }
3682       bitField0_ |= 0x00000400;
3683       onChanged();
3684       return this;
3685     }
3686     /**
3687      *
3688      *
3689      * <pre>
3690      * Output only. Stats of the index resource.
3691      * </pre>
3692      *
3693      * <code>
3694      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3695      * </code>
3696      */
mergeIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats value)3697     public Builder mergeIndexStats(com.google.cloud.aiplatform.v1beta1.IndexStats value) {
3698       if (indexStatsBuilder_ == null) {
3699         if (((bitField0_ & 0x00000400) != 0)
3700             && indexStats_ != null
3701             && indexStats_ != com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance()) {
3702           getIndexStatsBuilder().mergeFrom(value);
3703         } else {
3704           indexStats_ = value;
3705         }
3706       } else {
3707         indexStatsBuilder_.mergeFrom(value);
3708       }
3709       bitField0_ |= 0x00000400;
3710       onChanged();
3711       return this;
3712     }
3713     /**
3714      *
3715      *
3716      * <pre>
3717      * Output only. Stats of the index resource.
3718      * </pre>
3719      *
3720      * <code>
3721      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3722      * </code>
3723      */
clearIndexStats()3724     public Builder clearIndexStats() {
3725       bitField0_ = (bitField0_ & ~0x00000400);
3726       indexStats_ = null;
3727       if (indexStatsBuilder_ != null) {
3728         indexStatsBuilder_.dispose();
3729         indexStatsBuilder_ = null;
3730       }
3731       onChanged();
3732       return this;
3733     }
3734     /**
3735      *
3736      *
3737      * <pre>
3738      * Output only. Stats of the index resource.
3739      * </pre>
3740      *
3741      * <code>
3742      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3743      * </code>
3744      */
getIndexStatsBuilder()3745     public com.google.cloud.aiplatform.v1beta1.IndexStats.Builder getIndexStatsBuilder() {
3746       bitField0_ |= 0x00000400;
3747       onChanged();
3748       return getIndexStatsFieldBuilder().getBuilder();
3749     }
3750     /**
3751      *
3752      *
3753      * <pre>
3754      * Output only. Stats of the index resource.
3755      * </pre>
3756      *
3757      * <code>
3758      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3759      * </code>
3760      */
getIndexStatsOrBuilder()3761     public com.google.cloud.aiplatform.v1beta1.IndexStatsOrBuilder getIndexStatsOrBuilder() {
3762       if (indexStatsBuilder_ != null) {
3763         return indexStatsBuilder_.getMessageOrBuilder();
3764       } else {
3765         return indexStats_ == null
3766             ? com.google.cloud.aiplatform.v1beta1.IndexStats.getDefaultInstance()
3767             : indexStats_;
3768       }
3769     }
3770     /**
3771      *
3772      *
3773      * <pre>
3774      * Output only. Stats of the index resource.
3775      * </pre>
3776      *
3777      * <code>
3778      * .google.cloud.aiplatform.v1beta1.IndexStats index_stats = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
3779      * </code>
3780      */
3781     private com.google.protobuf.SingleFieldBuilderV3<
3782             com.google.cloud.aiplatform.v1beta1.IndexStats,
3783             com.google.cloud.aiplatform.v1beta1.IndexStats.Builder,
3784             com.google.cloud.aiplatform.v1beta1.IndexStatsOrBuilder>
getIndexStatsFieldBuilder()3785         getIndexStatsFieldBuilder() {
3786       if (indexStatsBuilder_ == null) {
3787         indexStatsBuilder_ =
3788             new com.google.protobuf.SingleFieldBuilderV3<
3789                 com.google.cloud.aiplatform.v1beta1.IndexStats,
3790                 com.google.cloud.aiplatform.v1beta1.IndexStats.Builder,
3791                 com.google.cloud.aiplatform.v1beta1.IndexStatsOrBuilder>(
3792                 getIndexStats(), getParentForChildren(), isClean());
3793         indexStats_ = null;
3794       }
3795       return indexStatsBuilder_;
3796     }
3797 
3798     private int indexUpdateMethod_ = 0;
3799     /**
3800      *
3801      *
3802      * <pre>
3803      * Immutable. The update method to use with this Index. If not set,
3804      * BATCH_UPDATE will be used by default.
3805      * </pre>
3806      *
3807      * <code>
3808      * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
3809      * </code>
3810      *
3811      * @return The enum numeric value on the wire for indexUpdateMethod.
3812      */
3813     @java.lang.Override
getIndexUpdateMethodValue()3814     public int getIndexUpdateMethodValue() {
3815       return indexUpdateMethod_;
3816     }
3817     /**
3818      *
3819      *
3820      * <pre>
3821      * Immutable. The update method to use with this Index. If not set,
3822      * BATCH_UPDATE will be used by default.
3823      * </pre>
3824      *
3825      * <code>
3826      * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
3827      * </code>
3828      *
3829      * @param value The enum numeric value on the wire for indexUpdateMethod to set.
3830      * @return This builder for chaining.
3831      */
setIndexUpdateMethodValue(int value)3832     public Builder setIndexUpdateMethodValue(int value) {
3833       indexUpdateMethod_ = value;
3834       bitField0_ |= 0x00000800;
3835       onChanged();
3836       return this;
3837     }
3838     /**
3839      *
3840      *
3841      * <pre>
3842      * Immutable. The update method to use with this Index. If not set,
3843      * BATCH_UPDATE will be used by default.
3844      * </pre>
3845      *
3846      * <code>
3847      * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
3848      * </code>
3849      *
3850      * @return The indexUpdateMethod.
3851      */
3852     @java.lang.Override
getIndexUpdateMethod()3853     public com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod getIndexUpdateMethod() {
3854       com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod result =
3855           com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.forNumber(indexUpdateMethod_);
3856       return result == null
3857           ? com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod.UNRECOGNIZED
3858           : result;
3859     }
3860     /**
3861      *
3862      *
3863      * <pre>
3864      * Immutable. The update method to use with this Index. If not set,
3865      * BATCH_UPDATE will be used by default.
3866      * </pre>
3867      *
3868      * <code>
3869      * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
3870      * </code>
3871      *
3872      * @param value The indexUpdateMethod to set.
3873      * @return This builder for chaining.
3874      */
setIndexUpdateMethod( com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod value)3875     public Builder setIndexUpdateMethod(
3876         com.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod value) {
3877       if (value == null) {
3878         throw new NullPointerException();
3879       }
3880       bitField0_ |= 0x00000800;
3881       indexUpdateMethod_ = value.getNumber();
3882       onChanged();
3883       return this;
3884     }
3885     /**
3886      *
3887      *
3888      * <pre>
3889      * Immutable. The update method to use with this Index. If not set,
3890      * BATCH_UPDATE will be used by default.
3891      * </pre>
3892      *
3893      * <code>
3894      * .google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod index_update_method = 16 [(.google.api.field_behavior) = IMMUTABLE];
3895      * </code>
3896      *
3897      * @return This builder for chaining.
3898      */
clearIndexUpdateMethod()3899     public Builder clearIndexUpdateMethod() {
3900       bitField0_ = (bitField0_ & ~0x00000800);
3901       indexUpdateMethod_ = 0;
3902       onChanged();
3903       return this;
3904     }
3905 
3906     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3907     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3908       return super.setUnknownFields(unknownFields);
3909     }
3910 
3911     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3912     public final Builder mergeUnknownFields(
3913         final com.google.protobuf.UnknownFieldSet unknownFields) {
3914       return super.mergeUnknownFields(unknownFields);
3915     }
3916 
3917     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Index)
3918   }
3919 
3920   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Index)
3921   private static final com.google.cloud.aiplatform.v1beta1.Index DEFAULT_INSTANCE;
3922 
3923   static {
3924     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Index();
3925   }
3926 
getDefaultInstance()3927   public static com.google.cloud.aiplatform.v1beta1.Index getDefaultInstance() {
3928     return DEFAULT_INSTANCE;
3929   }
3930 
3931   private static final com.google.protobuf.Parser<Index> PARSER =
3932       new com.google.protobuf.AbstractParser<Index>() {
3933         @java.lang.Override
3934         public Index parsePartialFrom(
3935             com.google.protobuf.CodedInputStream input,
3936             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3937             throws com.google.protobuf.InvalidProtocolBufferException {
3938           Builder builder = newBuilder();
3939           try {
3940             builder.mergeFrom(input, extensionRegistry);
3941           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3942             throw e.setUnfinishedMessage(builder.buildPartial());
3943           } catch (com.google.protobuf.UninitializedMessageException e) {
3944             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3945           } catch (java.io.IOException e) {
3946             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3947                 .setUnfinishedMessage(builder.buildPartial());
3948           }
3949           return builder.buildPartial();
3950         }
3951       };
3952 
parser()3953   public static com.google.protobuf.Parser<Index> parser() {
3954     return PARSER;
3955   }
3956 
3957   @java.lang.Override
getParserForType()3958   public com.google.protobuf.Parser<Index> getParserForType() {
3959     return PARSER;
3960   }
3961 
3962   @java.lang.Override
getDefaultInstanceForType()3963   public com.google.cloud.aiplatform.v1beta1.Index getDefaultInstanceForType() {
3964     return DEFAULT_INSTANCE;
3965   }
3966 }
3967