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