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