1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.25.0 18// protoc v3.13.0 19// source: google/cloud/dialogflow/cx/v3beta1/response_message.proto 20 21package cx 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31 structpb "google.golang.org/protobuf/types/known/structpb" 32) 33 34const ( 35 // Verify that this generated code is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 37 // Verify that runtime/protoimpl is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 39) 40 41// This is a compile-time assertion that a sufficiently up-to-date version 42// of the legacy proto package is being used. 43const _ = proto.ProtoPackageIsVersion4 44 45// Represents a response message that can be returned by a conversational agent. 46// 47// Response messages are also used for output audio synthesis. The approach is 48// as follows: 49// 50// * If at least one OutputAudioText response is present, then all 51// OutputAudioText responses are linearly concatenated, and the result is used 52// for output audio synthesis. 53// * If the OutputAudioText responses are a mixture of text and SSML, then the 54// concatenated result is treated as SSML; otherwise, the result is treated as 55// either text or SSML as appropriate. The agent designer should ideally use 56// either text or SSML consistently throughout the bot design. 57// * Otherwise, all Text responses are linearly concatenated, and the result is 58// used for output audio synthesis. 59// 60// This approach allows for more sophisticated user experience scenarios, where 61// the text displayed to the user may differ from what is heard. 62type ResponseMessage struct { 63 state protoimpl.MessageState 64 sizeCache protoimpl.SizeCache 65 unknownFields protoimpl.UnknownFields 66 67 // Required. The rich response message. 68 // 69 // Types that are assignable to Message: 70 // *ResponseMessage_Text_ 71 // *ResponseMessage_Payload 72 // *ResponseMessage_ConversationSuccess_ 73 // *ResponseMessage_OutputAudioText_ 74 // *ResponseMessage_LiveAgentHandoff_ 75 // *ResponseMessage_EndInteraction_ 76 // *ResponseMessage_PlayAudio_ 77 // *ResponseMessage_MixedAudio_ 78 Message isResponseMessage_Message `protobuf_oneof:"message"` 79} 80 81func (x *ResponseMessage) Reset() { 82 *x = ResponseMessage{} 83 if protoimpl.UnsafeEnabled { 84 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[0] 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 ms.StoreMessageInfo(mi) 87 } 88} 89 90func (x *ResponseMessage) String() string { 91 return protoimpl.X.MessageStringOf(x) 92} 93 94func (*ResponseMessage) ProtoMessage() {} 95 96func (x *ResponseMessage) ProtoReflect() protoreflect.Message { 97 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[0] 98 if protoimpl.UnsafeEnabled && x != nil { 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 if ms.LoadMessageInfo() == nil { 101 ms.StoreMessageInfo(mi) 102 } 103 return ms 104 } 105 return mi.MessageOf(x) 106} 107 108// Deprecated: Use ResponseMessage.ProtoReflect.Descriptor instead. 109func (*ResponseMessage) Descriptor() ([]byte, []int) { 110 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0} 111} 112 113func (m *ResponseMessage) GetMessage() isResponseMessage_Message { 114 if m != nil { 115 return m.Message 116 } 117 return nil 118} 119 120func (x *ResponseMessage) GetText() *ResponseMessage_Text { 121 if x, ok := x.GetMessage().(*ResponseMessage_Text_); ok { 122 return x.Text 123 } 124 return nil 125} 126 127func (x *ResponseMessage) GetPayload() *structpb.Struct { 128 if x, ok := x.GetMessage().(*ResponseMessage_Payload); ok { 129 return x.Payload 130 } 131 return nil 132} 133 134func (x *ResponseMessage) GetConversationSuccess() *ResponseMessage_ConversationSuccess { 135 if x, ok := x.GetMessage().(*ResponseMessage_ConversationSuccess_); ok { 136 return x.ConversationSuccess 137 } 138 return nil 139} 140 141func (x *ResponseMessage) GetOutputAudioText() *ResponseMessage_OutputAudioText { 142 if x, ok := x.GetMessage().(*ResponseMessage_OutputAudioText_); ok { 143 return x.OutputAudioText 144 } 145 return nil 146} 147 148func (x *ResponseMessage) GetLiveAgentHandoff() *ResponseMessage_LiveAgentHandoff { 149 if x, ok := x.GetMessage().(*ResponseMessage_LiveAgentHandoff_); ok { 150 return x.LiveAgentHandoff 151 } 152 return nil 153} 154 155func (x *ResponseMessage) GetEndInteraction() *ResponseMessage_EndInteraction { 156 if x, ok := x.GetMessage().(*ResponseMessage_EndInteraction_); ok { 157 return x.EndInteraction 158 } 159 return nil 160} 161 162func (x *ResponseMessage) GetPlayAudio() *ResponseMessage_PlayAudio { 163 if x, ok := x.GetMessage().(*ResponseMessage_PlayAudio_); ok { 164 return x.PlayAudio 165 } 166 return nil 167} 168 169func (x *ResponseMessage) GetMixedAudio() *ResponseMessage_MixedAudio { 170 if x, ok := x.GetMessage().(*ResponseMessage_MixedAudio_); ok { 171 return x.MixedAudio 172 } 173 return nil 174} 175 176type isResponseMessage_Message interface { 177 isResponseMessage_Message() 178} 179 180type ResponseMessage_Text_ struct { 181 // Returns a text response. 182 Text *ResponseMessage_Text `protobuf:"bytes,1,opt,name=text,proto3,oneof"` 183} 184 185type ResponseMessage_Payload struct { 186 // Returns a response containing a custom, platform-specific payload. 187 Payload *structpb.Struct `protobuf:"bytes,2,opt,name=payload,proto3,oneof"` 188} 189 190type ResponseMessage_ConversationSuccess_ struct { 191 // Indicates that the conversation succeeded. 192 ConversationSuccess *ResponseMessage_ConversationSuccess `protobuf:"bytes,9,opt,name=conversation_success,json=conversationSuccess,proto3,oneof"` 193} 194 195type ResponseMessage_OutputAudioText_ struct { 196 // A text or ssml response that is preferentially used for TTS output audio 197 // synthesis, as described in the comment on the ResponseMessage message. 198 OutputAudioText *ResponseMessage_OutputAudioText `protobuf:"bytes,8,opt,name=output_audio_text,json=outputAudioText,proto3,oneof"` 199} 200 201type ResponseMessage_LiveAgentHandoff_ struct { 202 // Hands off conversation to a human agent. 203 LiveAgentHandoff *ResponseMessage_LiveAgentHandoff `protobuf:"bytes,10,opt,name=live_agent_handoff,json=liveAgentHandoff,proto3,oneof"` 204} 205 206type ResponseMessage_EndInteraction_ struct { 207 // Output only. A signal that indicates the interaction with the Dialogflow agent has 208 // ended. 209 // This message is generated by Dialogflow only when the conversation 210 // reaches `END_SESSION` or `END_PAGE` page. It is not supposed to be 211 // defined by the user. 212 // It's guaranteed that there is at most one such message in each response. 213 EndInteraction *ResponseMessage_EndInteraction `protobuf:"bytes,11,opt,name=end_interaction,json=endInteraction,proto3,oneof"` 214} 215 216type ResponseMessage_PlayAudio_ struct { 217 // Signal that the client should play an audio clip hosted at a 218 // client-specific URI. Dialogflow uses this to construct 219 // [mixed_audio][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixed_audio]. However, Dialogflow itself 220 // does not try to read or process the URI in any way. 221 PlayAudio *ResponseMessage_PlayAudio `protobuf:"bytes,12,opt,name=play_audio,json=playAudio,proto3,oneof"` 222} 223 224type ResponseMessage_MixedAudio_ struct { 225 // Output only. An audio response message composed of both the synthesized Dialogflow 226 // agent responses and responses defined via 227 // [play_audio][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.play_audio]. 228 // This message is generated by Dialogflow only and not supposed to be 229 // defined by the user. 230 MixedAudio *ResponseMessage_MixedAudio `protobuf:"bytes,13,opt,name=mixed_audio,json=mixedAudio,proto3,oneof"` 231} 232 233func (*ResponseMessage_Text_) isResponseMessage_Message() {} 234 235func (*ResponseMessage_Payload) isResponseMessage_Message() {} 236 237func (*ResponseMessage_ConversationSuccess_) isResponseMessage_Message() {} 238 239func (*ResponseMessage_OutputAudioText_) isResponseMessage_Message() {} 240 241func (*ResponseMessage_LiveAgentHandoff_) isResponseMessage_Message() {} 242 243func (*ResponseMessage_EndInteraction_) isResponseMessage_Message() {} 244 245func (*ResponseMessage_PlayAudio_) isResponseMessage_Message() {} 246 247func (*ResponseMessage_MixedAudio_) isResponseMessage_Message() {} 248 249// The text response message. 250type ResponseMessage_Text struct { 251 state protoimpl.MessageState 252 sizeCache protoimpl.SizeCache 253 unknownFields protoimpl.UnknownFields 254 255 // Required. A collection of text responses. 256 Text []string `protobuf:"bytes,1,rep,name=text,proto3" json:"text,omitempty"` 257 // Output only. Whether the playback of this message can be interrupted by the end 258 // user's speech and the client can then starts the next Dialogflow 259 // request. 260 AllowPlaybackInterruption bool `protobuf:"varint,2,opt,name=allow_playback_interruption,json=allowPlaybackInterruption,proto3" json:"allow_playback_interruption,omitempty"` 261} 262 263func (x *ResponseMessage_Text) Reset() { 264 *x = ResponseMessage_Text{} 265 if protoimpl.UnsafeEnabled { 266 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[1] 267 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 268 ms.StoreMessageInfo(mi) 269 } 270} 271 272func (x *ResponseMessage_Text) String() string { 273 return protoimpl.X.MessageStringOf(x) 274} 275 276func (*ResponseMessage_Text) ProtoMessage() {} 277 278func (x *ResponseMessage_Text) ProtoReflect() protoreflect.Message { 279 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[1] 280 if protoimpl.UnsafeEnabled && x != nil { 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 if ms.LoadMessageInfo() == nil { 283 ms.StoreMessageInfo(mi) 284 } 285 return ms 286 } 287 return mi.MessageOf(x) 288} 289 290// Deprecated: Use ResponseMessage_Text.ProtoReflect.Descriptor instead. 291func (*ResponseMessage_Text) Descriptor() ([]byte, []int) { 292 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 0} 293} 294 295func (x *ResponseMessage_Text) GetText() []string { 296 if x != nil { 297 return x.Text 298 } 299 return nil 300} 301 302func (x *ResponseMessage_Text) GetAllowPlaybackInterruption() bool { 303 if x != nil { 304 return x.AllowPlaybackInterruption 305 } 306 return false 307} 308 309// Indicates that the conversation should be handed off to a live agent. 310// 311// Dialogflow only uses this to determine which conversations were handed off 312// to a human agent for measurement purposes. What else to do with this signal 313// is up to you and your handoff procedures. 314// 315// You may set this, for example: 316// * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3beta1.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3beta1.Page] if 317// entering the page indicates something went extremely wrong in the 318// conversation. 319// * In a webhook response when you determine that the customer issue can only 320// be handled by a human. 321type ResponseMessage_LiveAgentHandoff struct { 322 state protoimpl.MessageState 323 sizeCache protoimpl.SizeCache 324 unknownFields protoimpl.UnknownFields 325 326 // Custom metadata for your handoff procedure. Dialogflow doesn't impose 327 // any structure on this. 328 Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` 329} 330 331func (x *ResponseMessage_LiveAgentHandoff) Reset() { 332 *x = ResponseMessage_LiveAgentHandoff{} 333 if protoimpl.UnsafeEnabled { 334 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[2] 335 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 336 ms.StoreMessageInfo(mi) 337 } 338} 339 340func (x *ResponseMessage_LiveAgentHandoff) String() string { 341 return protoimpl.X.MessageStringOf(x) 342} 343 344func (*ResponseMessage_LiveAgentHandoff) ProtoMessage() {} 345 346func (x *ResponseMessage_LiveAgentHandoff) ProtoReflect() protoreflect.Message { 347 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[2] 348 if protoimpl.UnsafeEnabled && x != nil { 349 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 350 if ms.LoadMessageInfo() == nil { 351 ms.StoreMessageInfo(mi) 352 } 353 return ms 354 } 355 return mi.MessageOf(x) 356} 357 358// Deprecated: Use ResponseMessage_LiveAgentHandoff.ProtoReflect.Descriptor instead. 359func (*ResponseMessage_LiveAgentHandoff) Descriptor() ([]byte, []int) { 360 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 1} 361} 362 363func (x *ResponseMessage_LiveAgentHandoff) GetMetadata() *structpb.Struct { 364 if x != nil { 365 return x.Metadata 366 } 367 return nil 368} 369 370// Indicates that the conversation succeeded, i.e., the bot handled the issue 371// that the customer talked to it about. 372// 373// Dialogflow only uses this to determine which conversations should be 374// counted as successful and doesn't process the metadata in this message in 375// any way. Note that Dialogflow also considers conversations that get to the 376// conversation end page as successful even if they don't return 377// [ConversationSuccess][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess]. 378// 379// You may set this, for example: 380// * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3beta1.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3beta1.Page] if 381// entering the page indicates that the conversation succeeded. 382// * In a webhook response when you determine that you handled the customer 383// issue. 384type ResponseMessage_ConversationSuccess struct { 385 state protoimpl.MessageState 386 sizeCache protoimpl.SizeCache 387 unknownFields protoimpl.UnknownFields 388 389 // Custom metadata. Dialogflow doesn't impose any structure on this. 390 Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` 391} 392 393func (x *ResponseMessage_ConversationSuccess) Reset() { 394 *x = ResponseMessage_ConversationSuccess{} 395 if protoimpl.UnsafeEnabled { 396 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[3] 397 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 398 ms.StoreMessageInfo(mi) 399 } 400} 401 402func (x *ResponseMessage_ConversationSuccess) String() string { 403 return protoimpl.X.MessageStringOf(x) 404} 405 406func (*ResponseMessage_ConversationSuccess) ProtoMessage() {} 407 408func (x *ResponseMessage_ConversationSuccess) ProtoReflect() protoreflect.Message { 409 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[3] 410 if protoimpl.UnsafeEnabled && x != nil { 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 if ms.LoadMessageInfo() == nil { 413 ms.StoreMessageInfo(mi) 414 } 415 return ms 416 } 417 return mi.MessageOf(x) 418} 419 420// Deprecated: Use ResponseMessage_ConversationSuccess.ProtoReflect.Descriptor instead. 421func (*ResponseMessage_ConversationSuccess) Descriptor() ([]byte, []int) { 422 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 2} 423} 424 425func (x *ResponseMessage_ConversationSuccess) GetMetadata() *structpb.Struct { 426 if x != nil { 427 return x.Metadata 428 } 429 return nil 430} 431 432// A text or ssml response that is preferentially used for TTS output audio 433// synthesis, as described in the comment on the ResponseMessage message. 434type ResponseMessage_OutputAudioText struct { 435 state protoimpl.MessageState 436 sizeCache protoimpl.SizeCache 437 unknownFields protoimpl.UnknownFields 438 439 // The source, which is either plain text or SSML. 440 // 441 // Types that are assignable to Source: 442 // *ResponseMessage_OutputAudioText_Text 443 // *ResponseMessage_OutputAudioText_Ssml 444 Source isResponseMessage_OutputAudioText_Source `protobuf_oneof:"source"` 445 // Output only. Whether the playback of this message can be interrupted by the end 446 // user's speech and the client can then starts the next Dialogflow 447 // request. 448 AllowPlaybackInterruption bool `protobuf:"varint,3,opt,name=allow_playback_interruption,json=allowPlaybackInterruption,proto3" json:"allow_playback_interruption,omitempty"` 449} 450 451func (x *ResponseMessage_OutputAudioText) Reset() { 452 *x = ResponseMessage_OutputAudioText{} 453 if protoimpl.UnsafeEnabled { 454 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[4] 455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 456 ms.StoreMessageInfo(mi) 457 } 458} 459 460func (x *ResponseMessage_OutputAudioText) String() string { 461 return protoimpl.X.MessageStringOf(x) 462} 463 464func (*ResponseMessage_OutputAudioText) ProtoMessage() {} 465 466func (x *ResponseMessage_OutputAudioText) ProtoReflect() protoreflect.Message { 467 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[4] 468 if protoimpl.UnsafeEnabled && x != nil { 469 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 470 if ms.LoadMessageInfo() == nil { 471 ms.StoreMessageInfo(mi) 472 } 473 return ms 474 } 475 return mi.MessageOf(x) 476} 477 478// Deprecated: Use ResponseMessage_OutputAudioText.ProtoReflect.Descriptor instead. 479func (*ResponseMessage_OutputAudioText) Descriptor() ([]byte, []int) { 480 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 3} 481} 482 483func (m *ResponseMessage_OutputAudioText) GetSource() isResponseMessage_OutputAudioText_Source { 484 if m != nil { 485 return m.Source 486 } 487 return nil 488} 489 490func (x *ResponseMessage_OutputAudioText) GetText() string { 491 if x, ok := x.GetSource().(*ResponseMessage_OutputAudioText_Text); ok { 492 return x.Text 493 } 494 return "" 495} 496 497func (x *ResponseMessage_OutputAudioText) GetSsml() string { 498 if x, ok := x.GetSource().(*ResponseMessage_OutputAudioText_Ssml); ok { 499 return x.Ssml 500 } 501 return "" 502} 503 504func (x *ResponseMessage_OutputAudioText) GetAllowPlaybackInterruption() bool { 505 if x != nil { 506 return x.AllowPlaybackInterruption 507 } 508 return false 509} 510 511type isResponseMessage_OutputAudioText_Source interface { 512 isResponseMessage_OutputAudioText_Source() 513} 514 515type ResponseMessage_OutputAudioText_Text struct { 516 // The raw text to be synthesized. 517 Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"` 518} 519 520type ResponseMessage_OutputAudioText_Ssml struct { 521 // The SSML text to be synthesized. For more information, see 522 // [SSML](/speech/text-to-speech/docs/ssml). 523 Ssml string `protobuf:"bytes,2,opt,name=ssml,proto3,oneof"` 524} 525 526func (*ResponseMessage_OutputAudioText_Text) isResponseMessage_OutputAudioText_Source() {} 527 528func (*ResponseMessage_OutputAudioText_Ssml) isResponseMessage_OutputAudioText_Source() {} 529 530// Represents an audio message that is composed of both segments 531// synthesized from the Dialogflow agent prompts and ones hosted externally 532// at the specified URIs. 533// The external URIs are specified via 534// [play_audio][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.play_audio]. 535// This message is generated by Dialogflow only and not supposed to be 536// defined by the user. 537type ResponseMessage_MixedAudio struct { 538 state protoimpl.MessageState 539 sizeCache protoimpl.SizeCache 540 unknownFields protoimpl.UnknownFields 541 542 // Segments this audio response is composed of. 543 Segments []*ResponseMessage_MixedAudio_Segment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"` 544} 545 546func (x *ResponseMessage_MixedAudio) Reset() { 547 *x = ResponseMessage_MixedAudio{} 548 if protoimpl.UnsafeEnabled { 549 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[5] 550 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 551 ms.StoreMessageInfo(mi) 552 } 553} 554 555func (x *ResponseMessage_MixedAudio) String() string { 556 return protoimpl.X.MessageStringOf(x) 557} 558 559func (*ResponseMessage_MixedAudio) ProtoMessage() {} 560 561func (x *ResponseMessage_MixedAudio) ProtoReflect() protoreflect.Message { 562 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[5] 563 if protoimpl.UnsafeEnabled && x != nil { 564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 565 if ms.LoadMessageInfo() == nil { 566 ms.StoreMessageInfo(mi) 567 } 568 return ms 569 } 570 return mi.MessageOf(x) 571} 572 573// Deprecated: Use ResponseMessage_MixedAudio.ProtoReflect.Descriptor instead. 574func (*ResponseMessage_MixedAudio) Descriptor() ([]byte, []int) { 575 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 4} 576} 577 578func (x *ResponseMessage_MixedAudio) GetSegments() []*ResponseMessage_MixedAudio_Segment { 579 if x != nil { 580 return x.Segments 581 } 582 return nil 583} 584 585// Indicates that interaction with the Dialogflow agent has ended. 586// This message is generated by Dialogflow only and not supposed to be 587// defined by the user. 588type ResponseMessage_EndInteraction struct { 589 state protoimpl.MessageState 590 sizeCache protoimpl.SizeCache 591 unknownFields protoimpl.UnknownFields 592} 593 594func (x *ResponseMessage_EndInteraction) Reset() { 595 *x = ResponseMessage_EndInteraction{} 596 if protoimpl.UnsafeEnabled { 597 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[6] 598 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 599 ms.StoreMessageInfo(mi) 600 } 601} 602 603func (x *ResponseMessage_EndInteraction) String() string { 604 return protoimpl.X.MessageStringOf(x) 605} 606 607func (*ResponseMessage_EndInteraction) ProtoMessage() {} 608 609func (x *ResponseMessage_EndInteraction) ProtoReflect() protoreflect.Message { 610 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[6] 611 if protoimpl.UnsafeEnabled && x != nil { 612 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 613 if ms.LoadMessageInfo() == nil { 614 ms.StoreMessageInfo(mi) 615 } 616 return ms 617 } 618 return mi.MessageOf(x) 619} 620 621// Deprecated: Use ResponseMessage_EndInteraction.ProtoReflect.Descriptor instead. 622func (*ResponseMessage_EndInteraction) Descriptor() ([]byte, []int) { 623 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 5} 624} 625 626// Specifies an audio clip to be played by the client as part of the response. 627type ResponseMessage_PlayAudio struct { 628 state protoimpl.MessageState 629 sizeCache protoimpl.SizeCache 630 unknownFields protoimpl.UnknownFields 631 632 // Required. URI of the audio clip. Dialogflow does not impose any validation on this 633 // value. It is specific to the client that reads it. 634 AudioUri string `protobuf:"bytes,1,opt,name=audio_uri,json=audioUri,proto3" json:"audio_uri,omitempty"` 635 // Output only. Whether the playback of this message can be interrupted by the end 636 // user's speech and the client can then starts the next Dialogflow 637 // request. 638 AllowPlaybackInterruption bool `protobuf:"varint,2,opt,name=allow_playback_interruption,json=allowPlaybackInterruption,proto3" json:"allow_playback_interruption,omitempty"` 639} 640 641func (x *ResponseMessage_PlayAudio) Reset() { 642 *x = ResponseMessage_PlayAudio{} 643 if protoimpl.UnsafeEnabled { 644 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[7] 645 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 646 ms.StoreMessageInfo(mi) 647 } 648} 649 650func (x *ResponseMessage_PlayAudio) String() string { 651 return protoimpl.X.MessageStringOf(x) 652} 653 654func (*ResponseMessage_PlayAudio) ProtoMessage() {} 655 656func (x *ResponseMessage_PlayAudio) ProtoReflect() protoreflect.Message { 657 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[7] 658 if protoimpl.UnsafeEnabled && x != nil { 659 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 660 if ms.LoadMessageInfo() == nil { 661 ms.StoreMessageInfo(mi) 662 } 663 return ms 664 } 665 return mi.MessageOf(x) 666} 667 668// Deprecated: Use ResponseMessage_PlayAudio.ProtoReflect.Descriptor instead. 669func (*ResponseMessage_PlayAudio) Descriptor() ([]byte, []int) { 670 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 6} 671} 672 673func (x *ResponseMessage_PlayAudio) GetAudioUri() string { 674 if x != nil { 675 return x.AudioUri 676 } 677 return "" 678} 679 680func (x *ResponseMessage_PlayAudio) GetAllowPlaybackInterruption() bool { 681 if x != nil { 682 return x.AllowPlaybackInterruption 683 } 684 return false 685} 686 687// Represents one segment of audio. 688type ResponseMessage_MixedAudio_Segment struct { 689 state protoimpl.MessageState 690 sizeCache protoimpl.SizeCache 691 unknownFields protoimpl.UnknownFields 692 693 // Content of the segment. 694 // 695 // Types that are assignable to Content: 696 // *ResponseMessage_MixedAudio_Segment_Audio 697 // *ResponseMessage_MixedAudio_Segment_Uri 698 Content isResponseMessage_MixedAudio_Segment_Content `protobuf_oneof:"content"` 699 // Output only. Whether the playback of this segment can be interrupted by the end 700 // user's speech and the client should then start the next Dialogflow 701 // request. 702 AllowPlaybackInterruption bool `protobuf:"varint,3,opt,name=allow_playback_interruption,json=allowPlaybackInterruption,proto3" json:"allow_playback_interruption,omitempty"` 703} 704 705func (x *ResponseMessage_MixedAudio_Segment) Reset() { 706 *x = ResponseMessage_MixedAudio_Segment{} 707 if protoimpl.UnsafeEnabled { 708 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[8] 709 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 710 ms.StoreMessageInfo(mi) 711 } 712} 713 714func (x *ResponseMessage_MixedAudio_Segment) String() string { 715 return protoimpl.X.MessageStringOf(x) 716} 717 718func (*ResponseMessage_MixedAudio_Segment) ProtoMessage() {} 719 720func (x *ResponseMessage_MixedAudio_Segment) ProtoReflect() protoreflect.Message { 721 mi := &file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[8] 722 if protoimpl.UnsafeEnabled && x != nil { 723 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 724 if ms.LoadMessageInfo() == nil { 725 ms.StoreMessageInfo(mi) 726 } 727 return ms 728 } 729 return mi.MessageOf(x) 730} 731 732// Deprecated: Use ResponseMessage_MixedAudio_Segment.ProtoReflect.Descriptor instead. 733func (*ResponseMessage_MixedAudio_Segment) Descriptor() ([]byte, []int) { 734 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP(), []int{0, 4, 0} 735} 736 737func (m *ResponseMessage_MixedAudio_Segment) GetContent() isResponseMessage_MixedAudio_Segment_Content { 738 if m != nil { 739 return m.Content 740 } 741 return nil 742} 743 744func (x *ResponseMessage_MixedAudio_Segment) GetAudio() []byte { 745 if x, ok := x.GetContent().(*ResponseMessage_MixedAudio_Segment_Audio); ok { 746 return x.Audio 747 } 748 return nil 749} 750 751func (x *ResponseMessage_MixedAudio_Segment) GetUri() string { 752 if x, ok := x.GetContent().(*ResponseMessage_MixedAudio_Segment_Uri); ok { 753 return x.Uri 754 } 755 return "" 756} 757 758func (x *ResponseMessage_MixedAudio_Segment) GetAllowPlaybackInterruption() bool { 759 if x != nil { 760 return x.AllowPlaybackInterruption 761 } 762 return false 763} 764 765type isResponseMessage_MixedAudio_Segment_Content interface { 766 isResponseMessage_MixedAudio_Segment_Content() 767} 768 769type ResponseMessage_MixedAudio_Segment_Audio struct { 770 // Raw audio synthesized from the Dialogflow agent's response using 771 // the output config specified in the request. 772 Audio []byte `protobuf:"bytes,1,opt,name=audio,proto3,oneof"` 773} 774 775type ResponseMessage_MixedAudio_Segment_Uri struct { 776 // Client-specific URI that points to an audio clip accessible to the 777 // client. Dialogflow does not impose any validation on it. 778 Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` 779} 780 781func (*ResponseMessage_MixedAudio_Segment_Audio) isResponseMessage_MixedAudio_Segment_Content() {} 782 783func (*ResponseMessage_MixedAudio_Segment_Uri) isResponseMessage_MixedAudio_Segment_Content() {} 784 785var File_google_cloud_dialogflow_cx_v3beta1_response_message_proto protoreflect.FileDescriptor 786 787var file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDesc = []byte{ 788 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 789 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x78, 0x2f, 0x76, 0x33, 0x62, 790 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x65, 791 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x67, 0x6f, 0x6f, 792 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 793 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 794 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 795 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 796 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 797 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 798 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 799 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x0c, 0x0a, 800 0x0f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 801 0x12, 0x4e, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 802 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 803 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 804 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 805 0x61, 0x67, 0x65, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 806 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 807 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 808 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, 809 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x7c, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 810 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 811 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 812 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 813 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 814 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 815 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x13, 816 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x63, 0x63, 817 0x65, 0x73, 0x73, 0x12, 0x71, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x75, 818 0x64, 0x69, 0x6f, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 819 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 820 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 821 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 822 0x61, 0x67, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 823 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x41, 0x75, 0x64, 824 0x69, 0x6f, 0x54, 0x65, 0x78, 0x74, 0x12, 0x74, 0x0a, 0x12, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x61, 825 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x18, 0x0a, 0x20, 0x01, 826 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 827 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 828 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 829 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 830 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x48, 0x00, 0x52, 0x10, 0x6c, 0x69, 0x76, 0x65, 831 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x12, 0x72, 0x0a, 0x0f, 832 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 833 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 834 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 835 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 836 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x49, 0x6e, 837 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 838 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 839 0x12, 0x5e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 0x0c, 840 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 841 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 842 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 843 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x41, 0x75, 844 0x64, 0x69, 0x6f, 0x48, 0x00, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x6f, 845 0x12, 0x66, 0x0a, 0x0b, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 846 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 847 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 848 0x63, 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 849 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x69, 0x78, 0x65, 0x64, 850 0x41, 0x75, 0x64, 0x69, 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x69, 851 0x78, 0x65, 0x64, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x1a, 0x64, 0x0a, 0x04, 0x54, 0x65, 0x78, 0x74, 852 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 853 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x43, 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 854 0x6f, 0x77, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 855 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 856 0xe0, 0x41, 0x03, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x6c, 0x61, 0x79, 0x62, 0x61, 857 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x47, 858 0x0a, 0x10, 0x4c, 0x69, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6f, 859 0x66, 0x66, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 860 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 861 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 862 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x4a, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x76, 0x65, 863 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x33, 864 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 865 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 866 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 867 0x61, 0x74, 0x61, 0x1a, 0x8c, 0x01, 0x0a, 0x0f, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x41, 0x75, 868 0x64, 0x69, 0x6f, 0x54, 0x65, 0x78, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 869 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x14, 0x0a, 870 0x04, 0x73, 0x73, 0x6d, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x73, 871 0x73, 0x6d, 0x6c, 0x12, 0x43, 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x6c, 0x61, 872 0x79, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 873 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x19, 0x61, 874 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 875 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 876 0x63, 0x65, 0x1a, 0xf8, 0x01, 0x0a, 0x0a, 0x4d, 0x69, 0x78, 0x65, 0x64, 0x41, 0x75, 0x64, 0x69, 877 0x6f, 0x12, 0x62, 0x0a, 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 878 0x03, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 879 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 880 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 881 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x69, 0x78, 0x65, 0x64, 0x41, 0x75, 882 0x64, 0x69, 0x6f, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x73, 0x65, 0x67, 883 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x85, 0x01, 0x0a, 0x07, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 884 0x74, 0x12, 0x16, 0x0a, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 885 0x48, 0x00, 0x52, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, 886 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x43, 0x0a, 887 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x5f, 888 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 889 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x6c, 890 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 891 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x10, 0x0a, 892 0x0e, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 893 0x72, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x20, 0x0a, 0x09, 894 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 895 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x55, 0x72, 0x69, 0x12, 0x43, 896 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 897 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 898 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 899 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 900 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0xb3, 901 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 902 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 903 0x78, 0x2e, 0x76, 0x33, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x14, 0x52, 0x65, 0x73, 0x70, 0x6f, 904 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 905 0x01, 0x5a, 0x44, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 906 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 907 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 908 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x78, 0x2f, 0x76, 0x33, 0x62, 909 0x65, 0x74, 0x61, 0x31, 0x3b, 0x63, 0x78, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x02, 0x44, 0x46, 0xaa, 910 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 911 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x78, 0x2e, 0x56, 0x33, 0x42, 912 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 913} 914 915var ( 916 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescOnce sync.Once 917 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescData = file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDesc 918) 919 920func file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescGZIP() []byte { 921 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescOnce.Do(func() { 922 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescData) 923 }) 924 return file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDescData 925} 926 927var file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 928var file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_goTypes = []interface{}{ 929 (*ResponseMessage)(nil), // 0: google.cloud.dialogflow.cx.v3beta1.ResponseMessage 930 (*ResponseMessage_Text)(nil), // 1: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text 931 (*ResponseMessage_LiveAgentHandoff)(nil), // 2: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff 932 (*ResponseMessage_ConversationSuccess)(nil), // 3: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess 933 (*ResponseMessage_OutputAudioText)(nil), // 4: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText 934 (*ResponseMessage_MixedAudio)(nil), // 5: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio 935 (*ResponseMessage_EndInteraction)(nil), // 6: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction 936 (*ResponseMessage_PlayAudio)(nil), // 7: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio 937 (*ResponseMessage_MixedAudio_Segment)(nil), // 8: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment 938 (*structpb.Struct)(nil), // 9: google.protobuf.Struct 939} 940var file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_depIdxs = []int32{ 941 1, // 0: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.text:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text 942 9, // 1: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.payload:type_name -> google.protobuf.Struct 943 3, // 2: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.conversation_success:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess 944 4, // 3: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.output_audio_text:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText 945 2, // 4: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.live_agent_handoff:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff 946 6, // 5: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.end_interaction:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction 947 7, // 6: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.play_audio:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio 948 5, // 7: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixed_audio:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio 949 9, // 8: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.metadata:type_name -> google.protobuf.Struct 950 9, // 9: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.metadata:type_name -> google.protobuf.Struct 951 8, // 10: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments:type_name -> google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment 952 11, // [11:11] is the sub-list for method output_type 953 11, // [11:11] is the sub-list for method input_type 954 11, // [11:11] is the sub-list for extension type_name 955 11, // [11:11] is the sub-list for extension extendee 956 0, // [0:11] is the sub-list for field type_name 957} 958 959func init() { file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_init() } 960func file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_init() { 961 if File_google_cloud_dialogflow_cx_v3beta1_response_message_proto != nil { 962 return 963 } 964 if !protoimpl.UnsafeEnabled { 965 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 966 switch v := v.(*ResponseMessage); i { 967 case 0: 968 return &v.state 969 case 1: 970 return &v.sizeCache 971 case 2: 972 return &v.unknownFields 973 default: 974 return nil 975 } 976 } 977 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 978 switch v := v.(*ResponseMessage_Text); i { 979 case 0: 980 return &v.state 981 case 1: 982 return &v.sizeCache 983 case 2: 984 return &v.unknownFields 985 default: 986 return nil 987 } 988 } 989 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 990 switch v := v.(*ResponseMessage_LiveAgentHandoff); i { 991 case 0: 992 return &v.state 993 case 1: 994 return &v.sizeCache 995 case 2: 996 return &v.unknownFields 997 default: 998 return nil 999 } 1000 } 1001 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1002 switch v := v.(*ResponseMessage_ConversationSuccess); i { 1003 case 0: 1004 return &v.state 1005 case 1: 1006 return &v.sizeCache 1007 case 2: 1008 return &v.unknownFields 1009 default: 1010 return nil 1011 } 1012 } 1013 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1014 switch v := v.(*ResponseMessage_OutputAudioText); i { 1015 case 0: 1016 return &v.state 1017 case 1: 1018 return &v.sizeCache 1019 case 2: 1020 return &v.unknownFields 1021 default: 1022 return nil 1023 } 1024 } 1025 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1026 switch v := v.(*ResponseMessage_MixedAudio); i { 1027 case 0: 1028 return &v.state 1029 case 1: 1030 return &v.sizeCache 1031 case 2: 1032 return &v.unknownFields 1033 default: 1034 return nil 1035 } 1036 } 1037 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1038 switch v := v.(*ResponseMessage_EndInteraction); i { 1039 case 0: 1040 return &v.state 1041 case 1: 1042 return &v.sizeCache 1043 case 2: 1044 return &v.unknownFields 1045 default: 1046 return nil 1047 } 1048 } 1049 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1050 switch v := v.(*ResponseMessage_PlayAudio); i { 1051 case 0: 1052 return &v.state 1053 case 1: 1054 return &v.sizeCache 1055 case 2: 1056 return &v.unknownFields 1057 default: 1058 return nil 1059 } 1060 } 1061 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1062 switch v := v.(*ResponseMessage_MixedAudio_Segment); i { 1063 case 0: 1064 return &v.state 1065 case 1: 1066 return &v.sizeCache 1067 case 2: 1068 return &v.unknownFields 1069 default: 1070 return nil 1071 } 1072 } 1073 } 1074 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[0].OneofWrappers = []interface{}{ 1075 (*ResponseMessage_Text_)(nil), 1076 (*ResponseMessage_Payload)(nil), 1077 (*ResponseMessage_ConversationSuccess_)(nil), 1078 (*ResponseMessage_OutputAudioText_)(nil), 1079 (*ResponseMessage_LiveAgentHandoff_)(nil), 1080 (*ResponseMessage_EndInteraction_)(nil), 1081 (*ResponseMessage_PlayAudio_)(nil), 1082 (*ResponseMessage_MixedAudio_)(nil), 1083 } 1084 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[4].OneofWrappers = []interface{}{ 1085 (*ResponseMessage_OutputAudioText_Text)(nil), 1086 (*ResponseMessage_OutputAudioText_Ssml)(nil), 1087 } 1088 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes[8].OneofWrappers = []interface{}{ 1089 (*ResponseMessage_MixedAudio_Segment_Audio)(nil), 1090 (*ResponseMessage_MixedAudio_Segment_Uri)(nil), 1091 } 1092 type x struct{} 1093 out := protoimpl.TypeBuilder{ 1094 File: protoimpl.DescBuilder{ 1095 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1096 RawDescriptor: file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDesc, 1097 NumEnums: 0, 1098 NumMessages: 9, 1099 NumExtensions: 0, 1100 NumServices: 0, 1101 }, 1102 GoTypes: file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_goTypes, 1103 DependencyIndexes: file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_depIdxs, 1104 MessageInfos: file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_msgTypes, 1105 }.Build() 1106 File_google_cloud_dialogflow_cx_v3beta1_response_message_proto = out.File 1107 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_rawDesc = nil 1108 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_goTypes = nil 1109 file_google_cloud_dialogflow_cx_v3beta1_response_message_proto_depIdxs = nil 1110} 1111