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