• 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/v1/annotation_spec.proto
18 
19 package com.google.cloud.aiplatform.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Identifies a concept with which DataItems may be annotated with.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.aiplatform.v1.AnnotationSpec}
29  */
30 public final class AnnotationSpec extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AnnotationSpec)
33     AnnotationSpecOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use AnnotationSpec.newBuilder() to construct.
AnnotationSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private AnnotationSpec(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
AnnotationSpec()40   private AnnotationSpec() {
41     name_ = "";
42     displayName_ = "";
43     etag_ = "";
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new AnnotationSpec();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.aiplatform.v1.AnnotationSpecProto
59         .internal_static_google_cloud_aiplatform_v1_AnnotationSpec_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.aiplatform.v1.AnnotationSpecProto
66         .internal_static_google_cloud_aiplatform_v1_AnnotationSpec_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.aiplatform.v1.AnnotationSpec.class,
69             com.google.cloud.aiplatform.v1.AnnotationSpec.Builder.class);
70   }
71 
72   public static final int NAME_FIELD_NUMBER = 1;
73 
74   @SuppressWarnings("serial")
75   private volatile java.lang.Object name_ = "";
76   /**
77    *
78    *
79    * <pre>
80    * Output only. Resource name of the AnnotationSpec.
81    * </pre>
82    *
83    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
84    *
85    * @return The name.
86    */
87   @java.lang.Override
getName()88   public java.lang.String getName() {
89     java.lang.Object ref = name_;
90     if (ref instanceof java.lang.String) {
91       return (java.lang.String) ref;
92     } else {
93       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
94       java.lang.String s = bs.toStringUtf8();
95       name_ = s;
96       return s;
97     }
98   }
99   /**
100    *
101    *
102    * <pre>
103    * Output only. Resource name of the AnnotationSpec.
104    * </pre>
105    *
106    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
107    *
108    * @return The bytes for name.
109    */
110   @java.lang.Override
getNameBytes()111   public com.google.protobuf.ByteString getNameBytes() {
112     java.lang.Object ref = name_;
113     if (ref instanceof java.lang.String) {
114       com.google.protobuf.ByteString b =
115           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
116       name_ = b;
117       return b;
118     } else {
119       return (com.google.protobuf.ByteString) ref;
120     }
121   }
122 
123   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
124 
125   @SuppressWarnings("serial")
126   private volatile java.lang.Object displayName_ = "";
127   /**
128    *
129    *
130    * <pre>
131    * Required. The user-defined name of the AnnotationSpec.
132    * The name can be up to 128 characters long and can consist of any UTF-8
133    * characters.
134    * </pre>
135    *
136    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
137    *
138    * @return The displayName.
139    */
140   @java.lang.Override
getDisplayName()141   public java.lang.String getDisplayName() {
142     java.lang.Object ref = displayName_;
143     if (ref instanceof java.lang.String) {
144       return (java.lang.String) ref;
145     } else {
146       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
147       java.lang.String s = bs.toStringUtf8();
148       displayName_ = s;
149       return s;
150     }
151   }
152   /**
153    *
154    *
155    * <pre>
156    * Required. The user-defined name of the AnnotationSpec.
157    * The name can be up to 128 characters long and can consist of any UTF-8
158    * characters.
159    * </pre>
160    *
161    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
162    *
163    * @return The bytes for displayName.
164    */
165   @java.lang.Override
getDisplayNameBytes()166   public com.google.protobuf.ByteString getDisplayNameBytes() {
167     java.lang.Object ref = displayName_;
168     if (ref instanceof java.lang.String) {
169       com.google.protobuf.ByteString b =
170           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
171       displayName_ = b;
172       return b;
173     } else {
174       return (com.google.protobuf.ByteString) ref;
175     }
176   }
177 
178   public static final int CREATE_TIME_FIELD_NUMBER = 3;
179   private com.google.protobuf.Timestamp createTime_;
180   /**
181    *
182    *
183    * <pre>
184    * Output only. Timestamp when this AnnotationSpec was created.
185    * </pre>
186    *
187    * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
188    * </code>
189    *
190    * @return Whether the createTime field is set.
191    */
192   @java.lang.Override
hasCreateTime()193   public boolean hasCreateTime() {
194     return createTime_ != null;
195   }
196   /**
197    *
198    *
199    * <pre>
200    * Output only. Timestamp when this AnnotationSpec was created.
201    * </pre>
202    *
203    * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
204    * </code>
205    *
206    * @return The createTime.
207    */
208   @java.lang.Override
getCreateTime()209   public com.google.protobuf.Timestamp getCreateTime() {
210     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
211   }
212   /**
213    *
214    *
215    * <pre>
216    * Output only. Timestamp when this AnnotationSpec was created.
217    * </pre>
218    *
219    * <code>.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
220    * </code>
221    */
222   @java.lang.Override
getCreateTimeOrBuilder()223   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
224     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
225   }
226 
227   public static final int UPDATE_TIME_FIELD_NUMBER = 4;
228   private com.google.protobuf.Timestamp updateTime_;
229   /**
230    *
231    *
232    * <pre>
233    * Output only. Timestamp when AnnotationSpec was last updated.
234    * </pre>
235    *
236    * <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
237    * </code>
238    *
239    * @return Whether the updateTime field is set.
240    */
241   @java.lang.Override
hasUpdateTime()242   public boolean hasUpdateTime() {
243     return updateTime_ != null;
244   }
245   /**
246    *
247    *
248    * <pre>
249    * Output only. Timestamp when AnnotationSpec was last updated.
250    * </pre>
251    *
252    * <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
253    * </code>
254    *
255    * @return The updateTime.
256    */
257   @java.lang.Override
getUpdateTime()258   public com.google.protobuf.Timestamp getUpdateTime() {
259     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
260   }
261   /**
262    *
263    *
264    * <pre>
265    * Output only. Timestamp when AnnotationSpec was last updated.
266    * </pre>
267    *
268    * <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
269    * </code>
270    */
271   @java.lang.Override
getUpdateTimeOrBuilder()272   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
273     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
274   }
275 
276   public static final int ETAG_FIELD_NUMBER = 5;
277 
278   @SuppressWarnings("serial")
279   private volatile java.lang.Object etag_ = "";
280   /**
281    *
282    *
283    * <pre>
284    * Optional. Used to perform consistent read-modify-write updates. If not set,
285    * a blind "overwrite" update happens.
286    * </pre>
287    *
288    * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
289    *
290    * @return The etag.
291    */
292   @java.lang.Override
getEtag()293   public java.lang.String getEtag() {
294     java.lang.Object ref = etag_;
295     if (ref instanceof java.lang.String) {
296       return (java.lang.String) ref;
297     } else {
298       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
299       java.lang.String s = bs.toStringUtf8();
300       etag_ = s;
301       return s;
302     }
303   }
304   /**
305    *
306    *
307    * <pre>
308    * Optional. Used to perform consistent read-modify-write updates. If not set,
309    * a blind "overwrite" update happens.
310    * </pre>
311    *
312    * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
313    *
314    * @return The bytes for etag.
315    */
316   @java.lang.Override
getEtagBytes()317   public com.google.protobuf.ByteString getEtagBytes() {
318     java.lang.Object ref = etag_;
319     if (ref instanceof java.lang.String) {
320       com.google.protobuf.ByteString b =
321           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
322       etag_ = b;
323       return b;
324     } else {
325       return (com.google.protobuf.ByteString) ref;
326     }
327   }
328 
329   private byte memoizedIsInitialized = -1;
330 
331   @java.lang.Override
isInitialized()332   public final boolean isInitialized() {
333     byte isInitialized = memoizedIsInitialized;
334     if (isInitialized == 1) return true;
335     if (isInitialized == 0) return false;
336 
337     memoizedIsInitialized = 1;
338     return true;
339   }
340 
341   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)342   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
343     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
344       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
345     }
346     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
347       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
348     }
349     if (createTime_ != null) {
350       output.writeMessage(3, getCreateTime());
351     }
352     if (updateTime_ != null) {
353       output.writeMessage(4, getUpdateTime());
354     }
355     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
356       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_);
357     }
358     getUnknownFields().writeTo(output);
359   }
360 
361   @java.lang.Override
getSerializedSize()362   public int getSerializedSize() {
363     int size = memoizedSize;
364     if (size != -1) return size;
365 
366     size = 0;
367     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
368       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
369     }
370     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
371       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
372     }
373     if (createTime_ != null) {
374       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
375     }
376     if (updateTime_ != null) {
377       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime());
378     }
379     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
380       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_);
381     }
382     size += getUnknownFields().getSerializedSize();
383     memoizedSize = size;
384     return size;
385   }
386 
387   @java.lang.Override
equals(final java.lang.Object obj)388   public boolean equals(final java.lang.Object obj) {
389     if (obj == this) {
390       return true;
391     }
392     if (!(obj instanceof com.google.cloud.aiplatform.v1.AnnotationSpec)) {
393       return super.equals(obj);
394     }
395     com.google.cloud.aiplatform.v1.AnnotationSpec other =
396         (com.google.cloud.aiplatform.v1.AnnotationSpec) obj;
397 
398     if (!getName().equals(other.getName())) return false;
399     if (!getDisplayName().equals(other.getDisplayName())) return false;
400     if (hasCreateTime() != other.hasCreateTime()) return false;
401     if (hasCreateTime()) {
402       if (!getCreateTime().equals(other.getCreateTime())) return false;
403     }
404     if (hasUpdateTime() != other.hasUpdateTime()) return false;
405     if (hasUpdateTime()) {
406       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
407     }
408     if (!getEtag().equals(other.getEtag())) return false;
409     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
410     return true;
411   }
412 
413   @java.lang.Override
hashCode()414   public int hashCode() {
415     if (memoizedHashCode != 0) {
416       return memoizedHashCode;
417     }
418     int hash = 41;
419     hash = (19 * hash) + getDescriptor().hashCode();
420     hash = (37 * hash) + NAME_FIELD_NUMBER;
421     hash = (53 * hash) + getName().hashCode();
422     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
423     hash = (53 * hash) + getDisplayName().hashCode();
424     if (hasCreateTime()) {
425       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
426       hash = (53 * hash) + getCreateTime().hashCode();
427     }
428     if (hasUpdateTime()) {
429       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
430       hash = (53 * hash) + getUpdateTime().hashCode();
431     }
432     hash = (37 * hash) + ETAG_FIELD_NUMBER;
433     hash = (53 * hash) + getEtag().hashCode();
434     hash = (29 * hash) + getUnknownFields().hashCode();
435     memoizedHashCode = hash;
436     return hash;
437   }
438 
parseFrom(java.nio.ByteBuffer data)439   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(java.nio.ByteBuffer data)
440       throws com.google.protobuf.InvalidProtocolBufferException {
441     return PARSER.parseFrom(data);
442   }
443 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)444   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
445       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
446       throws com.google.protobuf.InvalidProtocolBufferException {
447     return PARSER.parseFrom(data, extensionRegistry);
448   }
449 
parseFrom( com.google.protobuf.ByteString data)450   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
451       com.google.protobuf.ByteString data)
452       throws com.google.protobuf.InvalidProtocolBufferException {
453     return PARSER.parseFrom(data);
454   }
455 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)456   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
457       com.google.protobuf.ByteString data,
458       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
459       throws com.google.protobuf.InvalidProtocolBufferException {
460     return PARSER.parseFrom(data, extensionRegistry);
461   }
462 
parseFrom(byte[] data)463   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(byte[] data)
464       throws com.google.protobuf.InvalidProtocolBufferException {
465     return PARSER.parseFrom(data);
466   }
467 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)468   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
469       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
470       throws com.google.protobuf.InvalidProtocolBufferException {
471     return PARSER.parseFrom(data, extensionRegistry);
472   }
473 
parseFrom(java.io.InputStream input)474   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(java.io.InputStream input)
475       throws java.io.IOException {
476     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
477   }
478 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)479   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
480       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
481       throws java.io.IOException {
482     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
483         PARSER, input, extensionRegistry);
484   }
485 
parseDelimitedFrom( java.io.InputStream input)486   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseDelimitedFrom(
487       java.io.InputStream input) throws java.io.IOException {
488     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
489   }
490 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)491   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseDelimitedFrom(
492       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
493       throws java.io.IOException {
494     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
495         PARSER, input, extensionRegistry);
496   }
497 
parseFrom( com.google.protobuf.CodedInputStream input)498   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
499       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
500     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
501   }
502 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)503   public static com.google.cloud.aiplatform.v1.AnnotationSpec parseFrom(
504       com.google.protobuf.CodedInputStream input,
505       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
506       throws java.io.IOException {
507     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
508         PARSER, input, extensionRegistry);
509   }
510 
511   @java.lang.Override
newBuilderForType()512   public Builder newBuilderForType() {
513     return newBuilder();
514   }
515 
newBuilder()516   public static Builder newBuilder() {
517     return DEFAULT_INSTANCE.toBuilder();
518   }
519 
newBuilder(com.google.cloud.aiplatform.v1.AnnotationSpec prototype)520   public static Builder newBuilder(com.google.cloud.aiplatform.v1.AnnotationSpec prototype) {
521     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
522   }
523 
524   @java.lang.Override
toBuilder()525   public Builder toBuilder() {
526     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
527   }
528 
529   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)530   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
531     Builder builder = new Builder(parent);
532     return builder;
533   }
534   /**
535    *
536    *
537    * <pre>
538    * Identifies a concept with which DataItems may be annotated with.
539    * </pre>
540    *
541    * Protobuf type {@code google.cloud.aiplatform.v1.AnnotationSpec}
542    */
543   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
544       implements
545       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AnnotationSpec)
546       com.google.cloud.aiplatform.v1.AnnotationSpecOrBuilder {
getDescriptor()547     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
548       return com.google.cloud.aiplatform.v1.AnnotationSpecProto
549           .internal_static_google_cloud_aiplatform_v1_AnnotationSpec_descriptor;
550     }
551 
552     @java.lang.Override
553     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()554         internalGetFieldAccessorTable() {
555       return com.google.cloud.aiplatform.v1.AnnotationSpecProto
556           .internal_static_google_cloud_aiplatform_v1_AnnotationSpec_fieldAccessorTable
557           .ensureFieldAccessorsInitialized(
558               com.google.cloud.aiplatform.v1.AnnotationSpec.class,
559               com.google.cloud.aiplatform.v1.AnnotationSpec.Builder.class);
560     }
561 
562     // Construct using com.google.cloud.aiplatform.v1.AnnotationSpec.newBuilder()
Builder()563     private Builder() {}
564 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)565     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
566       super(parent);
567     }
568 
569     @java.lang.Override
clear()570     public Builder clear() {
571       super.clear();
572       bitField0_ = 0;
573       name_ = "";
574       displayName_ = "";
575       createTime_ = null;
576       if (createTimeBuilder_ != null) {
577         createTimeBuilder_.dispose();
578         createTimeBuilder_ = null;
579       }
580       updateTime_ = null;
581       if (updateTimeBuilder_ != null) {
582         updateTimeBuilder_.dispose();
583         updateTimeBuilder_ = null;
584       }
585       etag_ = "";
586       return this;
587     }
588 
589     @java.lang.Override
getDescriptorForType()590     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
591       return com.google.cloud.aiplatform.v1.AnnotationSpecProto
592           .internal_static_google_cloud_aiplatform_v1_AnnotationSpec_descriptor;
593     }
594 
595     @java.lang.Override
getDefaultInstanceForType()596     public com.google.cloud.aiplatform.v1.AnnotationSpec getDefaultInstanceForType() {
597       return com.google.cloud.aiplatform.v1.AnnotationSpec.getDefaultInstance();
598     }
599 
600     @java.lang.Override
build()601     public com.google.cloud.aiplatform.v1.AnnotationSpec build() {
602       com.google.cloud.aiplatform.v1.AnnotationSpec result = buildPartial();
603       if (!result.isInitialized()) {
604         throw newUninitializedMessageException(result);
605       }
606       return result;
607     }
608 
609     @java.lang.Override
buildPartial()610     public com.google.cloud.aiplatform.v1.AnnotationSpec buildPartial() {
611       com.google.cloud.aiplatform.v1.AnnotationSpec result =
612           new com.google.cloud.aiplatform.v1.AnnotationSpec(this);
613       if (bitField0_ != 0) {
614         buildPartial0(result);
615       }
616       onBuilt();
617       return result;
618     }
619 
buildPartial0(com.google.cloud.aiplatform.v1.AnnotationSpec result)620     private void buildPartial0(com.google.cloud.aiplatform.v1.AnnotationSpec result) {
621       int from_bitField0_ = bitField0_;
622       if (((from_bitField0_ & 0x00000001) != 0)) {
623         result.name_ = name_;
624       }
625       if (((from_bitField0_ & 0x00000002) != 0)) {
626         result.displayName_ = displayName_;
627       }
628       if (((from_bitField0_ & 0x00000004) != 0)) {
629         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
630       }
631       if (((from_bitField0_ & 0x00000008) != 0)) {
632         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
633       }
634       if (((from_bitField0_ & 0x00000010) != 0)) {
635         result.etag_ = etag_;
636       }
637     }
638 
639     @java.lang.Override
clone()640     public Builder clone() {
641       return super.clone();
642     }
643 
644     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)645     public Builder setField(
646         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
647       return super.setField(field, value);
648     }
649 
650     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)651     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
652       return super.clearField(field);
653     }
654 
655     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)656     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
657       return super.clearOneof(oneof);
658     }
659 
660     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)661     public Builder setRepeatedField(
662         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
663       return super.setRepeatedField(field, index, value);
664     }
665 
666     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)667     public Builder addRepeatedField(
668         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
669       return super.addRepeatedField(field, value);
670     }
671 
672     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)673     public Builder mergeFrom(com.google.protobuf.Message other) {
674       if (other instanceof com.google.cloud.aiplatform.v1.AnnotationSpec) {
675         return mergeFrom((com.google.cloud.aiplatform.v1.AnnotationSpec) other);
676       } else {
677         super.mergeFrom(other);
678         return this;
679       }
680     }
681 
mergeFrom(com.google.cloud.aiplatform.v1.AnnotationSpec other)682     public Builder mergeFrom(com.google.cloud.aiplatform.v1.AnnotationSpec other) {
683       if (other == com.google.cloud.aiplatform.v1.AnnotationSpec.getDefaultInstance()) return this;
684       if (!other.getName().isEmpty()) {
685         name_ = other.name_;
686         bitField0_ |= 0x00000001;
687         onChanged();
688       }
689       if (!other.getDisplayName().isEmpty()) {
690         displayName_ = other.displayName_;
691         bitField0_ |= 0x00000002;
692         onChanged();
693       }
694       if (other.hasCreateTime()) {
695         mergeCreateTime(other.getCreateTime());
696       }
697       if (other.hasUpdateTime()) {
698         mergeUpdateTime(other.getUpdateTime());
699       }
700       if (!other.getEtag().isEmpty()) {
701         etag_ = other.etag_;
702         bitField0_ |= 0x00000010;
703         onChanged();
704       }
705       this.mergeUnknownFields(other.getUnknownFields());
706       onChanged();
707       return this;
708     }
709 
710     @java.lang.Override
isInitialized()711     public final boolean isInitialized() {
712       return true;
713     }
714 
715     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)716     public Builder mergeFrom(
717         com.google.protobuf.CodedInputStream input,
718         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
719         throws java.io.IOException {
720       if (extensionRegistry == null) {
721         throw new java.lang.NullPointerException();
722       }
723       try {
724         boolean done = false;
725         while (!done) {
726           int tag = input.readTag();
727           switch (tag) {
728             case 0:
729               done = true;
730               break;
731             case 10:
732               {
733                 name_ = input.readStringRequireUtf8();
734                 bitField0_ |= 0x00000001;
735                 break;
736               } // case 10
737             case 18:
738               {
739                 displayName_ = input.readStringRequireUtf8();
740                 bitField0_ |= 0x00000002;
741                 break;
742               } // case 18
743             case 26:
744               {
745                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
746                 bitField0_ |= 0x00000004;
747                 break;
748               } // case 26
749             case 34:
750               {
751                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
752                 bitField0_ |= 0x00000008;
753                 break;
754               } // case 34
755             case 42:
756               {
757                 etag_ = input.readStringRequireUtf8();
758                 bitField0_ |= 0x00000010;
759                 break;
760               } // case 42
761             default:
762               {
763                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
764                   done = true; // was an endgroup tag
765                 }
766                 break;
767               } // default:
768           } // switch (tag)
769         } // while (!done)
770       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
771         throw e.unwrapIOException();
772       } finally {
773         onChanged();
774       } // finally
775       return this;
776     }
777 
778     private int bitField0_;
779 
780     private java.lang.Object name_ = "";
781     /**
782      *
783      *
784      * <pre>
785      * Output only. Resource name of the AnnotationSpec.
786      * </pre>
787      *
788      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
789      *
790      * @return The name.
791      */
getName()792     public java.lang.String getName() {
793       java.lang.Object ref = name_;
794       if (!(ref instanceof java.lang.String)) {
795         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
796         java.lang.String s = bs.toStringUtf8();
797         name_ = s;
798         return s;
799       } else {
800         return (java.lang.String) ref;
801       }
802     }
803     /**
804      *
805      *
806      * <pre>
807      * Output only. Resource name of the AnnotationSpec.
808      * </pre>
809      *
810      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
811      *
812      * @return The bytes for name.
813      */
getNameBytes()814     public com.google.protobuf.ByteString getNameBytes() {
815       java.lang.Object ref = name_;
816       if (ref instanceof String) {
817         com.google.protobuf.ByteString b =
818             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
819         name_ = b;
820         return b;
821       } else {
822         return (com.google.protobuf.ByteString) ref;
823       }
824     }
825     /**
826      *
827      *
828      * <pre>
829      * Output only. Resource name of the AnnotationSpec.
830      * </pre>
831      *
832      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
833      *
834      * @param value The name to set.
835      * @return This builder for chaining.
836      */
setName(java.lang.String value)837     public Builder setName(java.lang.String value) {
838       if (value == null) {
839         throw new NullPointerException();
840       }
841       name_ = value;
842       bitField0_ |= 0x00000001;
843       onChanged();
844       return this;
845     }
846     /**
847      *
848      *
849      * <pre>
850      * Output only. Resource name of the AnnotationSpec.
851      * </pre>
852      *
853      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
854      *
855      * @return This builder for chaining.
856      */
clearName()857     public Builder clearName() {
858       name_ = getDefaultInstance().getName();
859       bitField0_ = (bitField0_ & ~0x00000001);
860       onChanged();
861       return this;
862     }
863     /**
864      *
865      *
866      * <pre>
867      * Output only. Resource name of the AnnotationSpec.
868      * </pre>
869      *
870      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
871      *
872      * @param value The bytes for name to set.
873      * @return This builder for chaining.
874      */
setNameBytes(com.google.protobuf.ByteString value)875     public Builder setNameBytes(com.google.protobuf.ByteString value) {
876       if (value == null) {
877         throw new NullPointerException();
878       }
879       checkByteStringIsUtf8(value);
880       name_ = value;
881       bitField0_ |= 0x00000001;
882       onChanged();
883       return this;
884     }
885 
886     private java.lang.Object displayName_ = "";
887     /**
888      *
889      *
890      * <pre>
891      * Required. The user-defined name of the AnnotationSpec.
892      * The name can be up to 128 characters long and can consist of any UTF-8
893      * characters.
894      * </pre>
895      *
896      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
897      *
898      * @return The displayName.
899      */
getDisplayName()900     public java.lang.String getDisplayName() {
901       java.lang.Object ref = displayName_;
902       if (!(ref instanceof java.lang.String)) {
903         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
904         java.lang.String s = bs.toStringUtf8();
905         displayName_ = s;
906         return s;
907       } else {
908         return (java.lang.String) ref;
909       }
910     }
911     /**
912      *
913      *
914      * <pre>
915      * Required. The user-defined name of the AnnotationSpec.
916      * The name can be up to 128 characters long and can consist of any UTF-8
917      * characters.
918      * </pre>
919      *
920      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
921      *
922      * @return The bytes for displayName.
923      */
getDisplayNameBytes()924     public com.google.protobuf.ByteString getDisplayNameBytes() {
925       java.lang.Object ref = displayName_;
926       if (ref instanceof String) {
927         com.google.protobuf.ByteString b =
928             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
929         displayName_ = b;
930         return b;
931       } else {
932         return (com.google.protobuf.ByteString) ref;
933       }
934     }
935     /**
936      *
937      *
938      * <pre>
939      * Required. The user-defined name of the AnnotationSpec.
940      * The name can be up to 128 characters long and can consist of any UTF-8
941      * characters.
942      * </pre>
943      *
944      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
945      *
946      * @param value The displayName to set.
947      * @return This builder for chaining.
948      */
setDisplayName(java.lang.String value)949     public Builder setDisplayName(java.lang.String value) {
950       if (value == null) {
951         throw new NullPointerException();
952       }
953       displayName_ = value;
954       bitField0_ |= 0x00000002;
955       onChanged();
956       return this;
957     }
958     /**
959      *
960      *
961      * <pre>
962      * Required. The user-defined name of the AnnotationSpec.
963      * The name can be up to 128 characters long and can consist of any UTF-8
964      * characters.
965      * </pre>
966      *
967      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
968      *
969      * @return This builder for chaining.
970      */
clearDisplayName()971     public Builder clearDisplayName() {
972       displayName_ = getDefaultInstance().getDisplayName();
973       bitField0_ = (bitField0_ & ~0x00000002);
974       onChanged();
975       return this;
976     }
977     /**
978      *
979      *
980      * <pre>
981      * Required. The user-defined name of the AnnotationSpec.
982      * The name can be up to 128 characters long and can consist of any UTF-8
983      * characters.
984      * </pre>
985      *
986      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
987      *
988      * @param value The bytes for displayName to set.
989      * @return This builder for chaining.
990      */
setDisplayNameBytes(com.google.protobuf.ByteString value)991     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
992       if (value == null) {
993         throw new NullPointerException();
994       }
995       checkByteStringIsUtf8(value);
996       displayName_ = value;
997       bitField0_ |= 0x00000002;
998       onChanged();
999       return this;
1000     }
1001 
1002     private com.google.protobuf.Timestamp createTime_;
1003     private com.google.protobuf.SingleFieldBuilderV3<
1004             com.google.protobuf.Timestamp,
1005             com.google.protobuf.Timestamp.Builder,
1006             com.google.protobuf.TimestampOrBuilder>
1007         createTimeBuilder_;
1008     /**
1009      *
1010      *
1011      * <pre>
1012      * Output only. Timestamp when this AnnotationSpec was created.
1013      * </pre>
1014      *
1015      * <code>
1016      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1017      * </code>
1018      *
1019      * @return Whether the createTime field is set.
1020      */
hasCreateTime()1021     public boolean hasCreateTime() {
1022       return ((bitField0_ & 0x00000004) != 0);
1023     }
1024     /**
1025      *
1026      *
1027      * <pre>
1028      * Output only. Timestamp when this AnnotationSpec was created.
1029      * </pre>
1030      *
1031      * <code>
1032      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1033      * </code>
1034      *
1035      * @return The createTime.
1036      */
getCreateTime()1037     public com.google.protobuf.Timestamp getCreateTime() {
1038       if (createTimeBuilder_ == null) {
1039         return createTime_ == null
1040             ? com.google.protobuf.Timestamp.getDefaultInstance()
1041             : createTime_;
1042       } else {
1043         return createTimeBuilder_.getMessage();
1044       }
1045     }
1046     /**
1047      *
1048      *
1049      * <pre>
1050      * Output only. Timestamp when this AnnotationSpec was created.
1051      * </pre>
1052      *
1053      * <code>
1054      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1055      * </code>
1056      */
setCreateTime(com.google.protobuf.Timestamp value)1057     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
1058       if (createTimeBuilder_ == null) {
1059         if (value == null) {
1060           throw new NullPointerException();
1061         }
1062         createTime_ = value;
1063       } else {
1064         createTimeBuilder_.setMessage(value);
1065       }
1066       bitField0_ |= 0x00000004;
1067       onChanged();
1068       return this;
1069     }
1070     /**
1071      *
1072      *
1073      * <pre>
1074      * Output only. Timestamp when this AnnotationSpec was created.
1075      * </pre>
1076      *
1077      * <code>
1078      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1079      * </code>
1080      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1081     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1082       if (createTimeBuilder_ == null) {
1083         createTime_ = builderForValue.build();
1084       } else {
1085         createTimeBuilder_.setMessage(builderForValue.build());
1086       }
1087       bitField0_ |= 0x00000004;
1088       onChanged();
1089       return this;
1090     }
1091     /**
1092      *
1093      *
1094      * <pre>
1095      * Output only. Timestamp when this AnnotationSpec was created.
1096      * </pre>
1097      *
1098      * <code>
1099      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1100      * </code>
1101      */
mergeCreateTime(com.google.protobuf.Timestamp value)1102     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
1103       if (createTimeBuilder_ == null) {
1104         if (((bitField0_ & 0x00000004) != 0)
1105             && createTime_ != null
1106             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1107           getCreateTimeBuilder().mergeFrom(value);
1108         } else {
1109           createTime_ = value;
1110         }
1111       } else {
1112         createTimeBuilder_.mergeFrom(value);
1113       }
1114       bitField0_ |= 0x00000004;
1115       onChanged();
1116       return this;
1117     }
1118     /**
1119      *
1120      *
1121      * <pre>
1122      * Output only. Timestamp when this AnnotationSpec was created.
1123      * </pre>
1124      *
1125      * <code>
1126      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1127      * </code>
1128      */
clearCreateTime()1129     public Builder clearCreateTime() {
1130       bitField0_ = (bitField0_ & ~0x00000004);
1131       createTime_ = null;
1132       if (createTimeBuilder_ != null) {
1133         createTimeBuilder_.dispose();
1134         createTimeBuilder_ = null;
1135       }
1136       onChanged();
1137       return this;
1138     }
1139     /**
1140      *
1141      *
1142      * <pre>
1143      * Output only. Timestamp when this AnnotationSpec was created.
1144      * </pre>
1145      *
1146      * <code>
1147      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1148      * </code>
1149      */
getCreateTimeBuilder()1150     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
1151       bitField0_ |= 0x00000004;
1152       onChanged();
1153       return getCreateTimeFieldBuilder().getBuilder();
1154     }
1155     /**
1156      *
1157      *
1158      * <pre>
1159      * Output only. Timestamp when this AnnotationSpec was created.
1160      * </pre>
1161      *
1162      * <code>
1163      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1164      * </code>
1165      */
getCreateTimeOrBuilder()1166     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
1167       if (createTimeBuilder_ != null) {
1168         return createTimeBuilder_.getMessageOrBuilder();
1169       } else {
1170         return createTime_ == null
1171             ? com.google.protobuf.Timestamp.getDefaultInstance()
1172             : createTime_;
1173       }
1174     }
1175     /**
1176      *
1177      *
1178      * <pre>
1179      * Output only. Timestamp when this AnnotationSpec was created.
1180      * </pre>
1181      *
1182      * <code>
1183      * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1184      * </code>
1185      */
1186     private com.google.protobuf.SingleFieldBuilderV3<
1187             com.google.protobuf.Timestamp,
1188             com.google.protobuf.Timestamp.Builder,
1189             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()1190         getCreateTimeFieldBuilder() {
1191       if (createTimeBuilder_ == null) {
1192         createTimeBuilder_ =
1193             new com.google.protobuf.SingleFieldBuilderV3<
1194                 com.google.protobuf.Timestamp,
1195                 com.google.protobuf.Timestamp.Builder,
1196                 com.google.protobuf.TimestampOrBuilder>(
1197                 getCreateTime(), getParentForChildren(), isClean());
1198         createTime_ = null;
1199       }
1200       return createTimeBuilder_;
1201     }
1202 
1203     private com.google.protobuf.Timestamp updateTime_;
1204     private com.google.protobuf.SingleFieldBuilderV3<
1205             com.google.protobuf.Timestamp,
1206             com.google.protobuf.Timestamp.Builder,
1207             com.google.protobuf.TimestampOrBuilder>
1208         updateTimeBuilder_;
1209     /**
1210      *
1211      *
1212      * <pre>
1213      * Output only. Timestamp when AnnotationSpec was last updated.
1214      * </pre>
1215      *
1216      * <code>
1217      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1218      * </code>
1219      *
1220      * @return Whether the updateTime field is set.
1221      */
hasUpdateTime()1222     public boolean hasUpdateTime() {
1223       return ((bitField0_ & 0x00000008) != 0);
1224     }
1225     /**
1226      *
1227      *
1228      * <pre>
1229      * Output only. Timestamp when AnnotationSpec was last updated.
1230      * </pre>
1231      *
1232      * <code>
1233      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1234      * </code>
1235      *
1236      * @return The updateTime.
1237      */
getUpdateTime()1238     public com.google.protobuf.Timestamp getUpdateTime() {
1239       if (updateTimeBuilder_ == null) {
1240         return updateTime_ == null
1241             ? com.google.protobuf.Timestamp.getDefaultInstance()
1242             : updateTime_;
1243       } else {
1244         return updateTimeBuilder_.getMessage();
1245       }
1246     }
1247     /**
1248      *
1249      *
1250      * <pre>
1251      * Output only. Timestamp when AnnotationSpec was last updated.
1252      * </pre>
1253      *
1254      * <code>
1255      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1256      * </code>
1257      */
setUpdateTime(com.google.protobuf.Timestamp value)1258     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
1259       if (updateTimeBuilder_ == null) {
1260         if (value == null) {
1261           throw new NullPointerException();
1262         }
1263         updateTime_ = value;
1264       } else {
1265         updateTimeBuilder_.setMessage(value);
1266       }
1267       bitField0_ |= 0x00000008;
1268       onChanged();
1269       return this;
1270     }
1271     /**
1272      *
1273      *
1274      * <pre>
1275      * Output only. Timestamp when AnnotationSpec was last updated.
1276      * </pre>
1277      *
1278      * <code>
1279      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1280      * </code>
1281      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)1282     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1283       if (updateTimeBuilder_ == null) {
1284         updateTime_ = builderForValue.build();
1285       } else {
1286         updateTimeBuilder_.setMessage(builderForValue.build());
1287       }
1288       bitField0_ |= 0x00000008;
1289       onChanged();
1290       return this;
1291     }
1292     /**
1293      *
1294      *
1295      * <pre>
1296      * Output only. Timestamp when AnnotationSpec was last updated.
1297      * </pre>
1298      *
1299      * <code>
1300      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1301      * </code>
1302      */
mergeUpdateTime(com.google.protobuf.Timestamp value)1303     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
1304       if (updateTimeBuilder_ == null) {
1305         if (((bitField0_ & 0x00000008) != 0)
1306             && updateTime_ != null
1307             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1308           getUpdateTimeBuilder().mergeFrom(value);
1309         } else {
1310           updateTime_ = value;
1311         }
1312       } else {
1313         updateTimeBuilder_.mergeFrom(value);
1314       }
1315       bitField0_ |= 0x00000008;
1316       onChanged();
1317       return this;
1318     }
1319     /**
1320      *
1321      *
1322      * <pre>
1323      * Output only. Timestamp when AnnotationSpec was last updated.
1324      * </pre>
1325      *
1326      * <code>
1327      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1328      * </code>
1329      */
clearUpdateTime()1330     public Builder clearUpdateTime() {
1331       bitField0_ = (bitField0_ & ~0x00000008);
1332       updateTime_ = null;
1333       if (updateTimeBuilder_ != null) {
1334         updateTimeBuilder_.dispose();
1335         updateTimeBuilder_ = null;
1336       }
1337       onChanged();
1338       return this;
1339     }
1340     /**
1341      *
1342      *
1343      * <pre>
1344      * Output only. Timestamp when AnnotationSpec was last updated.
1345      * </pre>
1346      *
1347      * <code>
1348      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1349      * </code>
1350      */
getUpdateTimeBuilder()1351     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
1352       bitField0_ |= 0x00000008;
1353       onChanged();
1354       return getUpdateTimeFieldBuilder().getBuilder();
1355     }
1356     /**
1357      *
1358      *
1359      * <pre>
1360      * Output only. Timestamp when AnnotationSpec was last updated.
1361      * </pre>
1362      *
1363      * <code>
1364      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1365      * </code>
1366      */
getUpdateTimeOrBuilder()1367     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
1368       if (updateTimeBuilder_ != null) {
1369         return updateTimeBuilder_.getMessageOrBuilder();
1370       } else {
1371         return updateTime_ == null
1372             ? com.google.protobuf.Timestamp.getDefaultInstance()
1373             : updateTime_;
1374       }
1375     }
1376     /**
1377      *
1378      *
1379      * <pre>
1380      * Output only. Timestamp when AnnotationSpec was last updated.
1381      * </pre>
1382      *
1383      * <code>
1384      * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1385      * </code>
1386      */
1387     private com.google.protobuf.SingleFieldBuilderV3<
1388             com.google.protobuf.Timestamp,
1389             com.google.protobuf.Timestamp.Builder,
1390             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()1391         getUpdateTimeFieldBuilder() {
1392       if (updateTimeBuilder_ == null) {
1393         updateTimeBuilder_ =
1394             new com.google.protobuf.SingleFieldBuilderV3<
1395                 com.google.protobuf.Timestamp,
1396                 com.google.protobuf.Timestamp.Builder,
1397                 com.google.protobuf.TimestampOrBuilder>(
1398                 getUpdateTime(), getParentForChildren(), isClean());
1399         updateTime_ = null;
1400       }
1401       return updateTimeBuilder_;
1402     }
1403 
1404     private java.lang.Object etag_ = "";
1405     /**
1406      *
1407      *
1408      * <pre>
1409      * Optional. Used to perform consistent read-modify-write updates. If not set,
1410      * a blind "overwrite" update happens.
1411      * </pre>
1412      *
1413      * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
1414      *
1415      * @return The etag.
1416      */
getEtag()1417     public java.lang.String getEtag() {
1418       java.lang.Object ref = etag_;
1419       if (!(ref instanceof java.lang.String)) {
1420         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1421         java.lang.String s = bs.toStringUtf8();
1422         etag_ = s;
1423         return s;
1424       } else {
1425         return (java.lang.String) ref;
1426       }
1427     }
1428     /**
1429      *
1430      *
1431      * <pre>
1432      * Optional. Used to perform consistent read-modify-write updates. If not set,
1433      * a blind "overwrite" update happens.
1434      * </pre>
1435      *
1436      * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
1437      *
1438      * @return The bytes for etag.
1439      */
getEtagBytes()1440     public com.google.protobuf.ByteString getEtagBytes() {
1441       java.lang.Object ref = etag_;
1442       if (ref instanceof String) {
1443         com.google.protobuf.ByteString b =
1444             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1445         etag_ = b;
1446         return b;
1447       } else {
1448         return (com.google.protobuf.ByteString) ref;
1449       }
1450     }
1451     /**
1452      *
1453      *
1454      * <pre>
1455      * Optional. Used to perform consistent read-modify-write updates. If not set,
1456      * a blind "overwrite" update happens.
1457      * </pre>
1458      *
1459      * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
1460      *
1461      * @param value The etag to set.
1462      * @return This builder for chaining.
1463      */
setEtag(java.lang.String value)1464     public Builder setEtag(java.lang.String value) {
1465       if (value == null) {
1466         throw new NullPointerException();
1467       }
1468       etag_ = value;
1469       bitField0_ |= 0x00000010;
1470       onChanged();
1471       return this;
1472     }
1473     /**
1474      *
1475      *
1476      * <pre>
1477      * Optional. Used to perform consistent read-modify-write updates. If not set,
1478      * a blind "overwrite" update happens.
1479      * </pre>
1480      *
1481      * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
1482      *
1483      * @return This builder for chaining.
1484      */
clearEtag()1485     public Builder clearEtag() {
1486       etag_ = getDefaultInstance().getEtag();
1487       bitField0_ = (bitField0_ & ~0x00000010);
1488       onChanged();
1489       return this;
1490     }
1491     /**
1492      *
1493      *
1494      * <pre>
1495      * Optional. Used to perform consistent read-modify-write updates. If not set,
1496      * a blind "overwrite" update happens.
1497      * </pre>
1498      *
1499      * <code>string etag = 5 [(.google.api.field_behavior) = OPTIONAL];</code>
1500      *
1501      * @param value The bytes for etag to set.
1502      * @return This builder for chaining.
1503      */
setEtagBytes(com.google.protobuf.ByteString value)1504     public Builder setEtagBytes(com.google.protobuf.ByteString value) {
1505       if (value == null) {
1506         throw new NullPointerException();
1507       }
1508       checkByteStringIsUtf8(value);
1509       etag_ = value;
1510       bitField0_ |= 0x00000010;
1511       onChanged();
1512       return this;
1513     }
1514 
1515     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1516     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1517       return super.setUnknownFields(unknownFields);
1518     }
1519 
1520     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1521     public final Builder mergeUnknownFields(
1522         final com.google.protobuf.UnknownFieldSet unknownFields) {
1523       return super.mergeUnknownFields(unknownFields);
1524     }
1525 
1526     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AnnotationSpec)
1527   }
1528 
1529   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AnnotationSpec)
1530   private static final com.google.cloud.aiplatform.v1.AnnotationSpec DEFAULT_INSTANCE;
1531 
1532   static {
1533     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AnnotationSpec();
1534   }
1535 
getDefaultInstance()1536   public static com.google.cloud.aiplatform.v1.AnnotationSpec getDefaultInstance() {
1537     return DEFAULT_INSTANCE;
1538   }
1539 
1540   private static final com.google.protobuf.Parser<AnnotationSpec> PARSER =
1541       new com.google.protobuf.AbstractParser<AnnotationSpec>() {
1542         @java.lang.Override
1543         public AnnotationSpec parsePartialFrom(
1544             com.google.protobuf.CodedInputStream input,
1545             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1546             throws com.google.protobuf.InvalidProtocolBufferException {
1547           Builder builder = newBuilder();
1548           try {
1549             builder.mergeFrom(input, extensionRegistry);
1550           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1551             throw e.setUnfinishedMessage(builder.buildPartial());
1552           } catch (com.google.protobuf.UninitializedMessageException e) {
1553             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1554           } catch (java.io.IOException e) {
1555             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1556                 .setUnfinishedMessage(builder.buildPartial());
1557           }
1558           return builder.buildPartial();
1559         }
1560       };
1561 
parser()1562   public static com.google.protobuf.Parser<AnnotationSpec> parser() {
1563     return PARSER;
1564   }
1565 
1566   @java.lang.Override
getParserForType()1567   public com.google.protobuf.Parser<AnnotationSpec> getParserForType() {
1568     return PARSER;
1569   }
1570 
1571   @java.lang.Override
getDefaultInstanceForType()1572   public com.google.cloud.aiplatform.v1.AnnotationSpec getDefaultInstanceForType() {
1573     return DEFAULT_INSTANCE;
1574   }
1575 }
1576