1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package embedded
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 status "google.golang.org/genproto/googleapis/rpc/status"
30 grpc "google.golang.org/grpc"
31 codes "google.golang.org/grpc/codes"
32 status1 "google.golang.org/grpc/status"
33 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 )
36
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44
45
46 type AudioInConfig_Encoding int32
47
48 const (
49
50 AudioInConfig_ENCODING_UNSPECIFIED AudioInConfig_Encoding = 0
51
52
53 AudioInConfig_LINEAR16 AudioInConfig_Encoding = 1
54
55
56
57
58
59
60
61 AudioInConfig_FLAC AudioInConfig_Encoding = 2
62 )
63
64
65 var (
66 AudioInConfig_Encoding_name = map[int32]string{
67 0: "ENCODING_UNSPECIFIED",
68 1: "LINEAR16",
69 2: "FLAC",
70 }
71 AudioInConfig_Encoding_value = map[string]int32{
72 "ENCODING_UNSPECIFIED": 0,
73 "LINEAR16": 1,
74 "FLAC": 2,
75 }
76 )
77
78 func (x AudioInConfig_Encoding) Enum() *AudioInConfig_Encoding {
79 p := new(AudioInConfig_Encoding)
80 *p = x
81 return p
82 }
83
84 func (x AudioInConfig_Encoding) String() string {
85 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
86 }
87
88 func (AudioInConfig_Encoding) Descriptor() protoreflect.EnumDescriptor {
89 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[0].Descriptor()
90 }
91
92 func (AudioInConfig_Encoding) Type() protoreflect.EnumType {
93 return &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[0]
94 }
95
96 func (x AudioInConfig_Encoding) Number() protoreflect.EnumNumber {
97 return protoreflect.EnumNumber(x)
98 }
99
100
101 func (AudioInConfig_Encoding) EnumDescriptor() ([]byte, []int) {
102 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{1, 0}
103 }
104
105
106
107 type AudioOutConfig_Encoding int32
108
109 const (
110
111 AudioOutConfig_ENCODING_UNSPECIFIED AudioOutConfig_Encoding = 0
112
113 AudioOutConfig_LINEAR16 AudioOutConfig_Encoding = 1
114
115 AudioOutConfig_MP3 AudioOutConfig_Encoding = 2
116
117
118
119
120 AudioOutConfig_OPUS_IN_OGG AudioOutConfig_Encoding = 3
121 )
122
123
124 var (
125 AudioOutConfig_Encoding_name = map[int32]string{
126 0: "ENCODING_UNSPECIFIED",
127 1: "LINEAR16",
128 2: "MP3",
129 3: "OPUS_IN_OGG",
130 }
131 AudioOutConfig_Encoding_value = map[string]int32{
132 "ENCODING_UNSPECIFIED": 0,
133 "LINEAR16": 1,
134 "MP3": 2,
135 "OPUS_IN_OGG": 3,
136 }
137 )
138
139 func (x AudioOutConfig_Encoding) Enum() *AudioOutConfig_Encoding {
140 p := new(AudioOutConfig_Encoding)
141 *p = x
142 return p
143 }
144
145 func (x AudioOutConfig_Encoding) String() string {
146 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
147 }
148
149 func (AudioOutConfig_Encoding) Descriptor() protoreflect.EnumDescriptor {
150 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[1].Descriptor()
151 }
152
153 func (AudioOutConfig_Encoding) Type() protoreflect.EnumType {
154 return &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[1]
155 }
156
157 func (x AudioOutConfig_Encoding) Number() protoreflect.EnumNumber {
158 return protoreflect.EnumNumber(x)
159 }
160
161
162 func (AudioOutConfig_Encoding) EnumDescriptor() ([]byte, []int) {
163 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{2, 0}
164 }
165
166
167 type ConverseResult_MicrophoneMode int32
168
169 const (
170
171 ConverseResult_MICROPHONE_MODE_UNSPECIFIED ConverseResult_MicrophoneMode = 0
172
173
174 ConverseResult_CLOSE_MICROPHONE ConverseResult_MicrophoneMode = 1
175
176
177
178 ConverseResult_DIALOG_FOLLOW_ON ConverseResult_MicrophoneMode = 2
179 )
180
181
182 var (
183 ConverseResult_MicrophoneMode_name = map[int32]string{
184 0: "MICROPHONE_MODE_UNSPECIFIED",
185 1: "CLOSE_MICROPHONE",
186 2: "DIALOG_FOLLOW_ON",
187 }
188 ConverseResult_MicrophoneMode_value = map[string]int32{
189 "MICROPHONE_MODE_UNSPECIFIED": 0,
190 "CLOSE_MICROPHONE": 1,
191 "DIALOG_FOLLOW_ON": 2,
192 }
193 )
194
195 func (x ConverseResult_MicrophoneMode) Enum() *ConverseResult_MicrophoneMode {
196 p := new(ConverseResult_MicrophoneMode)
197 *p = x
198 return p
199 }
200
201 func (x ConverseResult_MicrophoneMode) String() string {
202 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
203 }
204
205 func (ConverseResult_MicrophoneMode) Descriptor() protoreflect.EnumDescriptor {
206 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[2].Descriptor()
207 }
208
209 func (ConverseResult_MicrophoneMode) Type() protoreflect.EnumType {
210 return &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[2]
211 }
212
213 func (x ConverseResult_MicrophoneMode) Number() protoreflect.EnumNumber {
214 return protoreflect.EnumNumber(x)
215 }
216
217
218 func (ConverseResult_MicrophoneMode) EnumDescriptor() ([]byte, []int) {
219 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{5, 0}
220 }
221
222
223 type ConverseResponse_EventType int32
224
225 const (
226
227 ConverseResponse_EVENT_TYPE_UNSPECIFIED ConverseResponse_EventType = 0
228
229
230
231
232
233
234 ConverseResponse_END_OF_UTTERANCE ConverseResponse_EventType = 1
235 )
236
237
238 var (
239 ConverseResponse_EventType_name = map[int32]string{
240 0: "EVENT_TYPE_UNSPECIFIED",
241 1: "END_OF_UTTERANCE",
242 }
243 ConverseResponse_EventType_value = map[string]int32{
244 "EVENT_TYPE_UNSPECIFIED": 0,
245 "END_OF_UTTERANCE": 1,
246 }
247 )
248
249 func (x ConverseResponse_EventType) Enum() *ConverseResponse_EventType {
250 p := new(ConverseResponse_EventType)
251 *p = x
252 return p
253 }
254
255 func (x ConverseResponse_EventType) String() string {
256 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
257 }
258
259 func (ConverseResponse_EventType) Descriptor() protoreflect.EnumDescriptor {
260 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[3].Descriptor()
261 }
262
263 func (ConverseResponse_EventType) Type() protoreflect.EnumType {
264 return &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes[3]
265 }
266
267 func (x ConverseResponse_EventType) Number() protoreflect.EnumNumber {
268 return protoreflect.EnumNumber(x)
269 }
270
271
272 func (ConverseResponse_EventType) EnumDescriptor() ([]byte, []int) {
273 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{7, 0}
274 }
275
276
277 type ConverseConfig struct {
278 state protoimpl.MessageState
279 sizeCache protoimpl.SizeCache
280 unknownFields protoimpl.UnknownFields
281
282
283 AudioInConfig *AudioInConfig `protobuf:"bytes,1,opt,name=audio_in_config,json=audioInConfig,proto3" json:"audio_in_config,omitempty"`
284
285 AudioOutConfig *AudioOutConfig `protobuf:"bytes,2,opt,name=audio_out_config,json=audioOutConfig,proto3" json:"audio_out_config,omitempty"`
286
287 ConverseState *ConverseState `protobuf:"bytes,3,opt,name=converse_state,json=converseState,proto3" json:"converse_state,omitempty"`
288 }
289
290 func (x *ConverseConfig) Reset() {
291 *x = ConverseConfig{}
292 if protoimpl.UnsafeEnabled {
293 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[0]
294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
295 ms.StoreMessageInfo(mi)
296 }
297 }
298
299 func (x *ConverseConfig) String() string {
300 return protoimpl.X.MessageStringOf(x)
301 }
302
303 func (*ConverseConfig) ProtoMessage() {}
304
305 func (x *ConverseConfig) ProtoReflect() protoreflect.Message {
306 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[0]
307 if protoimpl.UnsafeEnabled && x != nil {
308 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
309 if ms.LoadMessageInfo() == nil {
310 ms.StoreMessageInfo(mi)
311 }
312 return ms
313 }
314 return mi.MessageOf(x)
315 }
316
317
318 func (*ConverseConfig) Descriptor() ([]byte, []int) {
319 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{0}
320 }
321
322 func (x *ConverseConfig) GetAudioInConfig() *AudioInConfig {
323 if x != nil {
324 return x.AudioInConfig
325 }
326 return nil
327 }
328
329 func (x *ConverseConfig) GetAudioOutConfig() *AudioOutConfig {
330 if x != nil {
331 return x.AudioOutConfig
332 }
333 return nil
334 }
335
336 func (x *ConverseConfig) GetConverseState() *ConverseState {
337 if x != nil {
338 return x.ConverseState
339 }
340 return nil
341 }
342
343
344
345
346
347 type AudioInConfig struct {
348 state protoimpl.MessageState
349 sizeCache protoimpl.SizeCache
350 unknownFields protoimpl.UnknownFields
351
352
353 Encoding AudioInConfig_Encoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.assistant.embedded.v1alpha1.AudioInConfig_Encoding" json:"encoding,omitempty"`
354
355
356
357
358
359 SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
360 }
361
362 func (x *AudioInConfig) Reset() {
363 *x = AudioInConfig{}
364 if protoimpl.UnsafeEnabled {
365 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[1]
366 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
367 ms.StoreMessageInfo(mi)
368 }
369 }
370
371 func (x *AudioInConfig) String() string {
372 return protoimpl.X.MessageStringOf(x)
373 }
374
375 func (*AudioInConfig) ProtoMessage() {}
376
377 func (x *AudioInConfig) ProtoReflect() protoreflect.Message {
378 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[1]
379 if protoimpl.UnsafeEnabled && x != nil {
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 if ms.LoadMessageInfo() == nil {
382 ms.StoreMessageInfo(mi)
383 }
384 return ms
385 }
386 return mi.MessageOf(x)
387 }
388
389
390 func (*AudioInConfig) Descriptor() ([]byte, []int) {
391 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{1}
392 }
393
394 func (x *AudioInConfig) GetEncoding() AudioInConfig_Encoding {
395 if x != nil {
396 return x.Encoding
397 }
398 return AudioInConfig_ENCODING_UNSPECIFIED
399 }
400
401 func (x *AudioInConfig) GetSampleRateHertz() int32 {
402 if x != nil {
403 return x.SampleRateHertz
404 }
405 return 0
406 }
407
408
409
410 type AudioOutConfig struct {
411 state protoimpl.MessageState
412 sizeCache protoimpl.SizeCache
413 unknownFields protoimpl.UnknownFields
414
415
416
417 Encoding AudioOutConfig_Encoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding" json:"encoding,omitempty"`
418
419
420 SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
421
422
423 VolumePercentage int32 `protobuf:"varint,3,opt,name=volume_percentage,json=volumePercentage,proto3" json:"volume_percentage,omitempty"`
424 }
425
426 func (x *AudioOutConfig) Reset() {
427 *x = AudioOutConfig{}
428 if protoimpl.UnsafeEnabled {
429 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[2]
430 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
431 ms.StoreMessageInfo(mi)
432 }
433 }
434
435 func (x *AudioOutConfig) String() string {
436 return protoimpl.X.MessageStringOf(x)
437 }
438
439 func (*AudioOutConfig) ProtoMessage() {}
440
441 func (x *AudioOutConfig) ProtoReflect() protoreflect.Message {
442 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[2]
443 if protoimpl.UnsafeEnabled && x != nil {
444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
445 if ms.LoadMessageInfo() == nil {
446 ms.StoreMessageInfo(mi)
447 }
448 return ms
449 }
450 return mi.MessageOf(x)
451 }
452
453
454 func (*AudioOutConfig) Descriptor() ([]byte, []int) {
455 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{2}
456 }
457
458 func (x *AudioOutConfig) GetEncoding() AudioOutConfig_Encoding {
459 if x != nil {
460 return x.Encoding
461 }
462 return AudioOutConfig_ENCODING_UNSPECIFIED
463 }
464
465 func (x *AudioOutConfig) GetSampleRateHertz() int32 {
466 if x != nil {
467 return x.SampleRateHertz
468 }
469 return 0
470 }
471
472 func (x *AudioOutConfig) GetVolumePercentage() int32 {
473 if x != nil {
474 return x.VolumePercentage
475 }
476 return 0
477 }
478
479
480 type ConverseState struct {
481 state protoimpl.MessageState
482 sizeCache protoimpl.SizeCache
483 unknownFields protoimpl.UnknownFields
484
485
486
487
488
489
490 ConversationState []byte `protobuf:"bytes,1,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
491 }
492
493 func (x *ConverseState) Reset() {
494 *x = ConverseState{}
495 if protoimpl.UnsafeEnabled {
496 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[3]
497 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
498 ms.StoreMessageInfo(mi)
499 }
500 }
501
502 func (x *ConverseState) String() string {
503 return protoimpl.X.MessageStringOf(x)
504 }
505
506 func (*ConverseState) ProtoMessage() {}
507
508 func (x *ConverseState) ProtoReflect() protoreflect.Message {
509 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[3]
510 if protoimpl.UnsafeEnabled && x != nil {
511 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
512 if ms.LoadMessageInfo() == nil {
513 ms.StoreMessageInfo(mi)
514 }
515 return ms
516 }
517 return mi.MessageOf(x)
518 }
519
520
521 func (*ConverseState) Descriptor() ([]byte, []int) {
522 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{3}
523 }
524
525 func (x *ConverseState) GetConversationState() []byte {
526 if x != nil {
527 return x.ConversationState
528 }
529 return nil
530 }
531
532
533
534 type AudioOut struct {
535 state protoimpl.MessageState
536 sizeCache protoimpl.SizeCache
537 unknownFields protoimpl.UnknownFields
538
539
540
541
542 AudioData []byte `protobuf:"bytes,1,opt,name=audio_data,json=audioData,proto3" json:"audio_data,omitempty"`
543 }
544
545 func (x *AudioOut) Reset() {
546 *x = AudioOut{}
547 if protoimpl.UnsafeEnabled {
548 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[4]
549 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
550 ms.StoreMessageInfo(mi)
551 }
552 }
553
554 func (x *AudioOut) String() string {
555 return protoimpl.X.MessageStringOf(x)
556 }
557
558 func (*AudioOut) ProtoMessage() {}
559
560 func (x *AudioOut) ProtoReflect() protoreflect.Message {
561 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[4]
562 if protoimpl.UnsafeEnabled && x != nil {
563 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
564 if ms.LoadMessageInfo() == nil {
565 ms.StoreMessageInfo(mi)
566 }
567 return ms
568 }
569 return mi.MessageOf(x)
570 }
571
572
573 func (*AudioOut) Descriptor() ([]byte, []int) {
574 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{4}
575 }
576
577 func (x *AudioOut) GetAudioData() []byte {
578 if x != nil {
579 return x.AudioData
580 }
581 return nil
582 }
583
584
585 type ConverseResult struct {
586 state protoimpl.MessageState
587 sizeCache protoimpl.SizeCache
588 unknownFields protoimpl.UnknownFields
589
590
591 SpokenRequestText string `protobuf:"bytes,1,opt,name=spoken_request_text,json=spokenRequestText,proto3" json:"spoken_request_text,omitempty"`
592
593
594 SpokenResponseText string `protobuf:"bytes,2,opt,name=spoken_response_text,json=spokenResponseText,proto3" json:"spoken_response_text,omitempty"`
595
596
597
598
599
600 ConversationState []byte `protobuf:"bytes,3,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
601
602
603 MicrophoneMode ConverseResult_MicrophoneMode `protobuf:"varint,4,opt,name=microphone_mode,json=microphoneMode,proto3,enum=google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode" json:"microphone_mode,omitempty"`
604
605
606
607
608
609
610
611
612
613 VolumePercentage int32 `protobuf:"varint,5,opt,name=volume_percentage,json=volumePercentage,proto3" json:"volume_percentage,omitempty"`
614 }
615
616 func (x *ConverseResult) Reset() {
617 *x = ConverseResult{}
618 if protoimpl.UnsafeEnabled {
619 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[5]
620 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
621 ms.StoreMessageInfo(mi)
622 }
623 }
624
625 func (x *ConverseResult) String() string {
626 return protoimpl.X.MessageStringOf(x)
627 }
628
629 func (*ConverseResult) ProtoMessage() {}
630
631 func (x *ConverseResult) ProtoReflect() protoreflect.Message {
632 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[5]
633 if protoimpl.UnsafeEnabled && x != nil {
634 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
635 if ms.LoadMessageInfo() == nil {
636 ms.StoreMessageInfo(mi)
637 }
638 return ms
639 }
640 return mi.MessageOf(x)
641 }
642
643
644 func (*ConverseResult) Descriptor() ([]byte, []int) {
645 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{5}
646 }
647
648 func (x *ConverseResult) GetSpokenRequestText() string {
649 if x != nil {
650 return x.SpokenRequestText
651 }
652 return ""
653 }
654
655 func (x *ConverseResult) GetSpokenResponseText() string {
656 if x != nil {
657 return x.SpokenResponseText
658 }
659 return ""
660 }
661
662 func (x *ConverseResult) GetConversationState() []byte {
663 if x != nil {
664 return x.ConversationState
665 }
666 return nil
667 }
668
669 func (x *ConverseResult) GetMicrophoneMode() ConverseResult_MicrophoneMode {
670 if x != nil {
671 return x.MicrophoneMode
672 }
673 return ConverseResult_MICROPHONE_MODE_UNSPECIFIED
674 }
675
676 func (x *ConverseResult) GetVolumePercentage() int32 {
677 if x != nil {
678 return x.VolumePercentage
679 }
680 return 0
681 }
682
683
684
685
686
687
688 type ConverseRequest struct {
689 state protoimpl.MessageState
690 sizeCache protoimpl.SizeCache
691 unknownFields protoimpl.UnknownFields
692
693
694
695
696
697
698
699 ConverseRequest isConverseRequest_ConverseRequest `protobuf_oneof:"converse_request"`
700 }
701
702 func (x *ConverseRequest) Reset() {
703 *x = ConverseRequest{}
704 if protoimpl.UnsafeEnabled {
705 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[6]
706 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
707 ms.StoreMessageInfo(mi)
708 }
709 }
710
711 func (x *ConverseRequest) String() string {
712 return protoimpl.X.MessageStringOf(x)
713 }
714
715 func (*ConverseRequest) ProtoMessage() {}
716
717 func (x *ConverseRequest) ProtoReflect() protoreflect.Message {
718 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[6]
719 if protoimpl.UnsafeEnabled && x != nil {
720 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
721 if ms.LoadMessageInfo() == nil {
722 ms.StoreMessageInfo(mi)
723 }
724 return ms
725 }
726 return mi.MessageOf(x)
727 }
728
729
730 func (*ConverseRequest) Descriptor() ([]byte, []int) {
731 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{6}
732 }
733
734 func (m *ConverseRequest) GetConverseRequest() isConverseRequest_ConverseRequest {
735 if m != nil {
736 return m.ConverseRequest
737 }
738 return nil
739 }
740
741 func (x *ConverseRequest) GetConfig() *ConverseConfig {
742 if x, ok := x.GetConverseRequest().(*ConverseRequest_Config); ok {
743 return x.Config
744 }
745 return nil
746 }
747
748 func (x *ConverseRequest) GetAudioIn() []byte {
749 if x, ok := x.GetConverseRequest().(*ConverseRequest_AudioIn); ok {
750 return x.AudioIn
751 }
752 return nil
753 }
754
755 type isConverseRequest_ConverseRequest interface {
756 isConverseRequest_ConverseRequest()
757 }
758
759 type ConverseRequest_Config struct {
760
761
762
763 Config *ConverseConfig `protobuf:"bytes,1,opt,name=config,proto3,oneof"`
764 }
765
766 type ConverseRequest_AudioIn struct {
767
768
769
770
771
772
773
774
775 AudioIn []byte `protobuf:"bytes,2,opt,name=audio_in,json=audioIn,proto3,oneof"`
776 }
777
778 func (*ConverseRequest_Config) isConverseRequest_ConverseRequest() {}
779
780 func (*ConverseRequest_AudioIn) isConverseRequest_ConverseRequest() {}
781
782
783
784 type ConverseResponse struct {
785 state protoimpl.MessageState
786 sizeCache protoimpl.SizeCache
787 unknownFields protoimpl.UnknownFields
788
789
790
791
792
793
794
795
796
797 ConverseResponse isConverseResponse_ConverseResponse `protobuf_oneof:"converse_response"`
798 }
799
800 func (x *ConverseResponse) Reset() {
801 *x = ConverseResponse{}
802 if protoimpl.UnsafeEnabled {
803 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[7]
804 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
805 ms.StoreMessageInfo(mi)
806 }
807 }
808
809 func (x *ConverseResponse) String() string {
810 return protoimpl.X.MessageStringOf(x)
811 }
812
813 func (*ConverseResponse) ProtoMessage() {}
814
815 func (x *ConverseResponse) ProtoReflect() protoreflect.Message {
816 mi := &file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[7]
817 if protoimpl.UnsafeEnabled && x != nil {
818 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
819 if ms.LoadMessageInfo() == nil {
820 ms.StoreMessageInfo(mi)
821 }
822 return ms
823 }
824 return mi.MessageOf(x)
825 }
826
827
828 func (*ConverseResponse) Descriptor() ([]byte, []int) {
829 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP(), []int{7}
830 }
831
832 func (m *ConverseResponse) GetConverseResponse() isConverseResponse_ConverseResponse {
833 if m != nil {
834 return m.ConverseResponse
835 }
836 return nil
837 }
838
839 func (x *ConverseResponse) GetError() *status.Status {
840 if x, ok := x.GetConverseResponse().(*ConverseResponse_Error); ok {
841 return x.Error
842 }
843 return nil
844 }
845
846 func (x *ConverseResponse) GetEventType() ConverseResponse_EventType {
847 if x, ok := x.GetConverseResponse().(*ConverseResponse_EventType_); ok {
848 return x.EventType
849 }
850 return ConverseResponse_EVENT_TYPE_UNSPECIFIED
851 }
852
853 func (x *ConverseResponse) GetAudioOut() *AudioOut {
854 if x, ok := x.GetConverseResponse().(*ConverseResponse_AudioOut); ok {
855 return x.AudioOut
856 }
857 return nil
858 }
859
860 func (x *ConverseResponse) GetResult() *ConverseResult {
861 if x, ok := x.GetConverseResponse().(*ConverseResponse_Result); ok {
862 return x.Result
863 }
864 return nil
865 }
866
867 type isConverseResponse_ConverseResponse interface {
868 isConverseResponse_ConverseResponse()
869 }
870
871 type ConverseResponse_Error struct {
872
873
874
875
876 Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
877 }
878
879 type ConverseResponse_EventType_ struct {
880
881 EventType ConverseResponse_EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=google.assistant.embedded.v1alpha1.ConverseResponse_EventType,oneof"`
882 }
883
884 type ConverseResponse_AudioOut struct {
885
886 AudioOut *AudioOut `protobuf:"bytes,3,opt,name=audio_out,json=audioOut,proto3,oneof"`
887 }
888
889 type ConverseResponse_Result struct {
890
891 Result *ConverseResult `protobuf:"bytes,5,opt,name=result,proto3,oneof"`
892 }
893
894 func (*ConverseResponse_Error) isConverseResponse_ConverseResponse() {}
895
896 func (*ConverseResponse_EventType_) isConverseResponse_ConverseResponse() {}
897
898 func (*ConverseResponse_AudioOut) isConverseResponse_ConverseResponse() {}
899
900 func (*ConverseResponse_Result) isConverseResponse_ConverseResponse() {}
901
902 var File_google_assistant_embedded_v1alpha1_embedded_assistant_proto protoreflect.FileDescriptor
903
904 var file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDesc = []byte{
905 0x0a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61,
906 0x6e, 0x74, 0x2f, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x61, 0x6c,
907 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x73,
908 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x67,
909 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e,
910 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
911 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
912 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
913 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74,
914 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6e,
915 0x76, 0x65, 0x72, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x59, 0x0a, 0x0f, 0x61,
916 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01,
917 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73,
918 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
919 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x49,
920 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x49, 0x6e,
921 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5c, 0x0a, 0x10, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f,
922 0x6f, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
923 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74,
924 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61,
925 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4f, 0x75, 0x74, 0x43, 0x6f,
926 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x4f, 0x75, 0x74, 0x43, 0x6f,
927 0x6e, 0x66, 0x69, 0x67, 0x12, 0x58, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65,
928 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67,
929 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e,
930 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
931 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
932 0x0d, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xd1,
933 0x01, 0x0a, 0x0d, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x49, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
934 0x12, 0x56, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01,
935 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69,
936 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76,
937 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x49, 0x6e, 0x43,
938 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08,
939 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x61, 0x6d, 0x70,
940 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x65, 0x72, 0x74, 0x7a, 0x18, 0x02, 0x20,
941 0x01, 0x28, 0x05, 0x52, 0x0f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x61, 0x74, 0x65, 0x48,
942 0x65, 0x72, 0x74, 0x7a, 0x22, 0x3c, 0x0a, 0x08, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
943 0x12, 0x18, 0x0a, 0x14, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x53,
944 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x49,
945 0x4e, 0x45, 0x41, 0x52, 0x31, 0x36, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x4c, 0x41, 0x43,
946 0x10, 0x02, 0x22, 0x90, 0x02, 0x0a, 0x0e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4f, 0x75, 0x74, 0x43,
947 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x57, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e,
948 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
949 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64,
950 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64,
951 0x69, 0x6f, 0x4f, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x6e, 0x63, 0x6f,
952 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2a,
953 0x0a, 0x11, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x65,
954 0x72, 0x74, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x73, 0x61, 0x6d, 0x70, 0x6c,
955 0x65, 0x52, 0x61, 0x74, 0x65, 0x48, 0x65, 0x72, 0x74, 0x7a, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x6f,
956 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18,
957 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x50, 0x65, 0x72,
958 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x22, 0x4c, 0x0a, 0x08, 0x45, 0x6e, 0x63, 0x6f, 0x64,
959 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f,
960 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a,
961 0x08, 0x4c, 0x49, 0x4e, 0x45, 0x41, 0x52, 0x31, 0x36, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4d,
962 0x50, 0x33, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x50, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x5f,
963 0x4f, 0x47, 0x47, 0x10, 0x03, 0x22, 0x3e, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73,
964 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
965 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01,
966 0x28, 0x0c, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e,
967 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x29, 0x0a, 0x08, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4f, 0x75,
968 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18,
969 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x44, 0x61, 0x74, 0x61,
970 0x22, 0x99, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73,
971 0x75, 0x6c, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x70, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x72, 0x65,
972 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
973 0x52, 0x11, 0x73, 0x70, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54,
974 0x65, 0x78, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x70, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x72, 0x65,
975 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
976 0x09, 0x52, 0x12, 0x73, 0x70, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
977 0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73,
978 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
979 0x0c, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
980 0x74, 0x61, 0x74, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x70, 0x68, 0x6f,
981 0x6e, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x41, 0x2e,
982 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74,
983 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
984 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c,
985 0x74, 0x2e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4d, 0x6f, 0x64, 0x65,
986 0x52, 0x0e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4d, 0x6f, 0x64, 0x65,
987 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65,
988 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x76, 0x6f, 0x6c,
989 0x75, 0x6d, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x22, 0x5d, 0x0a,
990 0x0e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12,
991 0x1f, 0x0a, 0x1b, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x5f, 0x4d, 0x4f,
992 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
993 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x50,
994 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x41, 0x4c, 0x4f, 0x47,
995 0x5f, 0x46, 0x4f, 0x4c, 0x4c, 0x4f, 0x57, 0x5f, 0x4f, 0x4e, 0x10, 0x02, 0x22, 0x90, 0x01, 0x0a,
996 0x0f, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
997 0x12, 0x4c, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
998 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74,
999 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61,
1000 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x43, 0x6f,
1001 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b,
1002 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
1003 0x48, 0x00, 0x52, 0x07, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x49, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x63,
1004 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
1005 0x8e, 0x03, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70,
1006 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20,
1007 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63,
1008 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
1009 0x12, 0x5f, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
1010 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73,
1011 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
1012 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72,
1013 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74,
1014 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
1015 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x5f, 0x6f, 0x75, 0x74, 0x18, 0x03,
1016 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73,
1017 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64,
1018 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x4f,
1019 0x75, 0x74, 0x48, 0x00, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x4f, 0x75, 0x74, 0x12, 0x4c,
1020 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32,
1021 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e,
1022 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
1023 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x75,
1024 0x6c, 0x74, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x3d, 0x0a, 0x09,
1025 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x56, 0x45,
1026 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
1027 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x46, 0x5f,
1028 0x55, 0x54, 0x54, 0x45, 0x52, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x63,
1029 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
1030 0x32, 0x8e, 0x01, 0x0a, 0x11, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x41, 0x73, 0x73,
1031 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72,
1032 0x73, 0x65, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x73, 0x73, 0x69,
1033 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2e, 0x76,
1034 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65,
1035 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1036 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64,
1037 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e,
1038 0x76, 0x65, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30,
1039 0x01, 0x42, 0x86, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1040 0x2e, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2e, 0x65, 0x6d, 0x62, 0x65, 0x64,
1041 0x64, 0x65, 0x64, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0e, 0x41, 0x73,
1042 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a,
1043 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
1044 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1045 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x73, 0x73, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x2f,
1046 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
1047 0x31, 0x3b, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
1048 0x6f, 0x33,
1049 }
1050
1051 var (
1052 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescOnce sync.Once
1053 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescData = file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDesc
1054 )
1055
1056 func file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescGZIP() []byte {
1057 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescOnce.Do(func() {
1058 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescData)
1059 })
1060 return file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDescData
1061 }
1062
1063 var file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
1064 var file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
1065 var file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_goTypes = []interface{}{
1066 (AudioInConfig_Encoding)(0),
1067 (AudioOutConfig_Encoding)(0),
1068 (ConverseResult_MicrophoneMode)(0),
1069 (ConverseResponse_EventType)(0),
1070 (*ConverseConfig)(nil),
1071 (*AudioInConfig)(nil),
1072 (*AudioOutConfig)(nil),
1073 (*ConverseState)(nil),
1074 (*AudioOut)(nil),
1075 (*ConverseResult)(nil),
1076 (*ConverseRequest)(nil),
1077 (*ConverseResponse)(nil),
1078 (*status.Status)(nil),
1079 }
1080 var file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_depIdxs = []int32{
1081 5,
1082 6,
1083 7,
1084 0,
1085 1,
1086 2,
1087 4,
1088 12,
1089 3,
1090 8,
1091 9,
1092 10,
1093 11,
1094 12,
1095 11,
1096 11,
1097 11,
1098 0,
1099 }
1100
1101 func init() { file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_init() }
1102 func file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_init() {
1103 if File_google_assistant_embedded_v1alpha1_embedded_assistant_proto != nil {
1104 return
1105 }
1106 if !protoimpl.UnsafeEnabled {
1107 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
1108 switch v := v.(*ConverseConfig); i {
1109 case 0:
1110 return &v.state
1111 case 1:
1112 return &v.sizeCache
1113 case 2:
1114 return &v.unknownFields
1115 default:
1116 return nil
1117 }
1118 }
1119 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
1120 switch v := v.(*AudioInConfig); i {
1121 case 0:
1122 return &v.state
1123 case 1:
1124 return &v.sizeCache
1125 case 2:
1126 return &v.unknownFields
1127 default:
1128 return nil
1129 }
1130 }
1131 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
1132 switch v := v.(*AudioOutConfig); i {
1133 case 0:
1134 return &v.state
1135 case 1:
1136 return &v.sizeCache
1137 case 2:
1138 return &v.unknownFields
1139 default:
1140 return nil
1141 }
1142 }
1143 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
1144 switch v := v.(*ConverseState); i {
1145 case 0:
1146 return &v.state
1147 case 1:
1148 return &v.sizeCache
1149 case 2:
1150 return &v.unknownFields
1151 default:
1152 return nil
1153 }
1154 }
1155 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
1156 switch v := v.(*AudioOut); i {
1157 case 0:
1158 return &v.state
1159 case 1:
1160 return &v.sizeCache
1161 case 2:
1162 return &v.unknownFields
1163 default:
1164 return nil
1165 }
1166 }
1167 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
1168 switch v := v.(*ConverseResult); i {
1169 case 0:
1170 return &v.state
1171 case 1:
1172 return &v.sizeCache
1173 case 2:
1174 return &v.unknownFields
1175 default:
1176 return nil
1177 }
1178 }
1179 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
1180 switch v := v.(*ConverseRequest); i {
1181 case 0:
1182 return &v.state
1183 case 1:
1184 return &v.sizeCache
1185 case 2:
1186 return &v.unknownFields
1187 default:
1188 return nil
1189 }
1190 }
1191 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
1192 switch v := v.(*ConverseResponse); i {
1193 case 0:
1194 return &v.state
1195 case 1:
1196 return &v.sizeCache
1197 case 2:
1198 return &v.unknownFields
1199 default:
1200 return nil
1201 }
1202 }
1203 }
1204 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[6].OneofWrappers = []interface{}{
1205 (*ConverseRequest_Config)(nil),
1206 (*ConverseRequest_AudioIn)(nil),
1207 }
1208 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes[7].OneofWrappers = []interface{}{
1209 (*ConverseResponse_Error)(nil),
1210 (*ConverseResponse_EventType_)(nil),
1211 (*ConverseResponse_AudioOut)(nil),
1212 (*ConverseResponse_Result)(nil),
1213 }
1214 type x struct{}
1215 out := protoimpl.TypeBuilder{
1216 File: protoimpl.DescBuilder{
1217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1218 RawDescriptor: file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDesc,
1219 NumEnums: 4,
1220 NumMessages: 8,
1221 NumExtensions: 0,
1222 NumServices: 1,
1223 },
1224 GoTypes: file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_goTypes,
1225 DependencyIndexes: file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_depIdxs,
1226 EnumInfos: file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_enumTypes,
1227 MessageInfos: file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_msgTypes,
1228 }.Build()
1229 File_google_assistant_embedded_v1alpha1_embedded_assistant_proto = out.File
1230 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_rawDesc = nil
1231 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_goTypes = nil
1232 file_google_assistant_embedded_v1alpha1_embedded_assistant_proto_depIdxs = nil
1233 }
1234
1235
1236 var _ context.Context
1237 var _ grpc.ClientConnInterface
1238
1239
1240
1241 const _ = grpc.SupportPackageIsVersion6
1242
1243
1244
1245
1246 type EmbeddedAssistantClient interface {
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288 Converse(ctx context.Context, opts ...grpc.CallOption) (EmbeddedAssistant_ConverseClient, error)
1289 }
1290
1291 type embeddedAssistantClient struct {
1292 cc grpc.ClientConnInterface
1293 }
1294
1295 func NewEmbeddedAssistantClient(cc grpc.ClientConnInterface) EmbeddedAssistantClient {
1296 return &embeddedAssistantClient{cc}
1297 }
1298
1299 func (c *embeddedAssistantClient) Converse(ctx context.Context, opts ...grpc.CallOption) (EmbeddedAssistant_ConverseClient, error) {
1300 stream, err := c.cc.NewStream(ctx, &_EmbeddedAssistant_serviceDesc.Streams[0], "/google.assistant.embedded.v1alpha1.EmbeddedAssistant/Converse", opts...)
1301 if err != nil {
1302 return nil, err
1303 }
1304 x := &embeddedAssistantConverseClient{stream}
1305 return x, nil
1306 }
1307
1308 type EmbeddedAssistant_ConverseClient interface {
1309 Send(*ConverseRequest) error
1310 Recv() (*ConverseResponse, error)
1311 grpc.ClientStream
1312 }
1313
1314 type embeddedAssistantConverseClient struct {
1315 grpc.ClientStream
1316 }
1317
1318 func (x *embeddedAssistantConverseClient) Send(m *ConverseRequest) error {
1319 return x.ClientStream.SendMsg(m)
1320 }
1321
1322 func (x *embeddedAssistantConverseClient) Recv() (*ConverseResponse, error) {
1323 m := new(ConverseResponse)
1324 if err := x.ClientStream.RecvMsg(m); err != nil {
1325 return nil, err
1326 }
1327 return m, nil
1328 }
1329
1330
1331 type EmbeddedAssistantServer interface {
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373 Converse(EmbeddedAssistant_ConverseServer) error
1374 }
1375
1376
1377 type UnimplementedEmbeddedAssistantServer struct {
1378 }
1379
1380 func (*UnimplementedEmbeddedAssistantServer) Converse(EmbeddedAssistant_ConverseServer) error {
1381 return status1.Errorf(codes.Unimplemented, "method Converse not implemented")
1382 }
1383
1384 func RegisterEmbeddedAssistantServer(s *grpc.Server, srv EmbeddedAssistantServer) {
1385 s.RegisterService(&_EmbeddedAssistant_serviceDesc, srv)
1386 }
1387
1388 func _EmbeddedAssistant_Converse_Handler(srv interface{}, stream grpc.ServerStream) error {
1389 return srv.(EmbeddedAssistantServer).Converse(&embeddedAssistantConverseServer{stream})
1390 }
1391
1392 type EmbeddedAssistant_ConverseServer interface {
1393 Send(*ConverseResponse) error
1394 Recv() (*ConverseRequest, error)
1395 grpc.ServerStream
1396 }
1397
1398 type embeddedAssistantConverseServer struct {
1399 grpc.ServerStream
1400 }
1401
1402 func (x *embeddedAssistantConverseServer) Send(m *ConverseResponse) error {
1403 return x.ServerStream.SendMsg(m)
1404 }
1405
1406 func (x *embeddedAssistantConverseServer) Recv() (*ConverseRequest, error) {
1407 m := new(ConverseRequest)
1408 if err := x.ServerStream.RecvMsg(m); err != nil {
1409 return nil, err
1410 }
1411 return m, nil
1412 }
1413
1414 var _EmbeddedAssistant_serviceDesc = grpc.ServiceDesc{
1415 ServiceName: "google.assistant.embedded.v1alpha1.EmbeddedAssistant",
1416 HandlerType: (*EmbeddedAssistantServer)(nil),
1417 Methods: []grpc.MethodDesc{},
1418 Streams: []grpc.StreamDesc{
1419 {
1420 StreamName: "Converse",
1421 Handler: _EmbeddedAssistant_Converse_Handler,
1422 ServerStreams: true,
1423 ClientStreams: true,
1424 },
1425 },
1426 Metadata: "google/assistant/embedded/v1alpha1/embedded_assistant.proto",
1427 }
1428
View as plain text