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