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