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/v3/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_v3_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_v3_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_v3_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.v3.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.v3.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_v3_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_v3_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_v3_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.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.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_v3_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_v3_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_v3_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.v3.ResponseMessage.ConversationSuccess]. 373// 374// You may set this, for example: 375// * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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.v3.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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_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_v3_response_message_proto protoreflect.FileDescriptor 781 782var file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDesc = []byte{ 783 0x0a, 0x34, 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, 0x2f, 785 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 786 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 787 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 788 0x63, 0x78, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 789 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 790 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 791 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 792 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 793 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 794 0x74, 0x6f, 0x22, 0xa7, 0x0c, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 795 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x49, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 796 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 797 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 798 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 799 0x73, 0x61, 0x67, 0x65, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 800 0x74, 0x12, 0x33, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 801 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 802 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x07, 0x70, 803 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x77, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 804 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x09, 805 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 806 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 807 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 808 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 809 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x76, 810 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 811 0x6c, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 812 0x74, 0x65, 0x78, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 813 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 814 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 815 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 816 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x6f, 0x75, 817 0x74, 0x70, 0x75, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x65, 0x78, 0x74, 0x12, 0x6f, 0x0a, 818 0x12, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 819 0x6f, 0x66, 0x66, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 820 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 821 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 822 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, 0x76, 0x65, 0x41, 0x67, 823 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x48, 0x00, 0x52, 0x10, 0x6c, 0x69, 824 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x12, 0x6d, 825 0x0a, 0x0f, 0x65, 0x6e, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 826 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 827 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 828 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 829 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 830 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x0e, 0x65, 831 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x59, 0x0a, 832 0x0a, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 0x0c, 0x20, 0x01, 0x28, 833 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 834 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 835 0x33, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 836 0x65, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x48, 0x00, 0x52, 0x09, 0x70, 837 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x61, 0x0a, 0x0b, 0x6d, 0x69, 0x78, 0x65, 838 0x64, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 839 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 840 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 841 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x69, 842 0x78, 0x65, 0x64, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 843 0x0a, 0x6d, 0x69, 0x78, 0x65, 0x64, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x1a, 0x64, 0x0a, 0x04, 0x54, 844 0x65, 0x78, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 845 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x43, 0x0a, 0x1b, 846 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 847 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 848 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x6c, 0x61, 849 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 850 0x6e, 0x1a, 0x47, 0x0a, 0x10, 0x4c, 0x69, 0x76, 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x48, 0x61, 851 0x6e, 0x64, 0x6f, 0x66, 0x66, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 852 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 853 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 854 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x4a, 0x0a, 0x13, 0x43, 0x6f, 855 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 856 0x73, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 857 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 858 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 859 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x8c, 0x01, 0x0a, 0x0f, 0x4f, 0x75, 0x74, 0x70, 0x75, 860 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x54, 0x65, 0x78, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 861 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 862 0x12, 0x14, 0x0a, 0x04, 0x73, 0x73, 0x6d, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 863 0x52, 0x04, 0x73, 0x73, 0x6d, 0x6c, 0x12, 0x43, 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 864 0x70, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 865 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 866 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 867 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0x0a, 0x06, 0x73, 868 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x10, 0x0a, 0x0e, 0x45, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x65, 869 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x72, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x79, 0x41, 870 0x75, 0x64, 0x69, 0x6f, 0x12, 0x20, 0x0a, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x75, 0x72, 871 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x61, 0x75, 872 0x64, 0x69, 0x6f, 0x55, 0x72, 0x69, 0x12, 0x43, 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 873 0x70, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 874 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 875 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 876 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf3, 0x01, 0x0a, 0x0a, 877 0x4d, 0x69, 0x78, 0x65, 0x64, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x5d, 0x0a, 0x08, 0x73, 0x65, 878 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 879 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 880 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x65, 0x73, 881 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x69, 0x78, 882 0x65, 0x64, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52, 883 0x08, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x85, 0x01, 0x0a, 0x07, 0x53, 0x65, 884 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x18, 0x01, 885 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x12, 0x12, 0x0a, 886 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 887 0x69, 0x12, 0x43, 0x0a, 0x1b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x62, 888 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 889 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x19, 0x61, 0x6c, 0x6c, 890 0x6f, 0x77, 0x50, 0x6c, 0x61, 0x79, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x72, 891 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 892 0x74, 0x42, 0x09, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0xc8, 0x01, 0x0a, 893 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 894 0x64, 0x2e, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x63, 0x78, 0x2e, 895 0x76, 0x33, 0x42, 0x14, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 896 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 897 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 898 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 899 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 900 0x6f, 0x77, 0x2f, 0x63, 0x78, 0x2f, 0x76, 0x33, 0x3b, 0x63, 0x78, 0xf8, 0x01, 0x01, 0xa2, 0x02, 901 0x02, 0x44, 0x46, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 902 0x75, 0x64, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x78, 903 0x2e, 0x56, 0x33, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 904 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x3a, 905 0x3a, 0x43, 0x58, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 906} 907 908var ( 909 file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescOnce sync.Once 910 file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescData = file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDesc 911) 912 913func file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescGZIP() []byte { 914 file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescOnce.Do(func() { 915 file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescData) 916 }) 917 return file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDescData 918} 919 920var file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 921var file_google_cloud_dialogflow_cx_v3_response_message_proto_goTypes = []interface{}{ 922 (*ResponseMessage)(nil), // 0: google.cloud.dialogflow.cx.v3.ResponseMessage 923 (*ResponseMessage_Text)(nil), // 1: google.cloud.dialogflow.cx.v3.ResponseMessage.Text 924 (*ResponseMessage_LiveAgentHandoff)(nil), // 2: google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff 925 (*ResponseMessage_ConversationSuccess)(nil), // 3: google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess 926 (*ResponseMessage_OutputAudioText)(nil), // 4: google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText 927 (*ResponseMessage_EndInteraction)(nil), // 5: google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction 928 (*ResponseMessage_PlayAudio)(nil), // 6: google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio 929 (*ResponseMessage_MixedAudio)(nil), // 7: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio 930 (*ResponseMessage_MixedAudio_Segment)(nil), // 8: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment 931 (*structpb.Struct)(nil), // 9: google.protobuf.Struct 932} 933var file_google_cloud_dialogflow_cx_v3_response_message_proto_depIdxs = []int32{ 934 1, // 0: google.cloud.dialogflow.cx.v3.ResponseMessage.text:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.Text 935 9, // 1: google.cloud.dialogflow.cx.v3.ResponseMessage.payload:type_name -> google.protobuf.Struct 936 3, // 2: google.cloud.dialogflow.cx.v3.ResponseMessage.conversation_success:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess 937 4, // 3: google.cloud.dialogflow.cx.v3.ResponseMessage.output_audio_text:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText 938 2, // 4: google.cloud.dialogflow.cx.v3.ResponseMessage.live_agent_handoff:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff 939 5, // 5: google.cloud.dialogflow.cx.v3.ResponseMessage.end_interaction:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction 940 6, // 6: google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio 941 7, // 7: google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio 942 9, // 8: google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.metadata:type_name -> google.protobuf.Struct 943 9, // 9: google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.metadata:type_name -> google.protobuf.Struct 944 8, // 10: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.segments:type_name -> google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment 945 11, // [11:11] is the sub-list for method output_type 946 11, // [11:11] is the sub-list for method input_type 947 11, // [11:11] is the sub-list for extension type_name 948 11, // [11:11] is the sub-list for extension extendee 949 0, // [0:11] is the sub-list for field type_name 950} 951 952func init() { file_google_cloud_dialogflow_cx_v3_response_message_proto_init() } 953func file_google_cloud_dialogflow_cx_v3_response_message_proto_init() { 954 if File_google_cloud_dialogflow_cx_v3_response_message_proto != nil { 955 return 956 } 957 if !protoimpl.UnsafeEnabled { 958 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 959 switch v := v.(*ResponseMessage); i { 960 case 0: 961 return &v.state 962 case 1: 963 return &v.sizeCache 964 case 2: 965 return &v.unknownFields 966 default: 967 return nil 968 } 969 } 970 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 971 switch v := v.(*ResponseMessage_Text); i { 972 case 0: 973 return &v.state 974 case 1: 975 return &v.sizeCache 976 case 2: 977 return &v.unknownFields 978 default: 979 return nil 980 } 981 } 982 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 983 switch v := v.(*ResponseMessage_LiveAgentHandoff); i { 984 case 0: 985 return &v.state 986 case 1: 987 return &v.sizeCache 988 case 2: 989 return &v.unknownFields 990 default: 991 return nil 992 } 993 } 994 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 995 switch v := v.(*ResponseMessage_ConversationSuccess); i { 996 case 0: 997 return &v.state 998 case 1: 999 return &v.sizeCache 1000 case 2: 1001 return &v.unknownFields 1002 default: 1003 return nil 1004 } 1005 } 1006 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1007 switch v := v.(*ResponseMessage_OutputAudioText); i { 1008 case 0: 1009 return &v.state 1010 case 1: 1011 return &v.sizeCache 1012 case 2: 1013 return &v.unknownFields 1014 default: 1015 return nil 1016 } 1017 } 1018 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1019 switch v := v.(*ResponseMessage_EndInteraction); i { 1020 case 0: 1021 return &v.state 1022 case 1: 1023 return &v.sizeCache 1024 case 2: 1025 return &v.unknownFields 1026 default: 1027 return nil 1028 } 1029 } 1030 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1031 switch v := v.(*ResponseMessage_PlayAudio); i { 1032 case 0: 1033 return &v.state 1034 case 1: 1035 return &v.sizeCache 1036 case 2: 1037 return &v.unknownFields 1038 default: 1039 return nil 1040 } 1041 } 1042 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1043 switch v := v.(*ResponseMessage_MixedAudio); i { 1044 case 0: 1045 return &v.state 1046 case 1: 1047 return &v.sizeCache 1048 case 2: 1049 return &v.unknownFields 1050 default: 1051 return nil 1052 } 1053 } 1054 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1055 switch v := v.(*ResponseMessage_MixedAudio_Segment); i { 1056 case 0: 1057 return &v.state 1058 case 1: 1059 return &v.sizeCache 1060 case 2: 1061 return &v.unknownFields 1062 default: 1063 return nil 1064 } 1065 } 1066 } 1067 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[0].OneofWrappers = []interface{}{ 1068 (*ResponseMessage_Text_)(nil), 1069 (*ResponseMessage_Payload)(nil), 1070 (*ResponseMessage_ConversationSuccess_)(nil), 1071 (*ResponseMessage_OutputAudioText_)(nil), 1072 (*ResponseMessage_LiveAgentHandoff_)(nil), 1073 (*ResponseMessage_EndInteraction_)(nil), 1074 (*ResponseMessage_PlayAudio_)(nil), 1075 (*ResponseMessage_MixedAudio_)(nil), 1076 } 1077 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[4].OneofWrappers = []interface{}{ 1078 (*ResponseMessage_OutputAudioText_Text)(nil), 1079 (*ResponseMessage_OutputAudioText_Ssml)(nil), 1080 } 1081 file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes[8].OneofWrappers = []interface{}{ 1082 (*ResponseMessage_MixedAudio_Segment_Audio)(nil), 1083 (*ResponseMessage_MixedAudio_Segment_Uri)(nil), 1084 } 1085 type x struct{} 1086 out := protoimpl.TypeBuilder{ 1087 File: protoimpl.DescBuilder{ 1088 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1089 RawDescriptor: file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDesc, 1090 NumEnums: 0, 1091 NumMessages: 9, 1092 NumExtensions: 0, 1093 NumServices: 0, 1094 }, 1095 GoTypes: file_google_cloud_dialogflow_cx_v3_response_message_proto_goTypes, 1096 DependencyIndexes: file_google_cloud_dialogflow_cx_v3_response_message_proto_depIdxs, 1097 MessageInfos: file_google_cloud_dialogflow_cx_v3_response_message_proto_msgTypes, 1098 }.Build() 1099 File_google_cloud_dialogflow_cx_v3_response_message_proto = out.File 1100 file_google_cloud_dialogflow_cx_v3_response_message_proto_rawDesc = nil 1101 file_google_cloud_dialogflow_cx_v3_response_message_proto_goTypes = nil 1102 file_google_cloud_dialogflow_cx_v3_response_message_proto_depIdxs = nil 1103} 1104