• 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/v3beta1/page.proto
18 
19 package com.google.cloud.dialogflow.cx.v3beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A transition route specifies a
26  * [intent][google.cloud.dialogflow.cx.v3beta1.Intent] that can be matched
27  * and/or a data condition that can be evaluated during a session. When a
28  * specified transition is matched, the following actions are taken in order:
29  * *   If there is a
30  * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.trigger_fulfillment]
31  * associated with the transition, it will be called.
32  * *   If there is a
33  * [`target_page`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.target_page]
34  * associated with the transition, the session will transition into the
35  * specified page.
36  * *   If there is a
37  * [`target_flow`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.target_flow]
38  * associated with the transition, the session will transition into the
39  * specified flow.
40  * </pre>
41  *
42  * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionRoute}
43  */
44 public final class TransitionRoute extends com.google.protobuf.GeneratedMessageV3
45     implements
46     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.TransitionRoute)
47     TransitionRouteOrBuilder {
48   private static final long serialVersionUID = 0L;
49   // Use TransitionRoute.newBuilder() to construct.
TransitionRoute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)50   private TransitionRoute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
51     super(builder);
52   }
53 
TransitionRoute()54   private TransitionRoute() {
55     name_ = "";
56     intent_ = "";
57     condition_ = "";
58   }
59 
60   @java.lang.Override
61   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)62   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
63     return new TransitionRoute();
64   }
65 
66   @java.lang.Override
getUnknownFields()67   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
68     return this.unknownFields;
69   }
70 
getDescriptor()71   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
72     return com.google.cloud.dialogflow.cx.v3beta1.PageProto
73         .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRoute_descriptor;
74   }
75 
76   @java.lang.Override
77   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()78       internalGetFieldAccessorTable() {
79     return com.google.cloud.dialogflow.cx.v3beta1.PageProto
80         .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRoute_fieldAccessorTable
81         .ensureFieldAccessorsInitialized(
82             com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.class,
83             com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder.class);
84   }
85 
86   private int targetCase_ = 0;
87   private java.lang.Object target_;
88 
89   public enum TargetCase
90       implements
91           com.google.protobuf.Internal.EnumLite,
92           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
93     TARGET_PAGE(4),
94     TARGET_FLOW(5),
95     TARGET_NOT_SET(0);
96     private final int value;
97 
TargetCase(int value)98     private TargetCase(int value) {
99       this.value = value;
100     }
101     /**
102      * @param value The number of the enum to look for.
103      * @return The enum associated with the given number.
104      * @deprecated Use {@link #forNumber(int)} instead.
105      */
106     @java.lang.Deprecated
valueOf(int value)107     public static TargetCase valueOf(int value) {
108       return forNumber(value);
109     }
110 
forNumber(int value)111     public static TargetCase forNumber(int value) {
112       switch (value) {
113         case 4:
114           return TARGET_PAGE;
115         case 5:
116           return TARGET_FLOW;
117         case 0:
118           return TARGET_NOT_SET;
119         default:
120           return null;
121       }
122     }
123 
getNumber()124     public int getNumber() {
125       return this.value;
126     }
127   };
128 
getTargetCase()129   public TargetCase getTargetCase() {
130     return TargetCase.forNumber(targetCase_);
131   }
132 
133   public static final int NAME_FIELD_NUMBER = 6;
134 
135   @SuppressWarnings("serial")
136   private volatile java.lang.Object name_ = "";
137   /**
138    *
139    *
140    * <pre>
141    * Output only. The unique identifier of this transition route.
142    * </pre>
143    *
144    * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
145    *
146    * @return The name.
147    */
148   @java.lang.Override
getName()149   public java.lang.String getName() {
150     java.lang.Object ref = name_;
151     if (ref instanceof java.lang.String) {
152       return (java.lang.String) ref;
153     } else {
154       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
155       java.lang.String s = bs.toStringUtf8();
156       name_ = s;
157       return s;
158     }
159   }
160   /**
161    *
162    *
163    * <pre>
164    * Output only. The unique identifier of this transition route.
165    * </pre>
166    *
167    * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
168    *
169    * @return The bytes for name.
170    */
171   @java.lang.Override
getNameBytes()172   public com.google.protobuf.ByteString getNameBytes() {
173     java.lang.Object ref = name_;
174     if (ref instanceof java.lang.String) {
175       com.google.protobuf.ByteString b =
176           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
177       name_ = b;
178       return b;
179     } else {
180       return (com.google.protobuf.ByteString) ref;
181     }
182   }
183 
184   public static final int INTENT_FIELD_NUMBER = 1;
185 
186   @SuppressWarnings("serial")
187   private volatile java.lang.Object intent_ = "";
188   /**
189    *
190    *
191    * <pre>
192    * The unique identifier of an
193    * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
194    * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
195    * ID&gt;/intents/&lt;Intent ID&gt;`.
196    * Indicates that the transition can only happen when the given intent is
197    * matched.
198    * At least one of `intent` or `condition` must be specified. When both
199    * `intent` and `condition` are specified, the transition can only happen
200    * when both are fulfilled.
201    * </pre>
202    *
203    * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
204    *
205    * @return The intent.
206    */
207   @java.lang.Override
getIntent()208   public java.lang.String getIntent() {
209     java.lang.Object ref = intent_;
210     if (ref instanceof java.lang.String) {
211       return (java.lang.String) ref;
212     } else {
213       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
214       java.lang.String s = bs.toStringUtf8();
215       intent_ = s;
216       return s;
217     }
218   }
219   /**
220    *
221    *
222    * <pre>
223    * The unique identifier of an
224    * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
225    * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
226    * ID&gt;/intents/&lt;Intent ID&gt;`.
227    * Indicates that the transition can only happen when the given intent is
228    * matched.
229    * At least one of `intent` or `condition` must be specified. When both
230    * `intent` and `condition` are specified, the transition can only happen
231    * when both are fulfilled.
232    * </pre>
233    *
234    * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
235    *
236    * @return The bytes for intent.
237    */
238   @java.lang.Override
getIntentBytes()239   public com.google.protobuf.ByteString getIntentBytes() {
240     java.lang.Object ref = intent_;
241     if (ref instanceof java.lang.String) {
242       com.google.protobuf.ByteString b =
243           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
244       intent_ = b;
245       return b;
246     } else {
247       return (com.google.protobuf.ByteString) ref;
248     }
249   }
250 
251   public static final int CONDITION_FIELD_NUMBER = 2;
252 
253   @SuppressWarnings("serial")
254   private volatile java.lang.Object condition_ = "";
255   /**
256    *
257    *
258    * <pre>
259    * The condition to evaluate against [form
260    * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
261    * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
262    * See the [conditions
263    * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
264    * At least one of `intent` or `condition` must be specified. When both
265    * `intent` and `condition` are specified, the transition can only happen
266    * when both are fulfilled.
267    * </pre>
268    *
269    * <code>string condition = 2;</code>
270    *
271    * @return The condition.
272    */
273   @java.lang.Override
getCondition()274   public java.lang.String getCondition() {
275     java.lang.Object ref = condition_;
276     if (ref instanceof java.lang.String) {
277       return (java.lang.String) ref;
278     } else {
279       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
280       java.lang.String s = bs.toStringUtf8();
281       condition_ = s;
282       return s;
283     }
284   }
285   /**
286    *
287    *
288    * <pre>
289    * The condition to evaluate against [form
290    * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
291    * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
292    * See the [conditions
293    * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
294    * At least one of `intent` or `condition` must be specified. When both
295    * `intent` and `condition` are specified, the transition can only happen
296    * when both are fulfilled.
297    * </pre>
298    *
299    * <code>string condition = 2;</code>
300    *
301    * @return The bytes for condition.
302    */
303   @java.lang.Override
getConditionBytes()304   public com.google.protobuf.ByteString getConditionBytes() {
305     java.lang.Object ref = condition_;
306     if (ref instanceof java.lang.String) {
307       com.google.protobuf.ByteString b =
308           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
309       condition_ = b;
310       return b;
311     } else {
312       return (com.google.protobuf.ByteString) ref;
313     }
314   }
315 
316   public static final int TRIGGER_FULFILLMENT_FIELD_NUMBER = 3;
317   private com.google.cloud.dialogflow.cx.v3beta1.Fulfillment triggerFulfillment_;
318   /**
319    *
320    *
321    * <pre>
322    * The fulfillment to call when the condition is satisfied. At least one of
323    * `trigger_fulfillment` and `target` must be specified. When both are
324    * defined, `trigger_fulfillment` is executed first.
325    * </pre>
326    *
327    * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
328    *
329    * @return Whether the triggerFulfillment field is set.
330    */
331   @java.lang.Override
hasTriggerFulfillment()332   public boolean hasTriggerFulfillment() {
333     return triggerFulfillment_ != null;
334   }
335   /**
336    *
337    *
338    * <pre>
339    * The fulfillment to call when the condition is satisfied. At least one of
340    * `trigger_fulfillment` and `target` must be specified. When both are
341    * defined, `trigger_fulfillment` is executed first.
342    * </pre>
343    *
344    * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
345    *
346    * @return The triggerFulfillment.
347    */
348   @java.lang.Override
getTriggerFulfillment()349   public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getTriggerFulfillment() {
350     return triggerFulfillment_ == null
351         ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()
352         : triggerFulfillment_;
353   }
354   /**
355    *
356    *
357    * <pre>
358    * The fulfillment to call when the condition is satisfied. At least one of
359    * `trigger_fulfillment` and `target` must be specified. When both are
360    * defined, `trigger_fulfillment` is executed first.
361    * </pre>
362    *
363    * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
364    */
365   @java.lang.Override
366   public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder
getTriggerFulfillmentOrBuilder()367       getTriggerFulfillmentOrBuilder() {
368     return triggerFulfillment_ == null
369         ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()
370         : triggerFulfillment_;
371   }
372 
373   public static final int TARGET_PAGE_FIELD_NUMBER = 4;
374   /**
375    *
376    *
377    * <pre>
378    * The target page to transition to.
379    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
380    * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
381    * </pre>
382    *
383    * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
384    *
385    * @return Whether the targetPage field is set.
386    */
hasTargetPage()387   public boolean hasTargetPage() {
388     return targetCase_ == 4;
389   }
390   /**
391    *
392    *
393    * <pre>
394    * The target page to transition to.
395    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
396    * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
397    * </pre>
398    *
399    * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
400    *
401    * @return The targetPage.
402    */
getTargetPage()403   public java.lang.String getTargetPage() {
404     java.lang.Object ref = "";
405     if (targetCase_ == 4) {
406       ref = target_;
407     }
408     if (ref instanceof java.lang.String) {
409       return (java.lang.String) ref;
410     } else {
411       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
412       java.lang.String s = bs.toStringUtf8();
413       if (targetCase_ == 4) {
414         target_ = s;
415       }
416       return s;
417     }
418   }
419   /**
420    *
421    *
422    * <pre>
423    * The target page to transition to.
424    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
425    * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
426    * </pre>
427    *
428    * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
429    *
430    * @return The bytes for targetPage.
431    */
getTargetPageBytes()432   public com.google.protobuf.ByteString getTargetPageBytes() {
433     java.lang.Object ref = "";
434     if (targetCase_ == 4) {
435       ref = target_;
436     }
437     if (ref instanceof java.lang.String) {
438       com.google.protobuf.ByteString b =
439           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
440       if (targetCase_ == 4) {
441         target_ = b;
442       }
443       return b;
444     } else {
445       return (com.google.protobuf.ByteString) ref;
446     }
447   }
448 
449   public static final int TARGET_FLOW_FIELD_NUMBER = 5;
450   /**
451    *
452    *
453    * <pre>
454    * The target flow to transition to.
455    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
456    * ID&gt;/flows/&lt;Flow ID&gt;`.
457    * </pre>
458    *
459    * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
460    *
461    * @return Whether the targetFlow field is set.
462    */
hasTargetFlow()463   public boolean hasTargetFlow() {
464     return targetCase_ == 5;
465   }
466   /**
467    *
468    *
469    * <pre>
470    * The target flow to transition to.
471    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
472    * ID&gt;/flows/&lt;Flow ID&gt;`.
473    * </pre>
474    *
475    * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
476    *
477    * @return The targetFlow.
478    */
getTargetFlow()479   public java.lang.String getTargetFlow() {
480     java.lang.Object ref = "";
481     if (targetCase_ == 5) {
482       ref = target_;
483     }
484     if (ref instanceof java.lang.String) {
485       return (java.lang.String) ref;
486     } else {
487       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
488       java.lang.String s = bs.toStringUtf8();
489       if (targetCase_ == 5) {
490         target_ = s;
491       }
492       return s;
493     }
494   }
495   /**
496    *
497    *
498    * <pre>
499    * The target flow to transition to.
500    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
501    * ID&gt;/flows/&lt;Flow ID&gt;`.
502    * </pre>
503    *
504    * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
505    *
506    * @return The bytes for targetFlow.
507    */
getTargetFlowBytes()508   public com.google.protobuf.ByteString getTargetFlowBytes() {
509     java.lang.Object ref = "";
510     if (targetCase_ == 5) {
511       ref = target_;
512     }
513     if (ref instanceof java.lang.String) {
514       com.google.protobuf.ByteString b =
515           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
516       if (targetCase_ == 5) {
517         target_ = b;
518       }
519       return b;
520     } else {
521       return (com.google.protobuf.ByteString) ref;
522     }
523   }
524 
525   private byte memoizedIsInitialized = -1;
526 
527   @java.lang.Override
isInitialized()528   public final boolean isInitialized() {
529     byte isInitialized = memoizedIsInitialized;
530     if (isInitialized == 1) return true;
531     if (isInitialized == 0) return false;
532 
533     memoizedIsInitialized = 1;
534     return true;
535   }
536 
537   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)538   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
539     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) {
540       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, intent_);
541     }
542     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) {
543       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, condition_);
544     }
545     if (triggerFulfillment_ != null) {
546       output.writeMessage(3, getTriggerFulfillment());
547     }
548     if (targetCase_ == 4) {
549       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, target_);
550     }
551     if (targetCase_ == 5) {
552       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, target_);
553     }
554     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
555       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_);
556     }
557     getUnknownFields().writeTo(output);
558   }
559 
560   @java.lang.Override
getSerializedSize()561   public int getSerializedSize() {
562     int size = memoizedSize;
563     if (size != -1) return size;
564 
565     size = 0;
566     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intent_)) {
567       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, intent_);
568     }
569     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(condition_)) {
570       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, condition_);
571     }
572     if (triggerFulfillment_ != null) {
573       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTriggerFulfillment());
574     }
575     if (targetCase_ == 4) {
576       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, target_);
577     }
578     if (targetCase_ == 5) {
579       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_);
580     }
581     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
582       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_);
583     }
584     size += getUnknownFields().getSerializedSize();
585     memoizedSize = size;
586     return size;
587   }
588 
589   @java.lang.Override
equals(final java.lang.Object obj)590   public boolean equals(final java.lang.Object obj) {
591     if (obj == this) {
592       return true;
593     }
594     if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute)) {
595       return super.equals(obj);
596     }
597     com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute other =
598         (com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) obj;
599 
600     if (!getName().equals(other.getName())) return false;
601     if (!getIntent().equals(other.getIntent())) return false;
602     if (!getCondition().equals(other.getCondition())) return false;
603     if (hasTriggerFulfillment() != other.hasTriggerFulfillment()) return false;
604     if (hasTriggerFulfillment()) {
605       if (!getTriggerFulfillment().equals(other.getTriggerFulfillment())) return false;
606     }
607     if (!getTargetCase().equals(other.getTargetCase())) return false;
608     switch (targetCase_) {
609       case 4:
610         if (!getTargetPage().equals(other.getTargetPage())) return false;
611         break;
612       case 5:
613         if (!getTargetFlow().equals(other.getTargetFlow())) return false;
614         break;
615       case 0:
616       default:
617     }
618     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
619     return true;
620   }
621 
622   @java.lang.Override
hashCode()623   public int hashCode() {
624     if (memoizedHashCode != 0) {
625       return memoizedHashCode;
626     }
627     int hash = 41;
628     hash = (19 * hash) + getDescriptor().hashCode();
629     hash = (37 * hash) + NAME_FIELD_NUMBER;
630     hash = (53 * hash) + getName().hashCode();
631     hash = (37 * hash) + INTENT_FIELD_NUMBER;
632     hash = (53 * hash) + getIntent().hashCode();
633     hash = (37 * hash) + CONDITION_FIELD_NUMBER;
634     hash = (53 * hash) + getCondition().hashCode();
635     if (hasTriggerFulfillment()) {
636       hash = (37 * hash) + TRIGGER_FULFILLMENT_FIELD_NUMBER;
637       hash = (53 * hash) + getTriggerFulfillment().hashCode();
638     }
639     switch (targetCase_) {
640       case 4:
641         hash = (37 * hash) + TARGET_PAGE_FIELD_NUMBER;
642         hash = (53 * hash) + getTargetPage().hashCode();
643         break;
644       case 5:
645         hash = (37 * hash) + TARGET_FLOW_FIELD_NUMBER;
646         hash = (53 * hash) + getTargetFlow().hashCode();
647         break;
648       case 0:
649       default:
650     }
651     hash = (29 * hash) + getUnknownFields().hashCode();
652     memoizedHashCode = hash;
653     return hash;
654   }
655 
parseFrom( java.nio.ByteBuffer data)656   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
657       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
658     return PARSER.parseFrom(data);
659   }
660 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)661   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
662       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
663       throws com.google.protobuf.InvalidProtocolBufferException {
664     return PARSER.parseFrom(data, extensionRegistry);
665   }
666 
parseFrom( com.google.protobuf.ByteString data)667   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
668       com.google.protobuf.ByteString data)
669       throws com.google.protobuf.InvalidProtocolBufferException {
670     return PARSER.parseFrom(data);
671   }
672 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)673   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
674       com.google.protobuf.ByteString data,
675       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
676       throws com.google.protobuf.InvalidProtocolBufferException {
677     return PARSER.parseFrom(data, extensionRegistry);
678   }
679 
parseFrom(byte[] data)680   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(byte[] data)
681       throws com.google.protobuf.InvalidProtocolBufferException {
682     return PARSER.parseFrom(data);
683   }
684 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)685   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
686       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
687       throws com.google.protobuf.InvalidProtocolBufferException {
688     return PARSER.parseFrom(data, extensionRegistry);
689   }
690 
parseFrom( java.io.InputStream input)691   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
692       java.io.InputStream input) throws java.io.IOException {
693     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
694   }
695 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)696   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
697       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
698       throws java.io.IOException {
699     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
700         PARSER, input, extensionRegistry);
701   }
702 
parseDelimitedFrom( java.io.InputStream input)703   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseDelimitedFrom(
704       java.io.InputStream input) throws java.io.IOException {
705     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
706   }
707 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)708   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseDelimitedFrom(
709       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
710       throws java.io.IOException {
711     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
712         PARSER, input, extensionRegistry);
713   }
714 
parseFrom( com.google.protobuf.CodedInputStream input)715   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
716       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
717     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
718   }
719 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)720   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute parseFrom(
721       com.google.protobuf.CodedInputStream input,
722       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
723       throws java.io.IOException {
724     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
725         PARSER, input, extensionRegistry);
726   }
727 
728   @java.lang.Override
newBuilderForType()729   public Builder newBuilderForType() {
730     return newBuilder();
731   }
732 
newBuilder()733   public static Builder newBuilder() {
734     return DEFAULT_INSTANCE.toBuilder();
735   }
736 
newBuilder( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute prototype)737   public static Builder newBuilder(
738       com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute prototype) {
739     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
740   }
741 
742   @java.lang.Override
toBuilder()743   public Builder toBuilder() {
744     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
745   }
746 
747   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)748   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
749     Builder builder = new Builder(parent);
750     return builder;
751   }
752   /**
753    *
754    *
755    * <pre>
756    * A transition route specifies a
757    * [intent][google.cloud.dialogflow.cx.v3beta1.Intent] that can be matched
758    * and/or a data condition that can be evaluated during a session. When a
759    * specified transition is matched, the following actions are taken in order:
760    * *   If there is a
761    * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.trigger_fulfillment]
762    * associated with the transition, it will be called.
763    * *   If there is a
764    * [`target_page`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.target_page]
765    * associated with the transition, the session will transition into the
766    * specified page.
767    * *   If there is a
768    * [`target_flow`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.target_flow]
769    * associated with the transition, the session will transition into the
770    * specified flow.
771    * </pre>
772    *
773    * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.TransitionRoute}
774    */
775   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
776       implements
777       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.TransitionRoute)
778       com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder {
getDescriptor()779     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
780       return com.google.cloud.dialogflow.cx.v3beta1.PageProto
781           .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRoute_descriptor;
782     }
783 
784     @java.lang.Override
785     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()786         internalGetFieldAccessorTable() {
787       return com.google.cloud.dialogflow.cx.v3beta1.PageProto
788           .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRoute_fieldAccessorTable
789           .ensureFieldAccessorsInitialized(
790               com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.class,
791               com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder.class);
792     }
793 
794     // Construct using com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.newBuilder()
Builder()795     private Builder() {}
796 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)797     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
798       super(parent);
799     }
800 
801     @java.lang.Override
clear()802     public Builder clear() {
803       super.clear();
804       bitField0_ = 0;
805       name_ = "";
806       intent_ = "";
807       condition_ = "";
808       triggerFulfillment_ = null;
809       if (triggerFulfillmentBuilder_ != null) {
810         triggerFulfillmentBuilder_.dispose();
811         triggerFulfillmentBuilder_ = null;
812       }
813       targetCase_ = 0;
814       target_ = null;
815       return this;
816     }
817 
818     @java.lang.Override
getDescriptorForType()819     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
820       return com.google.cloud.dialogflow.cx.v3beta1.PageProto
821           .internal_static_google_cloud_dialogflow_cx_v3beta1_TransitionRoute_descriptor;
822     }
823 
824     @java.lang.Override
getDefaultInstanceForType()825     public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getDefaultInstanceForType() {
826       return com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance();
827     }
828 
829     @java.lang.Override
build()830     public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute build() {
831       com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result = buildPartial();
832       if (!result.isInitialized()) {
833         throw newUninitializedMessageException(result);
834       }
835       return result;
836     }
837 
838     @java.lang.Override
buildPartial()839     public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute buildPartial() {
840       com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result =
841           new com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(this);
842       if (bitField0_ != 0) {
843         buildPartial0(result);
844       }
845       buildPartialOneofs(result);
846       onBuilt();
847       return result;
848     }
849 
buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result)850     private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result) {
851       int from_bitField0_ = bitField0_;
852       if (((from_bitField0_ & 0x00000001) != 0)) {
853         result.name_ = name_;
854       }
855       if (((from_bitField0_ & 0x00000002) != 0)) {
856         result.intent_ = intent_;
857       }
858       if (((from_bitField0_ & 0x00000004) != 0)) {
859         result.condition_ = condition_;
860       }
861       if (((from_bitField0_ & 0x00000008) != 0)) {
862         result.triggerFulfillment_ =
863             triggerFulfillmentBuilder_ == null
864                 ? triggerFulfillment_
865                 : triggerFulfillmentBuilder_.build();
866       }
867     }
868 
buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result)869     private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result) {
870       result.targetCase_ = targetCase_;
871       result.target_ = this.target_;
872     }
873 
874     @java.lang.Override
clone()875     public Builder clone() {
876       return super.clone();
877     }
878 
879     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)880     public Builder setField(
881         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
882       return super.setField(field, value);
883     }
884 
885     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)886     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
887       return super.clearField(field);
888     }
889 
890     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)891     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
892       return super.clearOneof(oneof);
893     }
894 
895     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)896     public Builder setRepeatedField(
897         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
898       return super.setRepeatedField(field, index, value);
899     }
900 
901     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)902     public Builder addRepeatedField(
903         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
904       return super.addRepeatedField(field, value);
905     }
906 
907     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)908     public Builder mergeFrom(com.google.protobuf.Message other) {
909       if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) {
910         return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) other);
911       } else {
912         super.mergeFrom(other);
913         return this;
914       }
915     }
916 
mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute other)917     public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute other) {
918       if (other == com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance())
919         return this;
920       if (!other.getName().isEmpty()) {
921         name_ = other.name_;
922         bitField0_ |= 0x00000001;
923         onChanged();
924       }
925       if (!other.getIntent().isEmpty()) {
926         intent_ = other.intent_;
927         bitField0_ |= 0x00000002;
928         onChanged();
929       }
930       if (!other.getCondition().isEmpty()) {
931         condition_ = other.condition_;
932         bitField0_ |= 0x00000004;
933         onChanged();
934       }
935       if (other.hasTriggerFulfillment()) {
936         mergeTriggerFulfillment(other.getTriggerFulfillment());
937       }
938       switch (other.getTargetCase()) {
939         case TARGET_PAGE:
940           {
941             targetCase_ = 4;
942             target_ = other.target_;
943             onChanged();
944             break;
945           }
946         case TARGET_FLOW:
947           {
948             targetCase_ = 5;
949             target_ = other.target_;
950             onChanged();
951             break;
952           }
953         case TARGET_NOT_SET:
954           {
955             break;
956           }
957       }
958       this.mergeUnknownFields(other.getUnknownFields());
959       onChanged();
960       return this;
961     }
962 
963     @java.lang.Override
isInitialized()964     public final boolean isInitialized() {
965       return true;
966     }
967 
968     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)969     public Builder mergeFrom(
970         com.google.protobuf.CodedInputStream input,
971         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
972         throws java.io.IOException {
973       if (extensionRegistry == null) {
974         throw new java.lang.NullPointerException();
975       }
976       try {
977         boolean done = false;
978         while (!done) {
979           int tag = input.readTag();
980           switch (tag) {
981             case 0:
982               done = true;
983               break;
984             case 10:
985               {
986                 intent_ = input.readStringRequireUtf8();
987                 bitField0_ |= 0x00000002;
988                 break;
989               } // case 10
990             case 18:
991               {
992                 condition_ = input.readStringRequireUtf8();
993                 bitField0_ |= 0x00000004;
994                 break;
995               } // case 18
996             case 26:
997               {
998                 input.readMessage(
999                     getTriggerFulfillmentFieldBuilder().getBuilder(), extensionRegistry);
1000                 bitField0_ |= 0x00000008;
1001                 break;
1002               } // case 26
1003             case 34:
1004               {
1005                 java.lang.String s = input.readStringRequireUtf8();
1006                 targetCase_ = 4;
1007                 target_ = s;
1008                 break;
1009               } // case 34
1010             case 42:
1011               {
1012                 java.lang.String s = input.readStringRequireUtf8();
1013                 targetCase_ = 5;
1014                 target_ = s;
1015                 break;
1016               } // case 42
1017             case 50:
1018               {
1019                 name_ = input.readStringRequireUtf8();
1020                 bitField0_ |= 0x00000001;
1021                 break;
1022               } // case 50
1023             default:
1024               {
1025                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1026                   done = true; // was an endgroup tag
1027                 }
1028                 break;
1029               } // default:
1030           } // switch (tag)
1031         } // while (!done)
1032       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1033         throw e.unwrapIOException();
1034       } finally {
1035         onChanged();
1036       } // finally
1037       return this;
1038     }
1039 
1040     private int targetCase_ = 0;
1041     private java.lang.Object target_;
1042 
getTargetCase()1043     public TargetCase getTargetCase() {
1044       return TargetCase.forNumber(targetCase_);
1045     }
1046 
clearTarget()1047     public Builder clearTarget() {
1048       targetCase_ = 0;
1049       target_ = null;
1050       onChanged();
1051       return this;
1052     }
1053 
1054     private int bitField0_;
1055 
1056     private java.lang.Object name_ = "";
1057     /**
1058      *
1059      *
1060      * <pre>
1061      * Output only. The unique identifier of this transition route.
1062      * </pre>
1063      *
1064      * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1065      *
1066      * @return The name.
1067      */
getName()1068     public java.lang.String getName() {
1069       java.lang.Object ref = name_;
1070       if (!(ref instanceof java.lang.String)) {
1071         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1072         java.lang.String s = bs.toStringUtf8();
1073         name_ = s;
1074         return s;
1075       } else {
1076         return (java.lang.String) ref;
1077       }
1078     }
1079     /**
1080      *
1081      *
1082      * <pre>
1083      * Output only. The unique identifier of this transition route.
1084      * </pre>
1085      *
1086      * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1087      *
1088      * @return The bytes for name.
1089      */
getNameBytes()1090     public com.google.protobuf.ByteString getNameBytes() {
1091       java.lang.Object ref = name_;
1092       if (ref instanceof String) {
1093         com.google.protobuf.ByteString b =
1094             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1095         name_ = b;
1096         return b;
1097       } else {
1098         return (com.google.protobuf.ByteString) ref;
1099       }
1100     }
1101     /**
1102      *
1103      *
1104      * <pre>
1105      * Output only. The unique identifier of this transition route.
1106      * </pre>
1107      *
1108      * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1109      *
1110      * @param value The name to set.
1111      * @return This builder for chaining.
1112      */
setName(java.lang.String value)1113     public Builder setName(java.lang.String value) {
1114       if (value == null) {
1115         throw new NullPointerException();
1116       }
1117       name_ = value;
1118       bitField0_ |= 0x00000001;
1119       onChanged();
1120       return this;
1121     }
1122     /**
1123      *
1124      *
1125      * <pre>
1126      * Output only. The unique identifier of this transition route.
1127      * </pre>
1128      *
1129      * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1130      *
1131      * @return This builder for chaining.
1132      */
clearName()1133     public Builder clearName() {
1134       name_ = getDefaultInstance().getName();
1135       bitField0_ = (bitField0_ & ~0x00000001);
1136       onChanged();
1137       return this;
1138     }
1139     /**
1140      *
1141      *
1142      * <pre>
1143      * Output only. The unique identifier of this transition route.
1144      * </pre>
1145      *
1146      * <code>string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1147      *
1148      * @param value The bytes for name to set.
1149      * @return This builder for chaining.
1150      */
setNameBytes(com.google.protobuf.ByteString value)1151     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1152       if (value == null) {
1153         throw new NullPointerException();
1154       }
1155       checkByteStringIsUtf8(value);
1156       name_ = value;
1157       bitField0_ |= 0x00000001;
1158       onChanged();
1159       return this;
1160     }
1161 
1162     private java.lang.Object intent_ = "";
1163     /**
1164      *
1165      *
1166      * <pre>
1167      * The unique identifier of an
1168      * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
1169      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1170      * ID&gt;/intents/&lt;Intent ID&gt;`.
1171      * Indicates that the transition can only happen when the given intent is
1172      * matched.
1173      * At least one of `intent` or `condition` must be specified. When both
1174      * `intent` and `condition` are specified, the transition can only happen
1175      * when both are fulfilled.
1176      * </pre>
1177      *
1178      * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
1179      *
1180      * @return The intent.
1181      */
getIntent()1182     public java.lang.String getIntent() {
1183       java.lang.Object ref = intent_;
1184       if (!(ref instanceof java.lang.String)) {
1185         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1186         java.lang.String s = bs.toStringUtf8();
1187         intent_ = s;
1188         return s;
1189       } else {
1190         return (java.lang.String) ref;
1191       }
1192     }
1193     /**
1194      *
1195      *
1196      * <pre>
1197      * The unique identifier of an
1198      * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
1199      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1200      * ID&gt;/intents/&lt;Intent ID&gt;`.
1201      * Indicates that the transition can only happen when the given intent is
1202      * matched.
1203      * At least one of `intent` or `condition` must be specified. When both
1204      * `intent` and `condition` are specified, the transition can only happen
1205      * when both are fulfilled.
1206      * </pre>
1207      *
1208      * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
1209      *
1210      * @return The bytes for intent.
1211      */
getIntentBytes()1212     public com.google.protobuf.ByteString getIntentBytes() {
1213       java.lang.Object ref = intent_;
1214       if (ref instanceof String) {
1215         com.google.protobuf.ByteString b =
1216             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1217         intent_ = b;
1218         return b;
1219       } else {
1220         return (com.google.protobuf.ByteString) ref;
1221       }
1222     }
1223     /**
1224      *
1225      *
1226      * <pre>
1227      * The unique identifier of an
1228      * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
1229      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1230      * ID&gt;/intents/&lt;Intent ID&gt;`.
1231      * Indicates that the transition can only happen when the given intent is
1232      * matched.
1233      * At least one of `intent` or `condition` must be specified. When both
1234      * `intent` and `condition` are specified, the transition can only happen
1235      * when both are fulfilled.
1236      * </pre>
1237      *
1238      * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
1239      *
1240      * @param value The intent to set.
1241      * @return This builder for chaining.
1242      */
setIntent(java.lang.String value)1243     public Builder setIntent(java.lang.String value) {
1244       if (value == null) {
1245         throw new NullPointerException();
1246       }
1247       intent_ = value;
1248       bitField0_ |= 0x00000002;
1249       onChanged();
1250       return this;
1251     }
1252     /**
1253      *
1254      *
1255      * <pre>
1256      * The unique identifier of an
1257      * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
1258      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1259      * ID&gt;/intents/&lt;Intent ID&gt;`.
1260      * Indicates that the transition can only happen when the given intent is
1261      * matched.
1262      * At least one of `intent` or `condition` must be specified. When both
1263      * `intent` and `condition` are specified, the transition can only happen
1264      * when both are fulfilled.
1265      * </pre>
1266      *
1267      * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
1268      *
1269      * @return This builder for chaining.
1270      */
clearIntent()1271     public Builder clearIntent() {
1272       intent_ = getDefaultInstance().getIntent();
1273       bitField0_ = (bitField0_ & ~0x00000002);
1274       onChanged();
1275       return this;
1276     }
1277     /**
1278      *
1279      *
1280      * <pre>
1281      * The unique identifier of an
1282      * [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format:
1283      * `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1284      * ID&gt;/intents/&lt;Intent ID&gt;`.
1285      * Indicates that the transition can only happen when the given intent is
1286      * matched.
1287      * At least one of `intent` or `condition` must be specified. When both
1288      * `intent` and `condition` are specified, the transition can only happen
1289      * when both are fulfilled.
1290      * </pre>
1291      *
1292      * <code>string intent = 1 [(.google.api.resource_reference) = { ... }</code>
1293      *
1294      * @param value The bytes for intent to set.
1295      * @return This builder for chaining.
1296      */
setIntentBytes(com.google.protobuf.ByteString value)1297     public Builder setIntentBytes(com.google.protobuf.ByteString value) {
1298       if (value == null) {
1299         throw new NullPointerException();
1300       }
1301       checkByteStringIsUtf8(value);
1302       intent_ = value;
1303       bitField0_ |= 0x00000002;
1304       onChanged();
1305       return this;
1306     }
1307 
1308     private java.lang.Object condition_ = "";
1309     /**
1310      *
1311      *
1312      * <pre>
1313      * The condition to evaluate against [form
1314      * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
1315      * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
1316      * See the [conditions
1317      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1318      * At least one of `intent` or `condition` must be specified. When both
1319      * `intent` and `condition` are specified, the transition can only happen
1320      * when both are fulfilled.
1321      * </pre>
1322      *
1323      * <code>string condition = 2;</code>
1324      *
1325      * @return The condition.
1326      */
getCondition()1327     public java.lang.String getCondition() {
1328       java.lang.Object ref = condition_;
1329       if (!(ref instanceof java.lang.String)) {
1330         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1331         java.lang.String s = bs.toStringUtf8();
1332         condition_ = s;
1333         return s;
1334       } else {
1335         return (java.lang.String) ref;
1336       }
1337     }
1338     /**
1339      *
1340      *
1341      * <pre>
1342      * The condition to evaluate against [form
1343      * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
1344      * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
1345      * See the [conditions
1346      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1347      * At least one of `intent` or `condition` must be specified. When both
1348      * `intent` and `condition` are specified, the transition can only happen
1349      * when both are fulfilled.
1350      * </pre>
1351      *
1352      * <code>string condition = 2;</code>
1353      *
1354      * @return The bytes for condition.
1355      */
getConditionBytes()1356     public com.google.protobuf.ByteString getConditionBytes() {
1357       java.lang.Object ref = condition_;
1358       if (ref instanceof String) {
1359         com.google.protobuf.ByteString b =
1360             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1361         condition_ = b;
1362         return b;
1363       } else {
1364         return (com.google.protobuf.ByteString) ref;
1365       }
1366     }
1367     /**
1368      *
1369      *
1370      * <pre>
1371      * The condition to evaluate against [form
1372      * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
1373      * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
1374      * See the [conditions
1375      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1376      * At least one of `intent` or `condition` must be specified. When both
1377      * `intent` and `condition` are specified, the transition can only happen
1378      * when both are fulfilled.
1379      * </pre>
1380      *
1381      * <code>string condition = 2;</code>
1382      *
1383      * @param value The condition to set.
1384      * @return This builder for chaining.
1385      */
setCondition(java.lang.String value)1386     public Builder setCondition(java.lang.String value) {
1387       if (value == null) {
1388         throw new NullPointerException();
1389       }
1390       condition_ = value;
1391       bitField0_ |= 0x00000004;
1392       onChanged();
1393       return this;
1394     }
1395     /**
1396      *
1397      *
1398      * <pre>
1399      * The condition to evaluate against [form
1400      * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
1401      * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
1402      * See the [conditions
1403      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1404      * At least one of `intent` or `condition` must be specified. When both
1405      * `intent` and `condition` are specified, the transition can only happen
1406      * when both are fulfilled.
1407      * </pre>
1408      *
1409      * <code>string condition = 2;</code>
1410      *
1411      * @return This builder for chaining.
1412      */
clearCondition()1413     public Builder clearCondition() {
1414       condition_ = getDefaultInstance().getCondition();
1415       bitField0_ = (bitField0_ & ~0x00000004);
1416       onChanged();
1417       return this;
1418     }
1419     /**
1420      *
1421      *
1422      * <pre>
1423      * The condition to evaluate against [form
1424      * parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session
1425      * parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].
1426      * See the [conditions
1427      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
1428      * At least one of `intent` or `condition` must be specified. When both
1429      * `intent` and `condition` are specified, the transition can only happen
1430      * when both are fulfilled.
1431      * </pre>
1432      *
1433      * <code>string condition = 2;</code>
1434      *
1435      * @param value The bytes for condition to set.
1436      * @return This builder for chaining.
1437      */
setConditionBytes(com.google.protobuf.ByteString value)1438     public Builder setConditionBytes(com.google.protobuf.ByteString value) {
1439       if (value == null) {
1440         throw new NullPointerException();
1441       }
1442       checkByteStringIsUtf8(value);
1443       condition_ = value;
1444       bitField0_ |= 0x00000004;
1445       onChanged();
1446       return this;
1447     }
1448 
1449     private com.google.cloud.dialogflow.cx.v3beta1.Fulfillment triggerFulfillment_;
1450     private com.google.protobuf.SingleFieldBuilderV3<
1451             com.google.cloud.dialogflow.cx.v3beta1.Fulfillment,
1452             com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder,
1453             com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder>
1454         triggerFulfillmentBuilder_;
1455     /**
1456      *
1457      *
1458      * <pre>
1459      * The fulfillment to call when the condition is satisfied. At least one of
1460      * `trigger_fulfillment` and `target` must be specified. When both are
1461      * defined, `trigger_fulfillment` is executed first.
1462      * </pre>
1463      *
1464      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1465      *
1466      * @return Whether the triggerFulfillment field is set.
1467      */
hasTriggerFulfillment()1468     public boolean hasTriggerFulfillment() {
1469       return ((bitField0_ & 0x00000008) != 0);
1470     }
1471     /**
1472      *
1473      *
1474      * <pre>
1475      * The fulfillment to call when the condition is satisfied. At least one of
1476      * `trigger_fulfillment` and `target` must be specified. When both are
1477      * defined, `trigger_fulfillment` is executed first.
1478      * </pre>
1479      *
1480      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1481      *
1482      * @return The triggerFulfillment.
1483      */
getTriggerFulfillment()1484     public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getTriggerFulfillment() {
1485       if (triggerFulfillmentBuilder_ == null) {
1486         return triggerFulfillment_ == null
1487             ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()
1488             : triggerFulfillment_;
1489       } else {
1490         return triggerFulfillmentBuilder_.getMessage();
1491       }
1492     }
1493     /**
1494      *
1495      *
1496      * <pre>
1497      * The fulfillment to call when the condition is satisfied. At least one of
1498      * `trigger_fulfillment` and `target` must be specified. When both are
1499      * defined, `trigger_fulfillment` is executed first.
1500      * </pre>
1501      *
1502      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1503      */
setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value)1504     public Builder setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) {
1505       if (triggerFulfillmentBuilder_ == null) {
1506         if (value == null) {
1507           throw new NullPointerException();
1508         }
1509         triggerFulfillment_ = value;
1510       } else {
1511         triggerFulfillmentBuilder_.setMessage(value);
1512       }
1513       bitField0_ |= 0x00000008;
1514       onChanged();
1515       return this;
1516     }
1517     /**
1518      *
1519      *
1520      * <pre>
1521      * The fulfillment to call when the condition is satisfied. At least one of
1522      * `trigger_fulfillment` and `target` must be specified. When both are
1523      * defined, `trigger_fulfillment` is executed first.
1524      * </pre>
1525      *
1526      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1527      */
setTriggerFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue)1528     public Builder setTriggerFulfillment(
1529         com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue) {
1530       if (triggerFulfillmentBuilder_ == null) {
1531         triggerFulfillment_ = builderForValue.build();
1532       } else {
1533         triggerFulfillmentBuilder_.setMessage(builderForValue.build());
1534       }
1535       bitField0_ |= 0x00000008;
1536       onChanged();
1537       return this;
1538     }
1539     /**
1540      *
1541      *
1542      * <pre>
1543      * The fulfillment to call when the condition is satisfied. At least one of
1544      * `trigger_fulfillment` and `target` must be specified. When both are
1545      * defined, `trigger_fulfillment` is executed first.
1546      * </pre>
1547      *
1548      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1549      */
mergeTriggerFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value)1550     public Builder mergeTriggerFulfillment(
1551         com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) {
1552       if (triggerFulfillmentBuilder_ == null) {
1553         if (((bitField0_ & 0x00000008) != 0)
1554             && triggerFulfillment_ != null
1555             && triggerFulfillment_
1556                 != com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()) {
1557           getTriggerFulfillmentBuilder().mergeFrom(value);
1558         } else {
1559           triggerFulfillment_ = value;
1560         }
1561       } else {
1562         triggerFulfillmentBuilder_.mergeFrom(value);
1563       }
1564       bitField0_ |= 0x00000008;
1565       onChanged();
1566       return this;
1567     }
1568     /**
1569      *
1570      *
1571      * <pre>
1572      * The fulfillment to call when the condition is satisfied. At least one of
1573      * `trigger_fulfillment` and `target` must be specified. When both are
1574      * defined, `trigger_fulfillment` is executed first.
1575      * </pre>
1576      *
1577      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1578      */
clearTriggerFulfillment()1579     public Builder clearTriggerFulfillment() {
1580       bitField0_ = (bitField0_ & ~0x00000008);
1581       triggerFulfillment_ = null;
1582       if (triggerFulfillmentBuilder_ != null) {
1583         triggerFulfillmentBuilder_.dispose();
1584         triggerFulfillmentBuilder_ = null;
1585       }
1586       onChanged();
1587       return this;
1588     }
1589     /**
1590      *
1591      *
1592      * <pre>
1593      * The fulfillment to call when the condition is satisfied. At least one of
1594      * `trigger_fulfillment` and `target` must be specified. When both are
1595      * defined, `trigger_fulfillment` is executed first.
1596      * </pre>
1597      *
1598      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1599      */
1600     public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder
getTriggerFulfillmentBuilder()1601         getTriggerFulfillmentBuilder() {
1602       bitField0_ |= 0x00000008;
1603       onChanged();
1604       return getTriggerFulfillmentFieldBuilder().getBuilder();
1605     }
1606     /**
1607      *
1608      *
1609      * <pre>
1610      * The fulfillment to call when the condition is satisfied. At least one of
1611      * `trigger_fulfillment` and `target` must be specified. When both are
1612      * defined, `trigger_fulfillment` is executed first.
1613      * </pre>
1614      *
1615      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1616      */
1617     public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder
getTriggerFulfillmentOrBuilder()1618         getTriggerFulfillmentOrBuilder() {
1619       if (triggerFulfillmentBuilder_ != null) {
1620         return triggerFulfillmentBuilder_.getMessageOrBuilder();
1621       } else {
1622         return triggerFulfillment_ == null
1623             ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()
1624             : triggerFulfillment_;
1625       }
1626     }
1627     /**
1628      *
1629      *
1630      * <pre>
1631      * The fulfillment to call when the condition is satisfied. At least one of
1632      * `trigger_fulfillment` and `target` must be specified. When both are
1633      * defined, `trigger_fulfillment` is executed first.
1634      * </pre>
1635      *
1636      * <code>.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;</code>
1637      */
1638     private com.google.protobuf.SingleFieldBuilderV3<
1639             com.google.cloud.dialogflow.cx.v3beta1.Fulfillment,
1640             com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder,
1641             com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder>
getTriggerFulfillmentFieldBuilder()1642         getTriggerFulfillmentFieldBuilder() {
1643       if (triggerFulfillmentBuilder_ == null) {
1644         triggerFulfillmentBuilder_ =
1645             new com.google.protobuf.SingleFieldBuilderV3<
1646                 com.google.cloud.dialogflow.cx.v3beta1.Fulfillment,
1647                 com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder,
1648                 com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder>(
1649                 getTriggerFulfillment(), getParentForChildren(), isClean());
1650         triggerFulfillment_ = null;
1651       }
1652       return triggerFulfillmentBuilder_;
1653     }
1654 
1655     /**
1656      *
1657      *
1658      * <pre>
1659      * The target page to transition to.
1660      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1661      * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
1662      * </pre>
1663      *
1664      * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
1665      *
1666      * @return Whether the targetPage field is set.
1667      */
1668     @java.lang.Override
hasTargetPage()1669     public boolean hasTargetPage() {
1670       return targetCase_ == 4;
1671     }
1672     /**
1673      *
1674      *
1675      * <pre>
1676      * The target page to transition to.
1677      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1678      * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
1679      * </pre>
1680      *
1681      * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
1682      *
1683      * @return The targetPage.
1684      */
1685     @java.lang.Override
getTargetPage()1686     public java.lang.String getTargetPage() {
1687       java.lang.Object ref = "";
1688       if (targetCase_ == 4) {
1689         ref = target_;
1690       }
1691       if (!(ref instanceof java.lang.String)) {
1692         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1693         java.lang.String s = bs.toStringUtf8();
1694         if (targetCase_ == 4) {
1695           target_ = s;
1696         }
1697         return s;
1698       } else {
1699         return (java.lang.String) ref;
1700       }
1701     }
1702     /**
1703      *
1704      *
1705      * <pre>
1706      * The target page to transition to.
1707      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1708      * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
1709      * </pre>
1710      *
1711      * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
1712      *
1713      * @return The bytes for targetPage.
1714      */
1715     @java.lang.Override
getTargetPageBytes()1716     public com.google.protobuf.ByteString getTargetPageBytes() {
1717       java.lang.Object ref = "";
1718       if (targetCase_ == 4) {
1719         ref = target_;
1720       }
1721       if (ref instanceof String) {
1722         com.google.protobuf.ByteString b =
1723             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1724         if (targetCase_ == 4) {
1725           target_ = b;
1726         }
1727         return b;
1728       } else {
1729         return (com.google.protobuf.ByteString) ref;
1730       }
1731     }
1732     /**
1733      *
1734      *
1735      * <pre>
1736      * The target page to transition to.
1737      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1738      * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
1739      * </pre>
1740      *
1741      * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
1742      *
1743      * @param value The targetPage to set.
1744      * @return This builder for chaining.
1745      */
setTargetPage(java.lang.String value)1746     public Builder setTargetPage(java.lang.String value) {
1747       if (value == null) {
1748         throw new NullPointerException();
1749       }
1750       targetCase_ = 4;
1751       target_ = value;
1752       onChanged();
1753       return this;
1754     }
1755     /**
1756      *
1757      *
1758      * <pre>
1759      * The target page to transition to.
1760      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1761      * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
1762      * </pre>
1763      *
1764      * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
1765      *
1766      * @return This builder for chaining.
1767      */
clearTargetPage()1768     public Builder clearTargetPage() {
1769       if (targetCase_ == 4) {
1770         targetCase_ = 0;
1771         target_ = null;
1772         onChanged();
1773       }
1774       return this;
1775     }
1776     /**
1777      *
1778      *
1779      * <pre>
1780      * The target page to transition to.
1781      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1782      * ID&gt;/flows/&lt;Flow ID&gt;/pages/&lt;Page ID&gt;`.
1783      * </pre>
1784      *
1785      * <code>string target_page = 4 [(.google.api.resource_reference) = { ... }</code>
1786      *
1787      * @param value The bytes for targetPage to set.
1788      * @return This builder for chaining.
1789      */
setTargetPageBytes(com.google.protobuf.ByteString value)1790     public Builder setTargetPageBytes(com.google.protobuf.ByteString value) {
1791       if (value == null) {
1792         throw new NullPointerException();
1793       }
1794       checkByteStringIsUtf8(value);
1795       targetCase_ = 4;
1796       target_ = value;
1797       onChanged();
1798       return this;
1799     }
1800 
1801     /**
1802      *
1803      *
1804      * <pre>
1805      * The target flow to transition to.
1806      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1807      * ID&gt;/flows/&lt;Flow ID&gt;`.
1808      * </pre>
1809      *
1810      * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
1811      *
1812      * @return Whether the targetFlow field is set.
1813      */
1814     @java.lang.Override
hasTargetFlow()1815     public boolean hasTargetFlow() {
1816       return targetCase_ == 5;
1817     }
1818     /**
1819      *
1820      *
1821      * <pre>
1822      * The target flow to transition to.
1823      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1824      * ID&gt;/flows/&lt;Flow ID&gt;`.
1825      * </pre>
1826      *
1827      * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
1828      *
1829      * @return The targetFlow.
1830      */
1831     @java.lang.Override
getTargetFlow()1832     public java.lang.String getTargetFlow() {
1833       java.lang.Object ref = "";
1834       if (targetCase_ == 5) {
1835         ref = target_;
1836       }
1837       if (!(ref instanceof java.lang.String)) {
1838         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1839         java.lang.String s = bs.toStringUtf8();
1840         if (targetCase_ == 5) {
1841           target_ = s;
1842         }
1843         return s;
1844       } else {
1845         return (java.lang.String) ref;
1846       }
1847     }
1848     /**
1849      *
1850      *
1851      * <pre>
1852      * The target flow to transition to.
1853      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1854      * ID&gt;/flows/&lt;Flow ID&gt;`.
1855      * </pre>
1856      *
1857      * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
1858      *
1859      * @return The bytes for targetFlow.
1860      */
1861     @java.lang.Override
getTargetFlowBytes()1862     public com.google.protobuf.ByteString getTargetFlowBytes() {
1863       java.lang.Object ref = "";
1864       if (targetCase_ == 5) {
1865         ref = target_;
1866       }
1867       if (ref instanceof String) {
1868         com.google.protobuf.ByteString b =
1869             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1870         if (targetCase_ == 5) {
1871           target_ = b;
1872         }
1873         return b;
1874       } else {
1875         return (com.google.protobuf.ByteString) ref;
1876       }
1877     }
1878     /**
1879      *
1880      *
1881      * <pre>
1882      * The target flow to transition to.
1883      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1884      * ID&gt;/flows/&lt;Flow ID&gt;`.
1885      * </pre>
1886      *
1887      * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
1888      *
1889      * @param value The targetFlow to set.
1890      * @return This builder for chaining.
1891      */
setTargetFlow(java.lang.String value)1892     public Builder setTargetFlow(java.lang.String value) {
1893       if (value == null) {
1894         throw new NullPointerException();
1895       }
1896       targetCase_ = 5;
1897       target_ = value;
1898       onChanged();
1899       return this;
1900     }
1901     /**
1902      *
1903      *
1904      * <pre>
1905      * The target flow to transition to.
1906      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1907      * ID&gt;/flows/&lt;Flow ID&gt;`.
1908      * </pre>
1909      *
1910      * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
1911      *
1912      * @return This builder for chaining.
1913      */
clearTargetFlow()1914     public Builder clearTargetFlow() {
1915       if (targetCase_ == 5) {
1916         targetCase_ = 0;
1917         target_ = null;
1918         onChanged();
1919       }
1920       return this;
1921     }
1922     /**
1923      *
1924      *
1925      * <pre>
1926      * The target flow to transition to.
1927      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent
1928      * ID&gt;/flows/&lt;Flow ID&gt;`.
1929      * </pre>
1930      *
1931      * <code>string target_flow = 5 [(.google.api.resource_reference) = { ... }</code>
1932      *
1933      * @param value The bytes for targetFlow to set.
1934      * @return This builder for chaining.
1935      */
setTargetFlowBytes(com.google.protobuf.ByteString value)1936     public Builder setTargetFlowBytes(com.google.protobuf.ByteString value) {
1937       if (value == null) {
1938         throw new NullPointerException();
1939       }
1940       checkByteStringIsUtf8(value);
1941       targetCase_ = 5;
1942       target_ = value;
1943       onChanged();
1944       return this;
1945     }
1946 
1947     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1948     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1949       return super.setUnknownFields(unknownFields);
1950     }
1951 
1952     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1953     public final Builder mergeUnknownFields(
1954         final com.google.protobuf.UnknownFieldSet unknownFields) {
1955       return super.mergeUnknownFields(unknownFields);
1956     }
1957 
1958     // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.TransitionRoute)
1959   }
1960 
1961   // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.TransitionRoute)
1962   private static final com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute DEFAULT_INSTANCE;
1963 
1964   static {
1965     DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute();
1966   }
1967 
getDefaultInstance()1968   public static com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getDefaultInstance() {
1969     return DEFAULT_INSTANCE;
1970   }
1971 
1972   private static final com.google.protobuf.Parser<TransitionRoute> PARSER =
1973       new com.google.protobuf.AbstractParser<TransitionRoute>() {
1974         @java.lang.Override
1975         public TransitionRoute parsePartialFrom(
1976             com.google.protobuf.CodedInputStream input,
1977             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1978             throws com.google.protobuf.InvalidProtocolBufferException {
1979           Builder builder = newBuilder();
1980           try {
1981             builder.mergeFrom(input, extensionRegistry);
1982           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1983             throw e.setUnfinishedMessage(builder.buildPartial());
1984           } catch (com.google.protobuf.UninitializedMessageException e) {
1985             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1986           } catch (java.io.IOException e) {
1987             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1988                 .setUnfinishedMessage(builder.buildPartial());
1989           }
1990           return builder.buildPartial();
1991         }
1992       };
1993 
parser()1994   public static com.google.protobuf.Parser<TransitionRoute> parser() {
1995     return PARSER;
1996   }
1997 
1998   @java.lang.Override
getParserForType()1999   public com.google.protobuf.Parser<TransitionRoute> getParserForType() {
2000     return PARSER;
2001   }
2002 
2003   @java.lang.Override
getDefaultInstanceForType()2004   public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getDefaultInstanceForType() {
2005     return DEFAULT_INSTANCE;
2006   }
2007 }
2008