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