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