• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/dialogflow/v2/conversation.proto
18 
19 package com.google.cloud.dialogflow.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents a conversation.
26  * A conversation is an interaction between an agent, including live agents
27  * and Dialogflow agents, and a support customer. Conversations can
28  * include phone calls and text-based chat sessions.
29  * </pre>
30  *
31  * Protobuf type {@code google.cloud.dialogflow.v2.Conversation}
32  */
33 public final class Conversation extends com.google.protobuf.GeneratedMessageV3
34     implements
35     // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.Conversation)
36     ConversationOrBuilder {
37   private static final long serialVersionUID = 0L;
38   // Use Conversation.newBuilder() to construct.
Conversation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)39   private Conversation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
40     super(builder);
41   }
42 
Conversation()43   private Conversation() {
44     name_ = "";
45     lifecycleState_ = 0;
46     conversationProfile_ = "";
47     conversationStage_ = 0;
48   }
49 
50   @java.lang.Override
51   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)52   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
53     return new Conversation();
54   }
55 
56   @java.lang.Override
getUnknownFields()57   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
58     return this.unknownFields;
59   }
60 
getDescriptor()61   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
62     return com.google.cloud.dialogflow.v2.ConversationProto
63         .internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
64   }
65 
66   @java.lang.Override
67   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()68       internalGetFieldAccessorTable() {
69     return com.google.cloud.dialogflow.v2.ConversationProto
70         .internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable
71         .ensureFieldAccessorsInitialized(
72             com.google.cloud.dialogflow.v2.Conversation.class,
73             com.google.cloud.dialogflow.v2.Conversation.Builder.class);
74   }
75 
76   /**
77    *
78    *
79    * <pre>
80    * Enumeration of the completion status of the conversation.
81    * </pre>
82    *
83    * Protobuf enum {@code google.cloud.dialogflow.v2.Conversation.LifecycleState}
84    */
85   public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
86     /**
87      *
88      *
89      * <pre>
90      * Unknown.
91      * </pre>
92      *
93      * <code>LIFECYCLE_STATE_UNSPECIFIED = 0;</code>
94      */
95     LIFECYCLE_STATE_UNSPECIFIED(0),
96     /**
97      *
98      *
99      * <pre>
100      * Conversation is currently open for media analysis.
101      * </pre>
102      *
103      * <code>IN_PROGRESS = 1;</code>
104      */
105     IN_PROGRESS(1),
106     /**
107      *
108      *
109      * <pre>
110      * Conversation has been completed.
111      * </pre>
112      *
113      * <code>COMPLETED = 2;</code>
114      */
115     COMPLETED(2),
116     UNRECOGNIZED(-1),
117     ;
118 
119     /**
120      *
121      *
122      * <pre>
123      * Unknown.
124      * </pre>
125      *
126      * <code>LIFECYCLE_STATE_UNSPECIFIED = 0;</code>
127      */
128     public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0;
129     /**
130      *
131      *
132      * <pre>
133      * Conversation is currently open for media analysis.
134      * </pre>
135      *
136      * <code>IN_PROGRESS = 1;</code>
137      */
138     public static final int IN_PROGRESS_VALUE = 1;
139     /**
140      *
141      *
142      * <pre>
143      * Conversation has been completed.
144      * </pre>
145      *
146      * <code>COMPLETED = 2;</code>
147      */
148     public static final int COMPLETED_VALUE = 2;
149 
getNumber()150     public final int getNumber() {
151       if (this == UNRECOGNIZED) {
152         throw new java.lang.IllegalArgumentException(
153             "Can't get the number of an unknown enum value.");
154       }
155       return value;
156     }
157 
158     /**
159      * @param value The numeric wire value of the corresponding enum entry.
160      * @return The enum associated with the given numeric wire value.
161      * @deprecated Use {@link #forNumber(int)} instead.
162      */
163     @java.lang.Deprecated
valueOf(int value)164     public static LifecycleState valueOf(int value) {
165       return forNumber(value);
166     }
167 
168     /**
169      * @param value The numeric wire value of the corresponding enum entry.
170      * @return The enum associated with the given numeric wire value.
171      */
forNumber(int value)172     public static LifecycleState forNumber(int value) {
173       switch (value) {
174         case 0:
175           return LIFECYCLE_STATE_UNSPECIFIED;
176         case 1:
177           return IN_PROGRESS;
178         case 2:
179           return COMPLETED;
180         default:
181           return null;
182       }
183     }
184 
internalGetValueMap()185     public static com.google.protobuf.Internal.EnumLiteMap<LifecycleState> internalGetValueMap() {
186       return internalValueMap;
187     }
188 
189     private static final com.google.protobuf.Internal.EnumLiteMap<LifecycleState> internalValueMap =
190         new com.google.protobuf.Internal.EnumLiteMap<LifecycleState>() {
191           public LifecycleState findValueByNumber(int number) {
192             return LifecycleState.forNumber(number);
193           }
194         };
195 
getValueDescriptor()196     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
197       if (this == UNRECOGNIZED) {
198         throw new java.lang.IllegalStateException(
199             "Can't get the descriptor of an unrecognized enum value.");
200       }
201       return getDescriptor().getValues().get(ordinal());
202     }
203 
getDescriptorForType()204     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
205       return getDescriptor();
206     }
207 
getDescriptor()208     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
209       return com.google.cloud.dialogflow.v2.Conversation.getDescriptor().getEnumTypes().get(0);
210     }
211 
212     private static final LifecycleState[] VALUES = values();
213 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)214     public static LifecycleState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
215       if (desc.getType() != getDescriptor()) {
216         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
217       }
218       if (desc.getIndex() == -1) {
219         return UNRECOGNIZED;
220       }
221       return VALUES[desc.getIndex()];
222     }
223 
224     private final int value;
225 
LifecycleState(int value)226     private LifecycleState(int value) {
227       this.value = value;
228     }
229 
230     // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Conversation.LifecycleState)
231   }
232 
233   /**
234    *
235    *
236    * <pre>
237    * Enumeration of the different conversation stages a conversation can be in.
238    * Reference:
239    * https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages
240    * </pre>
241    *
242    * Protobuf enum {@code google.cloud.dialogflow.v2.Conversation.ConversationStage}
243    */
244   public enum ConversationStage implements com.google.protobuf.ProtocolMessageEnum {
245     /**
246      *
247      *
248      * <pre>
249      * Unknown. Should never be used after a conversation is successfully
250      * created.
251      * </pre>
252      *
253      * <code>CONVERSATION_STAGE_UNSPECIFIED = 0;</code>
254      */
255     CONVERSATION_STAGE_UNSPECIFIED(0),
256     /**
257      *
258      *
259      * <pre>
260      * The conversation should return virtual agent responses into the
261      * conversation.
262      * </pre>
263      *
264      * <code>VIRTUAL_AGENT_STAGE = 1;</code>
265      */
266     VIRTUAL_AGENT_STAGE(1),
267     /**
268      *
269      *
270      * <pre>
271      * The conversation should not provide responses, just listen and provide
272      * suggestions.
273      * </pre>
274      *
275      * <code>HUMAN_ASSIST_STAGE = 2;</code>
276      */
277     HUMAN_ASSIST_STAGE(2),
278     UNRECOGNIZED(-1),
279     ;
280 
281     /**
282      *
283      *
284      * <pre>
285      * Unknown. Should never be used after a conversation is successfully
286      * created.
287      * </pre>
288      *
289      * <code>CONVERSATION_STAGE_UNSPECIFIED = 0;</code>
290      */
291     public static final int CONVERSATION_STAGE_UNSPECIFIED_VALUE = 0;
292     /**
293      *
294      *
295      * <pre>
296      * The conversation should return virtual agent responses into the
297      * conversation.
298      * </pre>
299      *
300      * <code>VIRTUAL_AGENT_STAGE = 1;</code>
301      */
302     public static final int VIRTUAL_AGENT_STAGE_VALUE = 1;
303     /**
304      *
305      *
306      * <pre>
307      * The conversation should not provide responses, just listen and provide
308      * suggestions.
309      * </pre>
310      *
311      * <code>HUMAN_ASSIST_STAGE = 2;</code>
312      */
313     public static final int HUMAN_ASSIST_STAGE_VALUE = 2;
314 
getNumber()315     public final int getNumber() {
316       if (this == UNRECOGNIZED) {
317         throw new java.lang.IllegalArgumentException(
318             "Can't get the number of an unknown enum value.");
319       }
320       return value;
321     }
322 
323     /**
324      * @param value The numeric wire value of the corresponding enum entry.
325      * @return The enum associated with the given numeric wire value.
326      * @deprecated Use {@link #forNumber(int)} instead.
327      */
328     @java.lang.Deprecated
valueOf(int value)329     public static ConversationStage valueOf(int value) {
330       return forNumber(value);
331     }
332 
333     /**
334      * @param value The numeric wire value of the corresponding enum entry.
335      * @return The enum associated with the given numeric wire value.
336      */
forNumber(int value)337     public static ConversationStage forNumber(int value) {
338       switch (value) {
339         case 0:
340           return CONVERSATION_STAGE_UNSPECIFIED;
341         case 1:
342           return VIRTUAL_AGENT_STAGE;
343         case 2:
344           return HUMAN_ASSIST_STAGE;
345         default:
346           return null;
347       }
348     }
349 
350     public static com.google.protobuf.Internal.EnumLiteMap<ConversationStage>
internalGetValueMap()351         internalGetValueMap() {
352       return internalValueMap;
353     }
354 
355     private static final com.google.protobuf.Internal.EnumLiteMap<ConversationStage>
356         internalValueMap =
357             new com.google.protobuf.Internal.EnumLiteMap<ConversationStage>() {
358               public ConversationStage findValueByNumber(int number) {
359                 return ConversationStage.forNumber(number);
360               }
361             };
362 
getValueDescriptor()363     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
364       if (this == UNRECOGNIZED) {
365         throw new java.lang.IllegalStateException(
366             "Can't get the descriptor of an unrecognized enum value.");
367       }
368       return getDescriptor().getValues().get(ordinal());
369     }
370 
getDescriptorForType()371     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
372       return getDescriptor();
373     }
374 
getDescriptor()375     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
376       return com.google.cloud.dialogflow.v2.Conversation.getDescriptor().getEnumTypes().get(1);
377     }
378 
379     private static final ConversationStage[] VALUES = values();
380 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)381     public static ConversationStage valueOf(
382         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
383       if (desc.getType() != getDescriptor()) {
384         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
385       }
386       if (desc.getIndex() == -1) {
387         return UNRECOGNIZED;
388       }
389       return VALUES[desc.getIndex()];
390     }
391 
392     private final int value;
393 
ConversationStage(int value)394     private ConversationStage(int value) {
395       this.value = value;
396     }
397 
398     // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.v2.Conversation.ConversationStage)
399   }
400 
401   public static final int NAME_FIELD_NUMBER = 1;
402 
403   @SuppressWarnings("serial")
404   private volatile java.lang.Object name_ = "";
405   /**
406    *
407    *
408    * <pre>
409    * Output only. The unique identifier of this conversation.
410    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
411    * ID&gt;/conversations/&lt;Conversation ID&gt;`.
412    * </pre>
413    *
414    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
415    *
416    * @return The name.
417    */
418   @java.lang.Override
getName()419   public java.lang.String getName() {
420     java.lang.Object ref = name_;
421     if (ref instanceof java.lang.String) {
422       return (java.lang.String) ref;
423     } else {
424       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
425       java.lang.String s = bs.toStringUtf8();
426       name_ = s;
427       return s;
428     }
429   }
430   /**
431    *
432    *
433    * <pre>
434    * Output only. The unique identifier of this conversation.
435    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
436    * ID&gt;/conversations/&lt;Conversation ID&gt;`.
437    * </pre>
438    *
439    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
440    *
441    * @return The bytes for name.
442    */
443   @java.lang.Override
getNameBytes()444   public com.google.protobuf.ByteString getNameBytes() {
445     java.lang.Object ref = name_;
446     if (ref instanceof java.lang.String) {
447       com.google.protobuf.ByteString b =
448           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
449       name_ = b;
450       return b;
451     } else {
452       return (com.google.protobuf.ByteString) ref;
453     }
454   }
455 
456   public static final int LIFECYCLE_STATE_FIELD_NUMBER = 2;
457   private int lifecycleState_ = 0;
458   /**
459    *
460    *
461    * <pre>
462    * Output only. The current state of the Conversation.
463    * </pre>
464    *
465    * <code>
466    * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
467    * </code>
468    *
469    * @return The enum numeric value on the wire for lifecycleState.
470    */
471   @java.lang.Override
getLifecycleStateValue()472   public int getLifecycleStateValue() {
473     return lifecycleState_;
474   }
475   /**
476    *
477    *
478    * <pre>
479    * Output only. The current state of the Conversation.
480    * </pre>
481    *
482    * <code>
483    * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
484    * </code>
485    *
486    * @return The lifecycleState.
487    */
488   @java.lang.Override
getLifecycleState()489   public com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleState() {
490     com.google.cloud.dialogflow.v2.Conversation.LifecycleState result =
491         com.google.cloud.dialogflow.v2.Conversation.LifecycleState.forNumber(lifecycleState_);
492     return result == null
493         ? com.google.cloud.dialogflow.v2.Conversation.LifecycleState.UNRECOGNIZED
494         : result;
495   }
496 
497   public static final int CONVERSATION_PROFILE_FIELD_NUMBER = 3;
498 
499   @SuppressWarnings("serial")
500   private volatile java.lang.Object conversationProfile_ = "";
501   /**
502    *
503    *
504    * <pre>
505    * Required. The Conversation Profile to be used to configure this
506    * Conversation. This field cannot be updated.
507    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
508    * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
509    * </pre>
510    *
511    * <code>
512    * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
513    * </code>
514    *
515    * @return The conversationProfile.
516    */
517   @java.lang.Override
getConversationProfile()518   public java.lang.String getConversationProfile() {
519     java.lang.Object ref = conversationProfile_;
520     if (ref instanceof java.lang.String) {
521       return (java.lang.String) ref;
522     } else {
523       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
524       java.lang.String s = bs.toStringUtf8();
525       conversationProfile_ = s;
526       return s;
527     }
528   }
529   /**
530    *
531    *
532    * <pre>
533    * Required. The Conversation Profile to be used to configure this
534    * Conversation. This field cannot be updated.
535    * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
536    * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
537    * </pre>
538    *
539    * <code>
540    * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
541    * </code>
542    *
543    * @return The bytes for conversationProfile.
544    */
545   @java.lang.Override
getConversationProfileBytes()546   public com.google.protobuf.ByteString getConversationProfileBytes() {
547     java.lang.Object ref = conversationProfile_;
548     if (ref instanceof java.lang.String) {
549       com.google.protobuf.ByteString b =
550           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
551       conversationProfile_ = b;
552       return b;
553     } else {
554       return (com.google.protobuf.ByteString) ref;
555     }
556   }
557 
558   public static final int PHONE_NUMBER_FIELD_NUMBER = 4;
559   private com.google.cloud.dialogflow.v2.ConversationPhoneNumber phoneNumber_;
560   /**
561    *
562    *
563    * <pre>
564    * Output only. It will not be empty if the conversation is to be connected
565    * over telephony.
566    * </pre>
567    *
568    * <code>
569    * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
570    * </code>
571    *
572    * @return Whether the phoneNumber field is set.
573    */
574   @java.lang.Override
hasPhoneNumber()575   public boolean hasPhoneNumber() {
576     return phoneNumber_ != null;
577   }
578   /**
579    *
580    *
581    * <pre>
582    * Output only. It will not be empty if the conversation is to be connected
583    * over telephony.
584    * </pre>
585    *
586    * <code>
587    * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
588    * </code>
589    *
590    * @return The phoneNumber.
591    */
592   @java.lang.Override
getPhoneNumber()593   public com.google.cloud.dialogflow.v2.ConversationPhoneNumber getPhoneNumber() {
594     return phoneNumber_ == null
595         ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance()
596         : phoneNumber_;
597   }
598   /**
599    *
600    *
601    * <pre>
602    * Output only. It will not be empty if the conversation is to be connected
603    * over telephony.
604    * </pre>
605    *
606    * <code>
607    * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
608    * </code>
609    */
610   @java.lang.Override
getPhoneNumberOrBuilder()611   public com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder() {
612     return phoneNumber_ == null
613         ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance()
614         : phoneNumber_;
615   }
616 
617   public static final int START_TIME_FIELD_NUMBER = 5;
618   private com.google.protobuf.Timestamp startTime_;
619   /**
620    *
621    *
622    * <pre>
623    * Output only. The time the conversation was started.
624    * </pre>
625    *
626    * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
627    * </code>
628    *
629    * @return Whether the startTime field is set.
630    */
631   @java.lang.Override
hasStartTime()632   public boolean hasStartTime() {
633     return startTime_ != null;
634   }
635   /**
636    *
637    *
638    * <pre>
639    * Output only. The time the conversation was started.
640    * </pre>
641    *
642    * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
643    * </code>
644    *
645    * @return The startTime.
646    */
647   @java.lang.Override
getStartTime()648   public com.google.protobuf.Timestamp getStartTime() {
649     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
650   }
651   /**
652    *
653    *
654    * <pre>
655    * Output only. The time the conversation was started.
656    * </pre>
657    *
658    * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
659    * </code>
660    */
661   @java.lang.Override
getStartTimeOrBuilder()662   public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
663     return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
664   }
665 
666   public static final int END_TIME_FIELD_NUMBER = 6;
667   private com.google.protobuf.Timestamp endTime_;
668   /**
669    *
670    *
671    * <pre>
672    * Output only. The time the conversation was finished.
673    * </pre>
674    *
675    * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
676    * </code>
677    *
678    * @return Whether the endTime field is set.
679    */
680   @java.lang.Override
hasEndTime()681   public boolean hasEndTime() {
682     return endTime_ != null;
683   }
684   /**
685    *
686    *
687    * <pre>
688    * Output only. The time the conversation was finished.
689    * </pre>
690    *
691    * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
692    * </code>
693    *
694    * @return The endTime.
695    */
696   @java.lang.Override
getEndTime()697   public com.google.protobuf.Timestamp getEndTime() {
698     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
699   }
700   /**
701    *
702    *
703    * <pre>
704    * Output only. The time the conversation was finished.
705    * </pre>
706    *
707    * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
708    * </code>
709    */
710   @java.lang.Override
getEndTimeOrBuilder()711   public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
712     return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
713   }
714 
715   public static final int CONVERSATION_STAGE_FIELD_NUMBER = 7;
716   private int conversationStage_ = 0;
717   /**
718    *
719    *
720    * <pre>
721    * The stage of a conversation. It indicates whether the virtual agent or a
722    * human agent is handling the conversation.
723    * If the conversation is created with the conversation profile that has
724    * Dialogflow config set, defaults to
725    * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
726    * Otherwise, defaults to
727    * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
728    * If the conversation is created with the conversation profile that has
729    * Dialogflow config set but explicitly sets conversation_stage to
730    * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
731    * it skips
732    * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
733    * stage and directly goes to
734    * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
735    * </pre>
736    *
737    * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;</code>
738    *
739    * @return The enum numeric value on the wire for conversationStage.
740    */
741   @java.lang.Override
getConversationStageValue()742   public int getConversationStageValue() {
743     return conversationStage_;
744   }
745   /**
746    *
747    *
748    * <pre>
749    * The stage of a conversation. It indicates whether the virtual agent or a
750    * human agent is handling the conversation.
751    * If the conversation is created with the conversation profile that has
752    * Dialogflow config set, defaults to
753    * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
754    * Otherwise, defaults to
755    * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
756    * If the conversation is created with the conversation profile that has
757    * Dialogflow config set but explicitly sets conversation_stage to
758    * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
759    * it skips
760    * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
761    * stage and directly goes to
762    * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
763    * </pre>
764    *
765    * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;</code>
766    *
767    * @return The conversationStage.
768    */
769   @java.lang.Override
getConversationStage()770   public com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversationStage() {
771     com.google.cloud.dialogflow.v2.Conversation.ConversationStage result =
772         com.google.cloud.dialogflow.v2.Conversation.ConversationStage.forNumber(conversationStage_);
773     return result == null
774         ? com.google.cloud.dialogflow.v2.Conversation.ConversationStage.UNRECOGNIZED
775         : result;
776   }
777 
778   private byte memoizedIsInitialized = -1;
779 
780   @java.lang.Override
isInitialized()781   public final boolean isInitialized() {
782     byte isInitialized = memoizedIsInitialized;
783     if (isInitialized == 1) return true;
784     if (isInitialized == 0) return false;
785 
786     memoizedIsInitialized = 1;
787     return true;
788   }
789 
790   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)791   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
792     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
793       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
794     }
795     if (lifecycleState_
796         != com.google.cloud.dialogflow.v2.Conversation.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED
797             .getNumber()) {
798       output.writeEnum(2, lifecycleState_);
799     }
800     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationProfile_)) {
801       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, conversationProfile_);
802     }
803     if (phoneNumber_ != null) {
804       output.writeMessage(4, getPhoneNumber());
805     }
806     if (startTime_ != null) {
807       output.writeMessage(5, getStartTime());
808     }
809     if (endTime_ != null) {
810       output.writeMessage(6, getEndTime());
811     }
812     if (conversationStage_
813         != com.google.cloud.dialogflow.v2.Conversation.ConversationStage
814             .CONVERSATION_STAGE_UNSPECIFIED
815             .getNumber()) {
816       output.writeEnum(7, conversationStage_);
817     }
818     getUnknownFields().writeTo(output);
819   }
820 
821   @java.lang.Override
getSerializedSize()822   public int getSerializedSize() {
823     int size = memoizedSize;
824     if (size != -1) return size;
825 
826     size = 0;
827     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
828       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
829     }
830     if (lifecycleState_
831         != com.google.cloud.dialogflow.v2.Conversation.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED
832             .getNumber()) {
833       size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, lifecycleState_);
834     }
835     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationProfile_)) {
836       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, conversationProfile_);
837     }
838     if (phoneNumber_ != null) {
839       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPhoneNumber());
840     }
841     if (startTime_ != null) {
842       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartTime());
843     }
844     if (endTime_ != null) {
845       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndTime());
846     }
847     if (conversationStage_
848         != com.google.cloud.dialogflow.v2.Conversation.ConversationStage
849             .CONVERSATION_STAGE_UNSPECIFIED
850             .getNumber()) {
851       size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, conversationStage_);
852     }
853     size += getUnknownFields().getSerializedSize();
854     memoizedSize = size;
855     return size;
856   }
857 
858   @java.lang.Override
equals(final java.lang.Object obj)859   public boolean equals(final java.lang.Object obj) {
860     if (obj == this) {
861       return true;
862     }
863     if (!(obj instanceof com.google.cloud.dialogflow.v2.Conversation)) {
864       return super.equals(obj);
865     }
866     com.google.cloud.dialogflow.v2.Conversation other =
867         (com.google.cloud.dialogflow.v2.Conversation) obj;
868 
869     if (!getName().equals(other.getName())) return false;
870     if (lifecycleState_ != other.lifecycleState_) return false;
871     if (!getConversationProfile().equals(other.getConversationProfile())) return false;
872     if (hasPhoneNumber() != other.hasPhoneNumber()) return false;
873     if (hasPhoneNumber()) {
874       if (!getPhoneNumber().equals(other.getPhoneNumber())) return false;
875     }
876     if (hasStartTime() != other.hasStartTime()) return false;
877     if (hasStartTime()) {
878       if (!getStartTime().equals(other.getStartTime())) return false;
879     }
880     if (hasEndTime() != other.hasEndTime()) return false;
881     if (hasEndTime()) {
882       if (!getEndTime().equals(other.getEndTime())) return false;
883     }
884     if (conversationStage_ != other.conversationStage_) return false;
885     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
886     return true;
887   }
888 
889   @java.lang.Override
hashCode()890   public int hashCode() {
891     if (memoizedHashCode != 0) {
892       return memoizedHashCode;
893     }
894     int hash = 41;
895     hash = (19 * hash) + getDescriptor().hashCode();
896     hash = (37 * hash) + NAME_FIELD_NUMBER;
897     hash = (53 * hash) + getName().hashCode();
898     hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER;
899     hash = (53 * hash) + lifecycleState_;
900     hash = (37 * hash) + CONVERSATION_PROFILE_FIELD_NUMBER;
901     hash = (53 * hash) + getConversationProfile().hashCode();
902     if (hasPhoneNumber()) {
903       hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER;
904       hash = (53 * hash) + getPhoneNumber().hashCode();
905     }
906     if (hasStartTime()) {
907       hash = (37 * hash) + START_TIME_FIELD_NUMBER;
908       hash = (53 * hash) + getStartTime().hashCode();
909     }
910     if (hasEndTime()) {
911       hash = (37 * hash) + END_TIME_FIELD_NUMBER;
912       hash = (53 * hash) + getEndTime().hashCode();
913     }
914     hash = (37 * hash) + CONVERSATION_STAGE_FIELD_NUMBER;
915     hash = (53 * hash) + conversationStage_;
916     hash = (29 * hash) + getUnknownFields().hashCode();
917     memoizedHashCode = hash;
918     return hash;
919   }
920 
parseFrom(java.nio.ByteBuffer data)921   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(java.nio.ByteBuffer data)
922       throws com.google.protobuf.InvalidProtocolBufferException {
923     return PARSER.parseFrom(data);
924   }
925 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)926   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
927       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
928       throws com.google.protobuf.InvalidProtocolBufferException {
929     return PARSER.parseFrom(data, extensionRegistry);
930   }
931 
parseFrom( com.google.protobuf.ByteString data)932   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
933       com.google.protobuf.ByteString data)
934       throws com.google.protobuf.InvalidProtocolBufferException {
935     return PARSER.parseFrom(data);
936   }
937 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)938   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
939       com.google.protobuf.ByteString data,
940       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
941       throws com.google.protobuf.InvalidProtocolBufferException {
942     return PARSER.parseFrom(data, extensionRegistry);
943   }
944 
parseFrom(byte[] data)945   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(byte[] data)
946       throws com.google.protobuf.InvalidProtocolBufferException {
947     return PARSER.parseFrom(data);
948   }
949 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)950   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
951       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
952       throws com.google.protobuf.InvalidProtocolBufferException {
953     return PARSER.parseFrom(data, extensionRegistry);
954   }
955 
parseFrom(java.io.InputStream input)956   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(java.io.InputStream input)
957       throws java.io.IOException {
958     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
959   }
960 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)961   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
962       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
963       throws java.io.IOException {
964     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
965         PARSER, input, extensionRegistry);
966   }
967 
parseDelimitedFrom( java.io.InputStream input)968   public static com.google.cloud.dialogflow.v2.Conversation parseDelimitedFrom(
969       java.io.InputStream input) throws java.io.IOException {
970     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
971   }
972 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)973   public static com.google.cloud.dialogflow.v2.Conversation parseDelimitedFrom(
974       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
975       throws java.io.IOException {
976     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
977         PARSER, input, extensionRegistry);
978   }
979 
parseFrom( com.google.protobuf.CodedInputStream input)980   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
981       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
982     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
983   }
984 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)985   public static com.google.cloud.dialogflow.v2.Conversation parseFrom(
986       com.google.protobuf.CodedInputStream input,
987       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
988       throws java.io.IOException {
989     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
990         PARSER, input, extensionRegistry);
991   }
992 
993   @java.lang.Override
newBuilderForType()994   public Builder newBuilderForType() {
995     return newBuilder();
996   }
997 
newBuilder()998   public static Builder newBuilder() {
999     return DEFAULT_INSTANCE.toBuilder();
1000   }
1001 
newBuilder(com.google.cloud.dialogflow.v2.Conversation prototype)1002   public static Builder newBuilder(com.google.cloud.dialogflow.v2.Conversation prototype) {
1003     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1004   }
1005 
1006   @java.lang.Override
toBuilder()1007   public Builder toBuilder() {
1008     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1009   }
1010 
1011   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1012   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1013     Builder builder = new Builder(parent);
1014     return builder;
1015   }
1016   /**
1017    *
1018    *
1019    * <pre>
1020    * Represents a conversation.
1021    * A conversation is an interaction between an agent, including live agents
1022    * and Dialogflow agents, and a support customer. Conversations can
1023    * include phone calls and text-based chat sessions.
1024    * </pre>
1025    *
1026    * Protobuf type {@code google.cloud.dialogflow.v2.Conversation}
1027    */
1028   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1029       implements
1030       // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.Conversation)
1031       com.google.cloud.dialogflow.v2.ConversationOrBuilder {
getDescriptor()1032     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1033       return com.google.cloud.dialogflow.v2.ConversationProto
1034           .internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
1035     }
1036 
1037     @java.lang.Override
1038     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1039         internalGetFieldAccessorTable() {
1040       return com.google.cloud.dialogflow.v2.ConversationProto
1041           .internal_static_google_cloud_dialogflow_v2_Conversation_fieldAccessorTable
1042           .ensureFieldAccessorsInitialized(
1043               com.google.cloud.dialogflow.v2.Conversation.class,
1044               com.google.cloud.dialogflow.v2.Conversation.Builder.class);
1045     }
1046 
1047     // Construct using com.google.cloud.dialogflow.v2.Conversation.newBuilder()
Builder()1048     private Builder() {}
1049 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1050     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1051       super(parent);
1052     }
1053 
1054     @java.lang.Override
clear()1055     public Builder clear() {
1056       super.clear();
1057       bitField0_ = 0;
1058       name_ = "";
1059       lifecycleState_ = 0;
1060       conversationProfile_ = "";
1061       phoneNumber_ = null;
1062       if (phoneNumberBuilder_ != null) {
1063         phoneNumberBuilder_.dispose();
1064         phoneNumberBuilder_ = null;
1065       }
1066       startTime_ = null;
1067       if (startTimeBuilder_ != null) {
1068         startTimeBuilder_.dispose();
1069         startTimeBuilder_ = null;
1070       }
1071       endTime_ = null;
1072       if (endTimeBuilder_ != null) {
1073         endTimeBuilder_.dispose();
1074         endTimeBuilder_ = null;
1075       }
1076       conversationStage_ = 0;
1077       return this;
1078     }
1079 
1080     @java.lang.Override
getDescriptorForType()1081     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1082       return com.google.cloud.dialogflow.v2.ConversationProto
1083           .internal_static_google_cloud_dialogflow_v2_Conversation_descriptor;
1084     }
1085 
1086     @java.lang.Override
getDefaultInstanceForType()1087     public com.google.cloud.dialogflow.v2.Conversation getDefaultInstanceForType() {
1088       return com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance();
1089     }
1090 
1091     @java.lang.Override
build()1092     public com.google.cloud.dialogflow.v2.Conversation build() {
1093       com.google.cloud.dialogflow.v2.Conversation result = buildPartial();
1094       if (!result.isInitialized()) {
1095         throw newUninitializedMessageException(result);
1096       }
1097       return result;
1098     }
1099 
1100     @java.lang.Override
buildPartial()1101     public com.google.cloud.dialogflow.v2.Conversation buildPartial() {
1102       com.google.cloud.dialogflow.v2.Conversation result =
1103           new com.google.cloud.dialogflow.v2.Conversation(this);
1104       if (bitField0_ != 0) {
1105         buildPartial0(result);
1106       }
1107       onBuilt();
1108       return result;
1109     }
1110 
buildPartial0(com.google.cloud.dialogflow.v2.Conversation result)1111     private void buildPartial0(com.google.cloud.dialogflow.v2.Conversation result) {
1112       int from_bitField0_ = bitField0_;
1113       if (((from_bitField0_ & 0x00000001) != 0)) {
1114         result.name_ = name_;
1115       }
1116       if (((from_bitField0_ & 0x00000002) != 0)) {
1117         result.lifecycleState_ = lifecycleState_;
1118       }
1119       if (((from_bitField0_ & 0x00000004) != 0)) {
1120         result.conversationProfile_ = conversationProfile_;
1121       }
1122       if (((from_bitField0_ & 0x00000008) != 0)) {
1123         result.phoneNumber_ =
1124             phoneNumberBuilder_ == null ? phoneNumber_ : phoneNumberBuilder_.build();
1125       }
1126       if (((from_bitField0_ & 0x00000010) != 0)) {
1127         result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
1128       }
1129       if (((from_bitField0_ & 0x00000020) != 0)) {
1130         result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
1131       }
1132       if (((from_bitField0_ & 0x00000040) != 0)) {
1133         result.conversationStage_ = conversationStage_;
1134       }
1135     }
1136 
1137     @java.lang.Override
clone()1138     public Builder clone() {
1139       return super.clone();
1140     }
1141 
1142     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1143     public Builder setField(
1144         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1145       return super.setField(field, value);
1146     }
1147 
1148     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1149     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1150       return super.clearField(field);
1151     }
1152 
1153     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1154     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1155       return super.clearOneof(oneof);
1156     }
1157 
1158     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1159     public Builder setRepeatedField(
1160         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1161       return super.setRepeatedField(field, index, value);
1162     }
1163 
1164     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1165     public Builder addRepeatedField(
1166         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1167       return super.addRepeatedField(field, value);
1168     }
1169 
1170     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1171     public Builder mergeFrom(com.google.protobuf.Message other) {
1172       if (other instanceof com.google.cloud.dialogflow.v2.Conversation) {
1173         return mergeFrom((com.google.cloud.dialogflow.v2.Conversation) other);
1174       } else {
1175         super.mergeFrom(other);
1176         return this;
1177       }
1178     }
1179 
mergeFrom(com.google.cloud.dialogflow.v2.Conversation other)1180     public Builder mergeFrom(com.google.cloud.dialogflow.v2.Conversation other) {
1181       if (other == com.google.cloud.dialogflow.v2.Conversation.getDefaultInstance()) return this;
1182       if (!other.getName().isEmpty()) {
1183         name_ = other.name_;
1184         bitField0_ |= 0x00000001;
1185         onChanged();
1186       }
1187       if (other.lifecycleState_ != 0) {
1188         setLifecycleStateValue(other.getLifecycleStateValue());
1189       }
1190       if (!other.getConversationProfile().isEmpty()) {
1191         conversationProfile_ = other.conversationProfile_;
1192         bitField0_ |= 0x00000004;
1193         onChanged();
1194       }
1195       if (other.hasPhoneNumber()) {
1196         mergePhoneNumber(other.getPhoneNumber());
1197       }
1198       if (other.hasStartTime()) {
1199         mergeStartTime(other.getStartTime());
1200       }
1201       if (other.hasEndTime()) {
1202         mergeEndTime(other.getEndTime());
1203       }
1204       if (other.conversationStage_ != 0) {
1205         setConversationStageValue(other.getConversationStageValue());
1206       }
1207       this.mergeUnknownFields(other.getUnknownFields());
1208       onChanged();
1209       return this;
1210     }
1211 
1212     @java.lang.Override
isInitialized()1213     public final boolean isInitialized() {
1214       return true;
1215     }
1216 
1217     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1218     public Builder mergeFrom(
1219         com.google.protobuf.CodedInputStream input,
1220         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1221         throws java.io.IOException {
1222       if (extensionRegistry == null) {
1223         throw new java.lang.NullPointerException();
1224       }
1225       try {
1226         boolean done = false;
1227         while (!done) {
1228           int tag = input.readTag();
1229           switch (tag) {
1230             case 0:
1231               done = true;
1232               break;
1233             case 10:
1234               {
1235                 name_ = input.readStringRequireUtf8();
1236                 bitField0_ |= 0x00000001;
1237                 break;
1238               } // case 10
1239             case 16:
1240               {
1241                 lifecycleState_ = input.readEnum();
1242                 bitField0_ |= 0x00000002;
1243                 break;
1244               } // case 16
1245             case 26:
1246               {
1247                 conversationProfile_ = input.readStringRequireUtf8();
1248                 bitField0_ |= 0x00000004;
1249                 break;
1250               } // case 26
1251             case 34:
1252               {
1253                 input.readMessage(getPhoneNumberFieldBuilder().getBuilder(), extensionRegistry);
1254                 bitField0_ |= 0x00000008;
1255                 break;
1256               } // case 34
1257             case 42:
1258               {
1259                 input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
1260                 bitField0_ |= 0x00000010;
1261                 break;
1262               } // case 42
1263             case 50:
1264               {
1265                 input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
1266                 bitField0_ |= 0x00000020;
1267                 break;
1268               } // case 50
1269             case 56:
1270               {
1271                 conversationStage_ = input.readEnum();
1272                 bitField0_ |= 0x00000040;
1273                 break;
1274               } // case 56
1275             default:
1276               {
1277                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1278                   done = true; // was an endgroup tag
1279                 }
1280                 break;
1281               } // default:
1282           } // switch (tag)
1283         } // while (!done)
1284       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1285         throw e.unwrapIOException();
1286       } finally {
1287         onChanged();
1288       } // finally
1289       return this;
1290     }
1291 
1292     private int bitField0_;
1293 
1294     private java.lang.Object name_ = "";
1295     /**
1296      *
1297      *
1298      * <pre>
1299      * Output only. The unique identifier of this conversation.
1300      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1301      * ID&gt;/conversations/&lt;Conversation ID&gt;`.
1302      * </pre>
1303      *
1304      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1305      *
1306      * @return The name.
1307      */
getName()1308     public java.lang.String getName() {
1309       java.lang.Object ref = name_;
1310       if (!(ref instanceof java.lang.String)) {
1311         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1312         java.lang.String s = bs.toStringUtf8();
1313         name_ = s;
1314         return s;
1315       } else {
1316         return (java.lang.String) ref;
1317       }
1318     }
1319     /**
1320      *
1321      *
1322      * <pre>
1323      * Output only. The unique identifier of this conversation.
1324      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1325      * ID&gt;/conversations/&lt;Conversation ID&gt;`.
1326      * </pre>
1327      *
1328      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1329      *
1330      * @return The bytes for name.
1331      */
getNameBytes()1332     public com.google.protobuf.ByteString getNameBytes() {
1333       java.lang.Object ref = name_;
1334       if (ref instanceof String) {
1335         com.google.protobuf.ByteString b =
1336             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1337         name_ = b;
1338         return b;
1339       } else {
1340         return (com.google.protobuf.ByteString) ref;
1341       }
1342     }
1343     /**
1344      *
1345      *
1346      * <pre>
1347      * Output only. The unique identifier of this conversation.
1348      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1349      * ID&gt;/conversations/&lt;Conversation ID&gt;`.
1350      * </pre>
1351      *
1352      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1353      *
1354      * @param value The name to set.
1355      * @return This builder for chaining.
1356      */
setName(java.lang.String value)1357     public Builder setName(java.lang.String value) {
1358       if (value == null) {
1359         throw new NullPointerException();
1360       }
1361       name_ = value;
1362       bitField0_ |= 0x00000001;
1363       onChanged();
1364       return this;
1365     }
1366     /**
1367      *
1368      *
1369      * <pre>
1370      * Output only. The unique identifier of this conversation.
1371      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1372      * ID&gt;/conversations/&lt;Conversation ID&gt;`.
1373      * </pre>
1374      *
1375      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1376      *
1377      * @return This builder for chaining.
1378      */
clearName()1379     public Builder clearName() {
1380       name_ = getDefaultInstance().getName();
1381       bitField0_ = (bitField0_ & ~0x00000001);
1382       onChanged();
1383       return this;
1384     }
1385     /**
1386      *
1387      *
1388      * <pre>
1389      * Output only. The unique identifier of this conversation.
1390      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1391      * ID&gt;/conversations/&lt;Conversation ID&gt;`.
1392      * </pre>
1393      *
1394      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1395      *
1396      * @param value The bytes for name to set.
1397      * @return This builder for chaining.
1398      */
setNameBytes(com.google.protobuf.ByteString value)1399     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1400       if (value == null) {
1401         throw new NullPointerException();
1402       }
1403       checkByteStringIsUtf8(value);
1404       name_ = value;
1405       bitField0_ |= 0x00000001;
1406       onChanged();
1407       return this;
1408     }
1409 
1410     private int lifecycleState_ = 0;
1411     /**
1412      *
1413      *
1414      * <pre>
1415      * Output only. The current state of the Conversation.
1416      * </pre>
1417      *
1418      * <code>
1419      * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1420      * </code>
1421      *
1422      * @return The enum numeric value on the wire for lifecycleState.
1423      */
1424     @java.lang.Override
getLifecycleStateValue()1425     public int getLifecycleStateValue() {
1426       return lifecycleState_;
1427     }
1428     /**
1429      *
1430      *
1431      * <pre>
1432      * Output only. The current state of the Conversation.
1433      * </pre>
1434      *
1435      * <code>
1436      * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1437      * </code>
1438      *
1439      * @param value The enum numeric value on the wire for lifecycleState to set.
1440      * @return This builder for chaining.
1441      */
setLifecycleStateValue(int value)1442     public Builder setLifecycleStateValue(int value) {
1443       lifecycleState_ = value;
1444       bitField0_ |= 0x00000002;
1445       onChanged();
1446       return this;
1447     }
1448     /**
1449      *
1450      *
1451      * <pre>
1452      * Output only. The current state of the Conversation.
1453      * </pre>
1454      *
1455      * <code>
1456      * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1457      * </code>
1458      *
1459      * @return The lifecycleState.
1460      */
1461     @java.lang.Override
getLifecycleState()1462     public com.google.cloud.dialogflow.v2.Conversation.LifecycleState getLifecycleState() {
1463       com.google.cloud.dialogflow.v2.Conversation.LifecycleState result =
1464           com.google.cloud.dialogflow.v2.Conversation.LifecycleState.forNumber(lifecycleState_);
1465       return result == null
1466           ? com.google.cloud.dialogflow.v2.Conversation.LifecycleState.UNRECOGNIZED
1467           : result;
1468     }
1469     /**
1470      *
1471      *
1472      * <pre>
1473      * Output only. The current state of the Conversation.
1474      * </pre>
1475      *
1476      * <code>
1477      * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1478      * </code>
1479      *
1480      * @param value The lifecycleState to set.
1481      * @return This builder for chaining.
1482      */
setLifecycleState( com.google.cloud.dialogflow.v2.Conversation.LifecycleState value)1483     public Builder setLifecycleState(
1484         com.google.cloud.dialogflow.v2.Conversation.LifecycleState value) {
1485       if (value == null) {
1486         throw new NullPointerException();
1487       }
1488       bitField0_ |= 0x00000002;
1489       lifecycleState_ = value.getNumber();
1490       onChanged();
1491       return this;
1492     }
1493     /**
1494      *
1495      *
1496      * <pre>
1497      * Output only. The current state of the Conversation.
1498      * </pre>
1499      *
1500      * <code>
1501      * .google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1502      * </code>
1503      *
1504      * @return This builder for chaining.
1505      */
clearLifecycleState()1506     public Builder clearLifecycleState() {
1507       bitField0_ = (bitField0_ & ~0x00000002);
1508       lifecycleState_ = 0;
1509       onChanged();
1510       return this;
1511     }
1512 
1513     private java.lang.Object conversationProfile_ = "";
1514     /**
1515      *
1516      *
1517      * <pre>
1518      * Required. The Conversation Profile to be used to configure this
1519      * Conversation. This field cannot be updated.
1520      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1521      * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
1522      * </pre>
1523      *
1524      * <code>
1525      * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1526      * </code>
1527      *
1528      * @return The conversationProfile.
1529      */
getConversationProfile()1530     public java.lang.String getConversationProfile() {
1531       java.lang.Object ref = conversationProfile_;
1532       if (!(ref instanceof java.lang.String)) {
1533         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1534         java.lang.String s = bs.toStringUtf8();
1535         conversationProfile_ = s;
1536         return s;
1537       } else {
1538         return (java.lang.String) ref;
1539       }
1540     }
1541     /**
1542      *
1543      *
1544      * <pre>
1545      * Required. The Conversation Profile to be used to configure this
1546      * Conversation. This field cannot be updated.
1547      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1548      * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
1549      * </pre>
1550      *
1551      * <code>
1552      * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1553      * </code>
1554      *
1555      * @return The bytes for conversationProfile.
1556      */
getConversationProfileBytes()1557     public com.google.protobuf.ByteString getConversationProfileBytes() {
1558       java.lang.Object ref = conversationProfile_;
1559       if (ref instanceof String) {
1560         com.google.protobuf.ByteString b =
1561             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1562         conversationProfile_ = b;
1563         return b;
1564       } else {
1565         return (com.google.protobuf.ByteString) ref;
1566       }
1567     }
1568     /**
1569      *
1570      *
1571      * <pre>
1572      * Required. The Conversation Profile to be used to configure this
1573      * Conversation. This field cannot be updated.
1574      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1575      * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
1576      * </pre>
1577      *
1578      * <code>
1579      * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1580      * </code>
1581      *
1582      * @param value The conversationProfile to set.
1583      * @return This builder for chaining.
1584      */
setConversationProfile(java.lang.String value)1585     public Builder setConversationProfile(java.lang.String value) {
1586       if (value == null) {
1587         throw new NullPointerException();
1588       }
1589       conversationProfile_ = value;
1590       bitField0_ |= 0x00000004;
1591       onChanged();
1592       return this;
1593     }
1594     /**
1595      *
1596      *
1597      * <pre>
1598      * Required. The Conversation Profile to be used to configure this
1599      * Conversation. This field cannot be updated.
1600      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1601      * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
1602      * </pre>
1603      *
1604      * <code>
1605      * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1606      * </code>
1607      *
1608      * @return This builder for chaining.
1609      */
clearConversationProfile()1610     public Builder clearConversationProfile() {
1611       conversationProfile_ = getDefaultInstance().getConversationProfile();
1612       bitField0_ = (bitField0_ & ~0x00000004);
1613       onChanged();
1614       return this;
1615     }
1616     /**
1617      *
1618      *
1619      * <pre>
1620      * Required. The Conversation Profile to be used to configure this
1621      * Conversation. This field cannot be updated.
1622      * Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
1623      * ID&gt;/conversationProfiles/&lt;Conversation Profile ID&gt;`.
1624      * </pre>
1625      *
1626      * <code>
1627      * string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1628      * </code>
1629      *
1630      * @param value The bytes for conversationProfile to set.
1631      * @return This builder for chaining.
1632      */
setConversationProfileBytes(com.google.protobuf.ByteString value)1633     public Builder setConversationProfileBytes(com.google.protobuf.ByteString value) {
1634       if (value == null) {
1635         throw new NullPointerException();
1636       }
1637       checkByteStringIsUtf8(value);
1638       conversationProfile_ = value;
1639       bitField0_ |= 0x00000004;
1640       onChanged();
1641       return this;
1642     }
1643 
1644     private com.google.cloud.dialogflow.v2.ConversationPhoneNumber phoneNumber_;
1645     private com.google.protobuf.SingleFieldBuilderV3<
1646             com.google.cloud.dialogflow.v2.ConversationPhoneNumber,
1647             com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder,
1648             com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder>
1649         phoneNumberBuilder_;
1650     /**
1651      *
1652      *
1653      * <pre>
1654      * Output only. It will not be empty if the conversation is to be connected
1655      * over telephony.
1656      * </pre>
1657      *
1658      * <code>
1659      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1660      * </code>
1661      *
1662      * @return Whether the phoneNumber field is set.
1663      */
hasPhoneNumber()1664     public boolean hasPhoneNumber() {
1665       return ((bitField0_ & 0x00000008) != 0);
1666     }
1667     /**
1668      *
1669      *
1670      * <pre>
1671      * Output only. It will not be empty if the conversation is to be connected
1672      * over telephony.
1673      * </pre>
1674      *
1675      * <code>
1676      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1677      * </code>
1678      *
1679      * @return The phoneNumber.
1680      */
getPhoneNumber()1681     public com.google.cloud.dialogflow.v2.ConversationPhoneNumber getPhoneNumber() {
1682       if (phoneNumberBuilder_ == null) {
1683         return phoneNumber_ == null
1684             ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance()
1685             : phoneNumber_;
1686       } else {
1687         return phoneNumberBuilder_.getMessage();
1688       }
1689     }
1690     /**
1691      *
1692      *
1693      * <pre>
1694      * Output only. It will not be empty if the conversation is to be connected
1695      * over telephony.
1696      * </pre>
1697      *
1698      * <code>
1699      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1700      * </code>
1701      */
setPhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNumber value)1702     public Builder setPhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNumber value) {
1703       if (phoneNumberBuilder_ == null) {
1704         if (value == null) {
1705           throw new NullPointerException();
1706         }
1707         phoneNumber_ = value;
1708       } else {
1709         phoneNumberBuilder_.setMessage(value);
1710       }
1711       bitField0_ |= 0x00000008;
1712       onChanged();
1713       return this;
1714     }
1715     /**
1716      *
1717      *
1718      * <pre>
1719      * Output only. It will not be empty if the conversation is to be connected
1720      * over telephony.
1721      * </pre>
1722      *
1723      * <code>
1724      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1725      * </code>
1726      */
setPhoneNumber( com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder builderForValue)1727     public Builder setPhoneNumber(
1728         com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder builderForValue) {
1729       if (phoneNumberBuilder_ == null) {
1730         phoneNumber_ = builderForValue.build();
1731       } else {
1732         phoneNumberBuilder_.setMessage(builderForValue.build());
1733       }
1734       bitField0_ |= 0x00000008;
1735       onChanged();
1736       return this;
1737     }
1738     /**
1739      *
1740      *
1741      * <pre>
1742      * Output only. It will not be empty if the conversation is to be connected
1743      * over telephony.
1744      * </pre>
1745      *
1746      * <code>
1747      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1748      * </code>
1749      */
mergePhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNumber value)1750     public Builder mergePhoneNumber(com.google.cloud.dialogflow.v2.ConversationPhoneNumber value) {
1751       if (phoneNumberBuilder_ == null) {
1752         if (((bitField0_ & 0x00000008) != 0)
1753             && phoneNumber_ != null
1754             && phoneNumber_
1755                 != com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance()) {
1756           getPhoneNumberBuilder().mergeFrom(value);
1757         } else {
1758           phoneNumber_ = value;
1759         }
1760       } else {
1761         phoneNumberBuilder_.mergeFrom(value);
1762       }
1763       bitField0_ |= 0x00000008;
1764       onChanged();
1765       return this;
1766     }
1767     /**
1768      *
1769      *
1770      * <pre>
1771      * Output only. It will not be empty if the conversation is to be connected
1772      * over telephony.
1773      * </pre>
1774      *
1775      * <code>
1776      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1777      * </code>
1778      */
clearPhoneNumber()1779     public Builder clearPhoneNumber() {
1780       bitField0_ = (bitField0_ & ~0x00000008);
1781       phoneNumber_ = null;
1782       if (phoneNumberBuilder_ != null) {
1783         phoneNumberBuilder_.dispose();
1784         phoneNumberBuilder_ = null;
1785       }
1786       onChanged();
1787       return this;
1788     }
1789     /**
1790      *
1791      *
1792      * <pre>
1793      * Output only. It will not be empty if the conversation is to be connected
1794      * over telephony.
1795      * </pre>
1796      *
1797      * <code>
1798      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1799      * </code>
1800      */
getPhoneNumberBuilder()1801     public com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder getPhoneNumberBuilder() {
1802       bitField0_ |= 0x00000008;
1803       onChanged();
1804       return getPhoneNumberFieldBuilder().getBuilder();
1805     }
1806     /**
1807      *
1808      *
1809      * <pre>
1810      * Output only. It will not be empty if the conversation is to be connected
1811      * over telephony.
1812      * </pre>
1813      *
1814      * <code>
1815      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1816      * </code>
1817      */
1818     public com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder
getPhoneNumberOrBuilder()1819         getPhoneNumberOrBuilder() {
1820       if (phoneNumberBuilder_ != null) {
1821         return phoneNumberBuilder_.getMessageOrBuilder();
1822       } else {
1823         return phoneNumber_ == null
1824             ? com.google.cloud.dialogflow.v2.ConversationPhoneNumber.getDefaultInstance()
1825             : phoneNumber_;
1826       }
1827     }
1828     /**
1829      *
1830      *
1831      * <pre>
1832      * Output only. It will not be empty if the conversation is to be connected
1833      * over telephony.
1834      * </pre>
1835      *
1836      * <code>
1837      * .google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
1838      * </code>
1839      */
1840     private com.google.protobuf.SingleFieldBuilderV3<
1841             com.google.cloud.dialogflow.v2.ConversationPhoneNumber,
1842             com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder,
1843             com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder>
getPhoneNumberFieldBuilder()1844         getPhoneNumberFieldBuilder() {
1845       if (phoneNumberBuilder_ == null) {
1846         phoneNumberBuilder_ =
1847             new com.google.protobuf.SingleFieldBuilderV3<
1848                 com.google.cloud.dialogflow.v2.ConversationPhoneNumber,
1849                 com.google.cloud.dialogflow.v2.ConversationPhoneNumber.Builder,
1850                 com.google.cloud.dialogflow.v2.ConversationPhoneNumberOrBuilder>(
1851                 getPhoneNumber(), getParentForChildren(), isClean());
1852         phoneNumber_ = null;
1853       }
1854       return phoneNumberBuilder_;
1855     }
1856 
1857     private com.google.protobuf.Timestamp startTime_;
1858     private com.google.protobuf.SingleFieldBuilderV3<
1859             com.google.protobuf.Timestamp,
1860             com.google.protobuf.Timestamp.Builder,
1861             com.google.protobuf.TimestampOrBuilder>
1862         startTimeBuilder_;
1863     /**
1864      *
1865      *
1866      * <pre>
1867      * Output only. The time the conversation was started.
1868      * </pre>
1869      *
1870      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1871      * </code>
1872      *
1873      * @return Whether the startTime field is set.
1874      */
hasStartTime()1875     public boolean hasStartTime() {
1876       return ((bitField0_ & 0x00000010) != 0);
1877     }
1878     /**
1879      *
1880      *
1881      * <pre>
1882      * Output only. The time the conversation was started.
1883      * </pre>
1884      *
1885      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1886      * </code>
1887      *
1888      * @return The startTime.
1889      */
getStartTime()1890     public com.google.protobuf.Timestamp getStartTime() {
1891       if (startTimeBuilder_ == null) {
1892         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
1893       } else {
1894         return startTimeBuilder_.getMessage();
1895       }
1896     }
1897     /**
1898      *
1899      *
1900      * <pre>
1901      * Output only. The time the conversation was started.
1902      * </pre>
1903      *
1904      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1905      * </code>
1906      */
setStartTime(com.google.protobuf.Timestamp value)1907     public Builder setStartTime(com.google.protobuf.Timestamp value) {
1908       if (startTimeBuilder_ == null) {
1909         if (value == null) {
1910           throw new NullPointerException();
1911         }
1912         startTime_ = value;
1913       } else {
1914         startTimeBuilder_.setMessage(value);
1915       }
1916       bitField0_ |= 0x00000010;
1917       onChanged();
1918       return this;
1919     }
1920     /**
1921      *
1922      *
1923      * <pre>
1924      * Output only. The time the conversation was started.
1925      * </pre>
1926      *
1927      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1928      * </code>
1929      */
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)1930     public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1931       if (startTimeBuilder_ == null) {
1932         startTime_ = builderForValue.build();
1933       } else {
1934         startTimeBuilder_.setMessage(builderForValue.build());
1935       }
1936       bitField0_ |= 0x00000010;
1937       onChanged();
1938       return this;
1939     }
1940     /**
1941      *
1942      *
1943      * <pre>
1944      * Output only. The time the conversation was started.
1945      * </pre>
1946      *
1947      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1948      * </code>
1949      */
mergeStartTime(com.google.protobuf.Timestamp value)1950     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
1951       if (startTimeBuilder_ == null) {
1952         if (((bitField0_ & 0x00000010) != 0)
1953             && startTime_ != null
1954             && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1955           getStartTimeBuilder().mergeFrom(value);
1956         } else {
1957           startTime_ = value;
1958         }
1959       } else {
1960         startTimeBuilder_.mergeFrom(value);
1961       }
1962       bitField0_ |= 0x00000010;
1963       onChanged();
1964       return this;
1965     }
1966     /**
1967      *
1968      *
1969      * <pre>
1970      * Output only. The time the conversation was started.
1971      * </pre>
1972      *
1973      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1974      * </code>
1975      */
clearStartTime()1976     public Builder clearStartTime() {
1977       bitField0_ = (bitField0_ & ~0x00000010);
1978       startTime_ = null;
1979       if (startTimeBuilder_ != null) {
1980         startTimeBuilder_.dispose();
1981         startTimeBuilder_ = null;
1982       }
1983       onChanged();
1984       return this;
1985     }
1986     /**
1987      *
1988      *
1989      * <pre>
1990      * Output only. The time the conversation was started.
1991      * </pre>
1992      *
1993      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
1994      * </code>
1995      */
getStartTimeBuilder()1996     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
1997       bitField0_ |= 0x00000010;
1998       onChanged();
1999       return getStartTimeFieldBuilder().getBuilder();
2000     }
2001     /**
2002      *
2003      *
2004      * <pre>
2005      * Output only. The time the conversation was started.
2006      * </pre>
2007      *
2008      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
2009      * </code>
2010      */
getStartTimeOrBuilder()2011     public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
2012       if (startTimeBuilder_ != null) {
2013         return startTimeBuilder_.getMessageOrBuilder();
2014       } else {
2015         return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
2016       }
2017     }
2018     /**
2019      *
2020      *
2021      * <pre>
2022      * Output only. The time the conversation was started.
2023      * </pre>
2024      *
2025      * <code>.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
2026      * </code>
2027      */
2028     private com.google.protobuf.SingleFieldBuilderV3<
2029             com.google.protobuf.Timestamp,
2030             com.google.protobuf.Timestamp.Builder,
2031             com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder()2032         getStartTimeFieldBuilder() {
2033       if (startTimeBuilder_ == null) {
2034         startTimeBuilder_ =
2035             new com.google.protobuf.SingleFieldBuilderV3<
2036                 com.google.protobuf.Timestamp,
2037                 com.google.protobuf.Timestamp.Builder,
2038                 com.google.protobuf.TimestampOrBuilder>(
2039                 getStartTime(), getParentForChildren(), isClean());
2040         startTime_ = null;
2041       }
2042       return startTimeBuilder_;
2043     }
2044 
2045     private com.google.protobuf.Timestamp endTime_;
2046     private com.google.protobuf.SingleFieldBuilderV3<
2047             com.google.protobuf.Timestamp,
2048             com.google.protobuf.Timestamp.Builder,
2049             com.google.protobuf.TimestampOrBuilder>
2050         endTimeBuilder_;
2051     /**
2052      *
2053      *
2054      * <pre>
2055      * Output only. The time the conversation was finished.
2056      * </pre>
2057      *
2058      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2059      * </code>
2060      *
2061      * @return Whether the endTime field is set.
2062      */
hasEndTime()2063     public boolean hasEndTime() {
2064       return ((bitField0_ & 0x00000020) != 0);
2065     }
2066     /**
2067      *
2068      *
2069      * <pre>
2070      * Output only. The time the conversation was finished.
2071      * </pre>
2072      *
2073      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2074      * </code>
2075      *
2076      * @return The endTime.
2077      */
getEndTime()2078     public com.google.protobuf.Timestamp getEndTime() {
2079       if (endTimeBuilder_ == null) {
2080         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
2081       } else {
2082         return endTimeBuilder_.getMessage();
2083       }
2084     }
2085     /**
2086      *
2087      *
2088      * <pre>
2089      * Output only. The time the conversation was finished.
2090      * </pre>
2091      *
2092      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2093      * </code>
2094      */
setEndTime(com.google.protobuf.Timestamp value)2095     public Builder setEndTime(com.google.protobuf.Timestamp value) {
2096       if (endTimeBuilder_ == null) {
2097         if (value == null) {
2098           throw new NullPointerException();
2099         }
2100         endTime_ = value;
2101       } else {
2102         endTimeBuilder_.setMessage(value);
2103       }
2104       bitField0_ |= 0x00000020;
2105       onChanged();
2106       return this;
2107     }
2108     /**
2109      *
2110      *
2111      * <pre>
2112      * Output only. The time the conversation was finished.
2113      * </pre>
2114      *
2115      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2116      * </code>
2117      */
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)2118     public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2119       if (endTimeBuilder_ == null) {
2120         endTime_ = builderForValue.build();
2121       } else {
2122         endTimeBuilder_.setMessage(builderForValue.build());
2123       }
2124       bitField0_ |= 0x00000020;
2125       onChanged();
2126       return this;
2127     }
2128     /**
2129      *
2130      *
2131      * <pre>
2132      * Output only. The time the conversation was finished.
2133      * </pre>
2134      *
2135      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2136      * </code>
2137      */
mergeEndTime(com.google.protobuf.Timestamp value)2138     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
2139       if (endTimeBuilder_ == null) {
2140         if (((bitField0_ & 0x00000020) != 0)
2141             && endTime_ != null
2142             && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2143           getEndTimeBuilder().mergeFrom(value);
2144         } else {
2145           endTime_ = value;
2146         }
2147       } else {
2148         endTimeBuilder_.mergeFrom(value);
2149       }
2150       bitField0_ |= 0x00000020;
2151       onChanged();
2152       return this;
2153     }
2154     /**
2155      *
2156      *
2157      * <pre>
2158      * Output only. The time the conversation was finished.
2159      * </pre>
2160      *
2161      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2162      * </code>
2163      */
clearEndTime()2164     public Builder clearEndTime() {
2165       bitField0_ = (bitField0_ & ~0x00000020);
2166       endTime_ = null;
2167       if (endTimeBuilder_ != null) {
2168         endTimeBuilder_.dispose();
2169         endTimeBuilder_ = null;
2170       }
2171       onChanged();
2172       return this;
2173     }
2174     /**
2175      *
2176      *
2177      * <pre>
2178      * Output only. The time the conversation was finished.
2179      * </pre>
2180      *
2181      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2182      * </code>
2183      */
getEndTimeBuilder()2184     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
2185       bitField0_ |= 0x00000020;
2186       onChanged();
2187       return getEndTimeFieldBuilder().getBuilder();
2188     }
2189     /**
2190      *
2191      *
2192      * <pre>
2193      * Output only. The time the conversation was finished.
2194      * </pre>
2195      *
2196      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2197      * </code>
2198      */
getEndTimeOrBuilder()2199     public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
2200       if (endTimeBuilder_ != null) {
2201         return endTimeBuilder_.getMessageOrBuilder();
2202       } else {
2203         return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
2204       }
2205     }
2206     /**
2207      *
2208      *
2209      * <pre>
2210      * Output only. The time the conversation was finished.
2211      * </pre>
2212      *
2213      * <code>.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
2214      * </code>
2215      */
2216     private com.google.protobuf.SingleFieldBuilderV3<
2217             com.google.protobuf.Timestamp,
2218             com.google.protobuf.Timestamp.Builder,
2219             com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder()2220         getEndTimeFieldBuilder() {
2221       if (endTimeBuilder_ == null) {
2222         endTimeBuilder_ =
2223             new com.google.protobuf.SingleFieldBuilderV3<
2224                 com.google.protobuf.Timestamp,
2225                 com.google.protobuf.Timestamp.Builder,
2226                 com.google.protobuf.TimestampOrBuilder>(
2227                 getEndTime(), getParentForChildren(), isClean());
2228         endTime_ = null;
2229       }
2230       return endTimeBuilder_;
2231     }
2232 
2233     private int conversationStage_ = 0;
2234     /**
2235      *
2236      *
2237      * <pre>
2238      * The stage of a conversation. It indicates whether the virtual agent or a
2239      * human agent is handling the conversation.
2240      * If the conversation is created with the conversation profile that has
2241      * Dialogflow config set, defaults to
2242      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
2243      * Otherwise, defaults to
2244      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2245      * If the conversation is created with the conversation profile that has
2246      * Dialogflow config set but explicitly sets conversation_stage to
2247      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
2248      * it skips
2249      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
2250      * stage and directly goes to
2251      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2252      * </pre>
2253      *
2254      * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;
2255      * </code>
2256      *
2257      * @return The enum numeric value on the wire for conversationStage.
2258      */
2259     @java.lang.Override
getConversationStageValue()2260     public int getConversationStageValue() {
2261       return conversationStage_;
2262     }
2263     /**
2264      *
2265      *
2266      * <pre>
2267      * The stage of a conversation. It indicates whether the virtual agent or a
2268      * human agent is handling the conversation.
2269      * If the conversation is created with the conversation profile that has
2270      * Dialogflow config set, defaults to
2271      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
2272      * Otherwise, defaults to
2273      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2274      * If the conversation is created with the conversation profile that has
2275      * Dialogflow config set but explicitly sets conversation_stage to
2276      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
2277      * it skips
2278      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
2279      * stage and directly goes to
2280      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2281      * </pre>
2282      *
2283      * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;
2284      * </code>
2285      *
2286      * @param value The enum numeric value on the wire for conversationStage to set.
2287      * @return This builder for chaining.
2288      */
setConversationStageValue(int value)2289     public Builder setConversationStageValue(int value) {
2290       conversationStage_ = value;
2291       bitField0_ |= 0x00000040;
2292       onChanged();
2293       return this;
2294     }
2295     /**
2296      *
2297      *
2298      * <pre>
2299      * The stage of a conversation. It indicates whether the virtual agent or a
2300      * human agent is handling the conversation.
2301      * If the conversation is created with the conversation profile that has
2302      * Dialogflow config set, defaults to
2303      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
2304      * Otherwise, defaults to
2305      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2306      * If the conversation is created with the conversation profile that has
2307      * Dialogflow config set but explicitly sets conversation_stage to
2308      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
2309      * it skips
2310      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
2311      * stage and directly goes to
2312      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2313      * </pre>
2314      *
2315      * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;
2316      * </code>
2317      *
2318      * @return The conversationStage.
2319      */
2320     @java.lang.Override
getConversationStage()2321     public com.google.cloud.dialogflow.v2.Conversation.ConversationStage getConversationStage() {
2322       com.google.cloud.dialogflow.v2.Conversation.ConversationStage result =
2323           com.google.cloud.dialogflow.v2.Conversation.ConversationStage.forNumber(
2324               conversationStage_);
2325       return result == null
2326           ? com.google.cloud.dialogflow.v2.Conversation.ConversationStage.UNRECOGNIZED
2327           : result;
2328     }
2329     /**
2330      *
2331      *
2332      * <pre>
2333      * The stage of a conversation. It indicates whether the virtual agent or a
2334      * human agent is handling the conversation.
2335      * If the conversation is created with the conversation profile that has
2336      * Dialogflow config set, defaults to
2337      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
2338      * Otherwise, defaults to
2339      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2340      * If the conversation is created with the conversation profile that has
2341      * Dialogflow config set but explicitly sets conversation_stage to
2342      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
2343      * it skips
2344      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
2345      * stage and directly goes to
2346      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2347      * </pre>
2348      *
2349      * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;
2350      * </code>
2351      *
2352      * @param value The conversationStage to set.
2353      * @return This builder for chaining.
2354      */
setConversationStage( com.google.cloud.dialogflow.v2.Conversation.ConversationStage value)2355     public Builder setConversationStage(
2356         com.google.cloud.dialogflow.v2.Conversation.ConversationStage value) {
2357       if (value == null) {
2358         throw new NullPointerException();
2359       }
2360       bitField0_ |= 0x00000040;
2361       conversationStage_ = value.getNumber();
2362       onChanged();
2363       return this;
2364     }
2365     /**
2366      *
2367      *
2368      * <pre>
2369      * The stage of a conversation. It indicates whether the virtual agent or a
2370      * human agent is handling the conversation.
2371      * If the conversation is created with the conversation profile that has
2372      * Dialogflow config set, defaults to
2373      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE];
2374      * Otherwise, defaults to
2375      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2376      * If the conversation is created with the conversation profile that has
2377      * Dialogflow config set but explicitly sets conversation_stage to
2378      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE],
2379      * it skips
2380      * [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]
2381      * stage and directly goes to
2382      * [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
2383      * </pre>
2384      *
2385      * <code>.google.cloud.dialogflow.v2.Conversation.ConversationStage conversation_stage = 7;
2386      * </code>
2387      *
2388      * @return This builder for chaining.
2389      */
clearConversationStage()2390     public Builder clearConversationStage() {
2391       bitField0_ = (bitField0_ & ~0x00000040);
2392       conversationStage_ = 0;
2393       onChanged();
2394       return this;
2395     }
2396 
2397     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2398     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2399       return super.setUnknownFields(unknownFields);
2400     }
2401 
2402     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2403     public final Builder mergeUnknownFields(
2404         final com.google.protobuf.UnknownFieldSet unknownFields) {
2405       return super.mergeUnknownFields(unknownFields);
2406     }
2407 
2408     // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.Conversation)
2409   }
2410 
2411   // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.Conversation)
2412   private static final com.google.cloud.dialogflow.v2.Conversation DEFAULT_INSTANCE;
2413 
2414   static {
2415     DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.Conversation();
2416   }
2417 
getDefaultInstance()2418   public static com.google.cloud.dialogflow.v2.Conversation getDefaultInstance() {
2419     return DEFAULT_INSTANCE;
2420   }
2421 
2422   private static final com.google.protobuf.Parser<Conversation> PARSER =
2423       new com.google.protobuf.AbstractParser<Conversation>() {
2424         @java.lang.Override
2425         public Conversation parsePartialFrom(
2426             com.google.protobuf.CodedInputStream input,
2427             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2428             throws com.google.protobuf.InvalidProtocolBufferException {
2429           Builder builder = newBuilder();
2430           try {
2431             builder.mergeFrom(input, extensionRegistry);
2432           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2433             throw e.setUnfinishedMessage(builder.buildPartial());
2434           } catch (com.google.protobuf.UninitializedMessageException e) {
2435             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2436           } catch (java.io.IOException e) {
2437             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2438                 .setUnfinishedMessage(builder.buildPartial());
2439           }
2440           return builder.buildPartial();
2441         }
2442       };
2443 
parser()2444   public static com.google.protobuf.Parser<Conversation> parser() {
2445     return PARSER;
2446   }
2447 
2448   @java.lang.Override
getParserForType()2449   public com.google.protobuf.Parser<Conversation> getParserForType() {
2450     return PARSER;
2451   }
2452 
2453   @java.lang.Override
getDefaultInstanceForType()2454   public com.google.cloud.dialogflow.v2.Conversation getDefaultInstanceForType() {
2455     return DEFAULT_INSTANCE;
2456   }
2457 }
2458