• 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/intent.proto
18 
19 package com.google.cloud.dialogflow.cx.v3;
20 
21 /**
22  *
23  *
24  * <pre>
25  * An intent represents a user's intent to interact with a conversational agent.
26  * You can provide information for the Dialogflow API to use to match user input
27  * to an intent by adding training phrases (i.e., examples of user input) to
28  * your intent.
29  * </pre>
30  *
31  * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent}
32  */
33 public final class Intent extends com.google.protobuf.GeneratedMessageV3
34     implements
35     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Intent)
36     IntentOrBuilder {
37   private static final long serialVersionUID = 0L;
38   // Use Intent.newBuilder() to construct.
Intent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39   private Intent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
40     super(builder);
41   }
42 
Intent()43   private Intent() {
44     name_ = "";
45     displayName_ = "";
46     trainingPhrases_ = java.util.Collections.emptyList();
47     parameters_ = java.util.Collections.emptyList();
48     description_ = "";
49   }
50 
51   @java.lang.Override
52   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)53   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
54     return new Intent();
55   }
56 
57   @java.lang.Override
getUnknownFields()58   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
59     return this.unknownFields;
60   }
61 
getDescriptor()62   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
63     return com.google.cloud.dialogflow.cx.v3.IntentProto
64         .internal_static_google_cloud_dialogflow_cx_v3_Intent_descriptor;
65   }
66 
67   @SuppressWarnings({"rawtypes"})
68   @java.lang.Override
internalGetMapField(int number)69   protected com.google.protobuf.MapField internalGetMapField(int number) {
70     switch (number) {
71       case 7:
72         return internalGetLabels();
73       default:
74         throw new RuntimeException("Invalid map field number: " + number);
75     }
76   }
77 
78   @java.lang.Override
79   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()80       internalGetFieldAccessorTable() {
81     return com.google.cloud.dialogflow.cx.v3.IntentProto
82         .internal_static_google_cloud_dialogflow_cx_v3_Intent_fieldAccessorTable
83         .ensureFieldAccessorsInitialized(
84             com.google.cloud.dialogflow.cx.v3.Intent.class,
85             com.google.cloud.dialogflow.cx.v3.Intent.Builder.class);
86   }
87 
88   public interface TrainingPhraseOrBuilder
89       extends
90       // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase)
91       com.google.protobuf.MessageOrBuilder {
92 
93     /**
94      *
95      *
96      * <pre>
97      * Output only. The unique identifier of the training phrase.
98      * </pre>
99      *
100      * <code>string id = 1;</code>
101      *
102      * @return The id.
103      */
getId()104     java.lang.String getId();
105     /**
106      *
107      *
108      * <pre>
109      * Output only. The unique identifier of the training phrase.
110      * </pre>
111      *
112      * <code>string id = 1;</code>
113      *
114      * @return The bytes for id.
115      */
getIdBytes()116     com.google.protobuf.ByteString getIdBytes();
117 
118     /**
119      *
120      *
121      * <pre>
122      * Required. The ordered list of training phrase parts.
123      * The parts are concatenated in order to form the training phrase.
124      * Note: The API does not automatically annotate training phrases like the
125      * Dialogflow Console does.
126      * Note: Do not forget to include whitespace at part boundaries, so the
127      * training phrase is well formatted when the parts are concatenated.
128      * If the training phrase does not need to be annotated with parameters,
129      * you just need a single part with only the
130      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
131      * field set.
132      * If you want to annotate the training phrase, you must create multiple
133      * parts, where the fields of each part are populated in one of two ways:
134      * -   `Part.text` is set to a part of the phrase that has no parameters.
135      * -   `Part.text` is set to a part of the phrase that you want to annotate,
136      *     and the `parameter_id` field is set.
137      * </pre>
138      *
139      * <code>
140      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
141      * </code>
142      */
getPartsList()143     java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part> getPartsList();
144     /**
145      *
146      *
147      * <pre>
148      * Required. The ordered list of training phrase parts.
149      * The parts are concatenated in order to form the training phrase.
150      * Note: The API does not automatically annotate training phrases like the
151      * Dialogflow Console does.
152      * Note: Do not forget to include whitespace at part boundaries, so the
153      * training phrase is well formatted when the parts are concatenated.
154      * If the training phrase does not need to be annotated with parameters,
155      * you just need a single part with only the
156      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
157      * field set.
158      * If you want to annotate the training phrase, you must create multiple
159      * parts, where the fields of each part are populated in one of two ways:
160      * -   `Part.text` is set to a part of the phrase that has no parameters.
161      * -   `Part.text` is set to a part of the phrase that you want to annotate,
162      *     and the `parameter_id` field is set.
163      * </pre>
164      *
165      * <code>
166      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
167      * </code>
168      */
getParts(int index)169     com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int index);
170     /**
171      *
172      *
173      * <pre>
174      * Required. The ordered list of training phrase parts.
175      * The parts are concatenated in order to form the training phrase.
176      * Note: The API does not automatically annotate training phrases like the
177      * Dialogflow Console does.
178      * Note: Do not forget to include whitespace at part boundaries, so the
179      * training phrase is well formatted when the parts are concatenated.
180      * If the training phrase does not need to be annotated with parameters,
181      * you just need a single part with only the
182      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
183      * field set.
184      * If you want to annotate the training phrase, you must create multiple
185      * parts, where the fields of each part are populated in one of two ways:
186      * -   `Part.text` is set to a part of the phrase that has no parameters.
187      * -   `Part.text` is set to a part of the phrase that you want to annotate,
188      *     and the `parameter_id` field is set.
189      * </pre>
190      *
191      * <code>
192      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
193      * </code>
194      */
getPartsCount()195     int getPartsCount();
196     /**
197      *
198      *
199      * <pre>
200      * Required. The ordered list of training phrase parts.
201      * The parts are concatenated in order to form the training phrase.
202      * Note: The API does not automatically annotate training phrases like the
203      * Dialogflow Console does.
204      * Note: Do not forget to include whitespace at part boundaries, so the
205      * training phrase is well formatted when the parts are concatenated.
206      * If the training phrase does not need to be annotated with parameters,
207      * you just need a single part with only the
208      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
209      * field set.
210      * If you want to annotate the training phrase, you must create multiple
211      * parts, where the fields of each part are populated in one of two ways:
212      * -   `Part.text` is set to a part of the phrase that has no parameters.
213      * -   `Part.text` is set to a part of the phrase that you want to annotate,
214      *     and the `parameter_id` field is set.
215      * </pre>
216      *
217      * <code>
218      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
219      * </code>
220      */
221     java.util.List<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>
getPartsOrBuilderList()222         getPartsOrBuilderList();
223     /**
224      *
225      *
226      * <pre>
227      * Required. The ordered list of training phrase parts.
228      * The parts are concatenated in order to form the training phrase.
229      * Note: The API does not automatically annotate training phrases like the
230      * Dialogflow Console does.
231      * Note: Do not forget to include whitespace at part boundaries, so the
232      * training phrase is well formatted when the parts are concatenated.
233      * If the training phrase does not need to be annotated with parameters,
234      * you just need a single part with only the
235      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
236      * field set.
237      * If you want to annotate the training phrase, you must create multiple
238      * parts, where the fields of each part are populated in one of two ways:
239      * -   `Part.text` is set to a part of the phrase that has no parameters.
240      * -   `Part.text` is set to a part of the phrase that you want to annotate,
241      *     and the `parameter_id` field is set.
242      * </pre>
243      *
244      * <code>
245      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
246      * </code>
247      */
getPartsOrBuilder( int index)248     com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(
249         int index);
250 
251     /**
252      *
253      *
254      * <pre>
255      * Indicates how many times this example was added to the intent.
256      * </pre>
257      *
258      * <code>int32 repeat_count = 3;</code>
259      *
260      * @return The repeatCount.
261      */
getRepeatCount()262     int getRepeatCount();
263   }
264   /**
265    *
266    *
267    * <pre>
268    * Represents an example that the agent is trained on to identify the intent.
269    * </pre>
270    *
271    * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase}
272    */
273   public static final class TrainingPhrase extends com.google.protobuf.GeneratedMessageV3
274       implements
275       // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase)
276       TrainingPhraseOrBuilder {
277     private static final long serialVersionUID = 0L;
278     // Use TrainingPhrase.newBuilder() to construct.
TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)279     private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
280       super(builder);
281     }
282 
TrainingPhrase()283     private TrainingPhrase() {
284       id_ = "";
285       parts_ = java.util.Collections.emptyList();
286     }
287 
288     @java.lang.Override
289     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)290     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
291       return new TrainingPhrase();
292     }
293 
294     @java.lang.Override
getUnknownFields()295     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
296       return this.unknownFields;
297     }
298 
getDescriptor()299     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
300       return com.google.cloud.dialogflow.cx.v3.IntentProto
301           .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_descriptor;
302     }
303 
304     @java.lang.Override
305     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()306         internalGetFieldAccessorTable() {
307       return com.google.cloud.dialogflow.cx.v3.IntentProto
308           .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_fieldAccessorTable
309           .ensureFieldAccessorsInitialized(
310               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.class,
311               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder.class);
312     }
313 
314     public interface PartOrBuilder
315         extends
316         // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part)
317         com.google.protobuf.MessageOrBuilder {
318 
319       /**
320        *
321        *
322        * <pre>
323        * Required. The text for this part.
324        * </pre>
325        *
326        * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
327        *
328        * @return The text.
329        */
getText()330       java.lang.String getText();
331       /**
332        *
333        *
334        * <pre>
335        * Required. The text for this part.
336        * </pre>
337        *
338        * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
339        *
340        * @return The bytes for text.
341        */
getTextBytes()342       com.google.protobuf.ByteString getTextBytes();
343 
344       /**
345        *
346        *
347        * <pre>
348        * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
349        * annotate this part of the training phrase. This field is required for
350        * annotated parts of the training phrase.
351        * </pre>
352        *
353        * <code>string parameter_id = 2;</code>
354        *
355        * @return The parameterId.
356        */
getParameterId()357       java.lang.String getParameterId();
358       /**
359        *
360        *
361        * <pre>
362        * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
363        * annotate this part of the training phrase. This field is required for
364        * annotated parts of the training phrase.
365        * </pre>
366        *
367        * <code>string parameter_id = 2;</code>
368        *
369        * @return The bytes for parameterId.
370        */
getParameterIdBytes()371       com.google.protobuf.ByteString getParameterIdBytes();
372     }
373     /**
374      *
375      *
376      * <pre>
377      * Represents a part of a training phrase.
378      * </pre>
379      *
380      * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part}
381      */
382     public static final class Part extends com.google.protobuf.GeneratedMessageV3
383         implements
384         // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part)
385         PartOrBuilder {
386       private static final long serialVersionUID = 0L;
387       // Use Part.newBuilder() to construct.
Part(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)388       private Part(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
389         super(builder);
390       }
391 
Part()392       private Part() {
393         text_ = "";
394         parameterId_ = "";
395       }
396 
397       @java.lang.Override
398       @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)399       protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
400         return new Part();
401       }
402 
403       @java.lang.Override
getUnknownFields()404       public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
405         return this.unknownFields;
406       }
407 
getDescriptor()408       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
409         return com.google.cloud.dialogflow.cx.v3.IntentProto
410             .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_Part_descriptor;
411       }
412 
413       @java.lang.Override
414       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()415           internalGetFieldAccessorTable() {
416         return com.google.cloud.dialogflow.cx.v3.IntentProto
417             .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_Part_fieldAccessorTable
418             .ensureFieldAccessorsInitialized(
419                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.class,
420                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder.class);
421       }
422 
423       public static final int TEXT_FIELD_NUMBER = 1;
424 
425       @SuppressWarnings("serial")
426       private volatile java.lang.Object text_ = "";
427       /**
428        *
429        *
430        * <pre>
431        * Required. The text for this part.
432        * </pre>
433        *
434        * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
435        *
436        * @return The text.
437        */
438       @java.lang.Override
getText()439       public java.lang.String getText() {
440         java.lang.Object ref = text_;
441         if (ref instanceof java.lang.String) {
442           return (java.lang.String) ref;
443         } else {
444           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
445           java.lang.String s = bs.toStringUtf8();
446           text_ = s;
447           return s;
448         }
449       }
450       /**
451        *
452        *
453        * <pre>
454        * Required. The text for this part.
455        * </pre>
456        *
457        * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
458        *
459        * @return The bytes for text.
460        */
461       @java.lang.Override
getTextBytes()462       public com.google.protobuf.ByteString getTextBytes() {
463         java.lang.Object ref = text_;
464         if (ref instanceof java.lang.String) {
465           com.google.protobuf.ByteString b =
466               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
467           text_ = b;
468           return b;
469         } else {
470           return (com.google.protobuf.ByteString) ref;
471         }
472       }
473 
474       public static final int PARAMETER_ID_FIELD_NUMBER = 2;
475 
476       @SuppressWarnings("serial")
477       private volatile java.lang.Object parameterId_ = "";
478       /**
479        *
480        *
481        * <pre>
482        * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
483        * annotate this part of the training phrase. This field is required for
484        * annotated parts of the training phrase.
485        * </pre>
486        *
487        * <code>string parameter_id = 2;</code>
488        *
489        * @return The parameterId.
490        */
491       @java.lang.Override
getParameterId()492       public java.lang.String getParameterId() {
493         java.lang.Object ref = parameterId_;
494         if (ref instanceof java.lang.String) {
495           return (java.lang.String) ref;
496         } else {
497           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
498           java.lang.String s = bs.toStringUtf8();
499           parameterId_ = s;
500           return s;
501         }
502       }
503       /**
504        *
505        *
506        * <pre>
507        * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
508        * annotate this part of the training phrase. This field is required for
509        * annotated parts of the training phrase.
510        * </pre>
511        *
512        * <code>string parameter_id = 2;</code>
513        *
514        * @return The bytes for parameterId.
515        */
516       @java.lang.Override
getParameterIdBytes()517       public com.google.protobuf.ByteString getParameterIdBytes() {
518         java.lang.Object ref = parameterId_;
519         if (ref instanceof java.lang.String) {
520           com.google.protobuf.ByteString b =
521               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
522           parameterId_ = b;
523           return b;
524         } else {
525           return (com.google.protobuf.ByteString) ref;
526         }
527       }
528 
529       private byte memoizedIsInitialized = -1;
530 
531       @java.lang.Override
isInitialized()532       public final boolean isInitialized() {
533         byte isInitialized = memoizedIsInitialized;
534         if (isInitialized == 1) return true;
535         if (isInitialized == 0) return false;
536 
537         memoizedIsInitialized = 1;
538         return true;
539       }
540 
541       @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)542       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
543         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
544           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
545         }
546         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) {
547           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterId_);
548         }
549         getUnknownFields().writeTo(output);
550       }
551 
552       @java.lang.Override
getSerializedSize()553       public int getSerializedSize() {
554         int size = memoizedSize;
555         if (size != -1) return size;
556 
557         size = 0;
558         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
559           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
560         }
561         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterId_)) {
562           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterId_);
563         }
564         size += getUnknownFields().getSerializedSize();
565         memoizedSize = size;
566         return size;
567       }
568 
569       @java.lang.Override
equals(final java.lang.Object obj)570       public boolean equals(final java.lang.Object obj) {
571         if (obj == this) {
572           return true;
573         }
574         if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part)) {
575           return super.equals(obj);
576         }
577         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part other =
578             (com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) obj;
579 
580         if (!getText().equals(other.getText())) return false;
581         if (!getParameterId().equals(other.getParameterId())) return false;
582         if (!getUnknownFields().equals(other.getUnknownFields())) return false;
583         return true;
584       }
585 
586       @java.lang.Override
hashCode()587       public int hashCode() {
588         if (memoizedHashCode != 0) {
589           return memoizedHashCode;
590         }
591         int hash = 41;
592         hash = (19 * hash) + getDescriptor().hashCode();
593         hash = (37 * hash) + TEXT_FIELD_NUMBER;
594         hash = (53 * hash) + getText().hashCode();
595         hash = (37 * hash) + PARAMETER_ID_FIELD_NUMBER;
596         hash = (53 * hash) + getParameterId().hashCode();
597         hash = (29 * hash) + getUnknownFields().hashCode();
598         memoizedHashCode = hash;
599         return hash;
600       }
601 
parseFrom( java.nio.ByteBuffer data)602       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
603           java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
604         return PARSER.parseFrom(data);
605       }
606 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)607       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
608           java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
609           throws com.google.protobuf.InvalidProtocolBufferException {
610         return PARSER.parseFrom(data, extensionRegistry);
611       }
612 
parseFrom( com.google.protobuf.ByteString data)613       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
614           com.google.protobuf.ByteString data)
615           throws com.google.protobuf.InvalidProtocolBufferException {
616         return PARSER.parseFrom(data);
617       }
618 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)619       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
620           com.google.protobuf.ByteString data,
621           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
622           throws com.google.protobuf.InvalidProtocolBufferException {
623         return PARSER.parseFrom(data, extensionRegistry);
624       }
625 
parseFrom( byte[] data)626       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
627           byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
628         return PARSER.parseFrom(data);
629       }
630 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)631       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
632           byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
633           throws com.google.protobuf.InvalidProtocolBufferException {
634         return PARSER.parseFrom(data, extensionRegistry);
635       }
636 
parseFrom( java.io.InputStream input)637       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
638           java.io.InputStream input) throws java.io.IOException {
639         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
640       }
641 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)642       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
643           java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
644           throws java.io.IOException {
645         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
646             PARSER, input, extensionRegistry);
647       }
648 
parseDelimitedFrom( java.io.InputStream input)649       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseDelimitedFrom(
650           java.io.InputStream input) throws java.io.IOException {
651         return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
652       }
653 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)654       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseDelimitedFrom(
655           java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
656           throws java.io.IOException {
657         return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
658             PARSER, input, extensionRegistry);
659       }
660 
parseFrom( com.google.protobuf.CodedInputStream input)661       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
662           com.google.protobuf.CodedInputStream input) throws java.io.IOException {
663         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
664       }
665 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)666       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parseFrom(
667           com.google.protobuf.CodedInputStream input,
668           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
669           throws java.io.IOException {
670         return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
671             PARSER, input, extensionRegistry);
672       }
673 
674       @java.lang.Override
newBuilderForType()675       public Builder newBuilderForType() {
676         return newBuilder();
677       }
678 
newBuilder()679       public static Builder newBuilder() {
680         return DEFAULT_INSTANCE.toBuilder();
681       }
682 
newBuilder( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part prototype)683       public static Builder newBuilder(
684           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part prototype) {
685         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
686       }
687 
688       @java.lang.Override
toBuilder()689       public Builder toBuilder() {
690         return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
691       }
692 
693       @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)694       protected Builder newBuilderForType(
695           com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
696         Builder builder = new Builder(parent);
697         return builder;
698       }
699       /**
700        *
701        *
702        * <pre>
703        * Represents a part of a training phrase.
704        * </pre>
705        *
706        * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part}
707        */
708       public static final class Builder
709           extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
710           implements
711           // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part)
712           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder {
getDescriptor()713         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
714           return com.google.cloud.dialogflow.cx.v3.IntentProto
715               .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_Part_descriptor;
716         }
717 
718         @java.lang.Override
719         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()720             internalGetFieldAccessorTable() {
721           return com.google.cloud.dialogflow.cx.v3.IntentProto
722               .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_Part_fieldAccessorTable
723               .ensureFieldAccessorsInitialized(
724                   com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.class,
725                   com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder.class);
726         }
727 
728         // Construct using com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.newBuilder()
Builder()729         private Builder() {}
730 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)731         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
732           super(parent);
733         }
734 
735         @java.lang.Override
clear()736         public Builder clear() {
737           super.clear();
738           bitField0_ = 0;
739           text_ = "";
740           parameterId_ = "";
741           return this;
742         }
743 
744         @java.lang.Override
getDescriptorForType()745         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
746           return com.google.cloud.dialogflow.cx.v3.IntentProto
747               .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_Part_descriptor;
748         }
749 
750         @java.lang.Override
751         public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part
getDefaultInstanceForType()752             getDefaultInstanceForType() {
753           return com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.getDefaultInstance();
754         }
755 
756         @java.lang.Override
build()757         public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part build() {
758           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result = buildPartial();
759           if (!result.isInitialized()) {
760             throw newUninitializedMessageException(result);
761           }
762           return result;
763         }
764 
765         @java.lang.Override
buildPartial()766         public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part buildPartial() {
767           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result =
768               new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(this);
769           if (bitField0_ != 0) {
770             buildPartial0(result);
771           }
772           onBuilt();
773           return result;
774         }
775 
buildPartial0( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result)776         private void buildPartial0(
777             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result) {
778           int from_bitField0_ = bitField0_;
779           if (((from_bitField0_ & 0x00000001) != 0)) {
780             result.text_ = text_;
781           }
782           if (((from_bitField0_ & 0x00000002) != 0)) {
783             result.parameterId_ = parameterId_;
784           }
785         }
786 
787         @java.lang.Override
clone()788         public Builder clone() {
789           return super.clone();
790         }
791 
792         @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)793         public Builder setField(
794             com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
795           return super.setField(field, value);
796         }
797 
798         @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)799         public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
800           return super.clearField(field);
801         }
802 
803         @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)804         public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
805           return super.clearOneof(oneof);
806         }
807 
808         @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)809         public Builder setRepeatedField(
810             com.google.protobuf.Descriptors.FieldDescriptor field,
811             int index,
812             java.lang.Object value) {
813           return super.setRepeatedField(field, index, value);
814         }
815 
816         @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)817         public Builder addRepeatedField(
818             com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
819           return super.addRepeatedField(field, value);
820         }
821 
822         @java.lang.Override
mergeFrom(com.google.protobuf.Message other)823         public Builder mergeFrom(com.google.protobuf.Message other) {
824           if (other instanceof com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) {
825             return mergeFrom((com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) other);
826           } else {
827             super.mergeFrom(other);
828             return this;
829           }
830         }
831 
mergeFrom( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part other)832         public Builder mergeFrom(
833             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part other) {
834           if (other
835               == com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.getDefaultInstance())
836             return this;
837           if (!other.getText().isEmpty()) {
838             text_ = other.text_;
839             bitField0_ |= 0x00000001;
840             onChanged();
841           }
842           if (!other.getParameterId().isEmpty()) {
843             parameterId_ = other.parameterId_;
844             bitField0_ |= 0x00000002;
845             onChanged();
846           }
847           this.mergeUnknownFields(other.getUnknownFields());
848           onChanged();
849           return this;
850         }
851 
852         @java.lang.Override
isInitialized()853         public final boolean isInitialized() {
854           return true;
855         }
856 
857         @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)858         public Builder mergeFrom(
859             com.google.protobuf.CodedInputStream input,
860             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
861             throws java.io.IOException {
862           if (extensionRegistry == null) {
863             throw new java.lang.NullPointerException();
864           }
865           try {
866             boolean done = false;
867             while (!done) {
868               int tag = input.readTag();
869               switch (tag) {
870                 case 0:
871                   done = true;
872                   break;
873                 case 10:
874                   {
875                     text_ = input.readStringRequireUtf8();
876                     bitField0_ |= 0x00000001;
877                     break;
878                   } // case 10
879                 case 18:
880                   {
881                     parameterId_ = input.readStringRequireUtf8();
882                     bitField0_ |= 0x00000002;
883                     break;
884                   } // case 18
885                 default:
886                   {
887                     if (!super.parseUnknownField(input, extensionRegistry, tag)) {
888                       done = true; // was an endgroup tag
889                     }
890                     break;
891                   } // default:
892               } // switch (tag)
893             } // while (!done)
894           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
895             throw e.unwrapIOException();
896           } finally {
897             onChanged();
898           } // finally
899           return this;
900         }
901 
902         private int bitField0_;
903 
904         private java.lang.Object text_ = "";
905         /**
906          *
907          *
908          * <pre>
909          * Required. The text for this part.
910          * </pre>
911          *
912          * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
913          *
914          * @return The text.
915          */
getText()916         public java.lang.String getText() {
917           java.lang.Object ref = text_;
918           if (!(ref instanceof java.lang.String)) {
919             com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
920             java.lang.String s = bs.toStringUtf8();
921             text_ = s;
922             return s;
923           } else {
924             return (java.lang.String) ref;
925           }
926         }
927         /**
928          *
929          *
930          * <pre>
931          * Required. The text for this part.
932          * </pre>
933          *
934          * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
935          *
936          * @return The bytes for text.
937          */
getTextBytes()938         public com.google.protobuf.ByteString getTextBytes() {
939           java.lang.Object ref = text_;
940           if (ref instanceof String) {
941             com.google.protobuf.ByteString b =
942                 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
943             text_ = b;
944             return b;
945           } else {
946             return (com.google.protobuf.ByteString) ref;
947           }
948         }
949         /**
950          *
951          *
952          * <pre>
953          * Required. The text for this part.
954          * </pre>
955          *
956          * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
957          *
958          * @param value The text to set.
959          * @return This builder for chaining.
960          */
setText(java.lang.String value)961         public Builder setText(java.lang.String value) {
962           if (value == null) {
963             throw new NullPointerException();
964           }
965           text_ = value;
966           bitField0_ |= 0x00000001;
967           onChanged();
968           return this;
969         }
970         /**
971          *
972          *
973          * <pre>
974          * Required. The text for this part.
975          * </pre>
976          *
977          * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
978          *
979          * @return This builder for chaining.
980          */
clearText()981         public Builder clearText() {
982           text_ = getDefaultInstance().getText();
983           bitField0_ = (bitField0_ & ~0x00000001);
984           onChanged();
985           return this;
986         }
987         /**
988          *
989          *
990          * <pre>
991          * Required. The text for this part.
992          * </pre>
993          *
994          * <code>string text = 1 [(.google.api.field_behavior) = REQUIRED];</code>
995          *
996          * @param value The bytes for text to set.
997          * @return This builder for chaining.
998          */
setTextBytes(com.google.protobuf.ByteString value)999         public Builder setTextBytes(com.google.protobuf.ByteString value) {
1000           if (value == null) {
1001             throw new NullPointerException();
1002           }
1003           checkByteStringIsUtf8(value);
1004           text_ = value;
1005           bitField0_ |= 0x00000001;
1006           onChanged();
1007           return this;
1008         }
1009 
1010         private java.lang.Object parameterId_ = "";
1011         /**
1012          *
1013          *
1014          * <pre>
1015          * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
1016          * annotate this part of the training phrase. This field is required for
1017          * annotated parts of the training phrase.
1018          * </pre>
1019          *
1020          * <code>string parameter_id = 2;</code>
1021          *
1022          * @return The parameterId.
1023          */
getParameterId()1024         public java.lang.String getParameterId() {
1025           java.lang.Object ref = parameterId_;
1026           if (!(ref instanceof java.lang.String)) {
1027             com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1028             java.lang.String s = bs.toStringUtf8();
1029             parameterId_ = s;
1030             return s;
1031           } else {
1032             return (java.lang.String) ref;
1033           }
1034         }
1035         /**
1036          *
1037          *
1038          * <pre>
1039          * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
1040          * annotate this part of the training phrase. This field is required for
1041          * annotated parts of the training phrase.
1042          * </pre>
1043          *
1044          * <code>string parameter_id = 2;</code>
1045          *
1046          * @return The bytes for parameterId.
1047          */
getParameterIdBytes()1048         public com.google.protobuf.ByteString getParameterIdBytes() {
1049           java.lang.Object ref = parameterId_;
1050           if (ref instanceof String) {
1051             com.google.protobuf.ByteString b =
1052                 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1053             parameterId_ = b;
1054             return b;
1055           } else {
1056             return (com.google.protobuf.ByteString) ref;
1057           }
1058         }
1059         /**
1060          *
1061          *
1062          * <pre>
1063          * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
1064          * annotate this part of the training phrase. This field is required for
1065          * annotated parts of the training phrase.
1066          * </pre>
1067          *
1068          * <code>string parameter_id = 2;</code>
1069          *
1070          * @param value The parameterId to set.
1071          * @return This builder for chaining.
1072          */
setParameterId(java.lang.String value)1073         public Builder setParameterId(java.lang.String value) {
1074           if (value == null) {
1075             throw new NullPointerException();
1076           }
1077           parameterId_ = value;
1078           bitField0_ |= 0x00000002;
1079           onChanged();
1080           return this;
1081         }
1082         /**
1083          *
1084          *
1085          * <pre>
1086          * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
1087          * annotate this part of the training phrase. This field is required for
1088          * annotated parts of the training phrase.
1089          * </pre>
1090          *
1091          * <code>string parameter_id = 2;</code>
1092          *
1093          * @return This builder for chaining.
1094          */
clearParameterId()1095         public Builder clearParameterId() {
1096           parameterId_ = getDefaultInstance().getParameterId();
1097           bitField0_ = (bitField0_ & ~0x00000002);
1098           onChanged();
1099           return this;
1100         }
1101         /**
1102          *
1103          *
1104          * <pre>
1105          * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
1106          * annotate this part of the training phrase. This field is required for
1107          * annotated parts of the training phrase.
1108          * </pre>
1109          *
1110          * <code>string parameter_id = 2;</code>
1111          *
1112          * @param value The bytes for parameterId to set.
1113          * @return This builder for chaining.
1114          */
setParameterIdBytes(com.google.protobuf.ByteString value)1115         public Builder setParameterIdBytes(com.google.protobuf.ByteString value) {
1116           if (value == null) {
1117             throw new NullPointerException();
1118           }
1119           checkByteStringIsUtf8(value);
1120           parameterId_ = value;
1121           bitField0_ |= 0x00000002;
1122           onChanged();
1123           return this;
1124         }
1125 
1126         @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1127         public final Builder setUnknownFields(
1128             final com.google.protobuf.UnknownFieldSet unknownFields) {
1129           return super.setUnknownFields(unknownFields);
1130         }
1131 
1132         @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1133         public final Builder mergeUnknownFields(
1134             final com.google.protobuf.UnknownFieldSet unknownFields) {
1135           return super.mergeUnknownFields(unknownFields);
1136         }
1137 
1138         // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part)
1139       }
1140 
1141       // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part)
1142       private static final com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part
1143           DEFAULT_INSTANCE;
1144 
1145       static {
1146         DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part();
1147       }
1148 
1149       public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part
getDefaultInstance()1150           getDefaultInstance() {
1151         return DEFAULT_INSTANCE;
1152       }
1153 
1154       private static final com.google.protobuf.Parser<Part> PARSER =
1155           new com.google.protobuf.AbstractParser<Part>() {
1156             @java.lang.Override
1157             public Part parsePartialFrom(
1158                 com.google.protobuf.CodedInputStream input,
1159                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1160                 throws com.google.protobuf.InvalidProtocolBufferException {
1161               Builder builder = newBuilder();
1162               try {
1163                 builder.mergeFrom(input, extensionRegistry);
1164               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1165                 throw e.setUnfinishedMessage(builder.buildPartial());
1166               } catch (com.google.protobuf.UninitializedMessageException e) {
1167                 throw e.asInvalidProtocolBufferException()
1168                     .setUnfinishedMessage(builder.buildPartial());
1169               } catch (java.io.IOException e) {
1170                 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1171                     .setUnfinishedMessage(builder.buildPartial());
1172               }
1173               return builder.buildPartial();
1174             }
1175           };
1176 
parser()1177       public static com.google.protobuf.Parser<Part> parser() {
1178         return PARSER;
1179       }
1180 
1181       @java.lang.Override
getParserForType()1182       public com.google.protobuf.Parser<Part> getParserForType() {
1183         return PARSER;
1184       }
1185 
1186       @java.lang.Override
1187       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part
getDefaultInstanceForType()1188           getDefaultInstanceForType() {
1189         return DEFAULT_INSTANCE;
1190       }
1191     }
1192 
1193     public static final int ID_FIELD_NUMBER = 1;
1194 
1195     @SuppressWarnings("serial")
1196     private volatile java.lang.Object id_ = "";
1197     /**
1198      *
1199      *
1200      * <pre>
1201      * Output only. The unique identifier of the training phrase.
1202      * </pre>
1203      *
1204      * <code>string id = 1;</code>
1205      *
1206      * @return The id.
1207      */
1208     @java.lang.Override
getId()1209     public java.lang.String getId() {
1210       java.lang.Object ref = id_;
1211       if (ref instanceof java.lang.String) {
1212         return (java.lang.String) ref;
1213       } else {
1214         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1215         java.lang.String s = bs.toStringUtf8();
1216         id_ = s;
1217         return s;
1218       }
1219     }
1220     /**
1221      *
1222      *
1223      * <pre>
1224      * Output only. The unique identifier of the training phrase.
1225      * </pre>
1226      *
1227      * <code>string id = 1;</code>
1228      *
1229      * @return The bytes for id.
1230      */
1231     @java.lang.Override
getIdBytes()1232     public com.google.protobuf.ByteString getIdBytes() {
1233       java.lang.Object ref = id_;
1234       if (ref instanceof java.lang.String) {
1235         com.google.protobuf.ByteString b =
1236             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1237         id_ = b;
1238         return b;
1239       } else {
1240         return (com.google.protobuf.ByteString) ref;
1241       }
1242     }
1243 
1244     public static final int PARTS_FIELD_NUMBER = 2;
1245 
1246     @SuppressWarnings("serial")
1247     private java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part> parts_;
1248     /**
1249      *
1250      *
1251      * <pre>
1252      * Required. The ordered list of training phrase parts.
1253      * The parts are concatenated in order to form the training phrase.
1254      * Note: The API does not automatically annotate training phrases like the
1255      * Dialogflow Console does.
1256      * Note: Do not forget to include whitespace at part boundaries, so the
1257      * training phrase is well formatted when the parts are concatenated.
1258      * If the training phrase does not need to be annotated with parameters,
1259      * you just need a single part with only the
1260      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
1261      * field set.
1262      * If you want to annotate the training phrase, you must create multiple
1263      * parts, where the fields of each part are populated in one of two ways:
1264      * -   `Part.text` is set to a part of the phrase that has no parameters.
1265      * -   `Part.text` is set to a part of the phrase that you want to annotate,
1266      *     and the `parameter_id` field is set.
1267      * </pre>
1268      *
1269      * <code>
1270      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
1271      * </code>
1272      */
1273     @java.lang.Override
1274     public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part>
getPartsList()1275         getPartsList() {
1276       return parts_;
1277     }
1278     /**
1279      *
1280      *
1281      * <pre>
1282      * Required. The ordered list of training phrase parts.
1283      * The parts are concatenated in order to form the training phrase.
1284      * Note: The API does not automatically annotate training phrases like the
1285      * Dialogflow Console does.
1286      * Note: Do not forget to include whitespace at part boundaries, so the
1287      * training phrase is well formatted when the parts are concatenated.
1288      * If the training phrase does not need to be annotated with parameters,
1289      * you just need a single part with only the
1290      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
1291      * field set.
1292      * If you want to annotate the training phrase, you must create multiple
1293      * parts, where the fields of each part are populated in one of two ways:
1294      * -   `Part.text` is set to a part of the phrase that has no parameters.
1295      * -   `Part.text` is set to a part of the phrase that you want to annotate,
1296      *     and the `parameter_id` field is set.
1297      * </pre>
1298      *
1299      * <code>
1300      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
1301      * </code>
1302      */
1303     @java.lang.Override
1304     public java.util.List<
1305             ? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>
getPartsOrBuilderList()1306         getPartsOrBuilderList() {
1307       return parts_;
1308     }
1309     /**
1310      *
1311      *
1312      * <pre>
1313      * Required. The ordered list of training phrase parts.
1314      * The parts are concatenated in order to form the training phrase.
1315      * Note: The API does not automatically annotate training phrases like the
1316      * Dialogflow Console does.
1317      * Note: Do not forget to include whitespace at part boundaries, so the
1318      * training phrase is well formatted when the parts are concatenated.
1319      * If the training phrase does not need to be annotated with parameters,
1320      * you just need a single part with only the
1321      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
1322      * field set.
1323      * If you want to annotate the training phrase, you must create multiple
1324      * parts, where the fields of each part are populated in one of two ways:
1325      * -   `Part.text` is set to a part of the phrase that has no parameters.
1326      * -   `Part.text` is set to a part of the phrase that you want to annotate,
1327      *     and the `parameter_id` field is set.
1328      * </pre>
1329      *
1330      * <code>
1331      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
1332      * </code>
1333      */
1334     @java.lang.Override
getPartsCount()1335     public int getPartsCount() {
1336       return parts_.size();
1337     }
1338     /**
1339      *
1340      *
1341      * <pre>
1342      * Required. The ordered list of training phrase parts.
1343      * The parts are concatenated in order to form the training phrase.
1344      * Note: The API does not automatically annotate training phrases like the
1345      * Dialogflow Console does.
1346      * Note: Do not forget to include whitespace at part boundaries, so the
1347      * training phrase is well formatted when the parts are concatenated.
1348      * If the training phrase does not need to be annotated with parameters,
1349      * you just need a single part with only the
1350      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
1351      * field set.
1352      * If you want to annotate the training phrase, you must create multiple
1353      * parts, where the fields of each part are populated in one of two ways:
1354      * -   `Part.text` is set to a part of the phrase that has no parameters.
1355      * -   `Part.text` is set to a part of the phrase that you want to annotate,
1356      *     and the `parameter_id` field is set.
1357      * </pre>
1358      *
1359      * <code>
1360      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
1361      * </code>
1362      */
1363     @java.lang.Override
getParts(int index)1364     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int index) {
1365       return parts_.get(index);
1366     }
1367     /**
1368      *
1369      *
1370      * <pre>
1371      * Required. The ordered list of training phrase parts.
1372      * The parts are concatenated in order to form the training phrase.
1373      * Note: The API does not automatically annotate training phrases like the
1374      * Dialogflow Console does.
1375      * Note: Do not forget to include whitespace at part boundaries, so the
1376      * training phrase is well formatted when the parts are concatenated.
1377      * If the training phrase does not need to be annotated with parameters,
1378      * you just need a single part with only the
1379      * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
1380      * field set.
1381      * If you want to annotate the training phrase, you must create multiple
1382      * parts, where the fields of each part are populated in one of two ways:
1383      * -   `Part.text` is set to a part of the phrase that has no parameters.
1384      * -   `Part.text` is set to a part of the phrase that you want to annotate,
1385      *     and the `parameter_id` field is set.
1386      * </pre>
1387      *
1388      * <code>
1389      * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
1390      * </code>
1391      */
1392     @java.lang.Override
getPartsOrBuilder( int index)1393     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder getPartsOrBuilder(
1394         int index) {
1395       return parts_.get(index);
1396     }
1397 
1398     public static final int REPEAT_COUNT_FIELD_NUMBER = 3;
1399     private int repeatCount_ = 0;
1400     /**
1401      *
1402      *
1403      * <pre>
1404      * Indicates how many times this example was added to the intent.
1405      * </pre>
1406      *
1407      * <code>int32 repeat_count = 3;</code>
1408      *
1409      * @return The repeatCount.
1410      */
1411     @java.lang.Override
getRepeatCount()1412     public int getRepeatCount() {
1413       return repeatCount_;
1414     }
1415 
1416     private byte memoizedIsInitialized = -1;
1417 
1418     @java.lang.Override
isInitialized()1419     public final boolean isInitialized() {
1420       byte isInitialized = memoizedIsInitialized;
1421       if (isInitialized == 1) return true;
1422       if (isInitialized == 0) return false;
1423 
1424       memoizedIsInitialized = 1;
1425       return true;
1426     }
1427 
1428     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1429     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1430       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
1431         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
1432       }
1433       for (int i = 0; i < parts_.size(); i++) {
1434         output.writeMessage(2, parts_.get(i));
1435       }
1436       if (repeatCount_ != 0) {
1437         output.writeInt32(3, repeatCount_);
1438       }
1439       getUnknownFields().writeTo(output);
1440     }
1441 
1442     @java.lang.Override
getSerializedSize()1443     public int getSerializedSize() {
1444       int size = memoizedSize;
1445       if (size != -1) return size;
1446 
1447       size = 0;
1448       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
1449         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
1450       }
1451       for (int i = 0; i < parts_.size(); i++) {
1452         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parts_.get(i));
1453       }
1454       if (repeatCount_ != 0) {
1455         size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, repeatCount_);
1456       }
1457       size += getUnknownFields().getSerializedSize();
1458       memoizedSize = size;
1459       return size;
1460     }
1461 
1462     @java.lang.Override
equals(final java.lang.Object obj)1463     public boolean equals(final java.lang.Object obj) {
1464       if (obj == this) {
1465         return true;
1466       }
1467       if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase)) {
1468         return super.equals(obj);
1469       }
1470       com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase other =
1471           (com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) obj;
1472 
1473       if (!getId().equals(other.getId())) return false;
1474       if (!getPartsList().equals(other.getPartsList())) return false;
1475       if (getRepeatCount() != other.getRepeatCount()) return false;
1476       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1477       return true;
1478     }
1479 
1480     @java.lang.Override
hashCode()1481     public int hashCode() {
1482       if (memoizedHashCode != 0) {
1483         return memoizedHashCode;
1484       }
1485       int hash = 41;
1486       hash = (19 * hash) + getDescriptor().hashCode();
1487       hash = (37 * hash) + ID_FIELD_NUMBER;
1488       hash = (53 * hash) + getId().hashCode();
1489       if (getPartsCount() > 0) {
1490         hash = (37 * hash) + PARTS_FIELD_NUMBER;
1491         hash = (53 * hash) + getPartsList().hashCode();
1492       }
1493       hash = (37 * hash) + REPEAT_COUNT_FIELD_NUMBER;
1494       hash = (53 * hash) + getRepeatCount();
1495       hash = (29 * hash) + getUnknownFields().hashCode();
1496       memoizedHashCode = hash;
1497       return hash;
1498     }
1499 
parseFrom( java.nio.ByteBuffer data)1500     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1501         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1502       return PARSER.parseFrom(data);
1503     }
1504 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1505     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1506         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1507         throws com.google.protobuf.InvalidProtocolBufferException {
1508       return PARSER.parseFrom(data, extensionRegistry);
1509     }
1510 
parseFrom( com.google.protobuf.ByteString data)1511     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1512         com.google.protobuf.ByteString data)
1513         throws com.google.protobuf.InvalidProtocolBufferException {
1514       return PARSER.parseFrom(data);
1515     }
1516 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1517     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1518         com.google.protobuf.ByteString data,
1519         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1520         throws com.google.protobuf.InvalidProtocolBufferException {
1521       return PARSER.parseFrom(data, extensionRegistry);
1522     }
1523 
parseFrom(byte[] data)1524     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(byte[] data)
1525         throws com.google.protobuf.InvalidProtocolBufferException {
1526       return PARSER.parseFrom(data);
1527     }
1528 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1529     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1530         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1531         throws com.google.protobuf.InvalidProtocolBufferException {
1532       return PARSER.parseFrom(data, extensionRegistry);
1533     }
1534 
parseFrom( java.io.InputStream input)1535     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1536         java.io.InputStream input) throws java.io.IOException {
1537       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1538     }
1539 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1540     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1541         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1542         throws java.io.IOException {
1543       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1544           PARSER, input, extensionRegistry);
1545     }
1546 
parseDelimitedFrom( java.io.InputStream input)1547     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseDelimitedFrom(
1548         java.io.InputStream input) throws java.io.IOException {
1549       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1550     }
1551 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1552     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseDelimitedFrom(
1553         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1554         throws java.io.IOException {
1555       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1556           PARSER, input, extensionRegistry);
1557     }
1558 
parseFrom( com.google.protobuf.CodedInputStream input)1559     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1560         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1561       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1562     }
1563 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1564     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase parseFrom(
1565         com.google.protobuf.CodedInputStream input,
1566         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1567         throws java.io.IOException {
1568       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1569           PARSER, input, extensionRegistry);
1570     }
1571 
1572     @java.lang.Override
newBuilderForType()1573     public Builder newBuilderForType() {
1574       return newBuilder();
1575     }
1576 
newBuilder()1577     public static Builder newBuilder() {
1578       return DEFAULT_INSTANCE.toBuilder();
1579     }
1580 
newBuilder( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase prototype)1581     public static Builder newBuilder(
1582         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase prototype) {
1583       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1584     }
1585 
1586     @java.lang.Override
toBuilder()1587     public Builder toBuilder() {
1588       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1589     }
1590 
1591     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1592     protected Builder newBuilderForType(
1593         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1594       Builder builder = new Builder(parent);
1595       return builder;
1596     }
1597     /**
1598      *
1599      *
1600      * <pre>
1601      * Represents an example that the agent is trained on to identify the intent.
1602      * </pre>
1603      *
1604      * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase}
1605      */
1606     public static final class Builder
1607         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1608         implements
1609         // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase)
1610         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder {
getDescriptor()1611       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1612         return com.google.cloud.dialogflow.cx.v3.IntentProto
1613             .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_descriptor;
1614       }
1615 
1616       @java.lang.Override
1617       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1618           internalGetFieldAccessorTable() {
1619         return com.google.cloud.dialogflow.cx.v3.IntentProto
1620             .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_fieldAccessorTable
1621             .ensureFieldAccessorsInitialized(
1622                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.class,
1623                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder.class);
1624       }
1625 
1626       // Construct using com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.newBuilder()
Builder()1627       private Builder() {}
1628 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1629       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1630         super(parent);
1631       }
1632 
1633       @java.lang.Override
clear()1634       public Builder clear() {
1635         super.clear();
1636         bitField0_ = 0;
1637         id_ = "";
1638         if (partsBuilder_ == null) {
1639           parts_ = java.util.Collections.emptyList();
1640         } else {
1641           parts_ = null;
1642           partsBuilder_.clear();
1643         }
1644         bitField0_ = (bitField0_ & ~0x00000002);
1645         repeatCount_ = 0;
1646         return this;
1647       }
1648 
1649       @java.lang.Override
getDescriptorForType()1650       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1651         return com.google.cloud.dialogflow.cx.v3.IntentProto
1652             .internal_static_google_cloud_dialogflow_cx_v3_Intent_TrainingPhrase_descriptor;
1653       }
1654 
1655       @java.lang.Override
getDefaultInstanceForType()1656       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getDefaultInstanceForType() {
1657         return com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.getDefaultInstance();
1658       }
1659 
1660       @java.lang.Override
build()1661       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase build() {
1662         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result = buildPartial();
1663         if (!result.isInitialized()) {
1664           throw newUninitializedMessageException(result);
1665         }
1666         return result;
1667       }
1668 
1669       @java.lang.Override
buildPartial()1670       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase buildPartial() {
1671         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result =
1672             new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(this);
1673         buildPartialRepeatedFields(result);
1674         if (bitField0_ != 0) {
1675           buildPartial0(result);
1676         }
1677         onBuilt();
1678         return result;
1679       }
1680 
buildPartialRepeatedFields( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result)1681       private void buildPartialRepeatedFields(
1682           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result) {
1683         if (partsBuilder_ == null) {
1684           if (((bitField0_ & 0x00000002) != 0)) {
1685             parts_ = java.util.Collections.unmodifiableList(parts_);
1686             bitField0_ = (bitField0_ & ~0x00000002);
1687           }
1688           result.parts_ = parts_;
1689         } else {
1690           result.parts_ = partsBuilder_.build();
1691         }
1692       }
1693 
buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result)1694       private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result) {
1695         int from_bitField0_ = bitField0_;
1696         if (((from_bitField0_ & 0x00000001) != 0)) {
1697           result.id_ = id_;
1698         }
1699         if (((from_bitField0_ & 0x00000004) != 0)) {
1700           result.repeatCount_ = repeatCount_;
1701         }
1702       }
1703 
1704       @java.lang.Override
clone()1705       public Builder clone() {
1706         return super.clone();
1707       }
1708 
1709       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1710       public Builder setField(
1711           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1712         return super.setField(field, value);
1713       }
1714 
1715       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1716       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1717         return super.clearField(field);
1718       }
1719 
1720       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1721       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1722         return super.clearOneof(oneof);
1723       }
1724 
1725       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1726       public Builder setRepeatedField(
1727           com.google.protobuf.Descriptors.FieldDescriptor field,
1728           int index,
1729           java.lang.Object value) {
1730         return super.setRepeatedField(field, index, value);
1731       }
1732 
1733       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1734       public Builder addRepeatedField(
1735           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1736         return super.addRepeatedField(field, value);
1737       }
1738 
1739       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1740       public Builder mergeFrom(com.google.protobuf.Message other) {
1741         if (other instanceof com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) {
1742           return mergeFrom((com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) other);
1743         } else {
1744           super.mergeFrom(other);
1745           return this;
1746         }
1747       }
1748 
mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase other)1749       public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase other) {
1750         if (other == com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.getDefaultInstance())
1751           return this;
1752         if (!other.getId().isEmpty()) {
1753           id_ = other.id_;
1754           bitField0_ |= 0x00000001;
1755           onChanged();
1756         }
1757         if (partsBuilder_ == null) {
1758           if (!other.parts_.isEmpty()) {
1759             if (parts_.isEmpty()) {
1760               parts_ = other.parts_;
1761               bitField0_ = (bitField0_ & ~0x00000002);
1762             } else {
1763               ensurePartsIsMutable();
1764               parts_.addAll(other.parts_);
1765             }
1766             onChanged();
1767           }
1768         } else {
1769           if (!other.parts_.isEmpty()) {
1770             if (partsBuilder_.isEmpty()) {
1771               partsBuilder_.dispose();
1772               partsBuilder_ = null;
1773               parts_ = other.parts_;
1774               bitField0_ = (bitField0_ & ~0x00000002);
1775               partsBuilder_ =
1776                   com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1777                       ? getPartsFieldBuilder()
1778                       : null;
1779             } else {
1780               partsBuilder_.addAllMessages(other.parts_);
1781             }
1782           }
1783         }
1784         if (other.getRepeatCount() != 0) {
1785           setRepeatCount(other.getRepeatCount());
1786         }
1787         this.mergeUnknownFields(other.getUnknownFields());
1788         onChanged();
1789         return this;
1790       }
1791 
1792       @java.lang.Override
isInitialized()1793       public final boolean isInitialized() {
1794         return true;
1795       }
1796 
1797       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1798       public Builder mergeFrom(
1799           com.google.protobuf.CodedInputStream input,
1800           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1801           throws java.io.IOException {
1802         if (extensionRegistry == null) {
1803           throw new java.lang.NullPointerException();
1804         }
1805         try {
1806           boolean done = false;
1807           while (!done) {
1808             int tag = input.readTag();
1809             switch (tag) {
1810               case 0:
1811                 done = true;
1812                 break;
1813               case 10:
1814                 {
1815                   id_ = input.readStringRequireUtf8();
1816                   bitField0_ |= 0x00000001;
1817                   break;
1818                 } // case 10
1819               case 18:
1820                 {
1821                   com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part m =
1822                       input.readMessage(
1823                           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.parser(),
1824                           extensionRegistry);
1825                   if (partsBuilder_ == null) {
1826                     ensurePartsIsMutable();
1827                     parts_.add(m);
1828                   } else {
1829                     partsBuilder_.addMessage(m);
1830                   }
1831                   break;
1832                 } // case 18
1833               case 24:
1834                 {
1835                   repeatCount_ = input.readInt32();
1836                   bitField0_ |= 0x00000004;
1837                   break;
1838                 } // case 24
1839               default:
1840                 {
1841                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1842                     done = true; // was an endgroup tag
1843                   }
1844                   break;
1845                 } // default:
1846             } // switch (tag)
1847           } // while (!done)
1848         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1849           throw e.unwrapIOException();
1850         } finally {
1851           onChanged();
1852         } // finally
1853         return this;
1854       }
1855 
1856       private int bitField0_;
1857 
1858       private java.lang.Object id_ = "";
1859       /**
1860        *
1861        *
1862        * <pre>
1863        * Output only. The unique identifier of the training phrase.
1864        * </pre>
1865        *
1866        * <code>string id = 1;</code>
1867        *
1868        * @return The id.
1869        */
getId()1870       public java.lang.String getId() {
1871         java.lang.Object ref = id_;
1872         if (!(ref instanceof java.lang.String)) {
1873           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1874           java.lang.String s = bs.toStringUtf8();
1875           id_ = s;
1876           return s;
1877         } else {
1878           return (java.lang.String) ref;
1879         }
1880       }
1881       /**
1882        *
1883        *
1884        * <pre>
1885        * Output only. The unique identifier of the training phrase.
1886        * </pre>
1887        *
1888        * <code>string id = 1;</code>
1889        *
1890        * @return The bytes for id.
1891        */
getIdBytes()1892       public com.google.protobuf.ByteString getIdBytes() {
1893         java.lang.Object ref = id_;
1894         if (ref instanceof String) {
1895           com.google.protobuf.ByteString b =
1896               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1897           id_ = b;
1898           return b;
1899         } else {
1900           return (com.google.protobuf.ByteString) ref;
1901         }
1902       }
1903       /**
1904        *
1905        *
1906        * <pre>
1907        * Output only. The unique identifier of the training phrase.
1908        * </pre>
1909        *
1910        * <code>string id = 1;</code>
1911        *
1912        * @param value The id to set.
1913        * @return This builder for chaining.
1914        */
setId(java.lang.String value)1915       public Builder setId(java.lang.String value) {
1916         if (value == null) {
1917           throw new NullPointerException();
1918         }
1919         id_ = value;
1920         bitField0_ |= 0x00000001;
1921         onChanged();
1922         return this;
1923       }
1924       /**
1925        *
1926        *
1927        * <pre>
1928        * Output only. The unique identifier of the training phrase.
1929        * </pre>
1930        *
1931        * <code>string id = 1;</code>
1932        *
1933        * @return This builder for chaining.
1934        */
clearId()1935       public Builder clearId() {
1936         id_ = getDefaultInstance().getId();
1937         bitField0_ = (bitField0_ & ~0x00000001);
1938         onChanged();
1939         return this;
1940       }
1941       /**
1942        *
1943        *
1944        * <pre>
1945        * Output only. The unique identifier of the training phrase.
1946        * </pre>
1947        *
1948        * <code>string id = 1;</code>
1949        *
1950        * @param value The bytes for id to set.
1951        * @return This builder for chaining.
1952        */
setIdBytes(com.google.protobuf.ByteString value)1953       public Builder setIdBytes(com.google.protobuf.ByteString value) {
1954         if (value == null) {
1955           throw new NullPointerException();
1956         }
1957         checkByteStringIsUtf8(value);
1958         id_ = value;
1959         bitField0_ |= 0x00000001;
1960         onChanged();
1961         return this;
1962       }
1963 
1964       private java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part> parts_ =
1965           java.util.Collections.emptyList();
1966 
ensurePartsIsMutable()1967       private void ensurePartsIsMutable() {
1968         if (!((bitField0_ & 0x00000002) != 0)) {
1969           parts_ =
1970               new java.util.ArrayList<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part>(
1971                   parts_);
1972           bitField0_ |= 0x00000002;
1973         }
1974       }
1975 
1976       private com.google.protobuf.RepeatedFieldBuilderV3<
1977               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part,
1978               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder,
1979               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>
1980           partsBuilder_;
1981 
1982       /**
1983        *
1984        *
1985        * <pre>
1986        * Required. The ordered list of training phrase parts.
1987        * The parts are concatenated in order to form the training phrase.
1988        * Note: The API does not automatically annotate training phrases like the
1989        * Dialogflow Console does.
1990        * Note: Do not forget to include whitespace at part boundaries, so the
1991        * training phrase is well formatted when the parts are concatenated.
1992        * If the training phrase does not need to be annotated with parameters,
1993        * you just need a single part with only the
1994        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
1995        * field set.
1996        * If you want to annotate the training phrase, you must create multiple
1997        * parts, where the fields of each part are populated in one of two ways:
1998        * -   `Part.text` is set to a part of the phrase that has no parameters.
1999        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2000        *     and the `parameter_id` field is set.
2001        * </pre>
2002        *
2003        * <code>
2004        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2005        * </code>
2006        */
2007       public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part>
getPartsList()2008           getPartsList() {
2009         if (partsBuilder_ == null) {
2010           return java.util.Collections.unmodifiableList(parts_);
2011         } else {
2012           return partsBuilder_.getMessageList();
2013         }
2014       }
2015       /**
2016        *
2017        *
2018        * <pre>
2019        * Required. The ordered list of training phrase parts.
2020        * The parts are concatenated in order to form the training phrase.
2021        * Note: The API does not automatically annotate training phrases like the
2022        * Dialogflow Console does.
2023        * Note: Do not forget to include whitespace at part boundaries, so the
2024        * training phrase is well formatted when the parts are concatenated.
2025        * If the training phrase does not need to be annotated with parameters,
2026        * you just need a single part with only the
2027        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2028        * field set.
2029        * If you want to annotate the training phrase, you must create multiple
2030        * parts, where the fields of each part are populated in one of two ways:
2031        * -   `Part.text` is set to a part of the phrase that has no parameters.
2032        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2033        *     and the `parameter_id` field is set.
2034        * </pre>
2035        *
2036        * <code>
2037        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2038        * </code>
2039        */
getPartsCount()2040       public int getPartsCount() {
2041         if (partsBuilder_ == null) {
2042           return parts_.size();
2043         } else {
2044           return partsBuilder_.getCount();
2045         }
2046       }
2047       /**
2048        *
2049        *
2050        * <pre>
2051        * Required. The ordered list of training phrase parts.
2052        * The parts are concatenated in order to form the training phrase.
2053        * Note: The API does not automatically annotate training phrases like the
2054        * Dialogflow Console does.
2055        * Note: Do not forget to include whitespace at part boundaries, so the
2056        * training phrase is well formatted when the parts are concatenated.
2057        * If the training phrase does not need to be annotated with parameters,
2058        * you just need a single part with only the
2059        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2060        * field set.
2061        * If you want to annotate the training phrase, you must create multiple
2062        * parts, where the fields of each part are populated in one of two ways:
2063        * -   `Part.text` is set to a part of the phrase that has no parameters.
2064        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2065        *     and the `parameter_id` field is set.
2066        * </pre>
2067        *
2068        * <code>
2069        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2070        * </code>
2071        */
getParts(int index)2072       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int index) {
2073         if (partsBuilder_ == null) {
2074           return parts_.get(index);
2075         } else {
2076           return partsBuilder_.getMessage(index);
2077         }
2078       }
2079       /**
2080        *
2081        *
2082        * <pre>
2083        * Required. The ordered list of training phrase parts.
2084        * The parts are concatenated in order to form the training phrase.
2085        * Note: The API does not automatically annotate training phrases like the
2086        * Dialogflow Console does.
2087        * Note: Do not forget to include whitespace at part boundaries, so the
2088        * training phrase is well formatted when the parts are concatenated.
2089        * If the training phrase does not need to be annotated with parameters,
2090        * you just need a single part with only the
2091        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2092        * field set.
2093        * If you want to annotate the training phrase, you must create multiple
2094        * parts, where the fields of each part are populated in one of two ways:
2095        * -   `Part.text` is set to a part of the phrase that has no parameters.
2096        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2097        *     and the `parameter_id` field is set.
2098        * </pre>
2099        *
2100        * <code>
2101        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2102        * </code>
2103        */
setParts( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part value)2104       public Builder setParts(
2105           int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part value) {
2106         if (partsBuilder_ == null) {
2107           if (value == null) {
2108             throw new NullPointerException();
2109           }
2110           ensurePartsIsMutable();
2111           parts_.set(index, value);
2112           onChanged();
2113         } else {
2114           partsBuilder_.setMessage(index, value);
2115         }
2116         return this;
2117       }
2118       /**
2119        *
2120        *
2121        * <pre>
2122        * Required. The ordered list of training phrase parts.
2123        * The parts are concatenated in order to form the training phrase.
2124        * Note: The API does not automatically annotate training phrases like the
2125        * Dialogflow Console does.
2126        * Note: Do not forget to include whitespace at part boundaries, so the
2127        * training phrase is well formatted when the parts are concatenated.
2128        * If the training phrase does not need to be annotated with parameters,
2129        * you just need a single part with only the
2130        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2131        * field set.
2132        * If you want to annotate the training phrase, you must create multiple
2133        * parts, where the fields of each part are populated in one of two ways:
2134        * -   `Part.text` is set to a part of the phrase that has no parameters.
2135        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2136        *     and the `parameter_id` field is set.
2137        * </pre>
2138        *
2139        * <code>
2140        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2141        * </code>
2142        */
setParts( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder builderForValue)2143       public Builder setParts(
2144           int index,
2145           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder builderForValue) {
2146         if (partsBuilder_ == null) {
2147           ensurePartsIsMutable();
2148           parts_.set(index, builderForValue.build());
2149           onChanged();
2150         } else {
2151           partsBuilder_.setMessage(index, builderForValue.build());
2152         }
2153         return this;
2154       }
2155       /**
2156        *
2157        *
2158        * <pre>
2159        * Required. The ordered list of training phrase parts.
2160        * The parts are concatenated in order to form the training phrase.
2161        * Note: The API does not automatically annotate training phrases like the
2162        * Dialogflow Console does.
2163        * Note: Do not forget to include whitespace at part boundaries, so the
2164        * training phrase is well formatted when the parts are concatenated.
2165        * If the training phrase does not need to be annotated with parameters,
2166        * you just need a single part with only the
2167        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2168        * field set.
2169        * If you want to annotate the training phrase, you must create multiple
2170        * parts, where the fields of each part are populated in one of two ways:
2171        * -   `Part.text` is set to a part of the phrase that has no parameters.
2172        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2173        *     and the `parameter_id` field is set.
2174        * </pre>
2175        *
2176        * <code>
2177        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2178        * </code>
2179        */
addParts(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part value)2180       public Builder addParts(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part value) {
2181         if (partsBuilder_ == null) {
2182           if (value == null) {
2183             throw new NullPointerException();
2184           }
2185           ensurePartsIsMutable();
2186           parts_.add(value);
2187           onChanged();
2188         } else {
2189           partsBuilder_.addMessage(value);
2190         }
2191         return this;
2192       }
2193       /**
2194        *
2195        *
2196        * <pre>
2197        * Required. The ordered list of training phrase parts.
2198        * The parts are concatenated in order to form the training phrase.
2199        * Note: The API does not automatically annotate training phrases like the
2200        * Dialogflow Console does.
2201        * Note: Do not forget to include whitespace at part boundaries, so the
2202        * training phrase is well formatted when the parts are concatenated.
2203        * If the training phrase does not need to be annotated with parameters,
2204        * you just need a single part with only the
2205        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2206        * field set.
2207        * If you want to annotate the training phrase, you must create multiple
2208        * parts, where the fields of each part are populated in one of two ways:
2209        * -   `Part.text` is set to a part of the phrase that has no parameters.
2210        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2211        *     and the `parameter_id` field is set.
2212        * </pre>
2213        *
2214        * <code>
2215        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2216        * </code>
2217        */
addParts( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part value)2218       public Builder addParts(
2219           int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part value) {
2220         if (partsBuilder_ == null) {
2221           if (value == null) {
2222             throw new NullPointerException();
2223           }
2224           ensurePartsIsMutable();
2225           parts_.add(index, value);
2226           onChanged();
2227         } else {
2228           partsBuilder_.addMessage(index, value);
2229         }
2230         return this;
2231       }
2232       /**
2233        *
2234        *
2235        * <pre>
2236        * Required. The ordered list of training phrase parts.
2237        * The parts are concatenated in order to form the training phrase.
2238        * Note: The API does not automatically annotate training phrases like the
2239        * Dialogflow Console does.
2240        * Note: Do not forget to include whitespace at part boundaries, so the
2241        * training phrase is well formatted when the parts are concatenated.
2242        * If the training phrase does not need to be annotated with parameters,
2243        * you just need a single part with only the
2244        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2245        * field set.
2246        * If you want to annotate the training phrase, you must create multiple
2247        * parts, where the fields of each part are populated in one of two ways:
2248        * -   `Part.text` is set to a part of the phrase that has no parameters.
2249        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2250        *     and the `parameter_id` field is set.
2251        * </pre>
2252        *
2253        * <code>
2254        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2255        * </code>
2256        */
addParts( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder builderForValue)2257       public Builder addParts(
2258           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder builderForValue) {
2259         if (partsBuilder_ == null) {
2260           ensurePartsIsMutable();
2261           parts_.add(builderForValue.build());
2262           onChanged();
2263         } else {
2264           partsBuilder_.addMessage(builderForValue.build());
2265         }
2266         return this;
2267       }
2268       /**
2269        *
2270        *
2271        * <pre>
2272        * Required. The ordered list of training phrase parts.
2273        * The parts are concatenated in order to form the training phrase.
2274        * Note: The API does not automatically annotate training phrases like the
2275        * Dialogflow Console does.
2276        * Note: Do not forget to include whitespace at part boundaries, so the
2277        * training phrase is well formatted when the parts are concatenated.
2278        * If the training phrase does not need to be annotated with parameters,
2279        * you just need a single part with only the
2280        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2281        * field set.
2282        * If you want to annotate the training phrase, you must create multiple
2283        * parts, where the fields of each part are populated in one of two ways:
2284        * -   `Part.text` is set to a part of the phrase that has no parameters.
2285        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2286        *     and the `parameter_id` field is set.
2287        * </pre>
2288        *
2289        * <code>
2290        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2291        * </code>
2292        */
addParts( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder builderForValue)2293       public Builder addParts(
2294           int index,
2295           com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder builderForValue) {
2296         if (partsBuilder_ == null) {
2297           ensurePartsIsMutable();
2298           parts_.add(index, builderForValue.build());
2299           onChanged();
2300         } else {
2301           partsBuilder_.addMessage(index, builderForValue.build());
2302         }
2303         return this;
2304       }
2305       /**
2306        *
2307        *
2308        * <pre>
2309        * Required. The ordered list of training phrase parts.
2310        * The parts are concatenated in order to form the training phrase.
2311        * Note: The API does not automatically annotate training phrases like the
2312        * Dialogflow Console does.
2313        * Note: Do not forget to include whitespace at part boundaries, so the
2314        * training phrase is well formatted when the parts are concatenated.
2315        * If the training phrase does not need to be annotated with parameters,
2316        * you just need a single part with only the
2317        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2318        * field set.
2319        * If you want to annotate the training phrase, you must create multiple
2320        * parts, where the fields of each part are populated in one of two ways:
2321        * -   `Part.text` is set to a part of the phrase that has no parameters.
2322        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2323        *     and the `parameter_id` field is set.
2324        * </pre>
2325        *
2326        * <code>
2327        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2328        * </code>
2329        */
addAllParts( java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part> values)2330       public Builder addAllParts(
2331           java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part>
2332               values) {
2333         if (partsBuilder_ == null) {
2334           ensurePartsIsMutable();
2335           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parts_);
2336           onChanged();
2337         } else {
2338           partsBuilder_.addAllMessages(values);
2339         }
2340         return this;
2341       }
2342       /**
2343        *
2344        *
2345        * <pre>
2346        * Required. The ordered list of training phrase parts.
2347        * The parts are concatenated in order to form the training phrase.
2348        * Note: The API does not automatically annotate training phrases like the
2349        * Dialogflow Console does.
2350        * Note: Do not forget to include whitespace at part boundaries, so the
2351        * training phrase is well formatted when the parts are concatenated.
2352        * If the training phrase does not need to be annotated with parameters,
2353        * you just need a single part with only the
2354        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2355        * field set.
2356        * If you want to annotate the training phrase, you must create multiple
2357        * parts, where the fields of each part are populated in one of two ways:
2358        * -   `Part.text` is set to a part of the phrase that has no parameters.
2359        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2360        *     and the `parameter_id` field is set.
2361        * </pre>
2362        *
2363        * <code>
2364        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2365        * </code>
2366        */
clearParts()2367       public Builder clearParts() {
2368         if (partsBuilder_ == null) {
2369           parts_ = java.util.Collections.emptyList();
2370           bitField0_ = (bitField0_ & ~0x00000002);
2371           onChanged();
2372         } else {
2373           partsBuilder_.clear();
2374         }
2375         return this;
2376       }
2377       /**
2378        *
2379        *
2380        * <pre>
2381        * Required. The ordered list of training phrase parts.
2382        * The parts are concatenated in order to form the training phrase.
2383        * Note: The API does not automatically annotate training phrases like the
2384        * Dialogflow Console does.
2385        * Note: Do not forget to include whitespace at part boundaries, so the
2386        * training phrase is well formatted when the parts are concatenated.
2387        * If the training phrase does not need to be annotated with parameters,
2388        * you just need a single part with only the
2389        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2390        * field set.
2391        * If you want to annotate the training phrase, you must create multiple
2392        * parts, where the fields of each part are populated in one of two ways:
2393        * -   `Part.text` is set to a part of the phrase that has no parameters.
2394        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2395        *     and the `parameter_id` field is set.
2396        * </pre>
2397        *
2398        * <code>
2399        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2400        * </code>
2401        */
removeParts(int index)2402       public Builder removeParts(int index) {
2403         if (partsBuilder_ == null) {
2404           ensurePartsIsMutable();
2405           parts_.remove(index);
2406           onChanged();
2407         } else {
2408           partsBuilder_.remove(index);
2409         }
2410         return this;
2411       }
2412       /**
2413        *
2414        *
2415        * <pre>
2416        * Required. The ordered list of training phrase parts.
2417        * The parts are concatenated in order to form the training phrase.
2418        * Note: The API does not automatically annotate training phrases like the
2419        * Dialogflow Console does.
2420        * Note: Do not forget to include whitespace at part boundaries, so the
2421        * training phrase is well formatted when the parts are concatenated.
2422        * If the training phrase does not need to be annotated with parameters,
2423        * you just need a single part with only the
2424        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2425        * field set.
2426        * If you want to annotate the training phrase, you must create multiple
2427        * parts, where the fields of each part are populated in one of two ways:
2428        * -   `Part.text` is set to a part of the phrase that has no parameters.
2429        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2430        *     and the `parameter_id` field is set.
2431        * </pre>
2432        *
2433        * <code>
2434        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2435        * </code>
2436        */
getPartsBuilder( int index)2437       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getPartsBuilder(
2438           int index) {
2439         return getPartsFieldBuilder().getBuilder(index);
2440       }
2441       /**
2442        *
2443        *
2444        * <pre>
2445        * Required. The ordered list of training phrase parts.
2446        * The parts are concatenated in order to form the training phrase.
2447        * Note: The API does not automatically annotate training phrases like the
2448        * Dialogflow Console does.
2449        * Note: Do not forget to include whitespace at part boundaries, so the
2450        * training phrase is well formatted when the parts are concatenated.
2451        * If the training phrase does not need to be annotated with parameters,
2452        * you just need a single part with only the
2453        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2454        * field set.
2455        * If you want to annotate the training phrase, you must create multiple
2456        * parts, where the fields of each part are populated in one of two ways:
2457        * -   `Part.text` is set to a part of the phrase that has no parameters.
2458        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2459        *     and the `parameter_id` field is set.
2460        * </pre>
2461        *
2462        * <code>
2463        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2464        * </code>
2465        */
2466       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder
getPartsOrBuilder(int index)2467           getPartsOrBuilder(int index) {
2468         if (partsBuilder_ == null) {
2469           return parts_.get(index);
2470         } else {
2471           return partsBuilder_.getMessageOrBuilder(index);
2472         }
2473       }
2474       /**
2475        *
2476        *
2477        * <pre>
2478        * Required. The ordered list of training phrase parts.
2479        * The parts are concatenated in order to form the training phrase.
2480        * Note: The API does not automatically annotate training phrases like the
2481        * Dialogflow Console does.
2482        * Note: Do not forget to include whitespace at part boundaries, so the
2483        * training phrase is well formatted when the parts are concatenated.
2484        * If the training phrase does not need to be annotated with parameters,
2485        * you just need a single part with only the
2486        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2487        * field set.
2488        * If you want to annotate the training phrase, you must create multiple
2489        * parts, where the fields of each part are populated in one of two ways:
2490        * -   `Part.text` is set to a part of the phrase that has no parameters.
2491        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2492        *     and the `parameter_id` field is set.
2493        * </pre>
2494        *
2495        * <code>
2496        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2497        * </code>
2498        */
2499       public java.util.List<
2500               ? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>
getPartsOrBuilderList()2501           getPartsOrBuilderList() {
2502         if (partsBuilder_ != null) {
2503           return partsBuilder_.getMessageOrBuilderList();
2504         } else {
2505           return java.util.Collections.unmodifiableList(parts_);
2506         }
2507       }
2508       /**
2509        *
2510        *
2511        * <pre>
2512        * Required. The ordered list of training phrase parts.
2513        * The parts are concatenated in order to form the training phrase.
2514        * Note: The API does not automatically annotate training phrases like the
2515        * Dialogflow Console does.
2516        * Note: Do not forget to include whitespace at part boundaries, so the
2517        * training phrase is well formatted when the parts are concatenated.
2518        * If the training phrase does not need to be annotated with parameters,
2519        * you just need a single part with only the
2520        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2521        * field set.
2522        * If you want to annotate the training phrase, you must create multiple
2523        * parts, where the fields of each part are populated in one of two ways:
2524        * -   `Part.text` is set to a part of the phrase that has no parameters.
2525        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2526        *     and the `parameter_id` field is set.
2527        * </pre>
2528        *
2529        * <code>
2530        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2531        * </code>
2532        */
2533       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder
addPartsBuilder()2534           addPartsBuilder() {
2535         return getPartsFieldBuilder()
2536             .addBuilder(
2537                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.getDefaultInstance());
2538       }
2539       /**
2540        *
2541        *
2542        * <pre>
2543        * Required. The ordered list of training phrase parts.
2544        * The parts are concatenated in order to form the training phrase.
2545        * Note: The API does not automatically annotate training phrases like the
2546        * Dialogflow Console does.
2547        * Note: Do not forget to include whitespace at part boundaries, so the
2548        * training phrase is well formatted when the parts are concatenated.
2549        * If the training phrase does not need to be annotated with parameters,
2550        * you just need a single part with only the
2551        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2552        * field set.
2553        * If you want to annotate the training phrase, you must create multiple
2554        * parts, where the fields of each part are populated in one of two ways:
2555        * -   `Part.text` is set to a part of the phrase that has no parameters.
2556        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2557        *     and the `parameter_id` field is set.
2558        * </pre>
2559        *
2560        * <code>
2561        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2562        * </code>
2563        */
addPartsBuilder( int index)2564       public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder addPartsBuilder(
2565           int index) {
2566         return getPartsFieldBuilder()
2567             .addBuilder(
2568                 index,
2569                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.getDefaultInstance());
2570       }
2571       /**
2572        *
2573        *
2574        * <pre>
2575        * Required. The ordered list of training phrase parts.
2576        * The parts are concatenated in order to form the training phrase.
2577        * Note: The API does not automatically annotate training phrases like the
2578        * Dialogflow Console does.
2579        * Note: Do not forget to include whitespace at part boundaries, so the
2580        * training phrase is well formatted when the parts are concatenated.
2581        * If the training phrase does not need to be annotated with parameters,
2582        * you just need a single part with only the
2583        * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text]
2584        * field set.
2585        * If you want to annotate the training phrase, you must create multiple
2586        * parts, where the fields of each part are populated in one of two ways:
2587        * -   `Part.text` is set to a part of the phrase that has no parameters.
2588        * -   `Part.text` is set to a part of the phrase that you want to annotate,
2589        *     and the `parameter_id` field is set.
2590        * </pre>
2591        *
2592        * <code>
2593        * repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];
2594        * </code>
2595        */
2596       public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder>
getPartsBuilderList()2597           getPartsBuilderList() {
2598         return getPartsFieldBuilder().getBuilderList();
2599       }
2600 
2601       private com.google.protobuf.RepeatedFieldBuilderV3<
2602               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part,
2603               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder,
2604               com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>
getPartsFieldBuilder()2605           getPartsFieldBuilder() {
2606         if (partsBuilder_ == null) {
2607           partsBuilder_ =
2608               new com.google.protobuf.RepeatedFieldBuilderV3<
2609                   com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part,
2610                   com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder,
2611                   com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>(
2612                   parts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
2613           parts_ = null;
2614         }
2615         return partsBuilder_;
2616       }
2617 
2618       private int repeatCount_;
2619       /**
2620        *
2621        *
2622        * <pre>
2623        * Indicates how many times this example was added to the intent.
2624        * </pre>
2625        *
2626        * <code>int32 repeat_count = 3;</code>
2627        *
2628        * @return The repeatCount.
2629        */
2630       @java.lang.Override
getRepeatCount()2631       public int getRepeatCount() {
2632         return repeatCount_;
2633       }
2634       /**
2635        *
2636        *
2637        * <pre>
2638        * Indicates how many times this example was added to the intent.
2639        * </pre>
2640        *
2641        * <code>int32 repeat_count = 3;</code>
2642        *
2643        * @param value The repeatCount to set.
2644        * @return This builder for chaining.
2645        */
setRepeatCount(int value)2646       public Builder setRepeatCount(int value) {
2647 
2648         repeatCount_ = value;
2649         bitField0_ |= 0x00000004;
2650         onChanged();
2651         return this;
2652       }
2653       /**
2654        *
2655        *
2656        * <pre>
2657        * Indicates how many times this example was added to the intent.
2658        * </pre>
2659        *
2660        * <code>int32 repeat_count = 3;</code>
2661        *
2662        * @return This builder for chaining.
2663        */
clearRepeatCount()2664       public Builder clearRepeatCount() {
2665         bitField0_ = (bitField0_ & ~0x00000004);
2666         repeatCount_ = 0;
2667         onChanged();
2668         return this;
2669       }
2670 
2671       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2672       public final Builder setUnknownFields(
2673           final com.google.protobuf.UnknownFieldSet unknownFields) {
2674         return super.setUnknownFields(unknownFields);
2675       }
2676 
2677       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2678       public final Builder mergeUnknownFields(
2679           final com.google.protobuf.UnknownFieldSet unknownFields) {
2680         return super.mergeUnknownFields(unknownFields);
2681       }
2682 
2683       // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase)
2684     }
2685 
2686     // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase)
2687     private static final com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase DEFAULT_INSTANCE;
2688 
2689     static {
2690       DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase();
2691     }
2692 
getDefaultInstance()2693     public static com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getDefaultInstance() {
2694       return DEFAULT_INSTANCE;
2695     }
2696 
2697     private static final com.google.protobuf.Parser<TrainingPhrase> PARSER =
2698         new com.google.protobuf.AbstractParser<TrainingPhrase>() {
2699           @java.lang.Override
2700           public TrainingPhrase parsePartialFrom(
2701               com.google.protobuf.CodedInputStream input,
2702               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2703               throws com.google.protobuf.InvalidProtocolBufferException {
2704             Builder builder = newBuilder();
2705             try {
2706               builder.mergeFrom(input, extensionRegistry);
2707             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2708               throw e.setUnfinishedMessage(builder.buildPartial());
2709             } catch (com.google.protobuf.UninitializedMessageException e) {
2710               throw e.asInvalidProtocolBufferException()
2711                   .setUnfinishedMessage(builder.buildPartial());
2712             } catch (java.io.IOException e) {
2713               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2714                   .setUnfinishedMessage(builder.buildPartial());
2715             }
2716             return builder.buildPartial();
2717           }
2718         };
2719 
parser()2720     public static com.google.protobuf.Parser<TrainingPhrase> parser() {
2721       return PARSER;
2722     }
2723 
2724     @java.lang.Override
getParserForType()2725     public com.google.protobuf.Parser<TrainingPhrase> getParserForType() {
2726       return PARSER;
2727     }
2728 
2729     @java.lang.Override
getDefaultInstanceForType()2730     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getDefaultInstanceForType() {
2731       return DEFAULT_INSTANCE;
2732     }
2733   }
2734 
2735   public interface ParameterOrBuilder
2736       extends
2737       // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.Intent.Parameter)
2738       com.google.protobuf.MessageOrBuilder {
2739 
2740     /**
2741      *
2742      *
2743      * <pre>
2744      * Required. The unique identifier of the parameter. This field
2745      * is used by [training
2746      * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
2747      * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
2748      * </pre>
2749      *
2750      * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
2751      *
2752      * @return The id.
2753      */
getId()2754     java.lang.String getId();
2755     /**
2756      *
2757      *
2758      * <pre>
2759      * Required. The unique identifier of the parameter. This field
2760      * is used by [training
2761      * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
2762      * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
2763      * </pre>
2764      *
2765      * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
2766      *
2767      * @return The bytes for id.
2768      */
getIdBytes()2769     com.google.protobuf.ByteString getIdBytes();
2770 
2771     /**
2772      *
2773      *
2774      * <pre>
2775      * Required. The entity type of the parameter.
2776      * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
2777      * ID&gt;` for system entity types (for example,
2778      * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
2779      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
2780      * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
2781      * </pre>
2782      *
2783      * <code>
2784      * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
2785      * </code>
2786      *
2787      * @return The entityType.
2788      */
getEntityType()2789     java.lang.String getEntityType();
2790     /**
2791      *
2792      *
2793      * <pre>
2794      * Required. The entity type of the parameter.
2795      * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
2796      * ID&gt;` for system entity types (for example,
2797      * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
2798      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
2799      * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
2800      * </pre>
2801      *
2802      * <code>
2803      * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
2804      * </code>
2805      *
2806      * @return The bytes for entityType.
2807      */
getEntityTypeBytes()2808     com.google.protobuf.ByteString getEntityTypeBytes();
2809 
2810     /**
2811      *
2812      *
2813      * <pre>
2814      * Indicates whether the parameter represents a list of values.
2815      * </pre>
2816      *
2817      * <code>bool is_list = 3;</code>
2818      *
2819      * @return The isList.
2820      */
getIsList()2821     boolean getIsList();
2822 
2823     /**
2824      *
2825      *
2826      * <pre>
2827      * Indicates whether the parameter content should be redacted in log. If
2828      * redaction is enabled, the parameter content will be replaced by parameter
2829      * name during logging.
2830      * Note: the parameter content is subject to redaction if either parameter
2831      * level redaction or [entity type level
2832      * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
2833      * </pre>
2834      *
2835      * <code>bool redact = 4;</code>
2836      *
2837      * @return The redact.
2838      */
getRedact()2839     boolean getRedact();
2840   }
2841   /**
2842    *
2843    *
2844    * <pre>
2845    * Represents an intent parameter.
2846    * </pre>
2847    *
2848    * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent.Parameter}
2849    */
2850   public static final class Parameter extends com.google.protobuf.GeneratedMessageV3
2851       implements
2852       // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Intent.Parameter)
2853       ParameterOrBuilder {
2854     private static final long serialVersionUID = 0L;
2855     // Use Parameter.newBuilder() to construct.
Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)2856     private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
2857       super(builder);
2858     }
2859 
Parameter()2860     private Parameter() {
2861       id_ = "";
2862       entityType_ = "";
2863     }
2864 
2865     @java.lang.Override
2866     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)2867     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
2868       return new Parameter();
2869     }
2870 
2871     @java.lang.Override
getUnknownFields()2872     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
2873       return this.unknownFields;
2874     }
2875 
getDescriptor()2876     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2877       return com.google.cloud.dialogflow.cx.v3.IntentProto
2878           .internal_static_google_cloud_dialogflow_cx_v3_Intent_Parameter_descriptor;
2879     }
2880 
2881     @java.lang.Override
2882     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2883         internalGetFieldAccessorTable() {
2884       return com.google.cloud.dialogflow.cx.v3.IntentProto
2885           .internal_static_google_cloud_dialogflow_cx_v3_Intent_Parameter_fieldAccessorTable
2886           .ensureFieldAccessorsInitialized(
2887               com.google.cloud.dialogflow.cx.v3.Intent.Parameter.class,
2888               com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder.class);
2889     }
2890 
2891     public static final int ID_FIELD_NUMBER = 1;
2892 
2893     @SuppressWarnings("serial")
2894     private volatile java.lang.Object id_ = "";
2895     /**
2896      *
2897      *
2898      * <pre>
2899      * Required. The unique identifier of the parameter. This field
2900      * is used by [training
2901      * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
2902      * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
2903      * </pre>
2904      *
2905      * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
2906      *
2907      * @return The id.
2908      */
2909     @java.lang.Override
getId()2910     public java.lang.String getId() {
2911       java.lang.Object ref = id_;
2912       if (ref instanceof java.lang.String) {
2913         return (java.lang.String) ref;
2914       } else {
2915         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2916         java.lang.String s = bs.toStringUtf8();
2917         id_ = s;
2918         return s;
2919       }
2920     }
2921     /**
2922      *
2923      *
2924      * <pre>
2925      * Required. The unique identifier of the parameter. This field
2926      * is used by [training
2927      * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
2928      * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
2929      * </pre>
2930      *
2931      * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
2932      *
2933      * @return The bytes for id.
2934      */
2935     @java.lang.Override
getIdBytes()2936     public com.google.protobuf.ByteString getIdBytes() {
2937       java.lang.Object ref = id_;
2938       if (ref instanceof java.lang.String) {
2939         com.google.protobuf.ByteString b =
2940             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2941         id_ = b;
2942         return b;
2943       } else {
2944         return (com.google.protobuf.ByteString) ref;
2945       }
2946     }
2947 
2948     public static final int ENTITY_TYPE_FIELD_NUMBER = 2;
2949 
2950     @SuppressWarnings("serial")
2951     private volatile java.lang.Object entityType_ = "";
2952     /**
2953      *
2954      *
2955      * <pre>
2956      * Required. The entity type of the parameter.
2957      * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
2958      * ID&gt;` for system entity types (for example,
2959      * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
2960      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
2961      * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
2962      * </pre>
2963      *
2964      * <code>
2965      * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
2966      * </code>
2967      *
2968      * @return The entityType.
2969      */
2970     @java.lang.Override
getEntityType()2971     public java.lang.String getEntityType() {
2972       java.lang.Object ref = entityType_;
2973       if (ref instanceof java.lang.String) {
2974         return (java.lang.String) ref;
2975       } else {
2976         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2977         java.lang.String s = bs.toStringUtf8();
2978         entityType_ = s;
2979         return s;
2980       }
2981     }
2982     /**
2983      *
2984      *
2985      * <pre>
2986      * Required. The entity type of the parameter.
2987      * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
2988      * ID&gt;` for system entity types (for example,
2989      * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
2990      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
2991      * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
2992      * </pre>
2993      *
2994      * <code>
2995      * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
2996      * </code>
2997      *
2998      * @return The bytes for entityType.
2999      */
3000     @java.lang.Override
getEntityTypeBytes()3001     public com.google.protobuf.ByteString getEntityTypeBytes() {
3002       java.lang.Object ref = entityType_;
3003       if (ref instanceof java.lang.String) {
3004         com.google.protobuf.ByteString b =
3005             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3006         entityType_ = b;
3007         return b;
3008       } else {
3009         return (com.google.protobuf.ByteString) ref;
3010       }
3011     }
3012 
3013     public static final int IS_LIST_FIELD_NUMBER = 3;
3014     private boolean isList_ = false;
3015     /**
3016      *
3017      *
3018      * <pre>
3019      * Indicates whether the parameter represents a list of values.
3020      * </pre>
3021      *
3022      * <code>bool is_list = 3;</code>
3023      *
3024      * @return The isList.
3025      */
3026     @java.lang.Override
getIsList()3027     public boolean getIsList() {
3028       return isList_;
3029     }
3030 
3031     public static final int REDACT_FIELD_NUMBER = 4;
3032     private boolean redact_ = false;
3033     /**
3034      *
3035      *
3036      * <pre>
3037      * Indicates whether the parameter content should be redacted in log. If
3038      * redaction is enabled, the parameter content will be replaced by parameter
3039      * name during logging.
3040      * Note: the parameter content is subject to redaction if either parameter
3041      * level redaction or [entity type level
3042      * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
3043      * </pre>
3044      *
3045      * <code>bool redact = 4;</code>
3046      *
3047      * @return The redact.
3048      */
3049     @java.lang.Override
getRedact()3050     public boolean getRedact() {
3051       return redact_;
3052     }
3053 
3054     private byte memoizedIsInitialized = -1;
3055 
3056     @java.lang.Override
isInitialized()3057     public final boolean isInitialized() {
3058       byte isInitialized = memoizedIsInitialized;
3059       if (isInitialized == 1) return true;
3060       if (isInitialized == 0) return false;
3061 
3062       memoizedIsInitialized = 1;
3063       return true;
3064     }
3065 
3066     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)3067     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
3068       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
3069         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
3070       }
3071       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) {
3072         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityType_);
3073       }
3074       if (isList_ != false) {
3075         output.writeBool(3, isList_);
3076       }
3077       if (redact_ != false) {
3078         output.writeBool(4, redact_);
3079       }
3080       getUnknownFields().writeTo(output);
3081     }
3082 
3083     @java.lang.Override
getSerializedSize()3084     public int getSerializedSize() {
3085       int size = memoizedSize;
3086       if (size != -1) return size;
3087 
3088       size = 0;
3089       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
3090         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
3091       }
3092       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) {
3093         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityType_);
3094       }
3095       if (isList_ != false) {
3096         size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isList_);
3097       }
3098       if (redact_ != false) {
3099         size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, redact_);
3100       }
3101       size += getUnknownFields().getSerializedSize();
3102       memoizedSize = size;
3103       return size;
3104     }
3105 
3106     @java.lang.Override
equals(final java.lang.Object obj)3107     public boolean equals(final java.lang.Object obj) {
3108       if (obj == this) {
3109         return true;
3110       }
3111       if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Intent.Parameter)) {
3112         return super.equals(obj);
3113       }
3114       com.google.cloud.dialogflow.cx.v3.Intent.Parameter other =
3115           (com.google.cloud.dialogflow.cx.v3.Intent.Parameter) obj;
3116 
3117       if (!getId().equals(other.getId())) return false;
3118       if (!getEntityType().equals(other.getEntityType())) return false;
3119       if (getIsList() != other.getIsList()) return false;
3120       if (getRedact() != other.getRedact()) return false;
3121       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3122       return true;
3123     }
3124 
3125     @java.lang.Override
hashCode()3126     public int hashCode() {
3127       if (memoizedHashCode != 0) {
3128         return memoizedHashCode;
3129       }
3130       int hash = 41;
3131       hash = (19 * hash) + getDescriptor().hashCode();
3132       hash = (37 * hash) + ID_FIELD_NUMBER;
3133       hash = (53 * hash) + getId().hashCode();
3134       hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER;
3135       hash = (53 * hash) + getEntityType().hashCode();
3136       hash = (37 * hash) + IS_LIST_FIELD_NUMBER;
3137       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsList());
3138       hash = (37 * hash) + REDACT_FIELD_NUMBER;
3139       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRedact());
3140       hash = (29 * hash) + getUnknownFields().hashCode();
3141       memoizedHashCode = hash;
3142       return hash;
3143     }
3144 
parseFrom( java.nio.ByteBuffer data)3145     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3146         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
3147       return PARSER.parseFrom(data);
3148     }
3149 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3150     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3151         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3152         throws com.google.protobuf.InvalidProtocolBufferException {
3153       return PARSER.parseFrom(data, extensionRegistry);
3154     }
3155 
parseFrom( com.google.protobuf.ByteString data)3156     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3157         com.google.protobuf.ByteString data)
3158         throws com.google.protobuf.InvalidProtocolBufferException {
3159       return PARSER.parseFrom(data);
3160     }
3161 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3162     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3163         com.google.protobuf.ByteString data,
3164         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3165         throws com.google.protobuf.InvalidProtocolBufferException {
3166       return PARSER.parseFrom(data, extensionRegistry);
3167     }
3168 
parseFrom(byte[] data)3169     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(byte[] data)
3170         throws com.google.protobuf.InvalidProtocolBufferException {
3171       return PARSER.parseFrom(data);
3172     }
3173 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3174     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3175         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3176         throws com.google.protobuf.InvalidProtocolBufferException {
3177       return PARSER.parseFrom(data, extensionRegistry);
3178     }
3179 
parseFrom( java.io.InputStream input)3180     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3181         java.io.InputStream input) throws java.io.IOException {
3182       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3183     }
3184 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3185     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3186         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3187         throws java.io.IOException {
3188       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3189           PARSER, input, extensionRegistry);
3190     }
3191 
parseDelimitedFrom( java.io.InputStream input)3192     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseDelimitedFrom(
3193         java.io.InputStream input) throws java.io.IOException {
3194       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3195     }
3196 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3197     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseDelimitedFrom(
3198         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3199         throws java.io.IOException {
3200       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
3201           PARSER, input, extensionRegistry);
3202     }
3203 
parseFrom( com.google.protobuf.CodedInputStream input)3204     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3205         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
3206       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3207     }
3208 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3209     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter parseFrom(
3210         com.google.protobuf.CodedInputStream input,
3211         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3212         throws java.io.IOException {
3213       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3214           PARSER, input, extensionRegistry);
3215     }
3216 
3217     @java.lang.Override
newBuilderForType()3218     public Builder newBuilderForType() {
3219       return newBuilder();
3220     }
3221 
newBuilder()3222     public static Builder newBuilder() {
3223       return DEFAULT_INSTANCE.toBuilder();
3224     }
3225 
newBuilder(com.google.cloud.dialogflow.cx.v3.Intent.Parameter prototype)3226     public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.Intent.Parameter prototype) {
3227       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3228     }
3229 
3230     @java.lang.Override
toBuilder()3231     public Builder toBuilder() {
3232       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3233     }
3234 
3235     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3236     protected Builder newBuilderForType(
3237         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3238       Builder builder = new Builder(parent);
3239       return builder;
3240     }
3241     /**
3242      *
3243      *
3244      * <pre>
3245      * Represents an intent parameter.
3246      * </pre>
3247      *
3248      * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent.Parameter}
3249      */
3250     public static final class Builder
3251         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
3252         implements
3253         // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Intent.Parameter)
3254         com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder {
getDescriptor()3255       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3256         return com.google.cloud.dialogflow.cx.v3.IntentProto
3257             .internal_static_google_cloud_dialogflow_cx_v3_Intent_Parameter_descriptor;
3258       }
3259 
3260       @java.lang.Override
3261       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3262           internalGetFieldAccessorTable() {
3263         return com.google.cloud.dialogflow.cx.v3.IntentProto
3264             .internal_static_google_cloud_dialogflow_cx_v3_Intent_Parameter_fieldAccessorTable
3265             .ensureFieldAccessorsInitialized(
3266                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter.class,
3267                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder.class);
3268       }
3269 
3270       // Construct using com.google.cloud.dialogflow.cx.v3.Intent.Parameter.newBuilder()
Builder()3271       private Builder() {}
3272 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3273       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3274         super(parent);
3275       }
3276 
3277       @java.lang.Override
clear()3278       public Builder clear() {
3279         super.clear();
3280         bitField0_ = 0;
3281         id_ = "";
3282         entityType_ = "";
3283         isList_ = false;
3284         redact_ = false;
3285         return this;
3286       }
3287 
3288       @java.lang.Override
getDescriptorForType()3289       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
3290         return com.google.cloud.dialogflow.cx.v3.IntentProto
3291             .internal_static_google_cloud_dialogflow_cx_v3_Intent_Parameter_descriptor;
3292       }
3293 
3294       @java.lang.Override
getDefaultInstanceForType()3295       public com.google.cloud.dialogflow.cx.v3.Intent.Parameter getDefaultInstanceForType() {
3296         return com.google.cloud.dialogflow.cx.v3.Intent.Parameter.getDefaultInstance();
3297       }
3298 
3299       @java.lang.Override
build()3300       public com.google.cloud.dialogflow.cx.v3.Intent.Parameter build() {
3301         com.google.cloud.dialogflow.cx.v3.Intent.Parameter result = buildPartial();
3302         if (!result.isInitialized()) {
3303           throw newUninitializedMessageException(result);
3304         }
3305         return result;
3306       }
3307 
3308       @java.lang.Override
buildPartial()3309       public com.google.cloud.dialogflow.cx.v3.Intent.Parameter buildPartial() {
3310         com.google.cloud.dialogflow.cx.v3.Intent.Parameter result =
3311             new com.google.cloud.dialogflow.cx.v3.Intent.Parameter(this);
3312         if (bitField0_ != 0) {
3313           buildPartial0(result);
3314         }
3315         onBuilt();
3316         return result;
3317       }
3318 
buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.Parameter result)3319       private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.Parameter result) {
3320         int from_bitField0_ = bitField0_;
3321         if (((from_bitField0_ & 0x00000001) != 0)) {
3322           result.id_ = id_;
3323         }
3324         if (((from_bitField0_ & 0x00000002) != 0)) {
3325           result.entityType_ = entityType_;
3326         }
3327         if (((from_bitField0_ & 0x00000004) != 0)) {
3328           result.isList_ = isList_;
3329         }
3330         if (((from_bitField0_ & 0x00000008) != 0)) {
3331           result.redact_ = redact_;
3332         }
3333       }
3334 
3335       @java.lang.Override
clone()3336       public Builder clone() {
3337         return super.clone();
3338       }
3339 
3340       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3341       public Builder setField(
3342           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3343         return super.setField(field, value);
3344       }
3345 
3346       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3347       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
3348         return super.clearField(field);
3349       }
3350 
3351       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3352       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3353         return super.clearOneof(oneof);
3354       }
3355 
3356       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3357       public Builder setRepeatedField(
3358           com.google.protobuf.Descriptors.FieldDescriptor field,
3359           int index,
3360           java.lang.Object value) {
3361         return super.setRepeatedField(field, index, value);
3362       }
3363 
3364       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3365       public Builder addRepeatedField(
3366           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3367         return super.addRepeatedField(field, value);
3368       }
3369 
3370       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)3371       public Builder mergeFrom(com.google.protobuf.Message other) {
3372         if (other instanceof com.google.cloud.dialogflow.cx.v3.Intent.Parameter) {
3373           return mergeFrom((com.google.cloud.dialogflow.cx.v3.Intent.Parameter) other);
3374         } else {
3375           super.mergeFrom(other);
3376           return this;
3377         }
3378       }
3379 
mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.Parameter other)3380       public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.Parameter other) {
3381         if (other == com.google.cloud.dialogflow.cx.v3.Intent.Parameter.getDefaultInstance())
3382           return this;
3383         if (!other.getId().isEmpty()) {
3384           id_ = other.id_;
3385           bitField0_ |= 0x00000001;
3386           onChanged();
3387         }
3388         if (!other.getEntityType().isEmpty()) {
3389           entityType_ = other.entityType_;
3390           bitField0_ |= 0x00000002;
3391           onChanged();
3392         }
3393         if (other.getIsList() != false) {
3394           setIsList(other.getIsList());
3395         }
3396         if (other.getRedact() != false) {
3397           setRedact(other.getRedact());
3398         }
3399         this.mergeUnknownFields(other.getUnknownFields());
3400         onChanged();
3401         return this;
3402       }
3403 
3404       @java.lang.Override
isInitialized()3405       public final boolean isInitialized() {
3406         return true;
3407       }
3408 
3409       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3410       public Builder mergeFrom(
3411           com.google.protobuf.CodedInputStream input,
3412           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3413           throws java.io.IOException {
3414         if (extensionRegistry == null) {
3415           throw new java.lang.NullPointerException();
3416         }
3417         try {
3418           boolean done = false;
3419           while (!done) {
3420             int tag = input.readTag();
3421             switch (tag) {
3422               case 0:
3423                 done = true;
3424                 break;
3425               case 10:
3426                 {
3427                   id_ = input.readStringRequireUtf8();
3428                   bitField0_ |= 0x00000001;
3429                   break;
3430                 } // case 10
3431               case 18:
3432                 {
3433                   entityType_ = input.readStringRequireUtf8();
3434                   bitField0_ |= 0x00000002;
3435                   break;
3436                 } // case 18
3437               case 24:
3438                 {
3439                   isList_ = input.readBool();
3440                   bitField0_ |= 0x00000004;
3441                   break;
3442                 } // case 24
3443               case 32:
3444                 {
3445                   redact_ = input.readBool();
3446                   bitField0_ |= 0x00000008;
3447                   break;
3448                 } // case 32
3449               default:
3450                 {
3451                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3452                     done = true; // was an endgroup tag
3453                   }
3454                   break;
3455                 } // default:
3456             } // switch (tag)
3457           } // while (!done)
3458         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3459           throw e.unwrapIOException();
3460         } finally {
3461           onChanged();
3462         } // finally
3463         return this;
3464       }
3465 
3466       private int bitField0_;
3467 
3468       private java.lang.Object id_ = "";
3469       /**
3470        *
3471        *
3472        * <pre>
3473        * Required. The unique identifier of the parameter. This field
3474        * is used by [training
3475        * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
3476        * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
3477        * </pre>
3478        *
3479        * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
3480        *
3481        * @return The id.
3482        */
getId()3483       public java.lang.String getId() {
3484         java.lang.Object ref = id_;
3485         if (!(ref instanceof java.lang.String)) {
3486           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3487           java.lang.String s = bs.toStringUtf8();
3488           id_ = s;
3489           return s;
3490         } else {
3491           return (java.lang.String) ref;
3492         }
3493       }
3494       /**
3495        *
3496        *
3497        * <pre>
3498        * Required. The unique identifier of the parameter. This field
3499        * is used by [training
3500        * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
3501        * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
3502        * </pre>
3503        *
3504        * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
3505        *
3506        * @return The bytes for id.
3507        */
getIdBytes()3508       public com.google.protobuf.ByteString getIdBytes() {
3509         java.lang.Object ref = id_;
3510         if (ref instanceof String) {
3511           com.google.protobuf.ByteString b =
3512               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3513           id_ = b;
3514           return b;
3515         } else {
3516           return (com.google.protobuf.ByteString) ref;
3517         }
3518       }
3519       /**
3520        *
3521        *
3522        * <pre>
3523        * Required. The unique identifier of the parameter. This field
3524        * is used by [training
3525        * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
3526        * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
3527        * </pre>
3528        *
3529        * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
3530        *
3531        * @param value The id to set.
3532        * @return This builder for chaining.
3533        */
setId(java.lang.String value)3534       public Builder setId(java.lang.String value) {
3535         if (value == null) {
3536           throw new NullPointerException();
3537         }
3538         id_ = value;
3539         bitField0_ |= 0x00000001;
3540         onChanged();
3541         return this;
3542       }
3543       /**
3544        *
3545        *
3546        * <pre>
3547        * Required. The unique identifier of the parameter. This field
3548        * is used by [training
3549        * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
3550        * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
3551        * </pre>
3552        *
3553        * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
3554        *
3555        * @return This builder for chaining.
3556        */
clearId()3557       public Builder clearId() {
3558         id_ = getDefaultInstance().getId();
3559         bitField0_ = (bitField0_ & ~0x00000001);
3560         onChanged();
3561         return this;
3562       }
3563       /**
3564        *
3565        *
3566        * <pre>
3567        * Required. The unique identifier of the parameter. This field
3568        * is used by [training
3569        * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
3570        * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
3571        * </pre>
3572        *
3573        * <code>string id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
3574        *
3575        * @param value The bytes for id to set.
3576        * @return This builder for chaining.
3577        */
setIdBytes(com.google.protobuf.ByteString value)3578       public Builder setIdBytes(com.google.protobuf.ByteString value) {
3579         if (value == null) {
3580           throw new NullPointerException();
3581         }
3582         checkByteStringIsUtf8(value);
3583         id_ = value;
3584         bitField0_ |= 0x00000001;
3585         onChanged();
3586         return this;
3587       }
3588 
3589       private java.lang.Object entityType_ = "";
3590       /**
3591        *
3592        *
3593        * <pre>
3594        * Required. The entity type of the parameter.
3595        * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
3596        * ID&gt;` for system entity types (for example,
3597        * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
3598        * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3599        * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
3600        * </pre>
3601        *
3602        * <code>
3603        * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
3604        * </code>
3605        *
3606        * @return The entityType.
3607        */
getEntityType()3608       public java.lang.String getEntityType() {
3609         java.lang.Object ref = entityType_;
3610         if (!(ref instanceof java.lang.String)) {
3611           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3612           java.lang.String s = bs.toStringUtf8();
3613           entityType_ = s;
3614           return s;
3615         } else {
3616           return (java.lang.String) ref;
3617         }
3618       }
3619       /**
3620        *
3621        *
3622        * <pre>
3623        * Required. The entity type of the parameter.
3624        * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
3625        * ID&gt;` for system entity types (for example,
3626        * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
3627        * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3628        * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
3629        * </pre>
3630        *
3631        * <code>
3632        * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
3633        * </code>
3634        *
3635        * @return The bytes for entityType.
3636        */
getEntityTypeBytes()3637       public com.google.protobuf.ByteString getEntityTypeBytes() {
3638         java.lang.Object ref = entityType_;
3639         if (ref instanceof String) {
3640           com.google.protobuf.ByteString b =
3641               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3642           entityType_ = b;
3643           return b;
3644         } else {
3645           return (com.google.protobuf.ByteString) ref;
3646         }
3647       }
3648       /**
3649        *
3650        *
3651        * <pre>
3652        * Required. The entity type of the parameter.
3653        * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
3654        * ID&gt;` for system entity types (for example,
3655        * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
3656        * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3657        * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
3658        * </pre>
3659        *
3660        * <code>
3661        * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
3662        * </code>
3663        *
3664        * @param value The entityType to set.
3665        * @return This builder for chaining.
3666        */
setEntityType(java.lang.String value)3667       public Builder setEntityType(java.lang.String value) {
3668         if (value == null) {
3669           throw new NullPointerException();
3670         }
3671         entityType_ = value;
3672         bitField0_ |= 0x00000002;
3673         onChanged();
3674         return this;
3675       }
3676       /**
3677        *
3678        *
3679        * <pre>
3680        * Required. The entity type of the parameter.
3681        * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
3682        * ID&gt;` for system entity types (for example,
3683        * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
3684        * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3685        * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
3686        * </pre>
3687        *
3688        * <code>
3689        * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
3690        * </code>
3691        *
3692        * @return This builder for chaining.
3693        */
clearEntityType()3694       public Builder clearEntityType() {
3695         entityType_ = getDefaultInstance().getEntityType();
3696         bitField0_ = (bitField0_ & ~0x00000002);
3697         onChanged();
3698         return this;
3699       }
3700       /**
3701        *
3702        *
3703        * <pre>
3704        * Required. The entity type of the parameter.
3705        * Format: `projects/-/locations/-/agents/-/entityTypes/&lt;System Entity Type
3706        * ID&gt;` for system entity types (for example,
3707        * `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
3708        * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3709        * ID&gt;/entityTypes/&lt;Entity Type ID&gt;` for developer entity types.
3710        * </pre>
3711        *
3712        * <code>
3713        * string entity_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
3714        * </code>
3715        *
3716        * @param value The bytes for entityType to set.
3717        * @return This builder for chaining.
3718        */
setEntityTypeBytes(com.google.protobuf.ByteString value)3719       public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) {
3720         if (value == null) {
3721           throw new NullPointerException();
3722         }
3723         checkByteStringIsUtf8(value);
3724         entityType_ = value;
3725         bitField0_ |= 0x00000002;
3726         onChanged();
3727         return this;
3728       }
3729 
3730       private boolean isList_;
3731       /**
3732        *
3733        *
3734        * <pre>
3735        * Indicates whether the parameter represents a list of values.
3736        * </pre>
3737        *
3738        * <code>bool is_list = 3;</code>
3739        *
3740        * @return The isList.
3741        */
3742       @java.lang.Override
getIsList()3743       public boolean getIsList() {
3744         return isList_;
3745       }
3746       /**
3747        *
3748        *
3749        * <pre>
3750        * Indicates whether the parameter represents a list of values.
3751        * </pre>
3752        *
3753        * <code>bool is_list = 3;</code>
3754        *
3755        * @param value The isList to set.
3756        * @return This builder for chaining.
3757        */
setIsList(boolean value)3758       public Builder setIsList(boolean value) {
3759 
3760         isList_ = value;
3761         bitField0_ |= 0x00000004;
3762         onChanged();
3763         return this;
3764       }
3765       /**
3766        *
3767        *
3768        * <pre>
3769        * Indicates whether the parameter represents a list of values.
3770        * </pre>
3771        *
3772        * <code>bool is_list = 3;</code>
3773        *
3774        * @return This builder for chaining.
3775        */
clearIsList()3776       public Builder clearIsList() {
3777         bitField0_ = (bitField0_ & ~0x00000004);
3778         isList_ = false;
3779         onChanged();
3780         return this;
3781       }
3782 
3783       private boolean redact_;
3784       /**
3785        *
3786        *
3787        * <pre>
3788        * Indicates whether the parameter content should be redacted in log. If
3789        * redaction is enabled, the parameter content will be replaced by parameter
3790        * name during logging.
3791        * Note: the parameter content is subject to redaction if either parameter
3792        * level redaction or [entity type level
3793        * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
3794        * </pre>
3795        *
3796        * <code>bool redact = 4;</code>
3797        *
3798        * @return The redact.
3799        */
3800       @java.lang.Override
getRedact()3801       public boolean getRedact() {
3802         return redact_;
3803       }
3804       /**
3805        *
3806        *
3807        * <pre>
3808        * Indicates whether the parameter content should be redacted in log. If
3809        * redaction is enabled, the parameter content will be replaced by parameter
3810        * name during logging.
3811        * Note: the parameter content is subject to redaction if either parameter
3812        * level redaction or [entity type level
3813        * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
3814        * </pre>
3815        *
3816        * <code>bool redact = 4;</code>
3817        *
3818        * @param value The redact to set.
3819        * @return This builder for chaining.
3820        */
setRedact(boolean value)3821       public Builder setRedact(boolean value) {
3822 
3823         redact_ = value;
3824         bitField0_ |= 0x00000008;
3825         onChanged();
3826         return this;
3827       }
3828       /**
3829        *
3830        *
3831        * <pre>
3832        * Indicates whether the parameter content should be redacted in log. If
3833        * redaction is enabled, the parameter content will be replaced by parameter
3834        * name during logging.
3835        * Note: the parameter content is subject to redaction if either parameter
3836        * level redaction or [entity type level
3837        * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled.
3838        * </pre>
3839        *
3840        * <code>bool redact = 4;</code>
3841        *
3842        * @return This builder for chaining.
3843        */
clearRedact()3844       public Builder clearRedact() {
3845         bitField0_ = (bitField0_ & ~0x00000008);
3846         redact_ = false;
3847         onChanged();
3848         return this;
3849       }
3850 
3851       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3852       public final Builder setUnknownFields(
3853           final com.google.protobuf.UnknownFieldSet unknownFields) {
3854         return super.setUnknownFields(unknownFields);
3855       }
3856 
3857       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3858       public final Builder mergeUnknownFields(
3859           final com.google.protobuf.UnknownFieldSet unknownFields) {
3860         return super.mergeUnknownFields(unknownFields);
3861       }
3862 
3863       // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Intent.Parameter)
3864     }
3865 
3866     // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Intent.Parameter)
3867     private static final com.google.cloud.dialogflow.cx.v3.Intent.Parameter DEFAULT_INSTANCE;
3868 
3869     static {
3870       DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Intent.Parameter();
3871     }
3872 
getDefaultInstance()3873     public static com.google.cloud.dialogflow.cx.v3.Intent.Parameter getDefaultInstance() {
3874       return DEFAULT_INSTANCE;
3875     }
3876 
3877     private static final com.google.protobuf.Parser<Parameter> PARSER =
3878         new com.google.protobuf.AbstractParser<Parameter>() {
3879           @java.lang.Override
3880           public Parameter parsePartialFrom(
3881               com.google.protobuf.CodedInputStream input,
3882               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3883               throws com.google.protobuf.InvalidProtocolBufferException {
3884             Builder builder = newBuilder();
3885             try {
3886               builder.mergeFrom(input, extensionRegistry);
3887             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3888               throw e.setUnfinishedMessage(builder.buildPartial());
3889             } catch (com.google.protobuf.UninitializedMessageException e) {
3890               throw e.asInvalidProtocolBufferException()
3891                   .setUnfinishedMessage(builder.buildPartial());
3892             } catch (java.io.IOException e) {
3893               throw new com.google.protobuf.InvalidProtocolBufferException(e)
3894                   .setUnfinishedMessage(builder.buildPartial());
3895             }
3896             return builder.buildPartial();
3897           }
3898         };
3899 
parser()3900     public static com.google.protobuf.Parser<Parameter> parser() {
3901       return PARSER;
3902     }
3903 
3904     @java.lang.Override
getParserForType()3905     public com.google.protobuf.Parser<Parameter> getParserForType() {
3906       return PARSER;
3907     }
3908 
3909     @java.lang.Override
getDefaultInstanceForType()3910     public com.google.cloud.dialogflow.cx.v3.Intent.Parameter getDefaultInstanceForType() {
3911       return DEFAULT_INSTANCE;
3912     }
3913   }
3914 
3915   public static final int NAME_FIELD_NUMBER = 1;
3916 
3917   @SuppressWarnings("serial")
3918   private volatile java.lang.Object name_ = "";
3919   /**
3920    *
3921    *
3922    * <pre>
3923    * The unique identifier of the intent.
3924    * Required for the
3925    * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
3926    * method.
3927    * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
3928    * populates the name automatically.
3929    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3930    * ID&gt;/intents/&lt;Intent ID&gt;`.
3931    * </pre>
3932    *
3933    * <code>string name = 1;</code>
3934    *
3935    * @return The name.
3936    */
3937   @java.lang.Override
getName()3938   public java.lang.String getName() {
3939     java.lang.Object ref = name_;
3940     if (ref instanceof java.lang.String) {
3941       return (java.lang.String) ref;
3942     } else {
3943       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3944       java.lang.String s = bs.toStringUtf8();
3945       name_ = s;
3946       return s;
3947     }
3948   }
3949   /**
3950    *
3951    *
3952    * <pre>
3953    * The unique identifier of the intent.
3954    * Required for the
3955    * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
3956    * method.
3957    * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
3958    * populates the name automatically.
3959    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
3960    * ID&gt;/intents/&lt;Intent ID&gt;`.
3961    * </pre>
3962    *
3963    * <code>string name = 1;</code>
3964    *
3965    * @return The bytes for name.
3966    */
3967   @java.lang.Override
getNameBytes()3968   public com.google.protobuf.ByteString getNameBytes() {
3969     java.lang.Object ref = name_;
3970     if (ref instanceof java.lang.String) {
3971       com.google.protobuf.ByteString b =
3972           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3973       name_ = b;
3974       return b;
3975     } else {
3976       return (com.google.protobuf.ByteString) ref;
3977     }
3978   }
3979 
3980   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
3981 
3982   @SuppressWarnings("serial")
3983   private volatile java.lang.Object displayName_ = "";
3984   /**
3985    *
3986    *
3987    * <pre>
3988    * Required. The human-readable name of the intent, unique within the agent.
3989    * </pre>
3990    *
3991    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
3992    *
3993    * @return The displayName.
3994    */
3995   @java.lang.Override
getDisplayName()3996   public java.lang.String getDisplayName() {
3997     java.lang.Object ref = displayName_;
3998     if (ref instanceof java.lang.String) {
3999       return (java.lang.String) ref;
4000     } else {
4001       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4002       java.lang.String s = bs.toStringUtf8();
4003       displayName_ = s;
4004       return s;
4005     }
4006   }
4007   /**
4008    *
4009    *
4010    * <pre>
4011    * Required. The human-readable name of the intent, unique within the agent.
4012    * </pre>
4013    *
4014    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
4015    *
4016    * @return The bytes for displayName.
4017    */
4018   @java.lang.Override
getDisplayNameBytes()4019   public com.google.protobuf.ByteString getDisplayNameBytes() {
4020     java.lang.Object ref = displayName_;
4021     if (ref instanceof java.lang.String) {
4022       com.google.protobuf.ByteString b =
4023           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4024       displayName_ = b;
4025       return b;
4026     } else {
4027       return (com.google.protobuf.ByteString) ref;
4028     }
4029   }
4030 
4031   public static final int TRAINING_PHRASES_FIELD_NUMBER = 3;
4032 
4033   @SuppressWarnings("serial")
4034   private java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase> trainingPhrases_;
4035   /**
4036    *
4037    *
4038    * <pre>
4039    * The collection of training phrases the agent is trained on to identify the
4040    * intent.
4041    * </pre>
4042    *
4043    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
4044    * </code>
4045    */
4046   @java.lang.Override
4047   public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase>
getTrainingPhrasesList()4048       getTrainingPhrasesList() {
4049     return trainingPhrases_;
4050   }
4051   /**
4052    *
4053    *
4054    * <pre>
4055    * The collection of training phrases the agent is trained on to identify the
4056    * intent.
4057    * </pre>
4058    *
4059    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
4060    * </code>
4061    */
4062   @java.lang.Override
4063   public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>
getTrainingPhrasesOrBuilderList()4064       getTrainingPhrasesOrBuilderList() {
4065     return trainingPhrases_;
4066   }
4067   /**
4068    *
4069    *
4070    * <pre>
4071    * The collection of training phrases the agent is trained on to identify the
4072    * intent.
4073    * </pre>
4074    *
4075    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
4076    * </code>
4077    */
4078   @java.lang.Override
getTrainingPhrasesCount()4079   public int getTrainingPhrasesCount() {
4080     return trainingPhrases_.size();
4081   }
4082   /**
4083    *
4084    *
4085    * <pre>
4086    * The collection of training phrases the agent is trained on to identify the
4087    * intent.
4088    * </pre>
4089    *
4090    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
4091    * </code>
4092    */
4093   @java.lang.Override
getTrainingPhrases(int index)4094   public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getTrainingPhrases(int index) {
4095     return trainingPhrases_.get(index);
4096   }
4097   /**
4098    *
4099    *
4100    * <pre>
4101    * The collection of training phrases the agent is trained on to identify the
4102    * intent.
4103    * </pre>
4104    *
4105    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
4106    * </code>
4107    */
4108   @java.lang.Override
4109   public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder
getTrainingPhrasesOrBuilder(int index)4110       getTrainingPhrasesOrBuilder(int index) {
4111     return trainingPhrases_.get(index);
4112   }
4113 
4114   public static final int PARAMETERS_FIELD_NUMBER = 4;
4115 
4116   @SuppressWarnings("serial")
4117   private java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.Parameter> parameters_;
4118   /**
4119    *
4120    *
4121    * <pre>
4122    * The collection of parameters associated with the intent.
4123    * </pre>
4124    *
4125    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
4126    */
4127   @java.lang.Override
getParametersList()4128   public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.Parameter> getParametersList() {
4129     return parameters_;
4130   }
4131   /**
4132    *
4133    *
4134    * <pre>
4135    * The collection of parameters associated with the intent.
4136    * </pre>
4137    *
4138    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
4139    */
4140   @java.lang.Override
4141   public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>
getParametersOrBuilderList()4142       getParametersOrBuilderList() {
4143     return parameters_;
4144   }
4145   /**
4146    *
4147    *
4148    * <pre>
4149    * The collection of parameters associated with the intent.
4150    * </pre>
4151    *
4152    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
4153    */
4154   @java.lang.Override
getParametersCount()4155   public int getParametersCount() {
4156     return parameters_.size();
4157   }
4158   /**
4159    *
4160    *
4161    * <pre>
4162    * The collection of parameters associated with the intent.
4163    * </pre>
4164    *
4165    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
4166    */
4167   @java.lang.Override
getParameters(int index)4168   public com.google.cloud.dialogflow.cx.v3.Intent.Parameter getParameters(int index) {
4169     return parameters_.get(index);
4170   }
4171   /**
4172    *
4173    *
4174    * <pre>
4175    * The collection of parameters associated with the intent.
4176    * </pre>
4177    *
4178    * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
4179    */
4180   @java.lang.Override
getParametersOrBuilder( int index)4181   public com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder getParametersOrBuilder(
4182       int index) {
4183     return parameters_.get(index);
4184   }
4185 
4186   public static final int PRIORITY_FIELD_NUMBER = 5;
4187   private int priority_ = 0;
4188   /**
4189    *
4190    *
4191    * <pre>
4192    * The priority of this intent. Higher numbers represent higher
4193    * priorities.
4194    * - If the supplied value is unspecified or 0, the service
4195    *   translates the value to 500,000, which corresponds to the
4196    *   `Normal` priority in the console.
4197    * - If the supplied value is negative, the intent is ignored
4198    *   in runtime detect intent requests.
4199    * </pre>
4200    *
4201    * <code>int32 priority = 5;</code>
4202    *
4203    * @return The priority.
4204    */
4205   @java.lang.Override
getPriority()4206   public int getPriority() {
4207     return priority_;
4208   }
4209 
4210   public static final int IS_FALLBACK_FIELD_NUMBER = 6;
4211   private boolean isFallback_ = false;
4212   /**
4213    *
4214    *
4215    * <pre>
4216    * Indicates whether this is a fallback intent. Currently only default
4217    * fallback intent is allowed in the agent, which is added upon agent
4218    * creation.
4219    * Adding training phrases to fallback intent is useful in the case of
4220    * requests that are mistakenly matched, since training phrases assigned to
4221    * fallback intents act as negative examples that triggers no-match event.
4222    * </pre>
4223    *
4224    * <code>bool is_fallback = 6;</code>
4225    *
4226    * @return The isFallback.
4227    */
4228   @java.lang.Override
getIsFallback()4229   public boolean getIsFallback() {
4230     return isFallback_;
4231   }
4232 
4233   public static final int LABELS_FIELD_NUMBER = 7;
4234 
4235   private static final class LabelsDefaultEntryHolder {
4236     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
4237         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
4238             com.google.cloud.dialogflow.cx.v3.IntentProto
4239                 .internal_static_google_cloud_dialogflow_cx_v3_Intent_LabelsEntry_descriptor,
4240             com.google.protobuf.WireFormat.FieldType.STRING,
4241             "",
4242             com.google.protobuf.WireFormat.FieldType.STRING,
4243             "");
4244   }
4245 
4246   @SuppressWarnings("serial")
4247   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
4248 
internalGetLabels()4249   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
4250     if (labels_ == null) {
4251       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
4252     }
4253     return labels_;
4254   }
4255 
getLabelsCount()4256   public int getLabelsCount() {
4257     return internalGetLabels().getMap().size();
4258   }
4259   /**
4260    *
4261    *
4262    * <pre>
4263    * The key/value metadata to label an intent. Labels can contain
4264    * lowercase letters, digits and the symbols '-' and '_'. International
4265    * characters are allowed, including letters from unicase alphabets. Keys must
4266    * start with a letter. Keys and values can be no longer than 63 characters
4267    * and no more than 128 bytes.
4268    * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
4269    * Dialogflow defined labels include:
4270    * * sys-head
4271    * * sys-contextual
4272    * The above labels do not require value. "sys-head" means the intent is a
4273    * head intent. "sys.contextual" means the intent is a contextual intent.
4274    * </pre>
4275    *
4276    * <code>map&lt;string, string&gt; labels = 7;</code>
4277    */
4278   @java.lang.Override
containsLabels(java.lang.String key)4279   public boolean containsLabels(java.lang.String key) {
4280     if (key == null) {
4281       throw new NullPointerException("map key");
4282     }
4283     return internalGetLabels().getMap().containsKey(key);
4284   }
4285   /** Use {@link #getLabelsMap()} instead. */
4286   @java.lang.Override
4287   @java.lang.Deprecated
getLabels()4288   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
4289     return getLabelsMap();
4290   }
4291   /**
4292    *
4293    *
4294    * <pre>
4295    * The key/value metadata to label an intent. Labels can contain
4296    * lowercase letters, digits and the symbols '-' and '_'. International
4297    * characters are allowed, including letters from unicase alphabets. Keys must
4298    * start with a letter. Keys and values can be no longer than 63 characters
4299    * and no more than 128 bytes.
4300    * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
4301    * Dialogflow defined labels include:
4302    * * sys-head
4303    * * sys-contextual
4304    * The above labels do not require value. "sys-head" means the intent is a
4305    * head intent. "sys.contextual" means the intent is a contextual intent.
4306    * </pre>
4307    *
4308    * <code>map&lt;string, string&gt; labels = 7;</code>
4309    */
4310   @java.lang.Override
getLabelsMap()4311   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
4312     return internalGetLabels().getMap();
4313   }
4314   /**
4315    *
4316    *
4317    * <pre>
4318    * The key/value metadata to label an intent. Labels can contain
4319    * lowercase letters, digits and the symbols '-' and '_'. International
4320    * characters are allowed, including letters from unicase alphabets. Keys must
4321    * start with a letter. Keys and values can be no longer than 63 characters
4322    * and no more than 128 bytes.
4323    * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
4324    * Dialogflow defined labels include:
4325    * * sys-head
4326    * * sys-contextual
4327    * The above labels do not require value. "sys-head" means the intent is a
4328    * head intent. "sys.contextual" means the intent is a contextual intent.
4329    * </pre>
4330    *
4331    * <code>map&lt;string, string&gt; labels = 7;</code>
4332    */
4333   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)4334   public /* nullable */ java.lang.String getLabelsOrDefault(
4335       java.lang.String key,
4336       /* nullable */
4337       java.lang.String defaultValue) {
4338     if (key == null) {
4339       throw new NullPointerException("map key");
4340     }
4341     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
4342     return map.containsKey(key) ? map.get(key) : defaultValue;
4343   }
4344   /**
4345    *
4346    *
4347    * <pre>
4348    * The key/value metadata to label an intent. Labels can contain
4349    * lowercase letters, digits and the symbols '-' and '_'. International
4350    * characters are allowed, including letters from unicase alphabets. Keys must
4351    * start with a letter. Keys and values can be no longer than 63 characters
4352    * and no more than 128 bytes.
4353    * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
4354    * Dialogflow defined labels include:
4355    * * sys-head
4356    * * sys-contextual
4357    * The above labels do not require value. "sys-head" means the intent is a
4358    * head intent. "sys.contextual" means the intent is a contextual intent.
4359    * </pre>
4360    *
4361    * <code>map&lt;string, string&gt; labels = 7;</code>
4362    */
4363   @java.lang.Override
getLabelsOrThrow(java.lang.String key)4364   public java.lang.String getLabelsOrThrow(java.lang.String key) {
4365     if (key == null) {
4366       throw new NullPointerException("map key");
4367     }
4368     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
4369     if (!map.containsKey(key)) {
4370       throw new java.lang.IllegalArgumentException();
4371     }
4372     return map.get(key);
4373   }
4374 
4375   public static final int DESCRIPTION_FIELD_NUMBER = 8;
4376 
4377   @SuppressWarnings("serial")
4378   private volatile java.lang.Object description_ = "";
4379   /**
4380    *
4381    *
4382    * <pre>
4383    * Human readable description for better understanding an intent like its
4384    * scope, content, result etc. Maximum character limit: 140 characters.
4385    * </pre>
4386    *
4387    * <code>string description = 8;</code>
4388    *
4389    * @return The description.
4390    */
4391   @java.lang.Override
getDescription()4392   public java.lang.String getDescription() {
4393     java.lang.Object ref = description_;
4394     if (ref instanceof java.lang.String) {
4395       return (java.lang.String) ref;
4396     } else {
4397       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4398       java.lang.String s = bs.toStringUtf8();
4399       description_ = s;
4400       return s;
4401     }
4402   }
4403   /**
4404    *
4405    *
4406    * <pre>
4407    * Human readable description for better understanding an intent like its
4408    * scope, content, result etc. Maximum character limit: 140 characters.
4409    * </pre>
4410    *
4411    * <code>string description = 8;</code>
4412    *
4413    * @return The bytes for description.
4414    */
4415   @java.lang.Override
getDescriptionBytes()4416   public com.google.protobuf.ByteString getDescriptionBytes() {
4417     java.lang.Object ref = description_;
4418     if (ref instanceof java.lang.String) {
4419       com.google.protobuf.ByteString b =
4420           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4421       description_ = b;
4422       return b;
4423     } else {
4424       return (com.google.protobuf.ByteString) ref;
4425     }
4426   }
4427 
4428   private byte memoizedIsInitialized = -1;
4429 
4430   @java.lang.Override
isInitialized()4431   public final boolean isInitialized() {
4432     byte isInitialized = memoizedIsInitialized;
4433     if (isInitialized == 1) return true;
4434     if (isInitialized == 0) return false;
4435 
4436     memoizedIsInitialized = 1;
4437     return true;
4438   }
4439 
4440   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)4441   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
4442     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
4443       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
4444     }
4445     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
4446       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
4447     }
4448     for (int i = 0; i < trainingPhrases_.size(); i++) {
4449       output.writeMessage(3, trainingPhrases_.get(i));
4450     }
4451     for (int i = 0; i < parameters_.size(); i++) {
4452       output.writeMessage(4, parameters_.get(i));
4453     }
4454     if (priority_ != 0) {
4455       output.writeInt32(5, priority_);
4456     }
4457     if (isFallback_ != false) {
4458       output.writeBool(6, isFallback_);
4459     }
4460     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
4461         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7);
4462     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
4463       com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_);
4464     }
4465     getUnknownFields().writeTo(output);
4466   }
4467 
4468   @java.lang.Override
getSerializedSize()4469   public int getSerializedSize() {
4470     int size = memoizedSize;
4471     if (size != -1) return size;
4472 
4473     size = 0;
4474     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
4475       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
4476     }
4477     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
4478       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
4479     }
4480     for (int i = 0; i < trainingPhrases_.size(); i++) {
4481       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, trainingPhrases_.get(i));
4482     }
4483     for (int i = 0; i < parameters_.size(); i++) {
4484       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, parameters_.get(i));
4485     }
4486     if (priority_ != 0) {
4487       size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, priority_);
4488     }
4489     if (isFallback_ != false) {
4490       size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isFallback_);
4491     }
4492     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
4493         internalGetLabels().getMap().entrySet()) {
4494       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
4495           LabelsDefaultEntryHolder.defaultEntry
4496               .newBuilderForType()
4497               .setKey(entry.getKey())
4498               .setValue(entry.getValue())
4499               .build();
4500       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__);
4501     }
4502     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
4503       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_);
4504     }
4505     size += getUnknownFields().getSerializedSize();
4506     memoizedSize = size;
4507     return size;
4508   }
4509 
4510   @java.lang.Override
equals(final java.lang.Object obj)4511   public boolean equals(final java.lang.Object obj) {
4512     if (obj == this) {
4513       return true;
4514     }
4515     if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Intent)) {
4516       return super.equals(obj);
4517     }
4518     com.google.cloud.dialogflow.cx.v3.Intent other = (com.google.cloud.dialogflow.cx.v3.Intent) obj;
4519 
4520     if (!getName().equals(other.getName())) return false;
4521     if (!getDisplayName().equals(other.getDisplayName())) return false;
4522     if (!getTrainingPhrasesList().equals(other.getTrainingPhrasesList())) return false;
4523     if (!getParametersList().equals(other.getParametersList())) return false;
4524     if (getPriority() != other.getPriority()) return false;
4525     if (getIsFallback() != other.getIsFallback()) return false;
4526     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
4527     if (!getDescription().equals(other.getDescription())) return false;
4528     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
4529     return true;
4530   }
4531 
4532   @java.lang.Override
hashCode()4533   public int hashCode() {
4534     if (memoizedHashCode != 0) {
4535       return memoizedHashCode;
4536     }
4537     int hash = 41;
4538     hash = (19 * hash) + getDescriptor().hashCode();
4539     hash = (37 * hash) + NAME_FIELD_NUMBER;
4540     hash = (53 * hash) + getName().hashCode();
4541     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
4542     hash = (53 * hash) + getDisplayName().hashCode();
4543     if (getTrainingPhrasesCount() > 0) {
4544       hash = (37 * hash) + TRAINING_PHRASES_FIELD_NUMBER;
4545       hash = (53 * hash) + getTrainingPhrasesList().hashCode();
4546     }
4547     if (getParametersCount() > 0) {
4548       hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
4549       hash = (53 * hash) + getParametersList().hashCode();
4550     }
4551     hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
4552     hash = (53 * hash) + getPriority();
4553     hash = (37 * hash) + IS_FALLBACK_FIELD_NUMBER;
4554     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFallback());
4555     if (!internalGetLabels().getMap().isEmpty()) {
4556       hash = (37 * hash) + LABELS_FIELD_NUMBER;
4557       hash = (53 * hash) + internalGetLabels().hashCode();
4558     }
4559     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
4560     hash = (53 * hash) + getDescription().hashCode();
4561     hash = (29 * hash) + getUnknownFields().hashCode();
4562     memoizedHashCode = hash;
4563     return hash;
4564   }
4565 
parseFrom(java.nio.ByteBuffer data)4566   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(java.nio.ByteBuffer data)
4567       throws com.google.protobuf.InvalidProtocolBufferException {
4568     return PARSER.parseFrom(data);
4569   }
4570 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4571   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4572       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4573       throws com.google.protobuf.InvalidProtocolBufferException {
4574     return PARSER.parseFrom(data, extensionRegistry);
4575   }
4576 
parseFrom( com.google.protobuf.ByteString data)4577   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4578       com.google.protobuf.ByteString data)
4579       throws com.google.protobuf.InvalidProtocolBufferException {
4580     return PARSER.parseFrom(data);
4581   }
4582 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4583   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4584       com.google.protobuf.ByteString data,
4585       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4586       throws com.google.protobuf.InvalidProtocolBufferException {
4587     return PARSER.parseFrom(data, extensionRegistry);
4588   }
4589 
parseFrom(byte[] data)4590   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(byte[] data)
4591       throws com.google.protobuf.InvalidProtocolBufferException {
4592     return PARSER.parseFrom(data);
4593   }
4594 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4595   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4596       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4597       throws com.google.protobuf.InvalidProtocolBufferException {
4598     return PARSER.parseFrom(data, extensionRegistry);
4599   }
4600 
parseFrom(java.io.InputStream input)4601   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(java.io.InputStream input)
4602       throws java.io.IOException {
4603     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4604   }
4605 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4606   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4607       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4608       throws java.io.IOException {
4609     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4610         PARSER, input, extensionRegistry);
4611   }
4612 
parseDelimitedFrom( java.io.InputStream input)4613   public static com.google.cloud.dialogflow.cx.v3.Intent parseDelimitedFrom(
4614       java.io.InputStream input) throws java.io.IOException {
4615     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
4616   }
4617 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4618   public static com.google.cloud.dialogflow.cx.v3.Intent parseDelimitedFrom(
4619       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4620       throws java.io.IOException {
4621     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
4622         PARSER, input, extensionRegistry);
4623   }
4624 
parseFrom( com.google.protobuf.CodedInputStream input)4625   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4626       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
4627     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4628   }
4629 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4630   public static com.google.cloud.dialogflow.cx.v3.Intent parseFrom(
4631       com.google.protobuf.CodedInputStream input,
4632       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4633       throws java.io.IOException {
4634     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4635         PARSER, input, extensionRegistry);
4636   }
4637 
4638   @java.lang.Override
newBuilderForType()4639   public Builder newBuilderForType() {
4640     return newBuilder();
4641   }
4642 
newBuilder()4643   public static Builder newBuilder() {
4644     return DEFAULT_INSTANCE.toBuilder();
4645   }
4646 
newBuilder(com.google.cloud.dialogflow.cx.v3.Intent prototype)4647   public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.Intent prototype) {
4648     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
4649   }
4650 
4651   @java.lang.Override
toBuilder()4652   public Builder toBuilder() {
4653     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
4654   }
4655 
4656   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4657   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4658     Builder builder = new Builder(parent);
4659     return builder;
4660   }
4661   /**
4662    *
4663    *
4664    * <pre>
4665    * An intent represents a user's intent to interact with a conversational agent.
4666    * You can provide information for the Dialogflow API to use to match user input
4667    * to an intent by adding training phrases (i.e., examples of user input) to
4668    * your intent.
4669    * </pre>
4670    *
4671    * Protobuf type {@code google.cloud.dialogflow.cx.v3.Intent}
4672    */
4673   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
4674       implements
4675       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Intent)
4676       com.google.cloud.dialogflow.cx.v3.IntentOrBuilder {
getDescriptor()4677     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4678       return com.google.cloud.dialogflow.cx.v3.IntentProto
4679           .internal_static_google_cloud_dialogflow_cx_v3_Intent_descriptor;
4680     }
4681 
4682     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)4683     protected com.google.protobuf.MapField internalGetMapField(int number) {
4684       switch (number) {
4685         case 7:
4686           return internalGetLabels();
4687         default:
4688           throw new RuntimeException("Invalid map field number: " + number);
4689       }
4690     }
4691 
4692     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)4693     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
4694       switch (number) {
4695         case 7:
4696           return internalGetMutableLabels();
4697         default:
4698           throw new RuntimeException("Invalid map field number: " + number);
4699       }
4700     }
4701 
4702     @java.lang.Override
4703     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4704         internalGetFieldAccessorTable() {
4705       return com.google.cloud.dialogflow.cx.v3.IntentProto
4706           .internal_static_google_cloud_dialogflow_cx_v3_Intent_fieldAccessorTable
4707           .ensureFieldAccessorsInitialized(
4708               com.google.cloud.dialogflow.cx.v3.Intent.class,
4709               com.google.cloud.dialogflow.cx.v3.Intent.Builder.class);
4710     }
4711 
4712     // Construct using com.google.cloud.dialogflow.cx.v3.Intent.newBuilder()
Builder()4713     private Builder() {}
4714 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4715     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4716       super(parent);
4717     }
4718 
4719     @java.lang.Override
clear()4720     public Builder clear() {
4721       super.clear();
4722       bitField0_ = 0;
4723       name_ = "";
4724       displayName_ = "";
4725       if (trainingPhrasesBuilder_ == null) {
4726         trainingPhrases_ = java.util.Collections.emptyList();
4727       } else {
4728         trainingPhrases_ = null;
4729         trainingPhrasesBuilder_.clear();
4730       }
4731       bitField0_ = (bitField0_ & ~0x00000004);
4732       if (parametersBuilder_ == null) {
4733         parameters_ = java.util.Collections.emptyList();
4734       } else {
4735         parameters_ = null;
4736         parametersBuilder_.clear();
4737       }
4738       bitField0_ = (bitField0_ & ~0x00000008);
4739       priority_ = 0;
4740       isFallback_ = false;
4741       internalGetMutableLabels().clear();
4742       description_ = "";
4743       return this;
4744     }
4745 
4746     @java.lang.Override
getDescriptorForType()4747     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
4748       return com.google.cloud.dialogflow.cx.v3.IntentProto
4749           .internal_static_google_cloud_dialogflow_cx_v3_Intent_descriptor;
4750     }
4751 
4752     @java.lang.Override
getDefaultInstanceForType()4753     public com.google.cloud.dialogflow.cx.v3.Intent getDefaultInstanceForType() {
4754       return com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance();
4755     }
4756 
4757     @java.lang.Override
build()4758     public com.google.cloud.dialogflow.cx.v3.Intent build() {
4759       com.google.cloud.dialogflow.cx.v3.Intent result = buildPartial();
4760       if (!result.isInitialized()) {
4761         throw newUninitializedMessageException(result);
4762       }
4763       return result;
4764     }
4765 
4766     @java.lang.Override
buildPartial()4767     public com.google.cloud.dialogflow.cx.v3.Intent buildPartial() {
4768       com.google.cloud.dialogflow.cx.v3.Intent result =
4769           new com.google.cloud.dialogflow.cx.v3.Intent(this);
4770       buildPartialRepeatedFields(result);
4771       if (bitField0_ != 0) {
4772         buildPartial0(result);
4773       }
4774       onBuilt();
4775       return result;
4776     }
4777 
buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Intent result)4778     private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Intent result) {
4779       if (trainingPhrasesBuilder_ == null) {
4780         if (((bitField0_ & 0x00000004) != 0)) {
4781           trainingPhrases_ = java.util.Collections.unmodifiableList(trainingPhrases_);
4782           bitField0_ = (bitField0_ & ~0x00000004);
4783         }
4784         result.trainingPhrases_ = trainingPhrases_;
4785       } else {
4786         result.trainingPhrases_ = trainingPhrasesBuilder_.build();
4787       }
4788       if (parametersBuilder_ == null) {
4789         if (((bitField0_ & 0x00000008) != 0)) {
4790           parameters_ = java.util.Collections.unmodifiableList(parameters_);
4791           bitField0_ = (bitField0_ & ~0x00000008);
4792         }
4793         result.parameters_ = parameters_;
4794       } else {
4795         result.parameters_ = parametersBuilder_.build();
4796       }
4797     }
4798 
buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent result)4799     private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent result) {
4800       int from_bitField0_ = bitField0_;
4801       if (((from_bitField0_ & 0x00000001) != 0)) {
4802         result.name_ = name_;
4803       }
4804       if (((from_bitField0_ & 0x00000002) != 0)) {
4805         result.displayName_ = displayName_;
4806       }
4807       if (((from_bitField0_ & 0x00000010) != 0)) {
4808         result.priority_ = priority_;
4809       }
4810       if (((from_bitField0_ & 0x00000020) != 0)) {
4811         result.isFallback_ = isFallback_;
4812       }
4813       if (((from_bitField0_ & 0x00000040) != 0)) {
4814         result.labels_ = internalGetLabels();
4815         result.labels_.makeImmutable();
4816       }
4817       if (((from_bitField0_ & 0x00000080) != 0)) {
4818         result.description_ = description_;
4819       }
4820     }
4821 
4822     @java.lang.Override
clone()4823     public Builder clone() {
4824       return super.clone();
4825     }
4826 
4827     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4828     public Builder setField(
4829         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4830       return super.setField(field, value);
4831     }
4832 
4833     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4834     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
4835       return super.clearField(field);
4836     }
4837 
4838     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4839     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
4840       return super.clearOneof(oneof);
4841     }
4842 
4843     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4844     public Builder setRepeatedField(
4845         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
4846       return super.setRepeatedField(field, index, value);
4847     }
4848 
4849     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4850     public Builder addRepeatedField(
4851         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4852       return super.addRepeatedField(field, value);
4853     }
4854 
4855     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)4856     public Builder mergeFrom(com.google.protobuf.Message other) {
4857       if (other instanceof com.google.cloud.dialogflow.cx.v3.Intent) {
4858         return mergeFrom((com.google.cloud.dialogflow.cx.v3.Intent) other);
4859       } else {
4860         super.mergeFrom(other);
4861         return this;
4862       }
4863     }
4864 
mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other)4865     public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
4866       if (other == com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) return this;
4867       if (!other.getName().isEmpty()) {
4868         name_ = other.name_;
4869         bitField0_ |= 0x00000001;
4870         onChanged();
4871       }
4872       if (!other.getDisplayName().isEmpty()) {
4873         displayName_ = other.displayName_;
4874         bitField0_ |= 0x00000002;
4875         onChanged();
4876       }
4877       if (trainingPhrasesBuilder_ == null) {
4878         if (!other.trainingPhrases_.isEmpty()) {
4879           if (trainingPhrases_.isEmpty()) {
4880             trainingPhrases_ = other.trainingPhrases_;
4881             bitField0_ = (bitField0_ & ~0x00000004);
4882           } else {
4883             ensureTrainingPhrasesIsMutable();
4884             trainingPhrases_.addAll(other.trainingPhrases_);
4885           }
4886           onChanged();
4887         }
4888       } else {
4889         if (!other.trainingPhrases_.isEmpty()) {
4890           if (trainingPhrasesBuilder_.isEmpty()) {
4891             trainingPhrasesBuilder_.dispose();
4892             trainingPhrasesBuilder_ = null;
4893             trainingPhrases_ = other.trainingPhrases_;
4894             bitField0_ = (bitField0_ & ~0x00000004);
4895             trainingPhrasesBuilder_ =
4896                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
4897                     ? getTrainingPhrasesFieldBuilder()
4898                     : null;
4899           } else {
4900             trainingPhrasesBuilder_.addAllMessages(other.trainingPhrases_);
4901           }
4902         }
4903       }
4904       if (parametersBuilder_ == null) {
4905         if (!other.parameters_.isEmpty()) {
4906           if (parameters_.isEmpty()) {
4907             parameters_ = other.parameters_;
4908             bitField0_ = (bitField0_ & ~0x00000008);
4909           } else {
4910             ensureParametersIsMutable();
4911             parameters_.addAll(other.parameters_);
4912           }
4913           onChanged();
4914         }
4915       } else {
4916         if (!other.parameters_.isEmpty()) {
4917           if (parametersBuilder_.isEmpty()) {
4918             parametersBuilder_.dispose();
4919             parametersBuilder_ = null;
4920             parameters_ = other.parameters_;
4921             bitField0_ = (bitField0_ & ~0x00000008);
4922             parametersBuilder_ =
4923                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
4924                     ? getParametersFieldBuilder()
4925                     : null;
4926           } else {
4927             parametersBuilder_.addAllMessages(other.parameters_);
4928           }
4929         }
4930       }
4931       if (other.getPriority() != 0) {
4932         setPriority(other.getPriority());
4933       }
4934       if (other.getIsFallback() != false) {
4935         setIsFallback(other.getIsFallback());
4936       }
4937       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
4938       bitField0_ |= 0x00000040;
4939       if (!other.getDescription().isEmpty()) {
4940         description_ = other.description_;
4941         bitField0_ |= 0x00000080;
4942         onChanged();
4943       }
4944       this.mergeUnknownFields(other.getUnknownFields());
4945       onChanged();
4946       return this;
4947     }
4948 
4949     @java.lang.Override
isInitialized()4950     public final boolean isInitialized() {
4951       return true;
4952     }
4953 
4954     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4955     public Builder mergeFrom(
4956         com.google.protobuf.CodedInputStream input,
4957         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4958         throws java.io.IOException {
4959       if (extensionRegistry == null) {
4960         throw new java.lang.NullPointerException();
4961       }
4962       try {
4963         boolean done = false;
4964         while (!done) {
4965           int tag = input.readTag();
4966           switch (tag) {
4967             case 0:
4968               done = true;
4969               break;
4970             case 10:
4971               {
4972                 name_ = input.readStringRequireUtf8();
4973                 bitField0_ |= 0x00000001;
4974                 break;
4975               } // case 10
4976             case 18:
4977               {
4978                 displayName_ = input.readStringRequireUtf8();
4979                 bitField0_ |= 0x00000002;
4980                 break;
4981               } // case 18
4982             case 26:
4983               {
4984                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase m =
4985                     input.readMessage(
4986                         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parser(),
4987                         extensionRegistry);
4988                 if (trainingPhrasesBuilder_ == null) {
4989                   ensureTrainingPhrasesIsMutable();
4990                   trainingPhrases_.add(m);
4991                 } else {
4992                   trainingPhrasesBuilder_.addMessage(m);
4993                 }
4994                 break;
4995               } // case 26
4996             case 34:
4997               {
4998                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter m =
4999                     input.readMessage(
5000                         com.google.cloud.dialogflow.cx.v3.Intent.Parameter.parser(),
5001                         extensionRegistry);
5002                 if (parametersBuilder_ == null) {
5003                   ensureParametersIsMutable();
5004                   parameters_.add(m);
5005                 } else {
5006                   parametersBuilder_.addMessage(m);
5007                 }
5008                 break;
5009               } // case 34
5010             case 40:
5011               {
5012                 priority_ = input.readInt32();
5013                 bitField0_ |= 0x00000010;
5014                 break;
5015               } // case 40
5016             case 48:
5017               {
5018                 isFallback_ = input.readBool();
5019                 bitField0_ |= 0x00000020;
5020                 break;
5021               } // case 48
5022             case 58:
5023               {
5024                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
5025                     input.readMessage(
5026                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
5027                         extensionRegistry);
5028                 internalGetMutableLabels()
5029                     .getMutableMap()
5030                     .put(labels__.getKey(), labels__.getValue());
5031                 bitField0_ |= 0x00000040;
5032                 break;
5033               } // case 58
5034             case 66:
5035               {
5036                 description_ = input.readStringRequireUtf8();
5037                 bitField0_ |= 0x00000080;
5038                 break;
5039               } // case 66
5040             default:
5041               {
5042                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
5043                   done = true; // was an endgroup tag
5044                 }
5045                 break;
5046               } // default:
5047           } // switch (tag)
5048         } // while (!done)
5049       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5050         throw e.unwrapIOException();
5051       } finally {
5052         onChanged();
5053       } // finally
5054       return this;
5055     }
5056 
5057     private int bitField0_;
5058 
5059     private java.lang.Object name_ = "";
5060     /**
5061      *
5062      *
5063      * <pre>
5064      * The unique identifier of the intent.
5065      * Required for the
5066      * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
5067      * method.
5068      * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
5069      * populates the name automatically.
5070      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
5071      * ID&gt;/intents/&lt;Intent ID&gt;`.
5072      * </pre>
5073      *
5074      * <code>string name = 1;</code>
5075      *
5076      * @return The name.
5077      */
getName()5078     public java.lang.String getName() {
5079       java.lang.Object ref = name_;
5080       if (!(ref instanceof java.lang.String)) {
5081         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5082         java.lang.String s = bs.toStringUtf8();
5083         name_ = s;
5084         return s;
5085       } else {
5086         return (java.lang.String) ref;
5087       }
5088     }
5089     /**
5090      *
5091      *
5092      * <pre>
5093      * The unique identifier of the intent.
5094      * Required for the
5095      * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
5096      * method.
5097      * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
5098      * populates the name automatically.
5099      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
5100      * ID&gt;/intents/&lt;Intent ID&gt;`.
5101      * </pre>
5102      *
5103      * <code>string name = 1;</code>
5104      *
5105      * @return The bytes for name.
5106      */
getNameBytes()5107     public com.google.protobuf.ByteString getNameBytes() {
5108       java.lang.Object ref = name_;
5109       if (ref instanceof String) {
5110         com.google.protobuf.ByteString b =
5111             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5112         name_ = b;
5113         return b;
5114       } else {
5115         return (com.google.protobuf.ByteString) ref;
5116       }
5117     }
5118     /**
5119      *
5120      *
5121      * <pre>
5122      * The unique identifier of the intent.
5123      * Required for the
5124      * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
5125      * method.
5126      * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
5127      * populates the name automatically.
5128      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
5129      * ID&gt;/intents/&lt;Intent ID&gt;`.
5130      * </pre>
5131      *
5132      * <code>string name = 1;</code>
5133      *
5134      * @param value The name to set.
5135      * @return This builder for chaining.
5136      */
setName(java.lang.String value)5137     public Builder setName(java.lang.String value) {
5138       if (value == null) {
5139         throw new NullPointerException();
5140       }
5141       name_ = value;
5142       bitField0_ |= 0x00000001;
5143       onChanged();
5144       return this;
5145     }
5146     /**
5147      *
5148      *
5149      * <pre>
5150      * The unique identifier of the intent.
5151      * Required for the
5152      * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
5153      * method.
5154      * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
5155      * populates the name automatically.
5156      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
5157      * ID&gt;/intents/&lt;Intent ID&gt;`.
5158      * </pre>
5159      *
5160      * <code>string name = 1;</code>
5161      *
5162      * @return This builder for chaining.
5163      */
clearName()5164     public Builder clearName() {
5165       name_ = getDefaultInstance().getName();
5166       bitField0_ = (bitField0_ & ~0x00000001);
5167       onChanged();
5168       return this;
5169     }
5170     /**
5171      *
5172      *
5173      * <pre>
5174      * The unique identifier of the intent.
5175      * Required for the
5176      * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
5177      * method.
5178      * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
5179      * populates the name automatically.
5180      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
5181      * ID&gt;/intents/&lt;Intent ID&gt;`.
5182      * </pre>
5183      *
5184      * <code>string name = 1;</code>
5185      *
5186      * @param value The bytes for name to set.
5187      * @return This builder for chaining.
5188      */
setNameBytes(com.google.protobuf.ByteString value)5189     public Builder setNameBytes(com.google.protobuf.ByteString value) {
5190       if (value == null) {
5191         throw new NullPointerException();
5192       }
5193       checkByteStringIsUtf8(value);
5194       name_ = value;
5195       bitField0_ |= 0x00000001;
5196       onChanged();
5197       return this;
5198     }
5199 
5200     private java.lang.Object displayName_ = "";
5201     /**
5202      *
5203      *
5204      * <pre>
5205      * Required. The human-readable name of the intent, unique within the agent.
5206      * </pre>
5207      *
5208      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
5209      *
5210      * @return The displayName.
5211      */
getDisplayName()5212     public java.lang.String getDisplayName() {
5213       java.lang.Object ref = displayName_;
5214       if (!(ref instanceof java.lang.String)) {
5215         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5216         java.lang.String s = bs.toStringUtf8();
5217         displayName_ = s;
5218         return s;
5219       } else {
5220         return (java.lang.String) ref;
5221       }
5222     }
5223     /**
5224      *
5225      *
5226      * <pre>
5227      * Required. The human-readable name of the intent, unique within the agent.
5228      * </pre>
5229      *
5230      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
5231      *
5232      * @return The bytes for displayName.
5233      */
getDisplayNameBytes()5234     public com.google.protobuf.ByteString getDisplayNameBytes() {
5235       java.lang.Object ref = displayName_;
5236       if (ref instanceof String) {
5237         com.google.protobuf.ByteString b =
5238             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5239         displayName_ = b;
5240         return b;
5241       } else {
5242         return (com.google.protobuf.ByteString) ref;
5243       }
5244     }
5245     /**
5246      *
5247      *
5248      * <pre>
5249      * Required. The human-readable name of the intent, unique within the agent.
5250      * </pre>
5251      *
5252      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
5253      *
5254      * @param value The displayName to set.
5255      * @return This builder for chaining.
5256      */
setDisplayName(java.lang.String value)5257     public Builder setDisplayName(java.lang.String value) {
5258       if (value == null) {
5259         throw new NullPointerException();
5260       }
5261       displayName_ = value;
5262       bitField0_ |= 0x00000002;
5263       onChanged();
5264       return this;
5265     }
5266     /**
5267      *
5268      *
5269      * <pre>
5270      * Required. The human-readable name of the intent, unique within the agent.
5271      * </pre>
5272      *
5273      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
5274      *
5275      * @return This builder for chaining.
5276      */
clearDisplayName()5277     public Builder clearDisplayName() {
5278       displayName_ = getDefaultInstance().getDisplayName();
5279       bitField0_ = (bitField0_ & ~0x00000002);
5280       onChanged();
5281       return this;
5282     }
5283     /**
5284      *
5285      *
5286      * <pre>
5287      * Required. The human-readable name of the intent, unique within the agent.
5288      * </pre>
5289      *
5290      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
5291      *
5292      * @param value The bytes for displayName to set.
5293      * @return This builder for chaining.
5294      */
setDisplayNameBytes(com.google.protobuf.ByteString value)5295     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
5296       if (value == null) {
5297         throw new NullPointerException();
5298       }
5299       checkByteStringIsUtf8(value);
5300       displayName_ = value;
5301       bitField0_ |= 0x00000002;
5302       onChanged();
5303       return this;
5304     }
5305 
5306     private java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase>
5307         trainingPhrases_ = java.util.Collections.emptyList();
5308 
ensureTrainingPhrasesIsMutable()5309     private void ensureTrainingPhrasesIsMutable() {
5310       if (!((bitField0_ & 0x00000004) != 0)) {
5311         trainingPhrases_ =
5312             new java.util.ArrayList<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase>(
5313                 trainingPhrases_);
5314         bitField0_ |= 0x00000004;
5315       }
5316     }
5317 
5318     private com.google.protobuf.RepeatedFieldBuilderV3<
5319             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase,
5320             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder,
5321             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>
5322         trainingPhrasesBuilder_;
5323 
5324     /**
5325      *
5326      *
5327      * <pre>
5328      * The collection of training phrases the agent is trained on to identify the
5329      * intent.
5330      * </pre>
5331      *
5332      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5333      * </code>
5334      */
5335     public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase>
getTrainingPhrasesList()5336         getTrainingPhrasesList() {
5337       if (trainingPhrasesBuilder_ == null) {
5338         return java.util.Collections.unmodifiableList(trainingPhrases_);
5339       } else {
5340         return trainingPhrasesBuilder_.getMessageList();
5341       }
5342     }
5343     /**
5344      *
5345      *
5346      * <pre>
5347      * The collection of training phrases the agent is trained on to identify the
5348      * intent.
5349      * </pre>
5350      *
5351      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5352      * </code>
5353      */
getTrainingPhrasesCount()5354     public int getTrainingPhrasesCount() {
5355       if (trainingPhrasesBuilder_ == null) {
5356         return trainingPhrases_.size();
5357       } else {
5358         return trainingPhrasesBuilder_.getCount();
5359       }
5360     }
5361     /**
5362      *
5363      *
5364      * <pre>
5365      * The collection of training phrases the agent is trained on to identify the
5366      * intent.
5367      * </pre>
5368      *
5369      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5370      * </code>
5371      */
getTrainingPhrases(int index)5372     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getTrainingPhrases(int index) {
5373       if (trainingPhrasesBuilder_ == null) {
5374         return trainingPhrases_.get(index);
5375       } else {
5376         return trainingPhrasesBuilder_.getMessage(index);
5377       }
5378     }
5379     /**
5380      *
5381      *
5382      * <pre>
5383      * The collection of training phrases the agent is trained on to identify the
5384      * intent.
5385      * </pre>
5386      *
5387      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5388      * </code>
5389      */
setTrainingPhrases( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase value)5390     public Builder setTrainingPhrases(
5391         int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase value) {
5392       if (trainingPhrasesBuilder_ == null) {
5393         if (value == null) {
5394           throw new NullPointerException();
5395         }
5396         ensureTrainingPhrasesIsMutable();
5397         trainingPhrases_.set(index, value);
5398         onChanged();
5399       } else {
5400         trainingPhrasesBuilder_.setMessage(index, value);
5401       }
5402       return this;
5403     }
5404     /**
5405      *
5406      *
5407      * <pre>
5408      * The collection of training phrases the agent is trained on to identify the
5409      * intent.
5410      * </pre>
5411      *
5412      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5413      * </code>
5414      */
setTrainingPhrases( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder builderForValue)5415     public Builder setTrainingPhrases(
5416         int index,
5417         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder builderForValue) {
5418       if (trainingPhrasesBuilder_ == null) {
5419         ensureTrainingPhrasesIsMutable();
5420         trainingPhrases_.set(index, builderForValue.build());
5421         onChanged();
5422       } else {
5423         trainingPhrasesBuilder_.setMessage(index, builderForValue.build());
5424       }
5425       return this;
5426     }
5427     /**
5428      *
5429      *
5430      * <pre>
5431      * The collection of training phrases the agent is trained on to identify the
5432      * intent.
5433      * </pre>
5434      *
5435      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5436      * </code>
5437      */
addTrainingPhrases( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase value)5438     public Builder addTrainingPhrases(
5439         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase value) {
5440       if (trainingPhrasesBuilder_ == null) {
5441         if (value == null) {
5442           throw new NullPointerException();
5443         }
5444         ensureTrainingPhrasesIsMutable();
5445         trainingPhrases_.add(value);
5446         onChanged();
5447       } else {
5448         trainingPhrasesBuilder_.addMessage(value);
5449       }
5450       return this;
5451     }
5452     /**
5453      *
5454      *
5455      * <pre>
5456      * The collection of training phrases the agent is trained on to identify the
5457      * intent.
5458      * </pre>
5459      *
5460      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5461      * </code>
5462      */
addTrainingPhrases( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase value)5463     public Builder addTrainingPhrases(
5464         int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase value) {
5465       if (trainingPhrasesBuilder_ == null) {
5466         if (value == null) {
5467           throw new NullPointerException();
5468         }
5469         ensureTrainingPhrasesIsMutable();
5470         trainingPhrases_.add(index, value);
5471         onChanged();
5472       } else {
5473         trainingPhrasesBuilder_.addMessage(index, value);
5474       }
5475       return this;
5476     }
5477     /**
5478      *
5479      *
5480      * <pre>
5481      * The collection of training phrases the agent is trained on to identify the
5482      * intent.
5483      * </pre>
5484      *
5485      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5486      * </code>
5487      */
addTrainingPhrases( com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder builderForValue)5488     public Builder addTrainingPhrases(
5489         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder builderForValue) {
5490       if (trainingPhrasesBuilder_ == null) {
5491         ensureTrainingPhrasesIsMutable();
5492         trainingPhrases_.add(builderForValue.build());
5493         onChanged();
5494       } else {
5495         trainingPhrasesBuilder_.addMessage(builderForValue.build());
5496       }
5497       return this;
5498     }
5499     /**
5500      *
5501      *
5502      * <pre>
5503      * The collection of training phrases the agent is trained on to identify the
5504      * intent.
5505      * </pre>
5506      *
5507      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5508      * </code>
5509      */
addTrainingPhrases( int index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder builderForValue)5510     public Builder addTrainingPhrases(
5511         int index,
5512         com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder builderForValue) {
5513       if (trainingPhrasesBuilder_ == null) {
5514         ensureTrainingPhrasesIsMutable();
5515         trainingPhrases_.add(index, builderForValue.build());
5516         onChanged();
5517       } else {
5518         trainingPhrasesBuilder_.addMessage(index, builderForValue.build());
5519       }
5520       return this;
5521     }
5522     /**
5523      *
5524      *
5525      * <pre>
5526      * The collection of training phrases the agent is trained on to identify the
5527      * intent.
5528      * </pre>
5529      *
5530      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5531      * </code>
5532      */
addAllTrainingPhrases( java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase> values)5533     public Builder addAllTrainingPhrases(
5534         java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase>
5535             values) {
5536       if (trainingPhrasesBuilder_ == null) {
5537         ensureTrainingPhrasesIsMutable();
5538         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trainingPhrases_);
5539         onChanged();
5540       } else {
5541         trainingPhrasesBuilder_.addAllMessages(values);
5542       }
5543       return this;
5544     }
5545     /**
5546      *
5547      *
5548      * <pre>
5549      * The collection of training phrases the agent is trained on to identify the
5550      * intent.
5551      * </pre>
5552      *
5553      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5554      * </code>
5555      */
clearTrainingPhrases()5556     public Builder clearTrainingPhrases() {
5557       if (trainingPhrasesBuilder_ == null) {
5558         trainingPhrases_ = java.util.Collections.emptyList();
5559         bitField0_ = (bitField0_ & ~0x00000004);
5560         onChanged();
5561       } else {
5562         trainingPhrasesBuilder_.clear();
5563       }
5564       return this;
5565     }
5566     /**
5567      *
5568      *
5569      * <pre>
5570      * The collection of training phrases the agent is trained on to identify the
5571      * intent.
5572      * </pre>
5573      *
5574      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5575      * </code>
5576      */
removeTrainingPhrases(int index)5577     public Builder removeTrainingPhrases(int index) {
5578       if (trainingPhrasesBuilder_ == null) {
5579         ensureTrainingPhrasesIsMutable();
5580         trainingPhrases_.remove(index);
5581         onChanged();
5582       } else {
5583         trainingPhrasesBuilder_.remove(index);
5584       }
5585       return this;
5586     }
5587     /**
5588      *
5589      *
5590      * <pre>
5591      * The collection of training phrases the agent is trained on to identify the
5592      * intent.
5593      * </pre>
5594      *
5595      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5596      * </code>
5597      */
5598     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder
getTrainingPhrasesBuilder(int index)5599         getTrainingPhrasesBuilder(int index) {
5600       return getTrainingPhrasesFieldBuilder().getBuilder(index);
5601     }
5602     /**
5603      *
5604      *
5605      * <pre>
5606      * The collection of training phrases the agent is trained on to identify the
5607      * intent.
5608      * </pre>
5609      *
5610      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5611      * </code>
5612      */
5613     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder
getTrainingPhrasesOrBuilder(int index)5614         getTrainingPhrasesOrBuilder(int index) {
5615       if (trainingPhrasesBuilder_ == null) {
5616         return trainingPhrases_.get(index);
5617       } else {
5618         return trainingPhrasesBuilder_.getMessageOrBuilder(index);
5619       }
5620     }
5621     /**
5622      *
5623      *
5624      * <pre>
5625      * The collection of training phrases the agent is trained on to identify the
5626      * intent.
5627      * </pre>
5628      *
5629      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5630      * </code>
5631      */
5632     public java.util.List<
5633             ? extends com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>
getTrainingPhrasesOrBuilderList()5634         getTrainingPhrasesOrBuilderList() {
5635       if (trainingPhrasesBuilder_ != null) {
5636         return trainingPhrasesBuilder_.getMessageOrBuilderList();
5637       } else {
5638         return java.util.Collections.unmodifiableList(trainingPhrases_);
5639       }
5640     }
5641     /**
5642      *
5643      *
5644      * <pre>
5645      * The collection of training phrases the agent is trained on to identify the
5646      * intent.
5647      * </pre>
5648      *
5649      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5650      * </code>
5651      */
5652     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder
addTrainingPhrasesBuilder()5653         addTrainingPhrasesBuilder() {
5654       return getTrainingPhrasesFieldBuilder()
5655           .addBuilder(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.getDefaultInstance());
5656     }
5657     /**
5658      *
5659      *
5660      * <pre>
5661      * The collection of training phrases the agent is trained on to identify the
5662      * intent.
5663      * </pre>
5664      *
5665      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5666      * </code>
5667      */
5668     public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder
addTrainingPhrasesBuilder(int index)5669         addTrainingPhrasesBuilder(int index) {
5670       return getTrainingPhrasesFieldBuilder()
5671           .addBuilder(
5672               index, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.getDefaultInstance());
5673     }
5674     /**
5675      *
5676      *
5677      * <pre>
5678      * The collection of training phrases the agent is trained on to identify the
5679      * intent.
5680      * </pre>
5681      *
5682      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase training_phrases = 3;
5683      * </code>
5684      */
5685     public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder>
getTrainingPhrasesBuilderList()5686         getTrainingPhrasesBuilderList() {
5687       return getTrainingPhrasesFieldBuilder().getBuilderList();
5688     }
5689 
5690     private com.google.protobuf.RepeatedFieldBuilderV3<
5691             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase,
5692             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder,
5693             com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>
getTrainingPhrasesFieldBuilder()5694         getTrainingPhrasesFieldBuilder() {
5695       if (trainingPhrasesBuilder_ == null) {
5696         trainingPhrasesBuilder_ =
5697             new com.google.protobuf.RepeatedFieldBuilderV3<
5698                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase,
5699                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder,
5700                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>(
5701                 trainingPhrases_,
5702                 ((bitField0_ & 0x00000004) != 0),
5703                 getParentForChildren(),
5704                 isClean());
5705         trainingPhrases_ = null;
5706       }
5707       return trainingPhrasesBuilder_;
5708     }
5709 
5710     private java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.Parameter> parameters_ =
5711         java.util.Collections.emptyList();
5712 
ensureParametersIsMutable()5713     private void ensureParametersIsMutable() {
5714       if (!((bitField0_ & 0x00000008) != 0)) {
5715         parameters_ =
5716             new java.util.ArrayList<com.google.cloud.dialogflow.cx.v3.Intent.Parameter>(
5717                 parameters_);
5718         bitField0_ |= 0x00000008;
5719       }
5720     }
5721 
5722     private com.google.protobuf.RepeatedFieldBuilderV3<
5723             com.google.cloud.dialogflow.cx.v3.Intent.Parameter,
5724             com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder,
5725             com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>
5726         parametersBuilder_;
5727 
5728     /**
5729      *
5730      *
5731      * <pre>
5732      * The collection of parameters associated with the intent.
5733      * </pre>
5734      *
5735      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5736      */
getParametersList()5737     public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.Parameter> getParametersList() {
5738       if (parametersBuilder_ == null) {
5739         return java.util.Collections.unmodifiableList(parameters_);
5740       } else {
5741         return parametersBuilder_.getMessageList();
5742       }
5743     }
5744     /**
5745      *
5746      *
5747      * <pre>
5748      * The collection of parameters associated with the intent.
5749      * </pre>
5750      *
5751      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5752      */
getParametersCount()5753     public int getParametersCount() {
5754       if (parametersBuilder_ == null) {
5755         return parameters_.size();
5756       } else {
5757         return parametersBuilder_.getCount();
5758       }
5759     }
5760     /**
5761      *
5762      *
5763      * <pre>
5764      * The collection of parameters associated with the intent.
5765      * </pre>
5766      *
5767      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5768      */
getParameters(int index)5769     public com.google.cloud.dialogflow.cx.v3.Intent.Parameter getParameters(int index) {
5770       if (parametersBuilder_ == null) {
5771         return parameters_.get(index);
5772       } else {
5773         return parametersBuilder_.getMessage(index);
5774       }
5775     }
5776     /**
5777      *
5778      *
5779      * <pre>
5780      * The collection of parameters associated with the intent.
5781      * </pre>
5782      *
5783      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5784      */
setParameters( int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter value)5785     public Builder setParameters(
5786         int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter value) {
5787       if (parametersBuilder_ == null) {
5788         if (value == null) {
5789           throw new NullPointerException();
5790         }
5791         ensureParametersIsMutable();
5792         parameters_.set(index, value);
5793         onChanged();
5794       } else {
5795         parametersBuilder_.setMessage(index, value);
5796       }
5797       return this;
5798     }
5799     /**
5800      *
5801      *
5802      * <pre>
5803      * The collection of parameters associated with the intent.
5804      * </pre>
5805      *
5806      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5807      */
setParameters( int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder builderForValue)5808     public Builder setParameters(
5809         int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder builderForValue) {
5810       if (parametersBuilder_ == null) {
5811         ensureParametersIsMutable();
5812         parameters_.set(index, builderForValue.build());
5813         onChanged();
5814       } else {
5815         parametersBuilder_.setMessage(index, builderForValue.build());
5816       }
5817       return this;
5818     }
5819     /**
5820      *
5821      *
5822      * <pre>
5823      * The collection of parameters associated with the intent.
5824      * </pre>
5825      *
5826      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5827      */
addParameters(com.google.cloud.dialogflow.cx.v3.Intent.Parameter value)5828     public Builder addParameters(com.google.cloud.dialogflow.cx.v3.Intent.Parameter value) {
5829       if (parametersBuilder_ == null) {
5830         if (value == null) {
5831           throw new NullPointerException();
5832         }
5833         ensureParametersIsMutable();
5834         parameters_.add(value);
5835         onChanged();
5836       } else {
5837         parametersBuilder_.addMessage(value);
5838       }
5839       return this;
5840     }
5841     /**
5842      *
5843      *
5844      * <pre>
5845      * The collection of parameters associated with the intent.
5846      * </pre>
5847      *
5848      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5849      */
addParameters( int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter value)5850     public Builder addParameters(
5851         int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter value) {
5852       if (parametersBuilder_ == null) {
5853         if (value == null) {
5854           throw new NullPointerException();
5855         }
5856         ensureParametersIsMutable();
5857         parameters_.add(index, value);
5858         onChanged();
5859       } else {
5860         parametersBuilder_.addMessage(index, value);
5861       }
5862       return this;
5863     }
5864     /**
5865      *
5866      *
5867      * <pre>
5868      * The collection of parameters associated with the intent.
5869      * </pre>
5870      *
5871      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5872      */
addParameters( com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder builderForValue)5873     public Builder addParameters(
5874         com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder builderForValue) {
5875       if (parametersBuilder_ == null) {
5876         ensureParametersIsMutable();
5877         parameters_.add(builderForValue.build());
5878         onChanged();
5879       } else {
5880         parametersBuilder_.addMessage(builderForValue.build());
5881       }
5882       return this;
5883     }
5884     /**
5885      *
5886      *
5887      * <pre>
5888      * The collection of parameters associated with the intent.
5889      * </pre>
5890      *
5891      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5892      */
addParameters( int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder builderForValue)5893     public Builder addParameters(
5894         int index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder builderForValue) {
5895       if (parametersBuilder_ == null) {
5896         ensureParametersIsMutable();
5897         parameters_.add(index, builderForValue.build());
5898         onChanged();
5899       } else {
5900         parametersBuilder_.addMessage(index, builderForValue.build());
5901       }
5902       return this;
5903     }
5904     /**
5905      *
5906      *
5907      * <pre>
5908      * The collection of parameters associated with the intent.
5909      * </pre>
5910      *
5911      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5912      */
addAllParameters( java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.Parameter> values)5913     public Builder addAllParameters(
5914         java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3.Intent.Parameter> values) {
5915       if (parametersBuilder_ == null) {
5916         ensureParametersIsMutable();
5917         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_);
5918         onChanged();
5919       } else {
5920         parametersBuilder_.addAllMessages(values);
5921       }
5922       return this;
5923     }
5924     /**
5925      *
5926      *
5927      * <pre>
5928      * The collection of parameters associated with the intent.
5929      * </pre>
5930      *
5931      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5932      */
clearParameters()5933     public Builder clearParameters() {
5934       if (parametersBuilder_ == null) {
5935         parameters_ = java.util.Collections.emptyList();
5936         bitField0_ = (bitField0_ & ~0x00000008);
5937         onChanged();
5938       } else {
5939         parametersBuilder_.clear();
5940       }
5941       return this;
5942     }
5943     /**
5944      *
5945      *
5946      * <pre>
5947      * The collection of parameters associated with the intent.
5948      * </pre>
5949      *
5950      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5951      */
removeParameters(int index)5952     public Builder removeParameters(int index) {
5953       if (parametersBuilder_ == null) {
5954         ensureParametersIsMutable();
5955         parameters_.remove(index);
5956         onChanged();
5957       } else {
5958         parametersBuilder_.remove(index);
5959       }
5960       return this;
5961     }
5962     /**
5963      *
5964      *
5965      * <pre>
5966      * The collection of parameters associated with the intent.
5967      * </pre>
5968      *
5969      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5970      */
getParametersBuilder( int index)5971     public com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder getParametersBuilder(
5972         int index) {
5973       return getParametersFieldBuilder().getBuilder(index);
5974     }
5975     /**
5976      *
5977      *
5978      * <pre>
5979      * The collection of parameters associated with the intent.
5980      * </pre>
5981      *
5982      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
5983      */
getParametersOrBuilder( int index)5984     public com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder getParametersOrBuilder(
5985         int index) {
5986       if (parametersBuilder_ == null) {
5987         return parameters_.get(index);
5988       } else {
5989         return parametersBuilder_.getMessageOrBuilder(index);
5990       }
5991     }
5992     /**
5993      *
5994      *
5995      * <pre>
5996      * The collection of parameters associated with the intent.
5997      * </pre>
5998      *
5999      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
6000      */
6001     public java.util.List<? extends com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>
getParametersOrBuilderList()6002         getParametersOrBuilderList() {
6003       if (parametersBuilder_ != null) {
6004         return parametersBuilder_.getMessageOrBuilderList();
6005       } else {
6006         return java.util.Collections.unmodifiableList(parameters_);
6007       }
6008     }
6009     /**
6010      *
6011      *
6012      * <pre>
6013      * The collection of parameters associated with the intent.
6014      * </pre>
6015      *
6016      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
6017      */
addParametersBuilder()6018     public com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder addParametersBuilder() {
6019       return getParametersFieldBuilder()
6020           .addBuilder(com.google.cloud.dialogflow.cx.v3.Intent.Parameter.getDefaultInstance());
6021     }
6022     /**
6023      *
6024      *
6025      * <pre>
6026      * The collection of parameters associated with the intent.
6027      * </pre>
6028      *
6029      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
6030      */
addParametersBuilder( int index)6031     public com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder addParametersBuilder(
6032         int index) {
6033       return getParametersFieldBuilder()
6034           .addBuilder(
6035               index, com.google.cloud.dialogflow.cx.v3.Intent.Parameter.getDefaultInstance());
6036     }
6037     /**
6038      *
6039      *
6040      * <pre>
6041      * The collection of parameters associated with the intent.
6042      * </pre>
6043      *
6044      * <code>repeated .google.cloud.dialogflow.cx.v3.Intent.Parameter parameters = 4;</code>
6045      */
6046     public java.util.List<com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder>
getParametersBuilderList()6047         getParametersBuilderList() {
6048       return getParametersFieldBuilder().getBuilderList();
6049     }
6050 
6051     private com.google.protobuf.RepeatedFieldBuilderV3<
6052             com.google.cloud.dialogflow.cx.v3.Intent.Parameter,
6053             com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder,
6054             com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>
getParametersFieldBuilder()6055         getParametersFieldBuilder() {
6056       if (parametersBuilder_ == null) {
6057         parametersBuilder_ =
6058             new com.google.protobuf.RepeatedFieldBuilderV3<
6059                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter,
6060                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder,
6061                 com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>(
6062                 parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
6063         parameters_ = null;
6064       }
6065       return parametersBuilder_;
6066     }
6067 
6068     private int priority_;
6069     /**
6070      *
6071      *
6072      * <pre>
6073      * The priority of this intent. Higher numbers represent higher
6074      * priorities.
6075      * - If the supplied value is unspecified or 0, the service
6076      *   translates the value to 500,000, which corresponds to the
6077      *   `Normal` priority in the console.
6078      * - If the supplied value is negative, the intent is ignored
6079      *   in runtime detect intent requests.
6080      * </pre>
6081      *
6082      * <code>int32 priority = 5;</code>
6083      *
6084      * @return The priority.
6085      */
6086     @java.lang.Override
getPriority()6087     public int getPriority() {
6088       return priority_;
6089     }
6090     /**
6091      *
6092      *
6093      * <pre>
6094      * The priority of this intent. Higher numbers represent higher
6095      * priorities.
6096      * - If the supplied value is unspecified or 0, the service
6097      *   translates the value to 500,000, which corresponds to the
6098      *   `Normal` priority in the console.
6099      * - If the supplied value is negative, the intent is ignored
6100      *   in runtime detect intent requests.
6101      * </pre>
6102      *
6103      * <code>int32 priority = 5;</code>
6104      *
6105      * @param value The priority to set.
6106      * @return This builder for chaining.
6107      */
setPriority(int value)6108     public Builder setPriority(int value) {
6109 
6110       priority_ = value;
6111       bitField0_ |= 0x00000010;
6112       onChanged();
6113       return this;
6114     }
6115     /**
6116      *
6117      *
6118      * <pre>
6119      * The priority of this intent. Higher numbers represent higher
6120      * priorities.
6121      * - If the supplied value is unspecified or 0, the service
6122      *   translates the value to 500,000, which corresponds to the
6123      *   `Normal` priority in the console.
6124      * - If the supplied value is negative, the intent is ignored
6125      *   in runtime detect intent requests.
6126      * </pre>
6127      *
6128      * <code>int32 priority = 5;</code>
6129      *
6130      * @return This builder for chaining.
6131      */
clearPriority()6132     public Builder clearPriority() {
6133       bitField0_ = (bitField0_ & ~0x00000010);
6134       priority_ = 0;
6135       onChanged();
6136       return this;
6137     }
6138 
6139     private boolean isFallback_;
6140     /**
6141      *
6142      *
6143      * <pre>
6144      * Indicates whether this is a fallback intent. Currently only default
6145      * fallback intent is allowed in the agent, which is added upon agent
6146      * creation.
6147      * Adding training phrases to fallback intent is useful in the case of
6148      * requests that are mistakenly matched, since training phrases assigned to
6149      * fallback intents act as negative examples that triggers no-match event.
6150      * </pre>
6151      *
6152      * <code>bool is_fallback = 6;</code>
6153      *
6154      * @return The isFallback.
6155      */
6156     @java.lang.Override
getIsFallback()6157     public boolean getIsFallback() {
6158       return isFallback_;
6159     }
6160     /**
6161      *
6162      *
6163      * <pre>
6164      * Indicates whether this is a fallback intent. Currently only default
6165      * fallback intent is allowed in the agent, which is added upon agent
6166      * creation.
6167      * Adding training phrases to fallback intent is useful in the case of
6168      * requests that are mistakenly matched, since training phrases assigned to
6169      * fallback intents act as negative examples that triggers no-match event.
6170      * </pre>
6171      *
6172      * <code>bool is_fallback = 6;</code>
6173      *
6174      * @param value The isFallback to set.
6175      * @return This builder for chaining.
6176      */
setIsFallback(boolean value)6177     public Builder setIsFallback(boolean value) {
6178 
6179       isFallback_ = value;
6180       bitField0_ |= 0x00000020;
6181       onChanged();
6182       return this;
6183     }
6184     /**
6185      *
6186      *
6187      * <pre>
6188      * Indicates whether this is a fallback intent. Currently only default
6189      * fallback intent is allowed in the agent, which is added upon agent
6190      * creation.
6191      * Adding training phrases to fallback intent is useful in the case of
6192      * requests that are mistakenly matched, since training phrases assigned to
6193      * fallback intents act as negative examples that triggers no-match event.
6194      * </pre>
6195      *
6196      * <code>bool is_fallback = 6;</code>
6197      *
6198      * @return This builder for chaining.
6199      */
clearIsFallback()6200     public Builder clearIsFallback() {
6201       bitField0_ = (bitField0_ & ~0x00000020);
6202       isFallback_ = false;
6203       onChanged();
6204       return this;
6205     }
6206 
6207     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
6208 
internalGetLabels()6209     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
6210       if (labels_ == null) {
6211         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
6212       }
6213       return labels_;
6214     }
6215 
6216     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()6217         internalGetMutableLabels() {
6218       if (labels_ == null) {
6219         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
6220       }
6221       if (!labels_.isMutable()) {
6222         labels_ = labels_.copy();
6223       }
6224       bitField0_ |= 0x00000040;
6225       onChanged();
6226       return labels_;
6227     }
6228 
getLabelsCount()6229     public int getLabelsCount() {
6230       return internalGetLabels().getMap().size();
6231     }
6232     /**
6233      *
6234      *
6235      * <pre>
6236      * The key/value metadata to label an intent. Labels can contain
6237      * lowercase letters, digits and the symbols '-' and '_'. International
6238      * characters are allowed, including letters from unicase alphabets. Keys must
6239      * start with a letter. Keys and values can be no longer than 63 characters
6240      * and no more than 128 bytes.
6241      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6242      * Dialogflow defined labels include:
6243      * * sys-head
6244      * * sys-contextual
6245      * The above labels do not require value. "sys-head" means the intent is a
6246      * head intent. "sys.contextual" means the intent is a contextual intent.
6247      * </pre>
6248      *
6249      * <code>map&lt;string, string&gt; labels = 7;</code>
6250      */
6251     @java.lang.Override
containsLabels(java.lang.String key)6252     public boolean containsLabels(java.lang.String key) {
6253       if (key == null) {
6254         throw new NullPointerException("map key");
6255       }
6256       return internalGetLabels().getMap().containsKey(key);
6257     }
6258     /** Use {@link #getLabelsMap()} instead. */
6259     @java.lang.Override
6260     @java.lang.Deprecated
getLabels()6261     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
6262       return getLabelsMap();
6263     }
6264     /**
6265      *
6266      *
6267      * <pre>
6268      * The key/value metadata to label an intent. Labels can contain
6269      * lowercase letters, digits and the symbols '-' and '_'. International
6270      * characters are allowed, including letters from unicase alphabets. Keys must
6271      * start with a letter. Keys and values can be no longer than 63 characters
6272      * and no more than 128 bytes.
6273      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6274      * Dialogflow defined labels include:
6275      * * sys-head
6276      * * sys-contextual
6277      * The above labels do not require value. "sys-head" means the intent is a
6278      * head intent. "sys.contextual" means the intent is a contextual intent.
6279      * </pre>
6280      *
6281      * <code>map&lt;string, string&gt; labels = 7;</code>
6282      */
6283     @java.lang.Override
getLabelsMap()6284     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
6285       return internalGetLabels().getMap();
6286     }
6287     /**
6288      *
6289      *
6290      * <pre>
6291      * The key/value metadata to label an intent. Labels can contain
6292      * lowercase letters, digits and the symbols '-' and '_'. International
6293      * characters are allowed, including letters from unicase alphabets. Keys must
6294      * start with a letter. Keys and values can be no longer than 63 characters
6295      * and no more than 128 bytes.
6296      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6297      * Dialogflow defined labels include:
6298      * * sys-head
6299      * * sys-contextual
6300      * The above labels do not require value. "sys-head" means the intent is a
6301      * head intent. "sys.contextual" means the intent is a contextual intent.
6302      * </pre>
6303      *
6304      * <code>map&lt;string, string&gt; labels = 7;</code>
6305      */
6306     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)6307     public /* nullable */ java.lang.String getLabelsOrDefault(
6308         java.lang.String key,
6309         /* nullable */
6310         java.lang.String defaultValue) {
6311       if (key == null) {
6312         throw new NullPointerException("map key");
6313       }
6314       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
6315       return map.containsKey(key) ? map.get(key) : defaultValue;
6316     }
6317     /**
6318      *
6319      *
6320      * <pre>
6321      * The key/value metadata to label an intent. Labels can contain
6322      * lowercase letters, digits and the symbols '-' and '_'. International
6323      * characters are allowed, including letters from unicase alphabets. Keys must
6324      * start with a letter. Keys and values can be no longer than 63 characters
6325      * and no more than 128 bytes.
6326      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6327      * Dialogflow defined labels include:
6328      * * sys-head
6329      * * sys-contextual
6330      * The above labels do not require value. "sys-head" means the intent is a
6331      * head intent. "sys.contextual" means the intent is a contextual intent.
6332      * </pre>
6333      *
6334      * <code>map&lt;string, string&gt; labels = 7;</code>
6335      */
6336     @java.lang.Override
getLabelsOrThrow(java.lang.String key)6337     public java.lang.String getLabelsOrThrow(java.lang.String key) {
6338       if (key == null) {
6339         throw new NullPointerException("map key");
6340       }
6341       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
6342       if (!map.containsKey(key)) {
6343         throw new java.lang.IllegalArgumentException();
6344       }
6345       return map.get(key);
6346     }
6347 
clearLabels()6348     public Builder clearLabels() {
6349       bitField0_ = (bitField0_ & ~0x00000040);
6350       internalGetMutableLabels().getMutableMap().clear();
6351       return this;
6352     }
6353     /**
6354      *
6355      *
6356      * <pre>
6357      * The key/value metadata to label an intent. Labels can contain
6358      * lowercase letters, digits and the symbols '-' and '_'. International
6359      * characters are allowed, including letters from unicase alphabets. Keys must
6360      * start with a letter. Keys and values can be no longer than 63 characters
6361      * and no more than 128 bytes.
6362      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6363      * Dialogflow defined labels include:
6364      * * sys-head
6365      * * sys-contextual
6366      * The above labels do not require value. "sys-head" means the intent is a
6367      * head intent. "sys.contextual" means the intent is a contextual intent.
6368      * </pre>
6369      *
6370      * <code>map&lt;string, string&gt; labels = 7;</code>
6371      */
removeLabels(java.lang.String key)6372     public Builder removeLabels(java.lang.String key) {
6373       if (key == null) {
6374         throw new NullPointerException("map key");
6375       }
6376       internalGetMutableLabels().getMutableMap().remove(key);
6377       return this;
6378     }
6379     /** Use alternate mutation accessors instead. */
6380     @java.lang.Deprecated
getMutableLabels()6381     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
6382       bitField0_ |= 0x00000040;
6383       return internalGetMutableLabels().getMutableMap();
6384     }
6385     /**
6386      *
6387      *
6388      * <pre>
6389      * The key/value metadata to label an intent. Labels can contain
6390      * lowercase letters, digits and the symbols '-' and '_'. International
6391      * characters are allowed, including letters from unicase alphabets. Keys must
6392      * start with a letter. Keys and values can be no longer than 63 characters
6393      * and no more than 128 bytes.
6394      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6395      * Dialogflow defined labels include:
6396      * * sys-head
6397      * * sys-contextual
6398      * The above labels do not require value. "sys-head" means the intent is a
6399      * head intent. "sys.contextual" means the intent is a contextual intent.
6400      * </pre>
6401      *
6402      * <code>map&lt;string, string&gt; labels = 7;</code>
6403      */
putLabels(java.lang.String key, java.lang.String value)6404     public Builder putLabels(java.lang.String key, java.lang.String value) {
6405       if (key == null) {
6406         throw new NullPointerException("map key");
6407       }
6408       if (value == null) {
6409         throw new NullPointerException("map value");
6410       }
6411       internalGetMutableLabels().getMutableMap().put(key, value);
6412       bitField0_ |= 0x00000040;
6413       return this;
6414     }
6415     /**
6416      *
6417      *
6418      * <pre>
6419      * The key/value metadata to label an intent. Labels can contain
6420      * lowercase letters, digits and the symbols '-' and '_'. International
6421      * characters are allowed, including letters from unicase alphabets. Keys must
6422      * start with a letter. Keys and values can be no longer than 63 characters
6423      * and no more than 128 bytes.
6424      * Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
6425      * Dialogflow defined labels include:
6426      * * sys-head
6427      * * sys-contextual
6428      * The above labels do not require value. "sys-head" means the intent is a
6429      * head intent. "sys.contextual" means the intent is a contextual intent.
6430      * </pre>
6431      *
6432      * <code>map&lt;string, string&gt; labels = 7;</code>
6433      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)6434     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
6435       internalGetMutableLabels().getMutableMap().putAll(values);
6436       bitField0_ |= 0x00000040;
6437       return this;
6438     }
6439 
6440     private java.lang.Object description_ = "";
6441     /**
6442      *
6443      *
6444      * <pre>
6445      * Human readable description for better understanding an intent like its
6446      * scope, content, result etc. Maximum character limit: 140 characters.
6447      * </pre>
6448      *
6449      * <code>string description = 8;</code>
6450      *
6451      * @return The description.
6452      */
getDescription()6453     public java.lang.String getDescription() {
6454       java.lang.Object ref = description_;
6455       if (!(ref instanceof java.lang.String)) {
6456         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6457         java.lang.String s = bs.toStringUtf8();
6458         description_ = s;
6459         return s;
6460       } else {
6461         return (java.lang.String) ref;
6462       }
6463     }
6464     /**
6465      *
6466      *
6467      * <pre>
6468      * Human readable description for better understanding an intent like its
6469      * scope, content, result etc. Maximum character limit: 140 characters.
6470      * </pre>
6471      *
6472      * <code>string description = 8;</code>
6473      *
6474      * @return The bytes for description.
6475      */
getDescriptionBytes()6476     public com.google.protobuf.ByteString getDescriptionBytes() {
6477       java.lang.Object ref = description_;
6478       if (ref instanceof String) {
6479         com.google.protobuf.ByteString b =
6480             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6481         description_ = b;
6482         return b;
6483       } else {
6484         return (com.google.protobuf.ByteString) ref;
6485       }
6486     }
6487     /**
6488      *
6489      *
6490      * <pre>
6491      * Human readable description for better understanding an intent like its
6492      * scope, content, result etc. Maximum character limit: 140 characters.
6493      * </pre>
6494      *
6495      * <code>string description = 8;</code>
6496      *
6497      * @param value The description to set.
6498      * @return This builder for chaining.
6499      */
setDescription(java.lang.String value)6500     public Builder setDescription(java.lang.String value) {
6501       if (value == null) {
6502         throw new NullPointerException();
6503       }
6504       description_ = value;
6505       bitField0_ |= 0x00000080;
6506       onChanged();
6507       return this;
6508     }
6509     /**
6510      *
6511      *
6512      * <pre>
6513      * Human readable description for better understanding an intent like its
6514      * scope, content, result etc. Maximum character limit: 140 characters.
6515      * </pre>
6516      *
6517      * <code>string description = 8;</code>
6518      *
6519      * @return This builder for chaining.
6520      */
clearDescription()6521     public Builder clearDescription() {
6522       description_ = getDefaultInstance().getDescription();
6523       bitField0_ = (bitField0_ & ~0x00000080);
6524       onChanged();
6525       return this;
6526     }
6527     /**
6528      *
6529      *
6530      * <pre>
6531      * Human readable description for better understanding an intent like its
6532      * scope, content, result etc. Maximum character limit: 140 characters.
6533      * </pre>
6534      *
6535      * <code>string description = 8;</code>
6536      *
6537      * @param value The bytes for description to set.
6538      * @return This builder for chaining.
6539      */
setDescriptionBytes(com.google.protobuf.ByteString value)6540     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
6541       if (value == null) {
6542         throw new NullPointerException();
6543       }
6544       checkByteStringIsUtf8(value);
6545       description_ = value;
6546       bitField0_ |= 0x00000080;
6547       onChanged();
6548       return this;
6549     }
6550 
6551     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)6552     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
6553       return super.setUnknownFields(unknownFields);
6554     }
6555 
6556     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)6557     public final Builder mergeUnknownFields(
6558         final com.google.protobuf.UnknownFieldSet unknownFields) {
6559       return super.mergeUnknownFields(unknownFields);
6560     }
6561 
6562     // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Intent)
6563   }
6564 
6565   // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Intent)
6566   private static final com.google.cloud.dialogflow.cx.v3.Intent DEFAULT_INSTANCE;
6567 
6568   static {
6569     DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Intent();
6570   }
6571 
getDefaultInstance()6572   public static com.google.cloud.dialogflow.cx.v3.Intent getDefaultInstance() {
6573     return DEFAULT_INSTANCE;
6574   }
6575 
6576   private static final com.google.protobuf.Parser<Intent> PARSER =
6577       new com.google.protobuf.AbstractParser<Intent>() {
6578         @java.lang.Override
6579         public Intent parsePartialFrom(
6580             com.google.protobuf.CodedInputStream input,
6581             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6582             throws com.google.protobuf.InvalidProtocolBufferException {
6583           Builder builder = newBuilder();
6584           try {
6585             builder.mergeFrom(input, extensionRegistry);
6586           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
6587             throw e.setUnfinishedMessage(builder.buildPartial());
6588           } catch (com.google.protobuf.UninitializedMessageException e) {
6589             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
6590           } catch (java.io.IOException e) {
6591             throw new com.google.protobuf.InvalidProtocolBufferException(e)
6592                 .setUnfinishedMessage(builder.buildPartial());
6593           }
6594           return builder.buildPartial();
6595         }
6596       };
6597 
parser()6598   public static com.google.protobuf.Parser<Intent> parser() {
6599     return PARSER;
6600   }
6601 
6602   @java.lang.Override
getParserForType()6603   public com.google.protobuf.Parser<Intent> getParserForType() {
6604     return PARSER;
6605   }
6606 
6607   @java.lang.Override
getDefaultInstanceForType()6608   public com.google.cloud.dialogflow.cx.v3.Intent getDefaultInstanceForType() {
6609     return DEFAULT_INSTANCE;
6610   }
6611 }
6612