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