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