/
participant.pb.go
2968 lines (2693 loc) · 134 KB
/
participant.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.13.0
// source: google/cloud/dialogflow/v2/participant.proto
package dialogflow
import (
context "context"
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/durationpb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
structpb "google.golang.org/protobuf/types/known/structpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Enumeration of the roles a participant can play in a conversation.
type Participant_Role int32
const (
// Participant role not set.
Participant_ROLE_UNSPECIFIED Participant_Role = 0
// Participant is a human agent.
Participant_HUMAN_AGENT Participant_Role = 1
// Participant is an automated agent, such as a Dialogflow agent.
Participant_AUTOMATED_AGENT Participant_Role = 2
// Participant is an end user that has called or chatted with
// Dialogflow services.
Participant_END_USER Participant_Role = 3
)
// Enum value maps for Participant_Role.
var (
Participant_Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "HUMAN_AGENT",
2: "AUTOMATED_AGENT",
3: "END_USER",
}
Participant_Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"HUMAN_AGENT": 1,
"AUTOMATED_AGENT": 2,
"END_USER": 3,
}
)
func (x Participant_Role) Enum() *Participant_Role {
p := new(Participant_Role)
*p = x
return p
}
func (x Participant_Role) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Participant_Role) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2_participant_proto_enumTypes[0].Descriptor()
}
func (Participant_Role) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2_participant_proto_enumTypes[0]
}
func (x Participant_Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Participant_Role.Descriptor instead.
func (Participant_Role) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{0, 0}
}
// Represents a conversation participant (human agent, virtual agent, end-user).
type Participant struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. The unique identifier of this participant.
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Immutable. The role this participant plays in the conversation. This field must be set
// during participant creation and is then immutable.
Role Participant_Role `protobuf:"varint,2,opt,name=role,proto3,enum=google.cloud.dialogflow.v2.Participant_Role" json:"role,omitempty"`
// Optional. Label applied to streams representing this participant in SIPREC
// XML metadata and SDP. This is used to assign transcriptions from that
// media stream to this participant. This field can be updated.
SipRecordingMediaLabel string `protobuf:"bytes,6,opt,name=sip_recording_media_label,json=sipRecordingMediaLabel,proto3" json:"sip_recording_media_label,omitempty"`
}
func (x *Participant) Reset() {
*x = Participant{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Participant) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Participant) ProtoMessage() {}
func (x *Participant) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Participant.ProtoReflect.Descriptor instead.
func (*Participant) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{0}
}
func (x *Participant) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Participant) GetRole() Participant_Role {
if x != nil {
return x.Role
}
return Participant_ROLE_UNSPECIFIED
}
func (x *Participant) GetSipRecordingMediaLabel() string {
if x != nil {
return x.SipRecordingMediaLabel
}
return ""
}
// Represents a message posted into a conversation.
type Message struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The unique identifier of the message.
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>/messages/<Message ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The message content.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// Optional. The message language.
// This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
// language tag. Example: "en-US".
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Output only. The participant that sends this message.
Participant string `protobuf:"bytes,4,opt,name=participant,proto3" json:"participant,omitempty"`
// Output only. The role of the participant.
ParticipantRole Participant_Role `protobuf:"varint,5,opt,name=participant_role,json=participantRole,proto3,enum=google.cloud.dialogflow.v2.Participant_Role" json:"participant_role,omitempty"`
// Output only. The time when the message was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The annotation for the message.
MessageAnnotation *MessageAnnotation `protobuf:"bytes,7,opt,name=message_annotation,json=messageAnnotation,proto3" json:"message_annotation,omitempty"`
}
func (x *Message) Reset() {
*x = Message{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Message) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (*Message) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{1}
}
func (x *Message) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Message) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *Message) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (x *Message) GetParticipant() string {
if x != nil {
return x.Participant
}
return ""
}
func (x *Message) GetParticipantRole() Participant_Role {
if x != nil {
return x.ParticipantRole
}
return Participant_ROLE_UNSPECIFIED
}
func (x *Message) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Message) GetMessageAnnotation() *MessageAnnotation {
if x != nil {
return x.MessageAnnotation
}
return nil
}
// The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant].
type CreateParticipantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Resource identifier of the conversation adding the participant.
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The participant to create.
Participant *Participant `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"`
}
func (x *CreateParticipantRequest) Reset() {
*x = CreateParticipantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateParticipantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateParticipantRequest) ProtoMessage() {}
func (x *CreateParticipantRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateParticipantRequest.ProtoReflect.Descriptor instead.
func (*CreateParticipantRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{2}
}
func (x *CreateParticipantRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateParticipantRequest) GetParticipant() *Participant {
if x != nil {
return x.Participant
}
return nil
}
// The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant].
type GetParticipantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the participant. Format:
// `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
// ID>/participants/<Participant ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetParticipantRequest) Reset() {
*x = GetParticipantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetParticipantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetParticipantRequest) ProtoMessage() {}
func (x *GetParticipantRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetParticipantRequest.ProtoReflect.Descriptor instead.
func (*GetParticipantRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{3}
}
func (x *GetParticipantRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
type ListParticipantsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The conversation to list all participants from.
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of items to return in a single page. By
// default 100 and at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListParticipantsRequest) Reset() {
*x = ListParticipantsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListParticipantsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListParticipantsRequest) ProtoMessage() {}
func (x *ListParticipantsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListParticipantsRequest.ProtoReflect.Descriptor instead.
func (*ListParticipantsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{4}
}
func (x *ListParticipantsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListParticipantsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListParticipantsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
type ListParticipantsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of participants. There is a maximum number of items
// returned based on the page_size field in the request.
Participants []*Participant `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"`
// Token to retrieve the next page of results or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListParticipantsResponse) Reset() {
*x = ListParticipantsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListParticipantsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListParticipantsResponse) ProtoMessage() {}
func (x *ListParticipantsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListParticipantsResponse.ProtoReflect.Descriptor instead.
func (*ListParticipantsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{5}
}
func (x *ListParticipantsResponse) GetParticipants() []*Participant {
if x != nil {
return x.Participants
}
return nil
}
func (x *ListParticipantsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant].
type UpdateParticipantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The participant to update.
Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
// Required. The mask to specify which fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateParticipantRequest) Reset() {
*x = UpdateParticipantRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateParticipantRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateParticipantRequest) ProtoMessage() {}
func (x *UpdateParticipantRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateParticipantRequest.ProtoReflect.Descriptor instead.
func (*UpdateParticipantRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateParticipantRequest) GetParticipant() *Participant {
if x != nil {
return x.Participant
}
return nil
}
func (x *UpdateParticipantRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
type AnalyzeContentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the participant this text comes from.
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
// Required. The input content.
//
// Types that are assignable to Input:
// *AnalyzeContentRequest_TextInput
// *AnalyzeContentRequest_EventInput
Input isAnalyzeContentRequest_Input `protobuf_oneof:"input"`
// Speech synthesis configuration.
// The speech synthesis settings for a virtual agent that may be configured
// for the associated conversation profile are not used when calling
// AnalyzeContent. If this configuration is not supplied, speech synthesis
// is disabled.
ReplyAudioConfig *OutputAudioConfig `protobuf:"bytes,5,opt,name=reply_audio_config,json=replyAudioConfig,proto3" json:"reply_audio_config,omitempty"`
// Parameters for a Dialogflow virtual-agent query.
QueryParams *QueryParameters `protobuf:"bytes,9,opt,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
// A unique identifier for this request. Restricted to 36 ASCII characters.
// A random UUID is recommended.
// This request is only idempotent if a `request_id` is provided.
RequestId string `protobuf:"bytes,11,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
}
func (x *AnalyzeContentRequest) Reset() {
*x = AnalyzeContentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnalyzeContentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnalyzeContentRequest) ProtoMessage() {}
func (x *AnalyzeContentRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AnalyzeContentRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeContentRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{7}
}
func (x *AnalyzeContentRequest) GetParticipant() string {
if x != nil {
return x.Participant
}
return ""
}
func (m *AnalyzeContentRequest) GetInput() isAnalyzeContentRequest_Input {
if m != nil {
return m.Input
}
return nil
}
func (x *AnalyzeContentRequest) GetTextInput() *TextInput {
if x, ok := x.GetInput().(*AnalyzeContentRequest_TextInput); ok {
return x.TextInput
}
return nil
}
func (x *AnalyzeContentRequest) GetEventInput() *EventInput {
if x, ok := x.GetInput().(*AnalyzeContentRequest_EventInput); ok {
return x.EventInput
}
return nil
}
func (x *AnalyzeContentRequest) GetReplyAudioConfig() *OutputAudioConfig {
if x != nil {
return x.ReplyAudioConfig
}
return nil
}
func (x *AnalyzeContentRequest) GetQueryParams() *QueryParameters {
if x != nil {
return x.QueryParams
}
return nil
}
func (x *AnalyzeContentRequest) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
type isAnalyzeContentRequest_Input interface {
isAnalyzeContentRequest_Input()
}
type AnalyzeContentRequest_TextInput struct {
// The natural language text to be processed.
TextInput *TextInput `protobuf:"bytes,6,opt,name=text_input,json=textInput,proto3,oneof"`
}
type AnalyzeContentRequest_EventInput struct {
// An input event to send to Dialogflow.
EventInput *EventInput `protobuf:"bytes,8,opt,name=event_input,json=eventInput,proto3,oneof"`
}
func (*AnalyzeContentRequest_TextInput) isAnalyzeContentRequest_Input() {}
func (*AnalyzeContentRequest_EventInput) isAnalyzeContentRequest_Input() {}
// The message in the response that indicates the parameters of DTMF.
type DtmfParameters struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Indicates whether DTMF input can be handled in the next request.
AcceptsDtmfInput bool `protobuf:"varint,1,opt,name=accepts_dtmf_input,json=acceptsDtmfInput,proto3" json:"accepts_dtmf_input,omitempty"`
}
func (x *DtmfParameters) Reset() {
*x = DtmfParameters{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DtmfParameters) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DtmfParameters) ProtoMessage() {}
func (x *DtmfParameters) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DtmfParameters.ProtoReflect.Descriptor instead.
func (*DtmfParameters) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{8}
}
func (x *DtmfParameters) GetAcceptsDtmfInput() bool {
if x != nil {
return x.AcceptsDtmfInput
}
return false
}
// The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
type AnalyzeContentResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The output text content.
// This field is set if the automated agent responded with text to show to
// the user.
ReplyText string `protobuf:"bytes,1,opt,name=reply_text,json=replyText,proto3" json:"reply_text,omitempty"`
// The audio data bytes encoded as specified in the request.
// This field is set if:
//
// - `reply_audio_config` was specified in the request, or
// - The automated agent responded with audio to play to the user. In such
// case, `reply_audio.config` contains settings used to synthesize the
// speech.
//
// In some scenarios, multiple output audio fields may be present in the
// response structure. In these cases, only the top-most-level audio output
// has content.
ReplyAudio *OutputAudio `protobuf:"bytes,2,opt,name=reply_audio,json=replyAudio,proto3" json:"reply_audio,omitempty"`
// Only set if a Dialogflow automated agent has responded.
// Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
// and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
// are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead.
AutomatedAgentReply *AutomatedAgentReply `protobuf:"bytes,3,opt,name=automated_agent_reply,json=automatedAgentReply,proto3" json:"automated_agent_reply,omitempty"`
// Message analyzed by CCAI.
Message *Message `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
// The suggestions for most recent human agent. The order is the same as
// [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
// [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config].
HumanAgentSuggestionResults []*SuggestionResult `protobuf:"bytes,6,rep,name=human_agent_suggestion_results,json=humanAgentSuggestionResults,proto3" json:"human_agent_suggestion_results,omitempty"`
// The suggestions for end user. The order is the same as
// [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of
// [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config].
EndUserSuggestionResults []*SuggestionResult `protobuf:"bytes,7,rep,name=end_user_suggestion_results,json=endUserSuggestionResults,proto3" json:"end_user_suggestion_results,omitempty"`
// Indicates the parameters of DTMF.
DtmfParameters *DtmfParameters `protobuf:"bytes,9,opt,name=dtmf_parameters,json=dtmfParameters,proto3" json:"dtmf_parameters,omitempty"`
}
func (x *AnalyzeContentResponse) Reset() {
*x = AnalyzeContentResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnalyzeContentResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnalyzeContentResponse) ProtoMessage() {}
func (x *AnalyzeContentResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AnalyzeContentResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeContentResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{9}
}
func (x *AnalyzeContentResponse) GetReplyText() string {
if x != nil {
return x.ReplyText
}
return ""
}
func (x *AnalyzeContentResponse) GetReplyAudio() *OutputAudio {
if x != nil {
return x.ReplyAudio
}
return nil
}
func (x *AnalyzeContentResponse) GetAutomatedAgentReply() *AutomatedAgentReply {
if x != nil {
return x.AutomatedAgentReply
}
return nil
}
func (x *AnalyzeContentResponse) GetMessage() *Message {
if x != nil {
return x.Message
}
return nil
}
func (x *AnalyzeContentResponse) GetHumanAgentSuggestionResults() []*SuggestionResult {
if x != nil {
return x.HumanAgentSuggestionResults
}
return nil
}
func (x *AnalyzeContentResponse) GetEndUserSuggestionResults() []*SuggestionResult {
if x != nil {
return x.EndUserSuggestionResults
}
return nil
}
func (x *AnalyzeContentResponse) GetDtmfParameters() *DtmfParameters {
if x != nil {
return x.DtmfParameters
}
return nil
}
// The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
type SuggestArticlesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the participant to fetch suggestion for.
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The name of the latest conversation message to compile suggestion
// for. If empty, it will be the latest message of the conversation.
//
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>/messages/<Message ID>`.
LatestMessage string `protobuf:"bytes,2,opt,name=latest_message,json=latestMessage,proto3" json:"latest_message,omitempty"`
// Max number of messages prior to and including
// [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context
// when compiling the suggestion. By default 20 and at most 50.
ContextSize int32 `protobuf:"varint,3,opt,name=context_size,json=contextSize,proto3" json:"context_size,omitempty"`
}
func (x *SuggestArticlesRequest) Reset() {
*x = SuggestArticlesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SuggestArticlesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SuggestArticlesRequest) ProtoMessage() {}
func (x *SuggestArticlesRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SuggestArticlesRequest.ProtoReflect.Descriptor instead.
func (*SuggestArticlesRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_participant_proto_rawDescGZIP(), []int{10}
}
func (x *SuggestArticlesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *SuggestArticlesRequest) GetLatestMessage() string {
if x != nil {
return x.LatestMessage
}
return ""
}
func (x *SuggestArticlesRequest) GetContextSize() int32 {
if x != nil {
return x.ContextSize
}
return 0
}
// The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
type SuggestArticlesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Articles ordered by score in descending order.
ArticleAnswers []*ArticleAnswer `protobuf:"bytes,1,rep,name=article_answers,json=articleAnswers,proto3" json:"article_answers,omitempty"`
// The name of the latest conversation message used to compile
// suggestion for.
//
// Format: `projects/<Project ID>/locations/<Location
// ID>/conversations/<Conversation ID>/messages/<Message ID>`.
LatestMessage string `protobuf:"bytes,2,opt,name=latest_message,json=latestMessage,proto3" json:"latest_message,omitempty"`
// Number of messages prior to and including
// [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the
// suggestion. It may be smaller than the
// [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there
// aren't that many messages in the conversation.
ContextSize int32 `protobuf:"varint,3,opt,name=context_size,json=contextSize,proto3" json:"context_size,omitempty"`
}
func (x *SuggestArticlesResponse) Reset() {
*x = SuggestArticlesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_participant_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SuggestArticlesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SuggestArticlesResponse) ProtoMessage() {}