• 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/io.proto
18 
19 package com.google.cloud.aiplatform.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The Google Cloud Storage location for the input content.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.aiplatform.v1.GcsSource}
29  */
30 public final class GcsSource extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GcsSource)
33     GcsSourceOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use GcsSource.newBuilder() to construct.
GcsSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
GcsSource()40   private GcsSource() {
41     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new GcsSource();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.aiplatform.v1.IoProto
57         .internal_static_google_cloud_aiplatform_v1_GcsSource_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.aiplatform.v1.IoProto
64         .internal_static_google_cloud_aiplatform_v1_GcsSource_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.aiplatform.v1.GcsSource.class,
67             com.google.cloud.aiplatform.v1.GcsSource.Builder.class);
68   }
69 
70   public static final int URIS_FIELD_NUMBER = 1;
71 
72   @SuppressWarnings("serial")
73   private com.google.protobuf.LazyStringList uris_;
74   /**
75    *
76    *
77    * <pre>
78    * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
79    * wildcards. For more information on wildcards, see
80    * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
81    * </pre>
82    *
83    * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
84    *
85    * @return A list containing the uris.
86    */
getUrisList()87   public com.google.protobuf.ProtocolStringList getUrisList() {
88     return uris_;
89   }
90   /**
91    *
92    *
93    * <pre>
94    * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
95    * wildcards. For more information on wildcards, see
96    * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
97    * </pre>
98    *
99    * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
100    *
101    * @return The count of uris.
102    */
getUrisCount()103   public int getUrisCount() {
104     return uris_.size();
105   }
106   /**
107    *
108    *
109    * <pre>
110    * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
111    * wildcards. For more information on wildcards, see
112    * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
113    * </pre>
114    *
115    * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
116    *
117    * @param index The index of the element to return.
118    * @return The uris at the given index.
119    */
getUris(int index)120   public java.lang.String getUris(int index) {
121     return uris_.get(index);
122   }
123   /**
124    *
125    *
126    * <pre>
127    * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
128    * wildcards. For more information on wildcards, see
129    * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
130    * </pre>
131    *
132    * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
133    *
134    * @param index The index of the value to return.
135    * @return The bytes of the uris at the given index.
136    */
getUrisBytes(int index)137   public com.google.protobuf.ByteString getUrisBytes(int index) {
138     return uris_.getByteString(index);
139   }
140 
141   private byte memoizedIsInitialized = -1;
142 
143   @java.lang.Override
isInitialized()144   public final boolean isInitialized() {
145     byte isInitialized = memoizedIsInitialized;
146     if (isInitialized == 1) return true;
147     if (isInitialized == 0) return false;
148 
149     memoizedIsInitialized = 1;
150     return true;
151   }
152 
153   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)154   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
155     for (int i = 0; i < uris_.size(); i++) {
156       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i));
157     }
158     getUnknownFields().writeTo(output);
159   }
160 
161   @java.lang.Override
getSerializedSize()162   public int getSerializedSize() {
163     int size = memoizedSize;
164     if (size != -1) return size;
165 
166     size = 0;
167     {
168       int dataSize = 0;
169       for (int i = 0; i < uris_.size(); i++) {
170         dataSize += computeStringSizeNoTag(uris_.getRaw(i));
171       }
172       size += dataSize;
173       size += 1 * getUrisList().size();
174     }
175     size += getUnknownFields().getSerializedSize();
176     memoizedSize = size;
177     return size;
178   }
179 
180   @java.lang.Override
equals(final java.lang.Object obj)181   public boolean equals(final java.lang.Object obj) {
182     if (obj == this) {
183       return true;
184     }
185     if (!(obj instanceof com.google.cloud.aiplatform.v1.GcsSource)) {
186       return super.equals(obj);
187     }
188     com.google.cloud.aiplatform.v1.GcsSource other = (com.google.cloud.aiplatform.v1.GcsSource) obj;
189 
190     if (!getUrisList().equals(other.getUrisList())) return false;
191     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
192     return true;
193   }
194 
195   @java.lang.Override
hashCode()196   public int hashCode() {
197     if (memoizedHashCode != 0) {
198       return memoizedHashCode;
199     }
200     int hash = 41;
201     hash = (19 * hash) + getDescriptor().hashCode();
202     if (getUrisCount() > 0) {
203       hash = (37 * hash) + URIS_FIELD_NUMBER;
204       hash = (53 * hash) + getUrisList().hashCode();
205     }
206     hash = (29 * hash) + getUnknownFields().hashCode();
207     memoizedHashCode = hash;
208     return hash;
209   }
210 
parseFrom(java.nio.ByteBuffer data)211   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(java.nio.ByteBuffer data)
212       throws com.google.protobuf.InvalidProtocolBufferException {
213     return PARSER.parseFrom(data);
214   }
215 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)216   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
217       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
218       throws com.google.protobuf.InvalidProtocolBufferException {
219     return PARSER.parseFrom(data, extensionRegistry);
220   }
221 
parseFrom( com.google.protobuf.ByteString data)222   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
223       com.google.protobuf.ByteString data)
224       throws com.google.protobuf.InvalidProtocolBufferException {
225     return PARSER.parseFrom(data);
226   }
227 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)228   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
229       com.google.protobuf.ByteString data,
230       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
231       throws com.google.protobuf.InvalidProtocolBufferException {
232     return PARSER.parseFrom(data, extensionRegistry);
233   }
234 
parseFrom(byte[] data)235   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(byte[] data)
236       throws com.google.protobuf.InvalidProtocolBufferException {
237     return PARSER.parseFrom(data);
238   }
239 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)240   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
241       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
242       throws com.google.protobuf.InvalidProtocolBufferException {
243     return PARSER.parseFrom(data, extensionRegistry);
244   }
245 
parseFrom(java.io.InputStream input)246   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(java.io.InputStream input)
247       throws java.io.IOException {
248     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
249   }
250 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)251   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
252       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
253       throws java.io.IOException {
254     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
255         PARSER, input, extensionRegistry);
256   }
257 
parseDelimitedFrom( java.io.InputStream input)258   public static com.google.cloud.aiplatform.v1.GcsSource parseDelimitedFrom(
259       java.io.InputStream input) throws java.io.IOException {
260     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
261   }
262 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)263   public static com.google.cloud.aiplatform.v1.GcsSource parseDelimitedFrom(
264       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265       throws java.io.IOException {
266     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
267         PARSER, input, extensionRegistry);
268   }
269 
parseFrom( com.google.protobuf.CodedInputStream input)270   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
271       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
272     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
273   }
274 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)275   public static com.google.cloud.aiplatform.v1.GcsSource parseFrom(
276       com.google.protobuf.CodedInputStream input,
277       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278       throws java.io.IOException {
279     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
280         PARSER, input, extensionRegistry);
281   }
282 
283   @java.lang.Override
newBuilderForType()284   public Builder newBuilderForType() {
285     return newBuilder();
286   }
287 
newBuilder()288   public static Builder newBuilder() {
289     return DEFAULT_INSTANCE.toBuilder();
290   }
291 
newBuilder(com.google.cloud.aiplatform.v1.GcsSource prototype)292   public static Builder newBuilder(com.google.cloud.aiplatform.v1.GcsSource prototype) {
293     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
294   }
295 
296   @java.lang.Override
toBuilder()297   public Builder toBuilder() {
298     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
299   }
300 
301   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)302   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
303     Builder builder = new Builder(parent);
304     return builder;
305   }
306   /**
307    *
308    *
309    * <pre>
310    * The Google Cloud Storage location for the input content.
311    * </pre>
312    *
313    * Protobuf type {@code google.cloud.aiplatform.v1.GcsSource}
314    */
315   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
316       implements
317       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GcsSource)
318       com.google.cloud.aiplatform.v1.GcsSourceOrBuilder {
getDescriptor()319     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
320       return com.google.cloud.aiplatform.v1.IoProto
321           .internal_static_google_cloud_aiplatform_v1_GcsSource_descriptor;
322     }
323 
324     @java.lang.Override
325     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()326         internalGetFieldAccessorTable() {
327       return com.google.cloud.aiplatform.v1.IoProto
328           .internal_static_google_cloud_aiplatform_v1_GcsSource_fieldAccessorTable
329           .ensureFieldAccessorsInitialized(
330               com.google.cloud.aiplatform.v1.GcsSource.class,
331               com.google.cloud.aiplatform.v1.GcsSource.Builder.class);
332     }
333 
334     // Construct using com.google.cloud.aiplatform.v1.GcsSource.newBuilder()
Builder()335     private Builder() {}
336 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)337     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
338       super(parent);
339     }
340 
341     @java.lang.Override
clear()342     public Builder clear() {
343       super.clear();
344       bitField0_ = 0;
345       uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
346       bitField0_ = (bitField0_ & ~0x00000001);
347       return this;
348     }
349 
350     @java.lang.Override
getDescriptorForType()351     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
352       return com.google.cloud.aiplatform.v1.IoProto
353           .internal_static_google_cloud_aiplatform_v1_GcsSource_descriptor;
354     }
355 
356     @java.lang.Override
getDefaultInstanceForType()357     public com.google.cloud.aiplatform.v1.GcsSource getDefaultInstanceForType() {
358       return com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance();
359     }
360 
361     @java.lang.Override
build()362     public com.google.cloud.aiplatform.v1.GcsSource build() {
363       com.google.cloud.aiplatform.v1.GcsSource result = buildPartial();
364       if (!result.isInitialized()) {
365         throw newUninitializedMessageException(result);
366       }
367       return result;
368     }
369 
370     @java.lang.Override
buildPartial()371     public com.google.cloud.aiplatform.v1.GcsSource buildPartial() {
372       com.google.cloud.aiplatform.v1.GcsSource result =
373           new com.google.cloud.aiplatform.v1.GcsSource(this);
374       buildPartialRepeatedFields(result);
375       if (bitField0_ != 0) {
376         buildPartial0(result);
377       }
378       onBuilt();
379       return result;
380     }
381 
buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.GcsSource result)382     private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.GcsSource result) {
383       if (((bitField0_ & 0x00000001) != 0)) {
384         uris_ = uris_.getUnmodifiableView();
385         bitField0_ = (bitField0_ & ~0x00000001);
386       }
387       result.uris_ = uris_;
388     }
389 
buildPartial0(com.google.cloud.aiplatform.v1.GcsSource result)390     private void buildPartial0(com.google.cloud.aiplatform.v1.GcsSource result) {
391       int from_bitField0_ = bitField0_;
392     }
393 
394     @java.lang.Override
clone()395     public Builder clone() {
396       return super.clone();
397     }
398 
399     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)400     public Builder setField(
401         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
402       return super.setField(field, value);
403     }
404 
405     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)406     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
407       return super.clearField(field);
408     }
409 
410     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)411     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
412       return super.clearOneof(oneof);
413     }
414 
415     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)416     public Builder setRepeatedField(
417         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
418       return super.setRepeatedField(field, index, value);
419     }
420 
421     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)422     public Builder addRepeatedField(
423         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
424       return super.addRepeatedField(field, value);
425     }
426 
427     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)428     public Builder mergeFrom(com.google.protobuf.Message other) {
429       if (other instanceof com.google.cloud.aiplatform.v1.GcsSource) {
430         return mergeFrom((com.google.cloud.aiplatform.v1.GcsSource) other);
431       } else {
432         super.mergeFrom(other);
433         return this;
434       }
435     }
436 
mergeFrom(com.google.cloud.aiplatform.v1.GcsSource other)437     public Builder mergeFrom(com.google.cloud.aiplatform.v1.GcsSource other) {
438       if (other == com.google.cloud.aiplatform.v1.GcsSource.getDefaultInstance()) return this;
439       if (!other.uris_.isEmpty()) {
440         if (uris_.isEmpty()) {
441           uris_ = other.uris_;
442           bitField0_ = (bitField0_ & ~0x00000001);
443         } else {
444           ensureUrisIsMutable();
445           uris_.addAll(other.uris_);
446         }
447         onChanged();
448       }
449       this.mergeUnknownFields(other.getUnknownFields());
450       onChanged();
451       return this;
452     }
453 
454     @java.lang.Override
isInitialized()455     public final boolean isInitialized() {
456       return true;
457     }
458 
459     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)460     public Builder mergeFrom(
461         com.google.protobuf.CodedInputStream input,
462         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
463         throws java.io.IOException {
464       if (extensionRegistry == null) {
465         throw new java.lang.NullPointerException();
466       }
467       try {
468         boolean done = false;
469         while (!done) {
470           int tag = input.readTag();
471           switch (tag) {
472             case 0:
473               done = true;
474               break;
475             case 10:
476               {
477                 java.lang.String s = input.readStringRequireUtf8();
478                 ensureUrisIsMutable();
479                 uris_.add(s);
480                 break;
481               } // case 10
482             default:
483               {
484                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
485                   done = true; // was an endgroup tag
486                 }
487                 break;
488               } // default:
489           } // switch (tag)
490         } // while (!done)
491       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
492         throw e.unwrapIOException();
493       } finally {
494         onChanged();
495       } // finally
496       return this;
497     }
498 
499     private int bitField0_;
500 
501     private com.google.protobuf.LazyStringList uris_ =
502         com.google.protobuf.LazyStringArrayList.EMPTY;
503 
ensureUrisIsMutable()504     private void ensureUrisIsMutable() {
505       if (!((bitField0_ & 0x00000001) != 0)) {
506         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
507         bitField0_ |= 0x00000001;
508       }
509     }
510     /**
511      *
512      *
513      * <pre>
514      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
515      * wildcards. For more information on wildcards, see
516      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
517      * </pre>
518      *
519      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
520      *
521      * @return A list containing the uris.
522      */
getUrisList()523     public com.google.protobuf.ProtocolStringList getUrisList() {
524       return uris_.getUnmodifiableView();
525     }
526     /**
527      *
528      *
529      * <pre>
530      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
531      * wildcards. For more information on wildcards, see
532      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
533      * </pre>
534      *
535      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
536      *
537      * @return The count of uris.
538      */
getUrisCount()539     public int getUrisCount() {
540       return uris_.size();
541     }
542     /**
543      *
544      *
545      * <pre>
546      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
547      * wildcards. For more information on wildcards, see
548      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
549      * </pre>
550      *
551      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
552      *
553      * @param index The index of the element to return.
554      * @return The uris at the given index.
555      */
getUris(int index)556     public java.lang.String getUris(int index) {
557       return uris_.get(index);
558     }
559     /**
560      *
561      *
562      * <pre>
563      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
564      * wildcards. For more information on wildcards, see
565      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
566      * </pre>
567      *
568      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
569      *
570      * @param index The index of the value to return.
571      * @return The bytes of the uris at the given index.
572      */
getUrisBytes(int index)573     public com.google.protobuf.ByteString getUrisBytes(int index) {
574       return uris_.getByteString(index);
575     }
576     /**
577      *
578      *
579      * <pre>
580      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
581      * wildcards. For more information on wildcards, see
582      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
583      * </pre>
584      *
585      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
586      *
587      * @param index The index to set the value at.
588      * @param value The uris to set.
589      * @return This builder for chaining.
590      */
setUris(int index, java.lang.String value)591     public Builder setUris(int index, java.lang.String value) {
592       if (value == null) {
593         throw new NullPointerException();
594       }
595       ensureUrisIsMutable();
596       uris_.set(index, value);
597       onChanged();
598       return this;
599     }
600     /**
601      *
602      *
603      * <pre>
604      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
605      * wildcards. For more information on wildcards, see
606      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
607      * </pre>
608      *
609      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
610      *
611      * @param value The uris to add.
612      * @return This builder for chaining.
613      */
addUris(java.lang.String value)614     public Builder addUris(java.lang.String value) {
615       if (value == null) {
616         throw new NullPointerException();
617       }
618       ensureUrisIsMutable();
619       uris_.add(value);
620       onChanged();
621       return this;
622     }
623     /**
624      *
625      *
626      * <pre>
627      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
628      * wildcards. For more information on wildcards, see
629      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
630      * </pre>
631      *
632      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
633      *
634      * @param values The uris to add.
635      * @return This builder for chaining.
636      */
addAllUris(java.lang.Iterable<java.lang.String> values)637     public Builder addAllUris(java.lang.Iterable<java.lang.String> values) {
638       ensureUrisIsMutable();
639       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_);
640       onChanged();
641       return this;
642     }
643     /**
644      *
645      *
646      * <pre>
647      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
648      * wildcards. For more information on wildcards, see
649      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
650      * </pre>
651      *
652      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
653      *
654      * @return This builder for chaining.
655      */
clearUris()656     public Builder clearUris() {
657       uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
658       bitField0_ = (bitField0_ & ~0x00000001);
659       onChanged();
660       return this;
661     }
662     /**
663      *
664      *
665      * <pre>
666      * Required. Google Cloud Storage URI(-s) to the input file(s). May contain
667      * wildcards. For more information on wildcards, see
668      * https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames.
669      * </pre>
670      *
671      * <code>repeated string uris = 1 [(.google.api.field_behavior) = REQUIRED];</code>
672      *
673      * @param value The bytes of the uris to add.
674      * @return This builder for chaining.
675      */
addUrisBytes(com.google.protobuf.ByteString value)676     public Builder addUrisBytes(com.google.protobuf.ByteString value) {
677       if (value == null) {
678         throw new NullPointerException();
679       }
680       checkByteStringIsUtf8(value);
681       ensureUrisIsMutable();
682       uris_.add(value);
683       onChanged();
684       return this;
685     }
686 
687     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)688     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
689       return super.setUnknownFields(unknownFields);
690     }
691 
692     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)693     public final Builder mergeUnknownFields(
694         final com.google.protobuf.UnknownFieldSet unknownFields) {
695       return super.mergeUnknownFields(unknownFields);
696     }
697 
698     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GcsSource)
699   }
700 
701   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GcsSource)
702   private static final com.google.cloud.aiplatform.v1.GcsSource DEFAULT_INSTANCE;
703 
704   static {
705     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GcsSource();
706   }
707 
getDefaultInstance()708   public static com.google.cloud.aiplatform.v1.GcsSource getDefaultInstance() {
709     return DEFAULT_INSTANCE;
710   }
711 
712   private static final com.google.protobuf.Parser<GcsSource> PARSER =
713       new com.google.protobuf.AbstractParser<GcsSource>() {
714         @java.lang.Override
715         public GcsSource parsePartialFrom(
716             com.google.protobuf.CodedInputStream input,
717             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
718             throws com.google.protobuf.InvalidProtocolBufferException {
719           Builder builder = newBuilder();
720           try {
721             builder.mergeFrom(input, extensionRegistry);
722           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
723             throw e.setUnfinishedMessage(builder.buildPartial());
724           } catch (com.google.protobuf.UninitializedMessageException e) {
725             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
726           } catch (java.io.IOException e) {
727             throw new com.google.protobuf.InvalidProtocolBufferException(e)
728                 .setUnfinishedMessage(builder.buildPartial());
729           }
730           return builder.buildPartial();
731         }
732       };
733 
parser()734   public static com.google.protobuf.Parser<GcsSource> parser() {
735     return PARSER;
736   }
737 
738   @java.lang.Override
getParserForType()739   public com.google.protobuf.Parser<GcsSource> getParserForType() {
740     return PARSER;
741   }
742 
743   @java.lang.Override
getDefaultInstanceForType()744   public com.google.cloud.aiplatform.v1.GcsSource getDefaultInstanceForType() {
745     return DEFAULT_INSTANCE;
746   }
747 }
748