• 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/agent.proto
18 
19 package com.google.cloud.dialogflow.cx.v3;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Agents are best described as Natural Language Understanding (NLU) modules
26  * that transform user requests into actionable data. You can include agents
27  * in your app, product, or service to determine user intent and respond to the
28  * user in a natural way.
29  * After you create an agent, you can add
30  * [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity
31  * Types][google.cloud.dialogflow.cx.v3.EntityType],
32  * [Flows][google.cloud.dialogflow.cx.v3.Flow],
33  * [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
34  * [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the
35  * conversation flows..
36  * </pre>
37  *
38  * Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent}
39  */
40 public final class Agent extends com.google.protobuf.GeneratedMessageV3
41     implements
42     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.Agent)
43     AgentOrBuilder {
44   private static final long serialVersionUID = 0L;
45   // Use Agent.newBuilder() to construct.
Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)46   private Agent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
47     super(builder);
48   }
49 
Agent()50   private Agent() {
51     name_ = "";
52     displayName_ = "";
53     defaultLanguageCode_ = "";
54     supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
55     timeZone_ = "";
56     description_ = "";
57     avatarUri_ = "";
58     startFlow_ = "";
59     securitySettings_ = "";
60   }
61 
62   @java.lang.Override
63   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)64   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
65     return new Agent();
66   }
67 
68   @java.lang.Override
getUnknownFields()69   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
70     return this.unknownFields;
71   }
72 
getDescriptor()73   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
74     return com.google.cloud.dialogflow.cx.v3.AgentProto
75         .internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor;
76   }
77 
78   @java.lang.Override
79   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()80       internalGetFieldAccessorTable() {
81     return com.google.cloud.dialogflow.cx.v3.AgentProto
82         .internal_static_google_cloud_dialogflow_cx_v3_Agent_fieldAccessorTable
83         .ensureFieldAccessorsInitialized(
84             com.google.cloud.dialogflow.cx.v3.Agent.class,
85             com.google.cloud.dialogflow.cx.v3.Agent.Builder.class);
86   }
87 
88   public static final int NAME_FIELD_NUMBER = 1;
89 
90   @SuppressWarnings("serial")
91   private volatile java.lang.Object name_ = "";
92   /**
93    *
94    *
95    * <pre>
96    * The unique identifier of the agent.
97    * Required for the
98    * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
99    * method.
100    * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
101    * populates the name automatically.
102    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
103    * </pre>
104    *
105    * <code>string name = 1;</code>
106    *
107    * @return The name.
108    */
109   @java.lang.Override
getName()110   public java.lang.String getName() {
111     java.lang.Object ref = name_;
112     if (ref instanceof java.lang.String) {
113       return (java.lang.String) ref;
114     } else {
115       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
116       java.lang.String s = bs.toStringUtf8();
117       name_ = s;
118       return s;
119     }
120   }
121   /**
122    *
123    *
124    * <pre>
125    * The unique identifier of the agent.
126    * Required for the
127    * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
128    * method.
129    * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
130    * populates the name automatically.
131    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
132    * </pre>
133    *
134    * <code>string name = 1;</code>
135    *
136    * @return The bytes for name.
137    */
138   @java.lang.Override
getNameBytes()139   public com.google.protobuf.ByteString getNameBytes() {
140     java.lang.Object ref = name_;
141     if (ref instanceof java.lang.String) {
142       com.google.protobuf.ByteString b =
143           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
144       name_ = b;
145       return b;
146     } else {
147       return (com.google.protobuf.ByteString) ref;
148     }
149   }
150 
151   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
152 
153   @SuppressWarnings("serial")
154   private volatile java.lang.Object displayName_ = "";
155   /**
156    *
157    *
158    * <pre>
159    * Required. The human-readable name of the agent, unique within the location.
160    * </pre>
161    *
162    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
163    *
164    * @return The displayName.
165    */
166   @java.lang.Override
getDisplayName()167   public java.lang.String getDisplayName() {
168     java.lang.Object ref = displayName_;
169     if (ref instanceof java.lang.String) {
170       return (java.lang.String) ref;
171     } else {
172       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
173       java.lang.String s = bs.toStringUtf8();
174       displayName_ = s;
175       return s;
176     }
177   }
178   /**
179    *
180    *
181    * <pre>
182    * Required. The human-readable name of the agent, unique within the location.
183    * </pre>
184    *
185    * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
186    *
187    * @return The bytes for displayName.
188    */
189   @java.lang.Override
getDisplayNameBytes()190   public com.google.protobuf.ByteString getDisplayNameBytes() {
191     java.lang.Object ref = displayName_;
192     if (ref instanceof java.lang.String) {
193       com.google.protobuf.ByteString b =
194           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
195       displayName_ = b;
196       return b;
197     } else {
198       return (com.google.protobuf.ByteString) ref;
199     }
200   }
201 
202   public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 3;
203 
204   @SuppressWarnings("serial")
205   private volatile java.lang.Object defaultLanguageCode_ = "";
206   /**
207    *
208    *
209    * <pre>
210    * Required. Immutable. The default language of the agent as a language tag.
211    * See [Language
212    * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
213    * for a list of the currently supported language codes.
214    * This field cannot be set by the
215    * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
216    * method.
217    * </pre>
218    *
219    * <code>
220    * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
221    * </code>
222    *
223    * @return The defaultLanguageCode.
224    */
225   @java.lang.Override
getDefaultLanguageCode()226   public java.lang.String getDefaultLanguageCode() {
227     java.lang.Object ref = defaultLanguageCode_;
228     if (ref instanceof java.lang.String) {
229       return (java.lang.String) ref;
230     } else {
231       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
232       java.lang.String s = bs.toStringUtf8();
233       defaultLanguageCode_ = s;
234       return s;
235     }
236   }
237   /**
238    *
239    *
240    * <pre>
241    * Required. Immutable. The default language of the agent as a language tag.
242    * See [Language
243    * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
244    * for a list of the currently supported language codes.
245    * This field cannot be set by the
246    * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
247    * method.
248    * </pre>
249    *
250    * <code>
251    * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
252    * </code>
253    *
254    * @return The bytes for defaultLanguageCode.
255    */
256   @java.lang.Override
getDefaultLanguageCodeBytes()257   public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
258     java.lang.Object ref = defaultLanguageCode_;
259     if (ref instanceof java.lang.String) {
260       com.google.protobuf.ByteString b =
261           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
262       defaultLanguageCode_ = b;
263       return b;
264     } else {
265       return (com.google.protobuf.ByteString) ref;
266     }
267   }
268 
269   public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 4;
270 
271   @SuppressWarnings("serial")
272   private com.google.protobuf.LazyStringList supportedLanguageCodes_;
273   /**
274    *
275    *
276    * <pre>
277    * The list of all languages supported by the agent (except for the
278    * `default_language_code`).
279    * </pre>
280    *
281    * <code>repeated string supported_language_codes = 4;</code>
282    *
283    * @return A list containing the supportedLanguageCodes.
284    */
getSupportedLanguageCodesList()285   public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() {
286     return supportedLanguageCodes_;
287   }
288   /**
289    *
290    *
291    * <pre>
292    * The list of all languages supported by the agent (except for the
293    * `default_language_code`).
294    * </pre>
295    *
296    * <code>repeated string supported_language_codes = 4;</code>
297    *
298    * @return The count of supportedLanguageCodes.
299    */
getSupportedLanguageCodesCount()300   public int getSupportedLanguageCodesCount() {
301     return supportedLanguageCodes_.size();
302   }
303   /**
304    *
305    *
306    * <pre>
307    * The list of all languages supported by the agent (except for the
308    * `default_language_code`).
309    * </pre>
310    *
311    * <code>repeated string supported_language_codes = 4;</code>
312    *
313    * @param index The index of the element to return.
314    * @return The supportedLanguageCodes at the given index.
315    */
getSupportedLanguageCodes(int index)316   public java.lang.String getSupportedLanguageCodes(int index) {
317     return supportedLanguageCodes_.get(index);
318   }
319   /**
320    *
321    *
322    * <pre>
323    * The list of all languages supported by the agent (except for the
324    * `default_language_code`).
325    * </pre>
326    *
327    * <code>repeated string supported_language_codes = 4;</code>
328    *
329    * @param index The index of the value to return.
330    * @return The bytes of the supportedLanguageCodes at the given index.
331    */
getSupportedLanguageCodesBytes(int index)332   public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) {
333     return supportedLanguageCodes_.getByteString(index);
334   }
335 
336   public static final int TIME_ZONE_FIELD_NUMBER = 5;
337 
338   @SuppressWarnings("serial")
339   private volatile java.lang.Object timeZone_ = "";
340   /**
341    *
342    *
343    * <pre>
344    * Required. The time zone of the agent from the [time zone
345    * database](https://www.iana.org/time-zones), e.g., America/New_York,
346    * Europe/Paris.
347    * </pre>
348    *
349    * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
350    *
351    * @return The timeZone.
352    */
353   @java.lang.Override
getTimeZone()354   public java.lang.String getTimeZone() {
355     java.lang.Object ref = timeZone_;
356     if (ref instanceof java.lang.String) {
357       return (java.lang.String) ref;
358     } else {
359       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
360       java.lang.String s = bs.toStringUtf8();
361       timeZone_ = s;
362       return s;
363     }
364   }
365   /**
366    *
367    *
368    * <pre>
369    * Required. The time zone of the agent from the [time zone
370    * database](https://www.iana.org/time-zones), e.g., America/New_York,
371    * Europe/Paris.
372    * </pre>
373    *
374    * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
375    *
376    * @return The bytes for timeZone.
377    */
378   @java.lang.Override
getTimeZoneBytes()379   public com.google.protobuf.ByteString getTimeZoneBytes() {
380     java.lang.Object ref = timeZone_;
381     if (ref instanceof java.lang.String) {
382       com.google.protobuf.ByteString b =
383           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
384       timeZone_ = b;
385       return b;
386     } else {
387       return (com.google.protobuf.ByteString) ref;
388     }
389   }
390 
391   public static final int DESCRIPTION_FIELD_NUMBER = 6;
392 
393   @SuppressWarnings("serial")
394   private volatile java.lang.Object description_ = "";
395   /**
396    *
397    *
398    * <pre>
399    * The description of the agent. The maximum length is 500 characters. If
400    * exceeded, the request is rejected.
401    * </pre>
402    *
403    * <code>string description = 6;</code>
404    *
405    * @return The description.
406    */
407   @java.lang.Override
getDescription()408   public java.lang.String getDescription() {
409     java.lang.Object ref = description_;
410     if (ref instanceof java.lang.String) {
411       return (java.lang.String) ref;
412     } else {
413       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
414       java.lang.String s = bs.toStringUtf8();
415       description_ = s;
416       return s;
417     }
418   }
419   /**
420    *
421    *
422    * <pre>
423    * The description of the agent. The maximum length is 500 characters. If
424    * exceeded, the request is rejected.
425    * </pre>
426    *
427    * <code>string description = 6;</code>
428    *
429    * @return The bytes for description.
430    */
431   @java.lang.Override
getDescriptionBytes()432   public com.google.protobuf.ByteString getDescriptionBytes() {
433     java.lang.Object ref = description_;
434     if (ref instanceof java.lang.String) {
435       com.google.protobuf.ByteString b =
436           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
437       description_ = b;
438       return b;
439     } else {
440       return (com.google.protobuf.ByteString) ref;
441     }
442   }
443 
444   public static final int AVATAR_URI_FIELD_NUMBER = 7;
445 
446   @SuppressWarnings("serial")
447   private volatile java.lang.Object avatarUri_ = "";
448   /**
449    *
450    *
451    * <pre>
452    * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
453    * console and in the self-hosted [Web
454    * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
455    * integration.
456    * </pre>
457    *
458    * <code>string avatar_uri = 7;</code>
459    *
460    * @return The avatarUri.
461    */
462   @java.lang.Override
getAvatarUri()463   public java.lang.String getAvatarUri() {
464     java.lang.Object ref = avatarUri_;
465     if (ref instanceof java.lang.String) {
466       return (java.lang.String) ref;
467     } else {
468       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
469       java.lang.String s = bs.toStringUtf8();
470       avatarUri_ = s;
471       return s;
472     }
473   }
474   /**
475    *
476    *
477    * <pre>
478    * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
479    * console and in the self-hosted [Web
480    * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
481    * integration.
482    * </pre>
483    *
484    * <code>string avatar_uri = 7;</code>
485    *
486    * @return The bytes for avatarUri.
487    */
488   @java.lang.Override
getAvatarUriBytes()489   public com.google.protobuf.ByteString getAvatarUriBytes() {
490     java.lang.Object ref = avatarUri_;
491     if (ref instanceof java.lang.String) {
492       com.google.protobuf.ByteString b =
493           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
494       avatarUri_ = b;
495       return b;
496     } else {
497       return (com.google.protobuf.ByteString) ref;
498     }
499   }
500 
501   public static final int SPEECH_TO_TEXT_SETTINGS_FIELD_NUMBER = 13;
502   private com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speechToTextSettings_;
503   /**
504    *
505    *
506    * <pre>
507    * Speech recognition related settings.
508    * </pre>
509    *
510    * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;</code>
511    *
512    * @return Whether the speechToTextSettings field is set.
513    */
514   @java.lang.Override
hasSpeechToTextSettings()515   public boolean hasSpeechToTextSettings() {
516     return speechToTextSettings_ != null;
517   }
518   /**
519    *
520    *
521    * <pre>
522    * Speech recognition related settings.
523    * </pre>
524    *
525    * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;</code>
526    *
527    * @return The speechToTextSettings.
528    */
529   @java.lang.Override
getSpeechToTextSettings()530   public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings getSpeechToTextSettings() {
531     return speechToTextSettings_ == null
532         ? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
533         : speechToTextSettings_;
534   }
535   /**
536    *
537    *
538    * <pre>
539    * Speech recognition related settings.
540    * </pre>
541    *
542    * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;</code>
543    */
544   @java.lang.Override
545   public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder
getSpeechToTextSettingsOrBuilder()546       getSpeechToTextSettingsOrBuilder() {
547     return speechToTextSettings_ == null
548         ? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
549         : speechToTextSettings_;
550   }
551 
552   public static final int START_FLOW_FIELD_NUMBER = 16;
553 
554   @SuppressWarnings("serial")
555   private volatile java.lang.Object startFlow_ = "";
556   /**
557    *
558    *
559    * <pre>
560    * Immutable. Name of the start flow in this agent. A start flow will be
561    * automatically created when the agent is created, and can only be deleted by
562    * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
563    * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
564    * </pre>
565    *
566    * <code>
567    * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
568    * </code>
569    *
570    * @return The startFlow.
571    */
572   @java.lang.Override
getStartFlow()573   public java.lang.String getStartFlow() {
574     java.lang.Object ref = startFlow_;
575     if (ref instanceof java.lang.String) {
576       return (java.lang.String) ref;
577     } else {
578       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
579       java.lang.String s = bs.toStringUtf8();
580       startFlow_ = s;
581       return s;
582     }
583   }
584   /**
585    *
586    *
587    * <pre>
588    * Immutable. Name of the start flow in this agent. A start flow will be
589    * automatically created when the agent is created, and can only be deleted by
590    * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
591    * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
592    * </pre>
593    *
594    * <code>
595    * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
596    * </code>
597    *
598    * @return The bytes for startFlow.
599    */
600   @java.lang.Override
getStartFlowBytes()601   public com.google.protobuf.ByteString getStartFlowBytes() {
602     java.lang.Object ref = startFlow_;
603     if (ref instanceof java.lang.String) {
604       com.google.protobuf.ByteString b =
605           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
606       startFlow_ = b;
607       return b;
608     } else {
609       return (com.google.protobuf.ByteString) ref;
610     }
611   }
612 
613   public static final int SECURITY_SETTINGS_FIELD_NUMBER = 17;
614 
615   @SuppressWarnings("serial")
616   private volatile java.lang.Object securitySettings_ = "";
617   /**
618    *
619    *
620    * <pre>
621    * Name of the
622    * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
623    * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
624    * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
625    * </pre>
626    *
627    * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
628    *
629    * @return The securitySettings.
630    */
631   @java.lang.Override
getSecuritySettings()632   public java.lang.String getSecuritySettings() {
633     java.lang.Object ref = securitySettings_;
634     if (ref instanceof java.lang.String) {
635       return (java.lang.String) ref;
636     } else {
637       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
638       java.lang.String s = bs.toStringUtf8();
639       securitySettings_ = s;
640       return s;
641     }
642   }
643   /**
644    *
645    *
646    * <pre>
647    * Name of the
648    * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
649    * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
650    * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
651    * </pre>
652    *
653    * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
654    *
655    * @return The bytes for securitySettings.
656    */
657   @java.lang.Override
getSecuritySettingsBytes()658   public com.google.protobuf.ByteString getSecuritySettingsBytes() {
659     java.lang.Object ref = securitySettings_;
660     if (ref instanceof java.lang.String) {
661       com.google.protobuf.ByteString b =
662           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
663       securitySettings_ = b;
664       return b;
665     } else {
666       return (com.google.protobuf.ByteString) ref;
667     }
668   }
669 
670   public static final int ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER = 18;
671   private boolean enableStackdriverLogging_ = false;
672   /**
673    *
674    *
675    * <pre>
676    * Indicates if stackdriver logging is enabled for the agent.
677    * Please use
678    * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
679    * instead.
680    * </pre>
681    *
682    * <code>bool enable_stackdriver_logging = 18 [deprecated = true];</code>
683    *
684    * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See
685    *     google/cloud/dialogflow/cx/v3/agent.proto;l=257
686    * @return The enableStackdriverLogging.
687    */
688   @java.lang.Override
689   @java.lang.Deprecated
getEnableStackdriverLogging()690   public boolean getEnableStackdriverLogging() {
691     return enableStackdriverLogging_;
692   }
693 
694   public static final int ENABLE_SPELL_CORRECTION_FIELD_NUMBER = 20;
695   private boolean enableSpellCorrection_ = false;
696   /**
697    *
698    *
699    * <pre>
700    * Indicates if automatic spell correction is enabled in detect intent
701    * requests.
702    * </pre>
703    *
704    * <code>bool enable_spell_correction = 20;</code>
705    *
706    * @return The enableSpellCorrection.
707    */
708   @java.lang.Override
getEnableSpellCorrection()709   public boolean getEnableSpellCorrection() {
710     return enableSpellCorrection_;
711   }
712 
713   public static final int LOCKED_FIELD_NUMBER = 27;
714   private boolean locked_ = false;
715   /**
716    *
717    *
718    * <pre>
719    * Indicates whether the agent is locked for changes. If the agent is locked,
720    * modifications to the agent will be rejected except for [RestoreAgent][].
721    * </pre>
722    *
723    * <code>bool locked = 27;</code>
724    *
725    * @return The locked.
726    */
727   @java.lang.Override
getLocked()728   public boolean getLocked() {
729     return locked_;
730   }
731 
732   public static final int ADVANCED_SETTINGS_FIELD_NUMBER = 22;
733   private com.google.cloud.dialogflow.cx.v3.AdvancedSettings advancedSettings_;
734   /**
735    *
736    *
737    * <pre>
738    * Hierarchical advanced settings for this agent. The settings exposed at the
739    * lower level overrides the settings exposed at the higher level.
740    * </pre>
741    *
742    * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
743    *
744    * @return Whether the advancedSettings field is set.
745    */
746   @java.lang.Override
hasAdvancedSettings()747   public boolean hasAdvancedSettings() {
748     return advancedSettings_ != null;
749   }
750   /**
751    *
752    *
753    * <pre>
754    * Hierarchical advanced settings for this agent. The settings exposed at the
755    * lower level overrides the settings exposed at the higher level.
756    * </pre>
757    *
758    * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
759    *
760    * @return The advancedSettings.
761    */
762   @java.lang.Override
getAdvancedSettings()763   public com.google.cloud.dialogflow.cx.v3.AdvancedSettings getAdvancedSettings() {
764     return advancedSettings_ == null
765         ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
766         : advancedSettings_;
767   }
768   /**
769    *
770    *
771    * <pre>
772    * Hierarchical advanced settings for this agent. The settings exposed at the
773    * lower level overrides the settings exposed at the higher level.
774    * </pre>
775    *
776    * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
777    */
778   @java.lang.Override
779   public com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder
getAdvancedSettingsOrBuilder()780       getAdvancedSettingsOrBuilder() {
781     return advancedSettings_ == null
782         ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
783         : advancedSettings_;
784   }
785 
786   public static final int TEXT_TO_SPEECH_SETTINGS_FIELD_NUMBER = 31;
787   private com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings textToSpeechSettings_;
788   /**
789    *
790    *
791    * <pre>
792    * Settings on instructing the speech synthesizer on how to generate the
793    * output audio content.
794    * </pre>
795    *
796    * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;</code>
797    *
798    * @return Whether the textToSpeechSettings field is set.
799    */
800   @java.lang.Override
hasTextToSpeechSettings()801   public boolean hasTextToSpeechSettings() {
802     return textToSpeechSettings_ != null;
803   }
804   /**
805    *
806    *
807    * <pre>
808    * Settings on instructing the speech synthesizer on how to generate the
809    * output audio content.
810    * </pre>
811    *
812    * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;</code>
813    *
814    * @return The textToSpeechSettings.
815    */
816   @java.lang.Override
getTextToSpeechSettings()817   public com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings getTextToSpeechSettings() {
818     return textToSpeechSettings_ == null
819         ? com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.getDefaultInstance()
820         : textToSpeechSettings_;
821   }
822   /**
823    *
824    *
825    * <pre>
826    * Settings on instructing the speech synthesizer on how to generate the
827    * output audio content.
828    * </pre>
829    *
830    * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;</code>
831    */
832   @java.lang.Override
833   public com.google.cloud.dialogflow.cx.v3.TextToSpeechSettingsOrBuilder
getTextToSpeechSettingsOrBuilder()834       getTextToSpeechSettingsOrBuilder() {
835     return textToSpeechSettings_ == null
836         ? com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.getDefaultInstance()
837         : textToSpeechSettings_;
838   }
839 
840   private byte memoizedIsInitialized = -1;
841 
842   @java.lang.Override
isInitialized()843   public final boolean isInitialized() {
844     byte isInitialized = memoizedIsInitialized;
845     if (isInitialized == 1) return true;
846     if (isInitialized == 0) return false;
847 
848     memoizedIsInitialized = 1;
849     return true;
850   }
851 
852   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)853   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
854     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
855       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
856     }
857     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
858       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
859     }
860     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguageCode_)) {
861       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultLanguageCode_);
862     }
863     for (int i = 0; i < supportedLanguageCodes_.size(); i++) {
864       com.google.protobuf.GeneratedMessageV3.writeString(
865           output, 4, supportedLanguageCodes_.getRaw(i));
866     }
867     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) {
868       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_);
869     }
870     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
871       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
872     }
873     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatarUri_)) {
874       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, avatarUri_);
875     }
876     if (speechToTextSettings_ != null) {
877       output.writeMessage(13, getSpeechToTextSettings());
878     }
879     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) {
880       com.google.protobuf.GeneratedMessageV3.writeString(output, 16, startFlow_);
881     }
882     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) {
883       com.google.protobuf.GeneratedMessageV3.writeString(output, 17, securitySettings_);
884     }
885     if (enableStackdriverLogging_ != false) {
886       output.writeBool(18, enableStackdriverLogging_);
887     }
888     if (enableSpellCorrection_ != false) {
889       output.writeBool(20, enableSpellCorrection_);
890     }
891     if (advancedSettings_ != null) {
892       output.writeMessage(22, getAdvancedSettings());
893     }
894     if (locked_ != false) {
895       output.writeBool(27, locked_);
896     }
897     if (textToSpeechSettings_ != null) {
898       output.writeMessage(31, getTextToSpeechSettings());
899     }
900     getUnknownFields().writeTo(output);
901   }
902 
903   @java.lang.Override
getSerializedSize()904   public int getSerializedSize() {
905     int size = memoizedSize;
906     if (size != -1) return size;
907 
908     size = 0;
909     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
910       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
911     }
912     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
913       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
914     }
915     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLanguageCode_)) {
916       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultLanguageCode_);
917     }
918     {
919       int dataSize = 0;
920       for (int i = 0; i < supportedLanguageCodes_.size(); i++) {
921         dataSize += computeStringSizeNoTag(supportedLanguageCodes_.getRaw(i));
922       }
923       size += dataSize;
924       size += 1 * getSupportedLanguageCodesList().size();
925     }
926     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) {
927       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timeZone_);
928     }
929     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
930       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
931     }
932     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatarUri_)) {
933       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, avatarUri_);
934     }
935     if (speechToTextSettings_ != null) {
936       size +=
937           com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSpeechToTextSettings());
938     }
939     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) {
940       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, startFlow_);
941     }
942     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) {
943       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, securitySettings_);
944     }
945     if (enableStackdriverLogging_ != false) {
946       size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, enableStackdriverLogging_);
947     }
948     if (enableSpellCorrection_ != false) {
949       size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, enableSpellCorrection_);
950     }
951     if (advancedSettings_ != null) {
952       size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getAdvancedSettings());
953     }
954     if (locked_ != false) {
955       size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, locked_);
956     }
957     if (textToSpeechSettings_ != null) {
958       size +=
959           com.google.protobuf.CodedOutputStream.computeMessageSize(31, getTextToSpeechSettings());
960     }
961     size += getUnknownFields().getSerializedSize();
962     memoizedSize = size;
963     return size;
964   }
965 
966   @java.lang.Override
equals(final java.lang.Object obj)967   public boolean equals(final java.lang.Object obj) {
968     if (obj == this) {
969       return true;
970     }
971     if (!(obj instanceof com.google.cloud.dialogflow.cx.v3.Agent)) {
972       return super.equals(obj);
973     }
974     com.google.cloud.dialogflow.cx.v3.Agent other = (com.google.cloud.dialogflow.cx.v3.Agent) obj;
975 
976     if (!getName().equals(other.getName())) return false;
977     if (!getDisplayName().equals(other.getDisplayName())) return false;
978     if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false;
979     if (!getSupportedLanguageCodesList().equals(other.getSupportedLanguageCodesList()))
980       return false;
981     if (!getTimeZone().equals(other.getTimeZone())) return false;
982     if (!getDescription().equals(other.getDescription())) return false;
983     if (!getAvatarUri().equals(other.getAvatarUri())) return false;
984     if (hasSpeechToTextSettings() != other.hasSpeechToTextSettings()) return false;
985     if (hasSpeechToTextSettings()) {
986       if (!getSpeechToTextSettings().equals(other.getSpeechToTextSettings())) return false;
987     }
988     if (!getStartFlow().equals(other.getStartFlow())) return false;
989     if (!getSecuritySettings().equals(other.getSecuritySettings())) return false;
990     if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false;
991     if (getEnableSpellCorrection() != other.getEnableSpellCorrection()) return false;
992     if (getLocked() != other.getLocked()) return false;
993     if (hasAdvancedSettings() != other.hasAdvancedSettings()) return false;
994     if (hasAdvancedSettings()) {
995       if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false;
996     }
997     if (hasTextToSpeechSettings() != other.hasTextToSpeechSettings()) return false;
998     if (hasTextToSpeechSettings()) {
999       if (!getTextToSpeechSettings().equals(other.getTextToSpeechSettings())) return false;
1000     }
1001     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1002     return true;
1003   }
1004 
1005   @java.lang.Override
hashCode()1006   public int hashCode() {
1007     if (memoizedHashCode != 0) {
1008       return memoizedHashCode;
1009     }
1010     int hash = 41;
1011     hash = (19 * hash) + getDescriptor().hashCode();
1012     hash = (37 * hash) + NAME_FIELD_NUMBER;
1013     hash = (53 * hash) + getName().hashCode();
1014     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
1015     hash = (53 * hash) + getDisplayName().hashCode();
1016     hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER;
1017     hash = (53 * hash) + getDefaultLanguageCode().hashCode();
1018     if (getSupportedLanguageCodesCount() > 0) {
1019       hash = (37 * hash) + SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER;
1020       hash = (53 * hash) + getSupportedLanguageCodesList().hashCode();
1021     }
1022     hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER;
1023     hash = (53 * hash) + getTimeZone().hashCode();
1024     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1025     hash = (53 * hash) + getDescription().hashCode();
1026     hash = (37 * hash) + AVATAR_URI_FIELD_NUMBER;
1027     hash = (53 * hash) + getAvatarUri().hashCode();
1028     if (hasSpeechToTextSettings()) {
1029       hash = (37 * hash) + SPEECH_TO_TEXT_SETTINGS_FIELD_NUMBER;
1030       hash = (53 * hash) + getSpeechToTextSettings().hashCode();
1031     }
1032     hash = (37 * hash) + START_FLOW_FIELD_NUMBER;
1033     hash = (53 * hash) + getStartFlow().hashCode();
1034     hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER;
1035     hash = (53 * hash) + getSecuritySettings().hashCode();
1036     hash = (37 * hash) + ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER;
1037     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStackdriverLogging());
1038     hash = (37 * hash) + ENABLE_SPELL_CORRECTION_FIELD_NUMBER;
1039     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpellCorrection());
1040     hash = (37 * hash) + LOCKED_FIELD_NUMBER;
1041     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked());
1042     if (hasAdvancedSettings()) {
1043       hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER;
1044       hash = (53 * hash) + getAdvancedSettings().hashCode();
1045     }
1046     if (hasTextToSpeechSettings()) {
1047       hash = (37 * hash) + TEXT_TO_SPEECH_SETTINGS_FIELD_NUMBER;
1048       hash = (53 * hash) + getTextToSpeechSettings().hashCode();
1049     }
1050     hash = (29 * hash) + getUnknownFields().hashCode();
1051     memoizedHashCode = hash;
1052     return hash;
1053   }
1054 
parseFrom(java.nio.ByteBuffer data)1055   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(java.nio.ByteBuffer data)
1056       throws com.google.protobuf.InvalidProtocolBufferException {
1057     return PARSER.parseFrom(data);
1058   }
1059 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1060   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1061       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1062       throws com.google.protobuf.InvalidProtocolBufferException {
1063     return PARSER.parseFrom(data, extensionRegistry);
1064   }
1065 
parseFrom( com.google.protobuf.ByteString data)1066   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1067       com.google.protobuf.ByteString data)
1068       throws com.google.protobuf.InvalidProtocolBufferException {
1069     return PARSER.parseFrom(data);
1070   }
1071 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1072   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1073       com.google.protobuf.ByteString data,
1074       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1075       throws com.google.protobuf.InvalidProtocolBufferException {
1076     return PARSER.parseFrom(data, extensionRegistry);
1077   }
1078 
parseFrom(byte[] data)1079   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(byte[] data)
1080       throws com.google.protobuf.InvalidProtocolBufferException {
1081     return PARSER.parseFrom(data);
1082   }
1083 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1084   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1085       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1086       throws com.google.protobuf.InvalidProtocolBufferException {
1087     return PARSER.parseFrom(data, extensionRegistry);
1088   }
1089 
parseFrom(java.io.InputStream input)1090   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(java.io.InputStream input)
1091       throws java.io.IOException {
1092     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1093   }
1094 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1095   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1096       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1097       throws java.io.IOException {
1098     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1099         PARSER, input, extensionRegistry);
1100   }
1101 
parseDelimitedFrom( java.io.InputStream input)1102   public static com.google.cloud.dialogflow.cx.v3.Agent parseDelimitedFrom(
1103       java.io.InputStream input) throws java.io.IOException {
1104     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1105   }
1106 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1107   public static com.google.cloud.dialogflow.cx.v3.Agent parseDelimitedFrom(
1108       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1109       throws java.io.IOException {
1110     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1111         PARSER, input, extensionRegistry);
1112   }
1113 
parseFrom( com.google.protobuf.CodedInputStream input)1114   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1115       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1116     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1117   }
1118 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1119   public static com.google.cloud.dialogflow.cx.v3.Agent parseFrom(
1120       com.google.protobuf.CodedInputStream input,
1121       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1122       throws java.io.IOException {
1123     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1124         PARSER, input, extensionRegistry);
1125   }
1126 
1127   @java.lang.Override
newBuilderForType()1128   public Builder newBuilderForType() {
1129     return newBuilder();
1130   }
1131 
newBuilder()1132   public static Builder newBuilder() {
1133     return DEFAULT_INSTANCE.toBuilder();
1134   }
1135 
newBuilder(com.google.cloud.dialogflow.cx.v3.Agent prototype)1136   public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3.Agent prototype) {
1137     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1138   }
1139 
1140   @java.lang.Override
toBuilder()1141   public Builder toBuilder() {
1142     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1143   }
1144 
1145   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1146   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1147     Builder builder = new Builder(parent);
1148     return builder;
1149   }
1150   /**
1151    *
1152    *
1153    * <pre>
1154    * Agents are best described as Natural Language Understanding (NLU) modules
1155    * that transform user requests into actionable data. You can include agents
1156    * in your app, product, or service to determine user intent and respond to the
1157    * user in a natural way.
1158    * After you create an agent, you can add
1159    * [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity
1160    * Types][google.cloud.dialogflow.cx.v3.EntityType],
1161    * [Flows][google.cloud.dialogflow.cx.v3.Flow],
1162    * [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
1163    * [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the
1164    * conversation flows..
1165    * </pre>
1166    *
1167    * Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent}
1168    */
1169   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1170       implements
1171       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.Agent)
1172       com.google.cloud.dialogflow.cx.v3.AgentOrBuilder {
getDescriptor()1173     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1174       return com.google.cloud.dialogflow.cx.v3.AgentProto
1175           .internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor;
1176     }
1177 
1178     @java.lang.Override
1179     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1180         internalGetFieldAccessorTable() {
1181       return com.google.cloud.dialogflow.cx.v3.AgentProto
1182           .internal_static_google_cloud_dialogflow_cx_v3_Agent_fieldAccessorTable
1183           .ensureFieldAccessorsInitialized(
1184               com.google.cloud.dialogflow.cx.v3.Agent.class,
1185               com.google.cloud.dialogflow.cx.v3.Agent.Builder.class);
1186     }
1187 
1188     // Construct using com.google.cloud.dialogflow.cx.v3.Agent.newBuilder()
Builder()1189     private Builder() {}
1190 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1191     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1192       super(parent);
1193     }
1194 
1195     @java.lang.Override
clear()1196     public Builder clear() {
1197       super.clear();
1198       bitField0_ = 0;
1199       name_ = "";
1200       displayName_ = "";
1201       defaultLanguageCode_ = "";
1202       supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1203       bitField0_ = (bitField0_ & ~0x00000008);
1204       timeZone_ = "";
1205       description_ = "";
1206       avatarUri_ = "";
1207       speechToTextSettings_ = null;
1208       if (speechToTextSettingsBuilder_ != null) {
1209         speechToTextSettingsBuilder_.dispose();
1210         speechToTextSettingsBuilder_ = null;
1211       }
1212       startFlow_ = "";
1213       securitySettings_ = "";
1214       enableStackdriverLogging_ = false;
1215       enableSpellCorrection_ = false;
1216       locked_ = false;
1217       advancedSettings_ = null;
1218       if (advancedSettingsBuilder_ != null) {
1219         advancedSettingsBuilder_.dispose();
1220         advancedSettingsBuilder_ = null;
1221       }
1222       textToSpeechSettings_ = null;
1223       if (textToSpeechSettingsBuilder_ != null) {
1224         textToSpeechSettingsBuilder_.dispose();
1225         textToSpeechSettingsBuilder_ = null;
1226       }
1227       return this;
1228     }
1229 
1230     @java.lang.Override
getDescriptorForType()1231     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1232       return com.google.cloud.dialogflow.cx.v3.AgentProto
1233           .internal_static_google_cloud_dialogflow_cx_v3_Agent_descriptor;
1234     }
1235 
1236     @java.lang.Override
getDefaultInstanceForType()1237     public com.google.cloud.dialogflow.cx.v3.Agent getDefaultInstanceForType() {
1238       return com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance();
1239     }
1240 
1241     @java.lang.Override
build()1242     public com.google.cloud.dialogflow.cx.v3.Agent build() {
1243       com.google.cloud.dialogflow.cx.v3.Agent result = buildPartial();
1244       if (!result.isInitialized()) {
1245         throw newUninitializedMessageException(result);
1246       }
1247       return result;
1248     }
1249 
1250     @java.lang.Override
buildPartial()1251     public com.google.cloud.dialogflow.cx.v3.Agent buildPartial() {
1252       com.google.cloud.dialogflow.cx.v3.Agent result =
1253           new com.google.cloud.dialogflow.cx.v3.Agent(this);
1254       buildPartialRepeatedFields(result);
1255       if (bitField0_ != 0) {
1256         buildPartial0(result);
1257       }
1258       onBuilt();
1259       return result;
1260     }
1261 
buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Agent result)1262     private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Agent result) {
1263       if (((bitField0_ & 0x00000008) != 0)) {
1264         supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView();
1265         bitField0_ = (bitField0_ & ~0x00000008);
1266       }
1267       result.supportedLanguageCodes_ = supportedLanguageCodes_;
1268     }
1269 
buildPartial0(com.google.cloud.dialogflow.cx.v3.Agent result)1270     private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Agent result) {
1271       int from_bitField0_ = bitField0_;
1272       if (((from_bitField0_ & 0x00000001) != 0)) {
1273         result.name_ = name_;
1274       }
1275       if (((from_bitField0_ & 0x00000002) != 0)) {
1276         result.displayName_ = displayName_;
1277       }
1278       if (((from_bitField0_ & 0x00000004) != 0)) {
1279         result.defaultLanguageCode_ = defaultLanguageCode_;
1280       }
1281       if (((from_bitField0_ & 0x00000010) != 0)) {
1282         result.timeZone_ = timeZone_;
1283       }
1284       if (((from_bitField0_ & 0x00000020) != 0)) {
1285         result.description_ = description_;
1286       }
1287       if (((from_bitField0_ & 0x00000040) != 0)) {
1288         result.avatarUri_ = avatarUri_;
1289       }
1290       if (((from_bitField0_ & 0x00000080) != 0)) {
1291         result.speechToTextSettings_ =
1292             speechToTextSettingsBuilder_ == null
1293                 ? speechToTextSettings_
1294                 : speechToTextSettingsBuilder_.build();
1295       }
1296       if (((from_bitField0_ & 0x00000100) != 0)) {
1297         result.startFlow_ = startFlow_;
1298       }
1299       if (((from_bitField0_ & 0x00000200) != 0)) {
1300         result.securitySettings_ = securitySettings_;
1301       }
1302       if (((from_bitField0_ & 0x00000400) != 0)) {
1303         result.enableStackdriverLogging_ = enableStackdriverLogging_;
1304       }
1305       if (((from_bitField0_ & 0x00000800) != 0)) {
1306         result.enableSpellCorrection_ = enableSpellCorrection_;
1307       }
1308       if (((from_bitField0_ & 0x00001000) != 0)) {
1309         result.locked_ = locked_;
1310       }
1311       if (((from_bitField0_ & 0x00002000) != 0)) {
1312         result.advancedSettings_ =
1313             advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build();
1314       }
1315       if (((from_bitField0_ & 0x00004000) != 0)) {
1316         result.textToSpeechSettings_ =
1317             textToSpeechSettingsBuilder_ == null
1318                 ? textToSpeechSettings_
1319                 : textToSpeechSettingsBuilder_.build();
1320       }
1321     }
1322 
1323     @java.lang.Override
clone()1324     public Builder clone() {
1325       return super.clone();
1326     }
1327 
1328     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1329     public Builder setField(
1330         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1331       return super.setField(field, value);
1332     }
1333 
1334     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1335     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1336       return super.clearField(field);
1337     }
1338 
1339     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1340     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1341       return super.clearOneof(oneof);
1342     }
1343 
1344     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1345     public Builder setRepeatedField(
1346         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1347       return super.setRepeatedField(field, index, value);
1348     }
1349 
1350     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1351     public Builder addRepeatedField(
1352         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1353       return super.addRepeatedField(field, value);
1354     }
1355 
1356     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1357     public Builder mergeFrom(com.google.protobuf.Message other) {
1358       if (other instanceof com.google.cloud.dialogflow.cx.v3.Agent) {
1359         return mergeFrom((com.google.cloud.dialogflow.cx.v3.Agent) other);
1360       } else {
1361         super.mergeFrom(other);
1362         return this;
1363       }
1364     }
1365 
mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other)1366     public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) {
1367       if (other == com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance()) return this;
1368       if (!other.getName().isEmpty()) {
1369         name_ = other.name_;
1370         bitField0_ |= 0x00000001;
1371         onChanged();
1372       }
1373       if (!other.getDisplayName().isEmpty()) {
1374         displayName_ = other.displayName_;
1375         bitField0_ |= 0x00000002;
1376         onChanged();
1377       }
1378       if (!other.getDefaultLanguageCode().isEmpty()) {
1379         defaultLanguageCode_ = other.defaultLanguageCode_;
1380         bitField0_ |= 0x00000004;
1381         onChanged();
1382       }
1383       if (!other.supportedLanguageCodes_.isEmpty()) {
1384         if (supportedLanguageCodes_.isEmpty()) {
1385           supportedLanguageCodes_ = other.supportedLanguageCodes_;
1386           bitField0_ = (bitField0_ & ~0x00000008);
1387         } else {
1388           ensureSupportedLanguageCodesIsMutable();
1389           supportedLanguageCodes_.addAll(other.supportedLanguageCodes_);
1390         }
1391         onChanged();
1392       }
1393       if (!other.getTimeZone().isEmpty()) {
1394         timeZone_ = other.timeZone_;
1395         bitField0_ |= 0x00000010;
1396         onChanged();
1397       }
1398       if (!other.getDescription().isEmpty()) {
1399         description_ = other.description_;
1400         bitField0_ |= 0x00000020;
1401         onChanged();
1402       }
1403       if (!other.getAvatarUri().isEmpty()) {
1404         avatarUri_ = other.avatarUri_;
1405         bitField0_ |= 0x00000040;
1406         onChanged();
1407       }
1408       if (other.hasSpeechToTextSettings()) {
1409         mergeSpeechToTextSettings(other.getSpeechToTextSettings());
1410       }
1411       if (!other.getStartFlow().isEmpty()) {
1412         startFlow_ = other.startFlow_;
1413         bitField0_ |= 0x00000100;
1414         onChanged();
1415       }
1416       if (!other.getSecuritySettings().isEmpty()) {
1417         securitySettings_ = other.securitySettings_;
1418         bitField0_ |= 0x00000200;
1419         onChanged();
1420       }
1421       if (other.getEnableStackdriverLogging() != false) {
1422         setEnableStackdriverLogging(other.getEnableStackdriverLogging());
1423       }
1424       if (other.getEnableSpellCorrection() != false) {
1425         setEnableSpellCorrection(other.getEnableSpellCorrection());
1426       }
1427       if (other.getLocked() != false) {
1428         setLocked(other.getLocked());
1429       }
1430       if (other.hasAdvancedSettings()) {
1431         mergeAdvancedSettings(other.getAdvancedSettings());
1432       }
1433       if (other.hasTextToSpeechSettings()) {
1434         mergeTextToSpeechSettings(other.getTextToSpeechSettings());
1435       }
1436       this.mergeUnknownFields(other.getUnknownFields());
1437       onChanged();
1438       return this;
1439     }
1440 
1441     @java.lang.Override
isInitialized()1442     public final boolean isInitialized() {
1443       return true;
1444     }
1445 
1446     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1447     public Builder mergeFrom(
1448         com.google.protobuf.CodedInputStream input,
1449         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1450         throws java.io.IOException {
1451       if (extensionRegistry == null) {
1452         throw new java.lang.NullPointerException();
1453       }
1454       try {
1455         boolean done = false;
1456         while (!done) {
1457           int tag = input.readTag();
1458           switch (tag) {
1459             case 0:
1460               done = true;
1461               break;
1462             case 10:
1463               {
1464                 name_ = input.readStringRequireUtf8();
1465                 bitField0_ |= 0x00000001;
1466                 break;
1467               } // case 10
1468             case 18:
1469               {
1470                 displayName_ = input.readStringRequireUtf8();
1471                 bitField0_ |= 0x00000002;
1472                 break;
1473               } // case 18
1474             case 26:
1475               {
1476                 defaultLanguageCode_ = input.readStringRequireUtf8();
1477                 bitField0_ |= 0x00000004;
1478                 break;
1479               } // case 26
1480             case 34:
1481               {
1482                 java.lang.String s = input.readStringRequireUtf8();
1483                 ensureSupportedLanguageCodesIsMutable();
1484                 supportedLanguageCodes_.add(s);
1485                 break;
1486               } // case 34
1487             case 42:
1488               {
1489                 timeZone_ = input.readStringRequireUtf8();
1490                 bitField0_ |= 0x00000010;
1491                 break;
1492               } // case 42
1493             case 50:
1494               {
1495                 description_ = input.readStringRequireUtf8();
1496                 bitField0_ |= 0x00000020;
1497                 break;
1498               } // case 50
1499             case 58:
1500               {
1501                 avatarUri_ = input.readStringRequireUtf8();
1502                 bitField0_ |= 0x00000040;
1503                 break;
1504               } // case 58
1505             case 106:
1506               {
1507                 input.readMessage(
1508                     getSpeechToTextSettingsFieldBuilder().getBuilder(), extensionRegistry);
1509                 bitField0_ |= 0x00000080;
1510                 break;
1511               } // case 106
1512             case 130:
1513               {
1514                 startFlow_ = input.readStringRequireUtf8();
1515                 bitField0_ |= 0x00000100;
1516                 break;
1517               } // case 130
1518             case 138:
1519               {
1520                 securitySettings_ = input.readStringRequireUtf8();
1521                 bitField0_ |= 0x00000200;
1522                 break;
1523               } // case 138
1524             case 144:
1525               {
1526                 enableStackdriverLogging_ = input.readBool();
1527                 bitField0_ |= 0x00000400;
1528                 break;
1529               } // case 144
1530             case 160:
1531               {
1532                 enableSpellCorrection_ = input.readBool();
1533                 bitField0_ |= 0x00000800;
1534                 break;
1535               } // case 160
1536             case 178:
1537               {
1538                 input.readMessage(
1539                     getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry);
1540                 bitField0_ |= 0x00002000;
1541                 break;
1542               } // case 178
1543             case 216:
1544               {
1545                 locked_ = input.readBool();
1546                 bitField0_ |= 0x00001000;
1547                 break;
1548               } // case 216
1549             case 250:
1550               {
1551                 input.readMessage(
1552                     getTextToSpeechSettingsFieldBuilder().getBuilder(), extensionRegistry);
1553                 bitField0_ |= 0x00004000;
1554                 break;
1555               } // case 250
1556             default:
1557               {
1558                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1559                   done = true; // was an endgroup tag
1560                 }
1561                 break;
1562               } // default:
1563           } // switch (tag)
1564         } // while (!done)
1565       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1566         throw e.unwrapIOException();
1567       } finally {
1568         onChanged();
1569       } // finally
1570       return this;
1571     }
1572 
1573     private int bitField0_;
1574 
1575     private java.lang.Object name_ = "";
1576     /**
1577      *
1578      *
1579      * <pre>
1580      * The unique identifier of the agent.
1581      * Required for the
1582      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1583      * method.
1584      * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
1585      * populates the name automatically.
1586      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
1587      * </pre>
1588      *
1589      * <code>string name = 1;</code>
1590      *
1591      * @return The name.
1592      */
getName()1593     public java.lang.String getName() {
1594       java.lang.Object ref = name_;
1595       if (!(ref instanceof java.lang.String)) {
1596         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1597         java.lang.String s = bs.toStringUtf8();
1598         name_ = s;
1599         return s;
1600       } else {
1601         return (java.lang.String) ref;
1602       }
1603     }
1604     /**
1605      *
1606      *
1607      * <pre>
1608      * The unique identifier of the agent.
1609      * Required for the
1610      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1611      * method.
1612      * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
1613      * populates the name automatically.
1614      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
1615      * </pre>
1616      *
1617      * <code>string name = 1;</code>
1618      *
1619      * @return The bytes for name.
1620      */
getNameBytes()1621     public com.google.protobuf.ByteString getNameBytes() {
1622       java.lang.Object ref = name_;
1623       if (ref instanceof String) {
1624         com.google.protobuf.ByteString b =
1625             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1626         name_ = b;
1627         return b;
1628       } else {
1629         return (com.google.protobuf.ByteString) ref;
1630       }
1631     }
1632     /**
1633      *
1634      *
1635      * <pre>
1636      * The unique identifier of the agent.
1637      * Required for the
1638      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1639      * method.
1640      * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
1641      * populates the name automatically.
1642      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
1643      * </pre>
1644      *
1645      * <code>string name = 1;</code>
1646      *
1647      * @param value The name to set.
1648      * @return This builder for chaining.
1649      */
setName(java.lang.String value)1650     public Builder setName(java.lang.String value) {
1651       if (value == null) {
1652         throw new NullPointerException();
1653       }
1654       name_ = value;
1655       bitField0_ |= 0x00000001;
1656       onChanged();
1657       return this;
1658     }
1659     /**
1660      *
1661      *
1662      * <pre>
1663      * The unique identifier of the agent.
1664      * Required for the
1665      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1666      * method.
1667      * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
1668      * populates the name automatically.
1669      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
1670      * </pre>
1671      *
1672      * <code>string name = 1;</code>
1673      *
1674      * @return This builder for chaining.
1675      */
clearName()1676     public Builder clearName() {
1677       name_ = getDefaultInstance().getName();
1678       bitField0_ = (bitField0_ & ~0x00000001);
1679       onChanged();
1680       return this;
1681     }
1682     /**
1683      *
1684      *
1685      * <pre>
1686      * The unique identifier of the agent.
1687      * Required for the
1688      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1689      * method.
1690      * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
1691      * populates the name automatically.
1692      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
1693      * </pre>
1694      *
1695      * <code>string name = 1;</code>
1696      *
1697      * @param value The bytes for name to set.
1698      * @return This builder for chaining.
1699      */
setNameBytes(com.google.protobuf.ByteString value)1700     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1701       if (value == null) {
1702         throw new NullPointerException();
1703       }
1704       checkByteStringIsUtf8(value);
1705       name_ = value;
1706       bitField0_ |= 0x00000001;
1707       onChanged();
1708       return this;
1709     }
1710 
1711     private java.lang.Object displayName_ = "";
1712     /**
1713      *
1714      *
1715      * <pre>
1716      * Required. The human-readable name of the agent, unique within the location.
1717      * </pre>
1718      *
1719      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1720      *
1721      * @return The displayName.
1722      */
getDisplayName()1723     public java.lang.String getDisplayName() {
1724       java.lang.Object ref = displayName_;
1725       if (!(ref instanceof java.lang.String)) {
1726         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1727         java.lang.String s = bs.toStringUtf8();
1728         displayName_ = s;
1729         return s;
1730       } else {
1731         return (java.lang.String) ref;
1732       }
1733     }
1734     /**
1735      *
1736      *
1737      * <pre>
1738      * Required. The human-readable name of the agent, unique within the location.
1739      * </pre>
1740      *
1741      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1742      *
1743      * @return The bytes for displayName.
1744      */
getDisplayNameBytes()1745     public com.google.protobuf.ByteString getDisplayNameBytes() {
1746       java.lang.Object ref = displayName_;
1747       if (ref instanceof String) {
1748         com.google.protobuf.ByteString b =
1749             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1750         displayName_ = b;
1751         return b;
1752       } else {
1753         return (com.google.protobuf.ByteString) ref;
1754       }
1755     }
1756     /**
1757      *
1758      *
1759      * <pre>
1760      * Required. The human-readable name of the agent, unique within the location.
1761      * </pre>
1762      *
1763      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1764      *
1765      * @param value The displayName to set.
1766      * @return This builder for chaining.
1767      */
setDisplayName(java.lang.String value)1768     public Builder setDisplayName(java.lang.String value) {
1769       if (value == null) {
1770         throw new NullPointerException();
1771       }
1772       displayName_ = value;
1773       bitField0_ |= 0x00000002;
1774       onChanged();
1775       return this;
1776     }
1777     /**
1778      *
1779      *
1780      * <pre>
1781      * Required. The human-readable name of the agent, unique within the location.
1782      * </pre>
1783      *
1784      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1785      *
1786      * @return This builder for chaining.
1787      */
clearDisplayName()1788     public Builder clearDisplayName() {
1789       displayName_ = getDefaultInstance().getDisplayName();
1790       bitField0_ = (bitField0_ & ~0x00000002);
1791       onChanged();
1792       return this;
1793     }
1794     /**
1795      *
1796      *
1797      * <pre>
1798      * Required. The human-readable name of the agent, unique within the location.
1799      * </pre>
1800      *
1801      * <code>string display_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1802      *
1803      * @param value The bytes for displayName to set.
1804      * @return This builder for chaining.
1805      */
setDisplayNameBytes(com.google.protobuf.ByteString value)1806     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
1807       if (value == null) {
1808         throw new NullPointerException();
1809       }
1810       checkByteStringIsUtf8(value);
1811       displayName_ = value;
1812       bitField0_ |= 0x00000002;
1813       onChanged();
1814       return this;
1815     }
1816 
1817     private java.lang.Object defaultLanguageCode_ = "";
1818     /**
1819      *
1820      *
1821      * <pre>
1822      * Required. Immutable. The default language of the agent as a language tag.
1823      * See [Language
1824      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
1825      * for a list of the currently supported language codes.
1826      * This field cannot be set by the
1827      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1828      * method.
1829      * </pre>
1830      *
1831      * <code>
1832      * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
1833      * </code>
1834      *
1835      * @return The defaultLanguageCode.
1836      */
getDefaultLanguageCode()1837     public java.lang.String getDefaultLanguageCode() {
1838       java.lang.Object ref = defaultLanguageCode_;
1839       if (!(ref instanceof java.lang.String)) {
1840         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1841         java.lang.String s = bs.toStringUtf8();
1842         defaultLanguageCode_ = s;
1843         return s;
1844       } else {
1845         return (java.lang.String) ref;
1846       }
1847     }
1848     /**
1849      *
1850      *
1851      * <pre>
1852      * Required. Immutable. The default language of the agent as a language tag.
1853      * See [Language
1854      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
1855      * for a list of the currently supported language codes.
1856      * This field cannot be set by the
1857      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1858      * method.
1859      * </pre>
1860      *
1861      * <code>
1862      * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
1863      * </code>
1864      *
1865      * @return The bytes for defaultLanguageCode.
1866      */
getDefaultLanguageCodeBytes()1867     public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
1868       java.lang.Object ref = defaultLanguageCode_;
1869       if (ref instanceof String) {
1870         com.google.protobuf.ByteString b =
1871             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1872         defaultLanguageCode_ = b;
1873         return b;
1874       } else {
1875         return (com.google.protobuf.ByteString) ref;
1876       }
1877     }
1878     /**
1879      *
1880      *
1881      * <pre>
1882      * Required. Immutable. The default language of the agent as a language tag.
1883      * See [Language
1884      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
1885      * for a list of the currently supported language codes.
1886      * This field cannot be set by the
1887      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1888      * method.
1889      * </pre>
1890      *
1891      * <code>
1892      * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
1893      * </code>
1894      *
1895      * @param value The defaultLanguageCode to set.
1896      * @return This builder for chaining.
1897      */
setDefaultLanguageCode(java.lang.String value)1898     public Builder setDefaultLanguageCode(java.lang.String value) {
1899       if (value == null) {
1900         throw new NullPointerException();
1901       }
1902       defaultLanguageCode_ = value;
1903       bitField0_ |= 0x00000004;
1904       onChanged();
1905       return this;
1906     }
1907     /**
1908      *
1909      *
1910      * <pre>
1911      * Required. Immutable. The default language of the agent as a language tag.
1912      * See [Language
1913      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
1914      * for a list of the currently supported language codes.
1915      * This field cannot be set by the
1916      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1917      * method.
1918      * </pre>
1919      *
1920      * <code>
1921      * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
1922      * </code>
1923      *
1924      * @return This builder for chaining.
1925      */
clearDefaultLanguageCode()1926     public Builder clearDefaultLanguageCode() {
1927       defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode();
1928       bitField0_ = (bitField0_ & ~0x00000004);
1929       onChanged();
1930       return this;
1931     }
1932     /**
1933      *
1934      *
1935      * <pre>
1936      * Required. Immutable. The default language of the agent as a language tag.
1937      * See [Language
1938      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
1939      * for a list of the currently supported language codes.
1940      * This field cannot be set by the
1941      * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
1942      * method.
1943      * </pre>
1944      *
1945      * <code>
1946      * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
1947      * </code>
1948      *
1949      * @param value The bytes for defaultLanguageCode to set.
1950      * @return This builder for chaining.
1951      */
setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value)1952     public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) {
1953       if (value == null) {
1954         throw new NullPointerException();
1955       }
1956       checkByteStringIsUtf8(value);
1957       defaultLanguageCode_ = value;
1958       bitField0_ |= 0x00000004;
1959       onChanged();
1960       return this;
1961     }
1962 
1963     private com.google.protobuf.LazyStringList supportedLanguageCodes_ =
1964         com.google.protobuf.LazyStringArrayList.EMPTY;
1965 
ensureSupportedLanguageCodesIsMutable()1966     private void ensureSupportedLanguageCodesIsMutable() {
1967       if (!((bitField0_ & 0x00000008) != 0)) {
1968         supportedLanguageCodes_ =
1969             new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_);
1970         bitField0_ |= 0x00000008;
1971       }
1972     }
1973     /**
1974      *
1975      *
1976      * <pre>
1977      * The list of all languages supported by the agent (except for the
1978      * `default_language_code`).
1979      * </pre>
1980      *
1981      * <code>repeated string supported_language_codes = 4;</code>
1982      *
1983      * @return A list containing the supportedLanguageCodes.
1984      */
getSupportedLanguageCodesList()1985     public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList() {
1986       return supportedLanguageCodes_.getUnmodifiableView();
1987     }
1988     /**
1989      *
1990      *
1991      * <pre>
1992      * The list of all languages supported by the agent (except for the
1993      * `default_language_code`).
1994      * </pre>
1995      *
1996      * <code>repeated string supported_language_codes = 4;</code>
1997      *
1998      * @return The count of supportedLanguageCodes.
1999      */
getSupportedLanguageCodesCount()2000     public int getSupportedLanguageCodesCount() {
2001       return supportedLanguageCodes_.size();
2002     }
2003     /**
2004      *
2005      *
2006      * <pre>
2007      * The list of all languages supported by the agent (except for the
2008      * `default_language_code`).
2009      * </pre>
2010      *
2011      * <code>repeated string supported_language_codes = 4;</code>
2012      *
2013      * @param index The index of the element to return.
2014      * @return The supportedLanguageCodes at the given index.
2015      */
getSupportedLanguageCodes(int index)2016     public java.lang.String getSupportedLanguageCodes(int index) {
2017       return supportedLanguageCodes_.get(index);
2018     }
2019     /**
2020      *
2021      *
2022      * <pre>
2023      * The list of all languages supported by the agent (except for the
2024      * `default_language_code`).
2025      * </pre>
2026      *
2027      * <code>repeated string supported_language_codes = 4;</code>
2028      *
2029      * @param index The index of the value to return.
2030      * @return The bytes of the supportedLanguageCodes at the given index.
2031      */
getSupportedLanguageCodesBytes(int index)2032     public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) {
2033       return supportedLanguageCodes_.getByteString(index);
2034     }
2035     /**
2036      *
2037      *
2038      * <pre>
2039      * The list of all languages supported by the agent (except for the
2040      * `default_language_code`).
2041      * </pre>
2042      *
2043      * <code>repeated string supported_language_codes = 4;</code>
2044      *
2045      * @param index The index to set the value at.
2046      * @param value The supportedLanguageCodes to set.
2047      * @return This builder for chaining.
2048      */
setSupportedLanguageCodes(int index, java.lang.String value)2049     public Builder setSupportedLanguageCodes(int index, java.lang.String value) {
2050       if (value == null) {
2051         throw new NullPointerException();
2052       }
2053       ensureSupportedLanguageCodesIsMutable();
2054       supportedLanguageCodes_.set(index, value);
2055       onChanged();
2056       return this;
2057     }
2058     /**
2059      *
2060      *
2061      * <pre>
2062      * The list of all languages supported by the agent (except for the
2063      * `default_language_code`).
2064      * </pre>
2065      *
2066      * <code>repeated string supported_language_codes = 4;</code>
2067      *
2068      * @param value The supportedLanguageCodes to add.
2069      * @return This builder for chaining.
2070      */
addSupportedLanguageCodes(java.lang.String value)2071     public Builder addSupportedLanguageCodes(java.lang.String value) {
2072       if (value == null) {
2073         throw new NullPointerException();
2074       }
2075       ensureSupportedLanguageCodesIsMutable();
2076       supportedLanguageCodes_.add(value);
2077       onChanged();
2078       return this;
2079     }
2080     /**
2081      *
2082      *
2083      * <pre>
2084      * The list of all languages supported by the agent (except for the
2085      * `default_language_code`).
2086      * </pre>
2087      *
2088      * <code>repeated string supported_language_codes = 4;</code>
2089      *
2090      * @param values The supportedLanguageCodes to add.
2091      * @return This builder for chaining.
2092      */
addAllSupportedLanguageCodes(java.lang.Iterable<java.lang.String> values)2093     public Builder addAllSupportedLanguageCodes(java.lang.Iterable<java.lang.String> values) {
2094       ensureSupportedLanguageCodesIsMutable();
2095       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedLanguageCodes_);
2096       onChanged();
2097       return this;
2098     }
2099     /**
2100      *
2101      *
2102      * <pre>
2103      * The list of all languages supported by the agent (except for the
2104      * `default_language_code`).
2105      * </pre>
2106      *
2107      * <code>repeated string supported_language_codes = 4;</code>
2108      *
2109      * @return This builder for chaining.
2110      */
clearSupportedLanguageCodes()2111     public Builder clearSupportedLanguageCodes() {
2112       supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
2113       bitField0_ = (bitField0_ & ~0x00000008);
2114       onChanged();
2115       return this;
2116     }
2117     /**
2118      *
2119      *
2120      * <pre>
2121      * The list of all languages supported by the agent (except for the
2122      * `default_language_code`).
2123      * </pre>
2124      *
2125      * <code>repeated string supported_language_codes = 4;</code>
2126      *
2127      * @param value The bytes of the supportedLanguageCodes to add.
2128      * @return This builder for chaining.
2129      */
addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value)2130     public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value) {
2131       if (value == null) {
2132         throw new NullPointerException();
2133       }
2134       checkByteStringIsUtf8(value);
2135       ensureSupportedLanguageCodesIsMutable();
2136       supportedLanguageCodes_.add(value);
2137       onChanged();
2138       return this;
2139     }
2140 
2141     private java.lang.Object timeZone_ = "";
2142     /**
2143      *
2144      *
2145      * <pre>
2146      * Required. The time zone of the agent from the [time zone
2147      * database](https://www.iana.org/time-zones), e.g., America/New_York,
2148      * Europe/Paris.
2149      * </pre>
2150      *
2151      * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2152      *
2153      * @return The timeZone.
2154      */
getTimeZone()2155     public java.lang.String getTimeZone() {
2156       java.lang.Object ref = timeZone_;
2157       if (!(ref instanceof java.lang.String)) {
2158         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2159         java.lang.String s = bs.toStringUtf8();
2160         timeZone_ = s;
2161         return s;
2162       } else {
2163         return (java.lang.String) ref;
2164       }
2165     }
2166     /**
2167      *
2168      *
2169      * <pre>
2170      * Required. The time zone of the agent from the [time zone
2171      * database](https://www.iana.org/time-zones), e.g., America/New_York,
2172      * Europe/Paris.
2173      * </pre>
2174      *
2175      * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2176      *
2177      * @return The bytes for timeZone.
2178      */
getTimeZoneBytes()2179     public com.google.protobuf.ByteString getTimeZoneBytes() {
2180       java.lang.Object ref = timeZone_;
2181       if (ref instanceof String) {
2182         com.google.protobuf.ByteString b =
2183             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2184         timeZone_ = b;
2185         return b;
2186       } else {
2187         return (com.google.protobuf.ByteString) ref;
2188       }
2189     }
2190     /**
2191      *
2192      *
2193      * <pre>
2194      * Required. The time zone of the agent from the [time zone
2195      * database](https://www.iana.org/time-zones), e.g., America/New_York,
2196      * Europe/Paris.
2197      * </pre>
2198      *
2199      * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2200      *
2201      * @param value The timeZone to set.
2202      * @return This builder for chaining.
2203      */
setTimeZone(java.lang.String value)2204     public Builder setTimeZone(java.lang.String value) {
2205       if (value == null) {
2206         throw new NullPointerException();
2207       }
2208       timeZone_ = value;
2209       bitField0_ |= 0x00000010;
2210       onChanged();
2211       return this;
2212     }
2213     /**
2214      *
2215      *
2216      * <pre>
2217      * Required. The time zone of the agent from the [time zone
2218      * database](https://www.iana.org/time-zones), e.g., America/New_York,
2219      * Europe/Paris.
2220      * </pre>
2221      *
2222      * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2223      *
2224      * @return This builder for chaining.
2225      */
clearTimeZone()2226     public Builder clearTimeZone() {
2227       timeZone_ = getDefaultInstance().getTimeZone();
2228       bitField0_ = (bitField0_ & ~0x00000010);
2229       onChanged();
2230       return this;
2231     }
2232     /**
2233      *
2234      *
2235      * <pre>
2236      * Required. The time zone of the agent from the [time zone
2237      * database](https://www.iana.org/time-zones), e.g., America/New_York,
2238      * Europe/Paris.
2239      * </pre>
2240      *
2241      * <code>string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];</code>
2242      *
2243      * @param value The bytes for timeZone to set.
2244      * @return This builder for chaining.
2245      */
setTimeZoneBytes(com.google.protobuf.ByteString value)2246     public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) {
2247       if (value == null) {
2248         throw new NullPointerException();
2249       }
2250       checkByteStringIsUtf8(value);
2251       timeZone_ = value;
2252       bitField0_ |= 0x00000010;
2253       onChanged();
2254       return this;
2255     }
2256 
2257     private java.lang.Object description_ = "";
2258     /**
2259      *
2260      *
2261      * <pre>
2262      * The description of the agent. The maximum length is 500 characters. If
2263      * exceeded, the request is rejected.
2264      * </pre>
2265      *
2266      * <code>string description = 6;</code>
2267      *
2268      * @return The description.
2269      */
getDescription()2270     public java.lang.String getDescription() {
2271       java.lang.Object ref = description_;
2272       if (!(ref instanceof java.lang.String)) {
2273         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2274         java.lang.String s = bs.toStringUtf8();
2275         description_ = s;
2276         return s;
2277       } else {
2278         return (java.lang.String) ref;
2279       }
2280     }
2281     /**
2282      *
2283      *
2284      * <pre>
2285      * The description of the agent. The maximum length is 500 characters. If
2286      * exceeded, the request is rejected.
2287      * </pre>
2288      *
2289      * <code>string description = 6;</code>
2290      *
2291      * @return The bytes for description.
2292      */
getDescriptionBytes()2293     public com.google.protobuf.ByteString getDescriptionBytes() {
2294       java.lang.Object ref = description_;
2295       if (ref instanceof String) {
2296         com.google.protobuf.ByteString b =
2297             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2298         description_ = b;
2299         return b;
2300       } else {
2301         return (com.google.protobuf.ByteString) ref;
2302       }
2303     }
2304     /**
2305      *
2306      *
2307      * <pre>
2308      * The description of the agent. The maximum length is 500 characters. If
2309      * exceeded, the request is rejected.
2310      * </pre>
2311      *
2312      * <code>string description = 6;</code>
2313      *
2314      * @param value The description to set.
2315      * @return This builder for chaining.
2316      */
setDescription(java.lang.String value)2317     public Builder setDescription(java.lang.String value) {
2318       if (value == null) {
2319         throw new NullPointerException();
2320       }
2321       description_ = value;
2322       bitField0_ |= 0x00000020;
2323       onChanged();
2324       return this;
2325     }
2326     /**
2327      *
2328      *
2329      * <pre>
2330      * The description of the agent. The maximum length is 500 characters. If
2331      * exceeded, the request is rejected.
2332      * </pre>
2333      *
2334      * <code>string description = 6;</code>
2335      *
2336      * @return This builder for chaining.
2337      */
clearDescription()2338     public Builder clearDescription() {
2339       description_ = getDefaultInstance().getDescription();
2340       bitField0_ = (bitField0_ & ~0x00000020);
2341       onChanged();
2342       return this;
2343     }
2344     /**
2345      *
2346      *
2347      * <pre>
2348      * The description of the agent. The maximum length is 500 characters. If
2349      * exceeded, the request is rejected.
2350      * </pre>
2351      *
2352      * <code>string description = 6;</code>
2353      *
2354      * @param value The bytes for description to set.
2355      * @return This builder for chaining.
2356      */
setDescriptionBytes(com.google.protobuf.ByteString value)2357     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2358       if (value == null) {
2359         throw new NullPointerException();
2360       }
2361       checkByteStringIsUtf8(value);
2362       description_ = value;
2363       bitField0_ |= 0x00000020;
2364       onChanged();
2365       return this;
2366     }
2367 
2368     private java.lang.Object avatarUri_ = "";
2369     /**
2370      *
2371      *
2372      * <pre>
2373      * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
2374      * console and in the self-hosted [Web
2375      * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
2376      * integration.
2377      * </pre>
2378      *
2379      * <code>string avatar_uri = 7;</code>
2380      *
2381      * @return The avatarUri.
2382      */
getAvatarUri()2383     public java.lang.String getAvatarUri() {
2384       java.lang.Object ref = avatarUri_;
2385       if (!(ref instanceof java.lang.String)) {
2386         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2387         java.lang.String s = bs.toStringUtf8();
2388         avatarUri_ = s;
2389         return s;
2390       } else {
2391         return (java.lang.String) ref;
2392       }
2393     }
2394     /**
2395      *
2396      *
2397      * <pre>
2398      * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
2399      * console and in the self-hosted [Web
2400      * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
2401      * integration.
2402      * </pre>
2403      *
2404      * <code>string avatar_uri = 7;</code>
2405      *
2406      * @return The bytes for avatarUri.
2407      */
getAvatarUriBytes()2408     public com.google.protobuf.ByteString getAvatarUriBytes() {
2409       java.lang.Object ref = avatarUri_;
2410       if (ref instanceof String) {
2411         com.google.protobuf.ByteString b =
2412             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2413         avatarUri_ = b;
2414         return b;
2415       } else {
2416         return (com.google.protobuf.ByteString) ref;
2417       }
2418     }
2419     /**
2420      *
2421      *
2422      * <pre>
2423      * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
2424      * console and in the self-hosted [Web
2425      * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
2426      * integration.
2427      * </pre>
2428      *
2429      * <code>string avatar_uri = 7;</code>
2430      *
2431      * @param value The avatarUri to set.
2432      * @return This builder for chaining.
2433      */
setAvatarUri(java.lang.String value)2434     public Builder setAvatarUri(java.lang.String value) {
2435       if (value == null) {
2436         throw new NullPointerException();
2437       }
2438       avatarUri_ = value;
2439       bitField0_ |= 0x00000040;
2440       onChanged();
2441       return this;
2442     }
2443     /**
2444      *
2445      *
2446      * <pre>
2447      * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
2448      * console and in the self-hosted [Web
2449      * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
2450      * integration.
2451      * </pre>
2452      *
2453      * <code>string avatar_uri = 7;</code>
2454      *
2455      * @return This builder for chaining.
2456      */
clearAvatarUri()2457     public Builder clearAvatarUri() {
2458       avatarUri_ = getDefaultInstance().getAvatarUri();
2459       bitField0_ = (bitField0_ & ~0x00000040);
2460       onChanged();
2461       return this;
2462     }
2463     /**
2464      *
2465      *
2466      * <pre>
2467      * The URI of the agent's avatar. Avatars are used throughout the Dialogflow
2468      * console and in the self-hosted [Web
2469      * Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
2470      * integration.
2471      * </pre>
2472      *
2473      * <code>string avatar_uri = 7;</code>
2474      *
2475      * @param value The bytes for avatarUri to set.
2476      * @return This builder for chaining.
2477      */
setAvatarUriBytes(com.google.protobuf.ByteString value)2478     public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) {
2479       if (value == null) {
2480         throw new NullPointerException();
2481       }
2482       checkByteStringIsUtf8(value);
2483       avatarUri_ = value;
2484       bitField0_ |= 0x00000040;
2485       onChanged();
2486       return this;
2487     }
2488 
2489     private com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speechToTextSettings_;
2490     private com.google.protobuf.SingleFieldBuilderV3<
2491             com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings,
2492             com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder,
2493             com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder>
2494         speechToTextSettingsBuilder_;
2495     /**
2496      *
2497      *
2498      * <pre>
2499      * Speech recognition related settings.
2500      * </pre>
2501      *
2502      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2503      * </code>
2504      *
2505      * @return Whether the speechToTextSettings field is set.
2506      */
hasSpeechToTextSettings()2507     public boolean hasSpeechToTextSettings() {
2508       return ((bitField0_ & 0x00000080) != 0);
2509     }
2510     /**
2511      *
2512      *
2513      * <pre>
2514      * Speech recognition related settings.
2515      * </pre>
2516      *
2517      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2518      * </code>
2519      *
2520      * @return The speechToTextSettings.
2521      */
getSpeechToTextSettings()2522     public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings getSpeechToTextSettings() {
2523       if (speechToTextSettingsBuilder_ == null) {
2524         return speechToTextSettings_ == null
2525             ? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
2526             : speechToTextSettings_;
2527       } else {
2528         return speechToTextSettingsBuilder_.getMessage();
2529       }
2530     }
2531     /**
2532      *
2533      *
2534      * <pre>
2535      * Speech recognition related settings.
2536      * </pre>
2537      *
2538      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2539      * </code>
2540      */
setSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value)2541     public Builder setSpeechToTextSettings(
2542         com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value) {
2543       if (speechToTextSettingsBuilder_ == null) {
2544         if (value == null) {
2545           throw new NullPointerException();
2546         }
2547         speechToTextSettings_ = value;
2548       } else {
2549         speechToTextSettingsBuilder_.setMessage(value);
2550       }
2551       bitField0_ |= 0x00000080;
2552       onChanged();
2553       return this;
2554     }
2555     /**
2556      *
2557      *
2558      * <pre>
2559      * Speech recognition related settings.
2560      * </pre>
2561      *
2562      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2563      * </code>
2564      */
setSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder builderForValue)2565     public Builder setSpeechToTextSettings(
2566         com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder builderForValue) {
2567       if (speechToTextSettingsBuilder_ == null) {
2568         speechToTextSettings_ = builderForValue.build();
2569       } else {
2570         speechToTextSettingsBuilder_.setMessage(builderForValue.build());
2571       }
2572       bitField0_ |= 0x00000080;
2573       onChanged();
2574       return this;
2575     }
2576     /**
2577      *
2578      *
2579      * <pre>
2580      * Speech recognition related settings.
2581      * </pre>
2582      *
2583      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2584      * </code>
2585      */
mergeSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value)2586     public Builder mergeSpeechToTextSettings(
2587         com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value) {
2588       if (speechToTextSettingsBuilder_ == null) {
2589         if (((bitField0_ & 0x00000080) != 0)
2590             && speechToTextSettings_ != null
2591             && speechToTextSettings_
2592                 != com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()) {
2593           getSpeechToTextSettingsBuilder().mergeFrom(value);
2594         } else {
2595           speechToTextSettings_ = value;
2596         }
2597       } else {
2598         speechToTextSettingsBuilder_.mergeFrom(value);
2599       }
2600       bitField0_ |= 0x00000080;
2601       onChanged();
2602       return this;
2603     }
2604     /**
2605      *
2606      *
2607      * <pre>
2608      * Speech recognition related settings.
2609      * </pre>
2610      *
2611      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2612      * </code>
2613      */
clearSpeechToTextSettings()2614     public Builder clearSpeechToTextSettings() {
2615       bitField0_ = (bitField0_ & ~0x00000080);
2616       speechToTextSettings_ = null;
2617       if (speechToTextSettingsBuilder_ != null) {
2618         speechToTextSettingsBuilder_.dispose();
2619         speechToTextSettingsBuilder_ = null;
2620       }
2621       onChanged();
2622       return this;
2623     }
2624     /**
2625      *
2626      *
2627      * <pre>
2628      * Speech recognition related settings.
2629      * </pre>
2630      *
2631      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2632      * </code>
2633      */
2634     public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder
getSpeechToTextSettingsBuilder()2635         getSpeechToTextSettingsBuilder() {
2636       bitField0_ |= 0x00000080;
2637       onChanged();
2638       return getSpeechToTextSettingsFieldBuilder().getBuilder();
2639     }
2640     /**
2641      *
2642      *
2643      * <pre>
2644      * Speech recognition related settings.
2645      * </pre>
2646      *
2647      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2648      * </code>
2649      */
2650     public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder
getSpeechToTextSettingsOrBuilder()2651         getSpeechToTextSettingsOrBuilder() {
2652       if (speechToTextSettingsBuilder_ != null) {
2653         return speechToTextSettingsBuilder_.getMessageOrBuilder();
2654       } else {
2655         return speechToTextSettings_ == null
2656             ? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()
2657             : speechToTextSettings_;
2658       }
2659     }
2660     /**
2661      *
2662      *
2663      * <pre>
2664      * Speech recognition related settings.
2665      * </pre>
2666      *
2667      * <code>.google.cloud.dialogflow.cx.v3.SpeechToTextSettings speech_to_text_settings = 13;
2668      * </code>
2669      */
2670     private com.google.protobuf.SingleFieldBuilderV3<
2671             com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings,
2672             com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder,
2673             com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder>
getSpeechToTextSettingsFieldBuilder()2674         getSpeechToTextSettingsFieldBuilder() {
2675       if (speechToTextSettingsBuilder_ == null) {
2676         speechToTextSettingsBuilder_ =
2677             new com.google.protobuf.SingleFieldBuilderV3<
2678                 com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings,
2679                 com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder,
2680                 com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder>(
2681                 getSpeechToTextSettings(), getParentForChildren(), isClean());
2682         speechToTextSettings_ = null;
2683       }
2684       return speechToTextSettingsBuilder_;
2685     }
2686 
2687     private java.lang.Object startFlow_ = "";
2688     /**
2689      *
2690      *
2691      * <pre>
2692      * Immutable. Name of the start flow in this agent. A start flow will be
2693      * automatically created when the agent is created, and can only be deleted by
2694      * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2695      * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
2696      * </pre>
2697      *
2698      * <code>
2699      * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
2700      * </code>
2701      *
2702      * @return The startFlow.
2703      */
getStartFlow()2704     public java.lang.String getStartFlow() {
2705       java.lang.Object ref = startFlow_;
2706       if (!(ref instanceof java.lang.String)) {
2707         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2708         java.lang.String s = bs.toStringUtf8();
2709         startFlow_ = s;
2710         return s;
2711       } else {
2712         return (java.lang.String) ref;
2713       }
2714     }
2715     /**
2716      *
2717      *
2718      * <pre>
2719      * Immutable. Name of the start flow in this agent. A start flow will be
2720      * automatically created when the agent is created, and can only be deleted by
2721      * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2722      * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
2723      * </pre>
2724      *
2725      * <code>
2726      * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
2727      * </code>
2728      *
2729      * @return The bytes for startFlow.
2730      */
getStartFlowBytes()2731     public com.google.protobuf.ByteString getStartFlowBytes() {
2732       java.lang.Object ref = startFlow_;
2733       if (ref instanceof String) {
2734         com.google.protobuf.ByteString b =
2735             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2736         startFlow_ = b;
2737         return b;
2738       } else {
2739         return (com.google.protobuf.ByteString) ref;
2740       }
2741     }
2742     /**
2743      *
2744      *
2745      * <pre>
2746      * Immutable. Name of the start flow in this agent. A start flow will be
2747      * automatically created when the agent is created, and can only be deleted by
2748      * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2749      * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
2750      * </pre>
2751      *
2752      * <code>
2753      * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
2754      * </code>
2755      *
2756      * @param value The startFlow to set.
2757      * @return This builder for chaining.
2758      */
setStartFlow(java.lang.String value)2759     public Builder setStartFlow(java.lang.String value) {
2760       if (value == null) {
2761         throw new NullPointerException();
2762       }
2763       startFlow_ = value;
2764       bitField0_ |= 0x00000100;
2765       onChanged();
2766       return this;
2767     }
2768     /**
2769      *
2770      *
2771      * <pre>
2772      * Immutable. Name of the start flow in this agent. A start flow will be
2773      * automatically created when the agent is created, and can only be deleted by
2774      * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2775      * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
2776      * </pre>
2777      *
2778      * <code>
2779      * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
2780      * </code>
2781      *
2782      * @return This builder for chaining.
2783      */
clearStartFlow()2784     public Builder clearStartFlow() {
2785       startFlow_ = getDefaultInstance().getStartFlow();
2786       bitField0_ = (bitField0_ & ~0x00000100);
2787       onChanged();
2788       return this;
2789     }
2790     /**
2791      *
2792      *
2793      * <pre>
2794      * Immutable. Name of the start flow in this agent. A start flow will be
2795      * automatically created when the agent is created, and can only be deleted by
2796      * deleting the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2797      * ID&gt;/agents/&lt;Agent ID&gt;/flows/&lt;Flow ID&gt;`.
2798      * </pre>
2799      *
2800      * <code>
2801      * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
2802      * </code>
2803      *
2804      * @param value The bytes for startFlow to set.
2805      * @return This builder for chaining.
2806      */
setStartFlowBytes(com.google.protobuf.ByteString value)2807     public Builder setStartFlowBytes(com.google.protobuf.ByteString value) {
2808       if (value == null) {
2809         throw new NullPointerException();
2810       }
2811       checkByteStringIsUtf8(value);
2812       startFlow_ = value;
2813       bitField0_ |= 0x00000100;
2814       onChanged();
2815       return this;
2816     }
2817 
2818     private java.lang.Object securitySettings_ = "";
2819     /**
2820      *
2821      *
2822      * <pre>
2823      * Name of the
2824      * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
2825      * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2826      * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
2827      * </pre>
2828      *
2829      * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
2830      *
2831      * @return The securitySettings.
2832      */
getSecuritySettings()2833     public java.lang.String getSecuritySettings() {
2834       java.lang.Object ref = securitySettings_;
2835       if (!(ref instanceof java.lang.String)) {
2836         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2837         java.lang.String s = bs.toStringUtf8();
2838         securitySettings_ = s;
2839         return s;
2840       } else {
2841         return (java.lang.String) ref;
2842       }
2843     }
2844     /**
2845      *
2846      *
2847      * <pre>
2848      * Name of the
2849      * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
2850      * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2851      * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
2852      * </pre>
2853      *
2854      * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
2855      *
2856      * @return The bytes for securitySettings.
2857      */
getSecuritySettingsBytes()2858     public com.google.protobuf.ByteString getSecuritySettingsBytes() {
2859       java.lang.Object ref = securitySettings_;
2860       if (ref instanceof String) {
2861         com.google.protobuf.ByteString b =
2862             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2863         securitySettings_ = b;
2864         return b;
2865       } else {
2866         return (com.google.protobuf.ByteString) ref;
2867       }
2868     }
2869     /**
2870      *
2871      *
2872      * <pre>
2873      * Name of the
2874      * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
2875      * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2876      * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
2877      * </pre>
2878      *
2879      * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
2880      *
2881      * @param value The securitySettings to set.
2882      * @return This builder for chaining.
2883      */
setSecuritySettings(java.lang.String value)2884     public Builder setSecuritySettings(java.lang.String value) {
2885       if (value == null) {
2886         throw new NullPointerException();
2887       }
2888       securitySettings_ = value;
2889       bitField0_ |= 0x00000200;
2890       onChanged();
2891       return this;
2892     }
2893     /**
2894      *
2895      *
2896      * <pre>
2897      * Name of the
2898      * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
2899      * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2900      * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
2901      * </pre>
2902      *
2903      * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
2904      *
2905      * @return This builder for chaining.
2906      */
clearSecuritySettings()2907     public Builder clearSecuritySettings() {
2908       securitySettings_ = getDefaultInstance().getSecuritySettings();
2909       bitField0_ = (bitField0_ & ~0x00000200);
2910       onChanged();
2911       return this;
2912     }
2913     /**
2914      *
2915      *
2916      * <pre>
2917      * Name of the
2918      * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
2919      * reference for the agent. Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
2920      * ID&gt;/securitySettings/&lt;Security Settings ID&gt;`.
2921      * </pre>
2922      *
2923      * <code>string security_settings = 17 [(.google.api.resource_reference) = { ... }</code>
2924      *
2925      * @param value The bytes for securitySettings to set.
2926      * @return This builder for chaining.
2927      */
setSecuritySettingsBytes(com.google.protobuf.ByteString value)2928     public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) {
2929       if (value == null) {
2930         throw new NullPointerException();
2931       }
2932       checkByteStringIsUtf8(value);
2933       securitySettings_ = value;
2934       bitField0_ |= 0x00000200;
2935       onChanged();
2936       return this;
2937     }
2938 
2939     private boolean enableStackdriverLogging_;
2940     /**
2941      *
2942      *
2943      * <pre>
2944      * Indicates if stackdriver logging is enabled for the agent.
2945      * Please use
2946      * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
2947      * instead.
2948      * </pre>
2949      *
2950      * <code>bool enable_stackdriver_logging = 18 [deprecated = true];</code>
2951      *
2952      * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See
2953      *     google/cloud/dialogflow/cx/v3/agent.proto;l=257
2954      * @return The enableStackdriverLogging.
2955      */
2956     @java.lang.Override
2957     @java.lang.Deprecated
getEnableStackdriverLogging()2958     public boolean getEnableStackdriverLogging() {
2959       return enableStackdriverLogging_;
2960     }
2961     /**
2962      *
2963      *
2964      * <pre>
2965      * Indicates if stackdriver logging is enabled for the agent.
2966      * Please use
2967      * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
2968      * instead.
2969      * </pre>
2970      *
2971      * <code>bool enable_stackdriver_logging = 18 [deprecated = true];</code>
2972      *
2973      * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See
2974      *     google/cloud/dialogflow/cx/v3/agent.proto;l=257
2975      * @param value The enableStackdriverLogging to set.
2976      * @return This builder for chaining.
2977      */
2978     @java.lang.Deprecated
setEnableStackdriverLogging(boolean value)2979     public Builder setEnableStackdriverLogging(boolean value) {
2980 
2981       enableStackdriverLogging_ = value;
2982       bitField0_ |= 0x00000400;
2983       onChanged();
2984       return this;
2985     }
2986     /**
2987      *
2988      *
2989      * <pre>
2990      * Indicates if stackdriver logging is enabled for the agent.
2991      * Please use
2992      * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
2993      * instead.
2994      * </pre>
2995      *
2996      * <code>bool enable_stackdriver_logging = 18 [deprecated = true];</code>
2997      *
2998      * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See
2999      *     google/cloud/dialogflow/cx/v3/agent.proto;l=257
3000      * @return This builder for chaining.
3001      */
3002     @java.lang.Deprecated
clearEnableStackdriverLogging()3003     public Builder clearEnableStackdriverLogging() {
3004       bitField0_ = (bitField0_ & ~0x00000400);
3005       enableStackdriverLogging_ = false;
3006       onChanged();
3007       return this;
3008     }
3009 
3010     private boolean enableSpellCorrection_;
3011     /**
3012      *
3013      *
3014      * <pre>
3015      * Indicates if automatic spell correction is enabled in detect intent
3016      * requests.
3017      * </pre>
3018      *
3019      * <code>bool enable_spell_correction = 20;</code>
3020      *
3021      * @return The enableSpellCorrection.
3022      */
3023     @java.lang.Override
getEnableSpellCorrection()3024     public boolean getEnableSpellCorrection() {
3025       return enableSpellCorrection_;
3026     }
3027     /**
3028      *
3029      *
3030      * <pre>
3031      * Indicates if automatic spell correction is enabled in detect intent
3032      * requests.
3033      * </pre>
3034      *
3035      * <code>bool enable_spell_correction = 20;</code>
3036      *
3037      * @param value The enableSpellCorrection to set.
3038      * @return This builder for chaining.
3039      */
setEnableSpellCorrection(boolean value)3040     public Builder setEnableSpellCorrection(boolean value) {
3041 
3042       enableSpellCorrection_ = value;
3043       bitField0_ |= 0x00000800;
3044       onChanged();
3045       return this;
3046     }
3047     /**
3048      *
3049      *
3050      * <pre>
3051      * Indicates if automatic spell correction is enabled in detect intent
3052      * requests.
3053      * </pre>
3054      *
3055      * <code>bool enable_spell_correction = 20;</code>
3056      *
3057      * @return This builder for chaining.
3058      */
clearEnableSpellCorrection()3059     public Builder clearEnableSpellCorrection() {
3060       bitField0_ = (bitField0_ & ~0x00000800);
3061       enableSpellCorrection_ = false;
3062       onChanged();
3063       return this;
3064     }
3065 
3066     private boolean locked_;
3067     /**
3068      *
3069      *
3070      * <pre>
3071      * Indicates whether the agent is locked for changes. If the agent is locked,
3072      * modifications to the agent will be rejected except for [RestoreAgent][].
3073      * </pre>
3074      *
3075      * <code>bool locked = 27;</code>
3076      *
3077      * @return The locked.
3078      */
3079     @java.lang.Override
getLocked()3080     public boolean getLocked() {
3081       return locked_;
3082     }
3083     /**
3084      *
3085      *
3086      * <pre>
3087      * Indicates whether the agent is locked for changes. If the agent is locked,
3088      * modifications to the agent will be rejected except for [RestoreAgent][].
3089      * </pre>
3090      *
3091      * <code>bool locked = 27;</code>
3092      *
3093      * @param value The locked to set.
3094      * @return This builder for chaining.
3095      */
setLocked(boolean value)3096     public Builder setLocked(boolean value) {
3097 
3098       locked_ = value;
3099       bitField0_ |= 0x00001000;
3100       onChanged();
3101       return this;
3102     }
3103     /**
3104      *
3105      *
3106      * <pre>
3107      * Indicates whether the agent is locked for changes. If the agent is locked,
3108      * modifications to the agent will be rejected except for [RestoreAgent][].
3109      * </pre>
3110      *
3111      * <code>bool locked = 27;</code>
3112      *
3113      * @return This builder for chaining.
3114      */
clearLocked()3115     public Builder clearLocked() {
3116       bitField0_ = (bitField0_ & ~0x00001000);
3117       locked_ = false;
3118       onChanged();
3119       return this;
3120     }
3121 
3122     private com.google.cloud.dialogflow.cx.v3.AdvancedSettings advancedSettings_;
3123     private com.google.protobuf.SingleFieldBuilderV3<
3124             com.google.cloud.dialogflow.cx.v3.AdvancedSettings,
3125             com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder,
3126             com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder>
3127         advancedSettingsBuilder_;
3128     /**
3129      *
3130      *
3131      * <pre>
3132      * Hierarchical advanced settings for this agent. The settings exposed at the
3133      * lower level overrides the settings exposed at the higher level.
3134      * </pre>
3135      *
3136      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3137      *
3138      * @return Whether the advancedSettings field is set.
3139      */
hasAdvancedSettings()3140     public boolean hasAdvancedSettings() {
3141       return ((bitField0_ & 0x00002000) != 0);
3142     }
3143     /**
3144      *
3145      *
3146      * <pre>
3147      * Hierarchical advanced settings for this agent. The settings exposed at the
3148      * lower level overrides the settings exposed at the higher level.
3149      * </pre>
3150      *
3151      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3152      *
3153      * @return The advancedSettings.
3154      */
getAdvancedSettings()3155     public com.google.cloud.dialogflow.cx.v3.AdvancedSettings getAdvancedSettings() {
3156       if (advancedSettingsBuilder_ == null) {
3157         return advancedSettings_ == null
3158             ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
3159             : advancedSettings_;
3160       } else {
3161         return advancedSettingsBuilder_.getMessage();
3162       }
3163     }
3164     /**
3165      *
3166      *
3167      * <pre>
3168      * Hierarchical advanced settings for this agent. The settings exposed at the
3169      * lower level overrides the settings exposed at the higher level.
3170      * </pre>
3171      *
3172      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3173      */
setAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value)3174     public Builder setAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value) {
3175       if (advancedSettingsBuilder_ == null) {
3176         if (value == null) {
3177           throw new NullPointerException();
3178         }
3179         advancedSettings_ = value;
3180       } else {
3181         advancedSettingsBuilder_.setMessage(value);
3182       }
3183       bitField0_ |= 0x00002000;
3184       onChanged();
3185       return this;
3186     }
3187     /**
3188      *
3189      *
3190      * <pre>
3191      * Hierarchical advanced settings for this agent. The settings exposed at the
3192      * lower level overrides the settings exposed at the higher level.
3193      * </pre>
3194      *
3195      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3196      */
setAdvancedSettings( com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder builderForValue)3197     public Builder setAdvancedSettings(
3198         com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder builderForValue) {
3199       if (advancedSettingsBuilder_ == null) {
3200         advancedSettings_ = builderForValue.build();
3201       } else {
3202         advancedSettingsBuilder_.setMessage(builderForValue.build());
3203       }
3204       bitField0_ |= 0x00002000;
3205       onChanged();
3206       return this;
3207     }
3208     /**
3209      *
3210      *
3211      * <pre>
3212      * Hierarchical advanced settings for this agent. The settings exposed at the
3213      * lower level overrides the settings exposed at the higher level.
3214      * </pre>
3215      *
3216      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3217      */
mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value)3218     public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value) {
3219       if (advancedSettingsBuilder_ == null) {
3220         if (((bitField0_ & 0x00002000) != 0)
3221             && advancedSettings_ != null
3222             && advancedSettings_
3223                 != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()) {
3224           getAdvancedSettingsBuilder().mergeFrom(value);
3225         } else {
3226           advancedSettings_ = value;
3227         }
3228       } else {
3229         advancedSettingsBuilder_.mergeFrom(value);
3230       }
3231       bitField0_ |= 0x00002000;
3232       onChanged();
3233       return this;
3234     }
3235     /**
3236      *
3237      *
3238      * <pre>
3239      * Hierarchical advanced settings for this agent. The settings exposed at the
3240      * lower level overrides the settings exposed at the higher level.
3241      * </pre>
3242      *
3243      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3244      */
clearAdvancedSettings()3245     public Builder clearAdvancedSettings() {
3246       bitField0_ = (bitField0_ & ~0x00002000);
3247       advancedSettings_ = null;
3248       if (advancedSettingsBuilder_ != null) {
3249         advancedSettingsBuilder_.dispose();
3250         advancedSettingsBuilder_ = null;
3251       }
3252       onChanged();
3253       return this;
3254     }
3255     /**
3256      *
3257      *
3258      * <pre>
3259      * Hierarchical advanced settings for this agent. The settings exposed at the
3260      * lower level overrides the settings exposed at the higher level.
3261      * </pre>
3262      *
3263      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3264      */
getAdvancedSettingsBuilder()3265     public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder getAdvancedSettingsBuilder() {
3266       bitField0_ |= 0x00002000;
3267       onChanged();
3268       return getAdvancedSettingsFieldBuilder().getBuilder();
3269     }
3270     /**
3271      *
3272      *
3273      * <pre>
3274      * Hierarchical advanced settings for this agent. The settings exposed at the
3275      * lower level overrides the settings exposed at the higher level.
3276      * </pre>
3277      *
3278      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3279      */
3280     public com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder
getAdvancedSettingsOrBuilder()3281         getAdvancedSettingsOrBuilder() {
3282       if (advancedSettingsBuilder_ != null) {
3283         return advancedSettingsBuilder_.getMessageOrBuilder();
3284       } else {
3285         return advancedSettings_ == null
3286             ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()
3287             : advancedSettings_;
3288       }
3289     }
3290     /**
3291      *
3292      *
3293      * <pre>
3294      * Hierarchical advanced settings for this agent. The settings exposed at the
3295      * lower level overrides the settings exposed at the higher level.
3296      * </pre>
3297      *
3298      * <code>.google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22;</code>
3299      */
3300     private com.google.protobuf.SingleFieldBuilderV3<
3301             com.google.cloud.dialogflow.cx.v3.AdvancedSettings,
3302             com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder,
3303             com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder>
getAdvancedSettingsFieldBuilder()3304         getAdvancedSettingsFieldBuilder() {
3305       if (advancedSettingsBuilder_ == null) {
3306         advancedSettingsBuilder_ =
3307             new com.google.protobuf.SingleFieldBuilderV3<
3308                 com.google.cloud.dialogflow.cx.v3.AdvancedSettings,
3309                 com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder,
3310                 com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder>(
3311                 getAdvancedSettings(), getParentForChildren(), isClean());
3312         advancedSettings_ = null;
3313       }
3314       return advancedSettingsBuilder_;
3315     }
3316 
3317     private com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings textToSpeechSettings_;
3318     private com.google.protobuf.SingleFieldBuilderV3<
3319             com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings,
3320             com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder,
3321             com.google.cloud.dialogflow.cx.v3.TextToSpeechSettingsOrBuilder>
3322         textToSpeechSettingsBuilder_;
3323     /**
3324      *
3325      *
3326      * <pre>
3327      * Settings on instructing the speech synthesizer on how to generate the
3328      * output audio content.
3329      * </pre>
3330      *
3331      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3332      * </code>
3333      *
3334      * @return Whether the textToSpeechSettings field is set.
3335      */
hasTextToSpeechSettings()3336     public boolean hasTextToSpeechSettings() {
3337       return ((bitField0_ & 0x00004000) != 0);
3338     }
3339     /**
3340      *
3341      *
3342      * <pre>
3343      * Settings on instructing the speech synthesizer on how to generate the
3344      * output audio content.
3345      * </pre>
3346      *
3347      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3348      * </code>
3349      *
3350      * @return The textToSpeechSettings.
3351      */
getTextToSpeechSettings()3352     public com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings getTextToSpeechSettings() {
3353       if (textToSpeechSettingsBuilder_ == null) {
3354         return textToSpeechSettings_ == null
3355             ? com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.getDefaultInstance()
3356             : textToSpeechSettings_;
3357       } else {
3358         return textToSpeechSettingsBuilder_.getMessage();
3359       }
3360     }
3361     /**
3362      *
3363      *
3364      * <pre>
3365      * Settings on instructing the speech synthesizer on how to generate the
3366      * output audio content.
3367      * </pre>
3368      *
3369      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3370      * </code>
3371      */
setTextToSpeechSettings( com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings value)3372     public Builder setTextToSpeechSettings(
3373         com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings value) {
3374       if (textToSpeechSettingsBuilder_ == null) {
3375         if (value == null) {
3376           throw new NullPointerException();
3377         }
3378         textToSpeechSettings_ = value;
3379       } else {
3380         textToSpeechSettingsBuilder_.setMessage(value);
3381       }
3382       bitField0_ |= 0x00004000;
3383       onChanged();
3384       return this;
3385     }
3386     /**
3387      *
3388      *
3389      * <pre>
3390      * Settings on instructing the speech synthesizer on how to generate the
3391      * output audio content.
3392      * </pre>
3393      *
3394      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3395      * </code>
3396      */
setTextToSpeechSettings( com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder builderForValue)3397     public Builder setTextToSpeechSettings(
3398         com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder builderForValue) {
3399       if (textToSpeechSettingsBuilder_ == null) {
3400         textToSpeechSettings_ = builderForValue.build();
3401       } else {
3402         textToSpeechSettingsBuilder_.setMessage(builderForValue.build());
3403       }
3404       bitField0_ |= 0x00004000;
3405       onChanged();
3406       return this;
3407     }
3408     /**
3409      *
3410      *
3411      * <pre>
3412      * Settings on instructing the speech synthesizer on how to generate the
3413      * output audio content.
3414      * </pre>
3415      *
3416      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3417      * </code>
3418      */
mergeTextToSpeechSettings( com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings value)3419     public Builder mergeTextToSpeechSettings(
3420         com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings value) {
3421       if (textToSpeechSettingsBuilder_ == null) {
3422         if (((bitField0_ & 0x00004000) != 0)
3423             && textToSpeechSettings_ != null
3424             && textToSpeechSettings_
3425                 != com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.getDefaultInstance()) {
3426           getTextToSpeechSettingsBuilder().mergeFrom(value);
3427         } else {
3428           textToSpeechSettings_ = value;
3429         }
3430       } else {
3431         textToSpeechSettingsBuilder_.mergeFrom(value);
3432       }
3433       bitField0_ |= 0x00004000;
3434       onChanged();
3435       return this;
3436     }
3437     /**
3438      *
3439      *
3440      * <pre>
3441      * Settings on instructing the speech synthesizer on how to generate the
3442      * output audio content.
3443      * </pre>
3444      *
3445      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3446      * </code>
3447      */
clearTextToSpeechSettings()3448     public Builder clearTextToSpeechSettings() {
3449       bitField0_ = (bitField0_ & ~0x00004000);
3450       textToSpeechSettings_ = null;
3451       if (textToSpeechSettingsBuilder_ != null) {
3452         textToSpeechSettingsBuilder_.dispose();
3453         textToSpeechSettingsBuilder_ = null;
3454       }
3455       onChanged();
3456       return this;
3457     }
3458     /**
3459      *
3460      *
3461      * <pre>
3462      * Settings on instructing the speech synthesizer on how to generate the
3463      * output audio content.
3464      * </pre>
3465      *
3466      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3467      * </code>
3468      */
3469     public com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder
getTextToSpeechSettingsBuilder()3470         getTextToSpeechSettingsBuilder() {
3471       bitField0_ |= 0x00004000;
3472       onChanged();
3473       return getTextToSpeechSettingsFieldBuilder().getBuilder();
3474     }
3475     /**
3476      *
3477      *
3478      * <pre>
3479      * Settings on instructing the speech synthesizer on how to generate the
3480      * output audio content.
3481      * </pre>
3482      *
3483      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3484      * </code>
3485      */
3486     public com.google.cloud.dialogflow.cx.v3.TextToSpeechSettingsOrBuilder
getTextToSpeechSettingsOrBuilder()3487         getTextToSpeechSettingsOrBuilder() {
3488       if (textToSpeechSettingsBuilder_ != null) {
3489         return textToSpeechSettingsBuilder_.getMessageOrBuilder();
3490       } else {
3491         return textToSpeechSettings_ == null
3492             ? com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.getDefaultInstance()
3493             : textToSpeechSettings_;
3494       }
3495     }
3496     /**
3497      *
3498      *
3499      * <pre>
3500      * Settings on instructing the speech synthesizer on how to generate the
3501      * output audio content.
3502      * </pre>
3503      *
3504      * <code>.google.cloud.dialogflow.cx.v3.TextToSpeechSettings text_to_speech_settings = 31;
3505      * </code>
3506      */
3507     private com.google.protobuf.SingleFieldBuilderV3<
3508             com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings,
3509             com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder,
3510             com.google.cloud.dialogflow.cx.v3.TextToSpeechSettingsOrBuilder>
getTextToSpeechSettingsFieldBuilder()3511         getTextToSpeechSettingsFieldBuilder() {
3512       if (textToSpeechSettingsBuilder_ == null) {
3513         textToSpeechSettingsBuilder_ =
3514             new com.google.protobuf.SingleFieldBuilderV3<
3515                 com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings,
3516                 com.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.Builder,
3517                 com.google.cloud.dialogflow.cx.v3.TextToSpeechSettingsOrBuilder>(
3518                 getTextToSpeechSettings(), getParentForChildren(), isClean());
3519         textToSpeechSettings_ = null;
3520       }
3521       return textToSpeechSettingsBuilder_;
3522     }
3523 
3524     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3525     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3526       return super.setUnknownFields(unknownFields);
3527     }
3528 
3529     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3530     public final Builder mergeUnknownFields(
3531         final com.google.protobuf.UnknownFieldSet unknownFields) {
3532       return super.mergeUnknownFields(unknownFields);
3533     }
3534 
3535     // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.Agent)
3536   }
3537 
3538   // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.Agent)
3539   private static final com.google.cloud.dialogflow.cx.v3.Agent DEFAULT_INSTANCE;
3540 
3541   static {
3542     DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.Agent();
3543   }
3544 
getDefaultInstance()3545   public static com.google.cloud.dialogflow.cx.v3.Agent getDefaultInstance() {
3546     return DEFAULT_INSTANCE;
3547   }
3548 
3549   private static final com.google.protobuf.Parser<Agent> PARSER =
3550       new com.google.protobuf.AbstractParser<Agent>() {
3551         @java.lang.Override
3552         public Agent parsePartialFrom(
3553             com.google.protobuf.CodedInputStream input,
3554             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3555             throws com.google.protobuf.InvalidProtocolBufferException {
3556           Builder builder = newBuilder();
3557           try {
3558             builder.mergeFrom(input, extensionRegistry);
3559           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3560             throw e.setUnfinishedMessage(builder.buildPartial());
3561           } catch (com.google.protobuf.UninitializedMessageException e) {
3562             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3563           } catch (java.io.IOException e) {
3564             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3565                 .setUnfinishedMessage(builder.buildPartial());
3566           }
3567           return builder.buildPartial();
3568         }
3569       };
3570 
parser()3571   public static com.google.protobuf.Parser<Agent> parser() {
3572     return PARSER;
3573   }
3574 
3575   @java.lang.Override
getParserForType()3576   public com.google.protobuf.Parser<Agent> getParserForType() {
3577     return PARSER;
3578   }
3579 
3580   @java.lang.Override
getDefaultInstanceForType()3581   public com.google.cloud.dialogflow.cx.v3.Agent getDefaultInstanceForType() {
3582     return DEFAULT_INSTANCE;
3583   }
3584 }
3585