Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

1143 linhas
45 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/assistant/embedded/v1alpha1/embedded_assistant.proto
  3. package embedded // import "google.golang.org/genproto/googleapis/assistant/embedded/v1alpha1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import status "google.golang.org/genproto/googleapis/rpc/status"
  9. import (
  10. context "golang.org/x/net/context"
  11. grpc "google.golang.org/grpc"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  22. // Audio encoding of the data sent in the audio message.
  23. // Audio must be one-channel (mono). The only language supported is "en-US".
  24. type AudioInConfig_Encoding int32
  25. const (
  26. // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
  27. AudioInConfig_ENCODING_UNSPECIFIED AudioInConfig_Encoding = 0
  28. // Uncompressed 16-bit signed little-endian samples (Linear PCM).
  29. // This encoding includes no header, only the raw audio bytes.
  30. AudioInConfig_LINEAR16 AudioInConfig_Encoding = 1
  31. // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
  32. // Codec) is the recommended encoding because it is
  33. // lossless--therefore recognition is not compromised--and
  34. // requires only about half the bandwidth of `LINEAR16`. This encoding
  35. // includes the `FLAC` stream header followed by audio data. It supports
  36. // 16-bit and 24-bit samples, however, not all fields in `STREAMINFO` are
  37. // supported.
  38. AudioInConfig_FLAC AudioInConfig_Encoding = 2
  39. )
  40. var AudioInConfig_Encoding_name = map[int32]string{
  41. 0: "ENCODING_UNSPECIFIED",
  42. 1: "LINEAR16",
  43. 2: "FLAC",
  44. }
  45. var AudioInConfig_Encoding_value = map[string]int32{
  46. "ENCODING_UNSPECIFIED": 0,
  47. "LINEAR16": 1,
  48. "FLAC": 2,
  49. }
  50. func (x AudioInConfig_Encoding) String() string {
  51. return proto.EnumName(AudioInConfig_Encoding_name, int32(x))
  52. }
  53. func (AudioInConfig_Encoding) EnumDescriptor() ([]byte, []int) {
  54. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{1, 0}
  55. }
  56. // Audio encoding of the data returned in the audio message. All encodings are
  57. // raw audio bytes with no header, except as indicated below.
  58. type AudioOutConfig_Encoding int32
  59. const (
  60. // Not specified. Will return result [google.rpc.Code.INVALID_ARGUMENT][].
  61. AudioOutConfig_ENCODING_UNSPECIFIED AudioOutConfig_Encoding = 0
  62. // Uncompressed 16-bit signed little-endian samples (Linear PCM).
  63. AudioOutConfig_LINEAR16 AudioOutConfig_Encoding = 1
  64. // MP3 audio encoding. The sample rate is encoded in the payload.
  65. AudioOutConfig_MP3 AudioOutConfig_Encoding = 2
  66. // Opus-encoded audio wrapped in an ogg container. The result will be a
  67. // file which can be played natively on Android and in some browsers (such
  68. // as Chrome). The quality of the encoding is considerably higher than MP3
  69. // while using the same bitrate. The sample rate is encoded in the payload.
  70. AudioOutConfig_OPUS_IN_OGG AudioOutConfig_Encoding = 3
  71. )
  72. var AudioOutConfig_Encoding_name = map[int32]string{
  73. 0: "ENCODING_UNSPECIFIED",
  74. 1: "LINEAR16",
  75. 2: "MP3",
  76. 3: "OPUS_IN_OGG",
  77. }
  78. var AudioOutConfig_Encoding_value = map[string]int32{
  79. "ENCODING_UNSPECIFIED": 0,
  80. "LINEAR16": 1,
  81. "MP3": 2,
  82. "OPUS_IN_OGG": 3,
  83. }
  84. func (x AudioOutConfig_Encoding) String() string {
  85. return proto.EnumName(AudioOutConfig_Encoding_name, int32(x))
  86. }
  87. func (AudioOutConfig_Encoding) EnumDescriptor() ([]byte, []int) {
  88. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{2, 0}
  89. }
  90. // Possible states of the microphone after a `Converse` RPC completes.
  91. type ConverseResult_MicrophoneMode int32
  92. const (
  93. // No mode specified.
  94. ConverseResult_MICROPHONE_MODE_UNSPECIFIED ConverseResult_MicrophoneMode = 0
  95. // The service is not expecting a follow-on question from the user.
  96. // The microphone should remain off until the user re-activates it.
  97. ConverseResult_CLOSE_MICROPHONE ConverseResult_MicrophoneMode = 1
  98. // The service is expecting a follow-on question from the user. The
  99. // microphone should be re-opened when the `AudioOut` playback completes
  100. // (by starting a new `Converse` RPC call to send the new audio).
  101. ConverseResult_DIALOG_FOLLOW_ON ConverseResult_MicrophoneMode = 2
  102. )
  103. var ConverseResult_MicrophoneMode_name = map[int32]string{
  104. 0: "MICROPHONE_MODE_UNSPECIFIED",
  105. 1: "CLOSE_MICROPHONE",
  106. 2: "DIALOG_FOLLOW_ON",
  107. }
  108. var ConverseResult_MicrophoneMode_value = map[string]int32{
  109. "MICROPHONE_MODE_UNSPECIFIED": 0,
  110. "CLOSE_MICROPHONE": 1,
  111. "DIALOG_FOLLOW_ON": 2,
  112. }
  113. func (x ConverseResult_MicrophoneMode) String() string {
  114. return proto.EnumName(ConverseResult_MicrophoneMode_name, int32(x))
  115. }
  116. func (ConverseResult_MicrophoneMode) EnumDescriptor() ([]byte, []int) {
  117. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{5, 0}
  118. }
  119. // Indicates the type of event.
  120. type ConverseResponse_EventType int32
  121. const (
  122. // No event specified.
  123. ConverseResponse_EVENT_TYPE_UNSPECIFIED ConverseResponse_EventType = 0
  124. // This event indicates that the server has detected the end of the user's
  125. // speech utterance and expects no additional speech. Therefore, the server
  126. // will not process additional audio (although it may subsequently return
  127. // additional results). The client should stop sending additional audio
  128. // data, half-close the gRPC connection, and wait for any additional results
  129. // until the server closes the gRPC connection.
  130. ConverseResponse_END_OF_UTTERANCE ConverseResponse_EventType = 1
  131. )
  132. var ConverseResponse_EventType_name = map[int32]string{
  133. 0: "EVENT_TYPE_UNSPECIFIED",
  134. 1: "END_OF_UTTERANCE",
  135. }
  136. var ConverseResponse_EventType_value = map[string]int32{
  137. "EVENT_TYPE_UNSPECIFIED": 0,
  138. "END_OF_UTTERANCE": 1,
  139. }
  140. func (x ConverseResponse_EventType) String() string {
  141. return proto.EnumName(ConverseResponse_EventType_name, int32(x))
  142. }
  143. func (ConverseResponse_EventType) EnumDescriptor() ([]byte, []int) {
  144. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{7, 0}
  145. }
  146. // Specifies how to process the `ConverseRequest` messages.
  147. type ConverseConfig struct {
  148. // *Required* Specifies how to process the subsequent incoming audio.
  149. AudioInConfig *AudioInConfig `protobuf:"bytes,1,opt,name=audio_in_config,json=audioInConfig,proto3" json:"audio_in_config,omitempty"`
  150. // *Required* Specifies how to format the audio that will be returned.
  151. AudioOutConfig *AudioOutConfig `protobuf:"bytes,2,opt,name=audio_out_config,json=audioOutConfig,proto3" json:"audio_out_config,omitempty"`
  152. // *Required* Represents the current dialog state.
  153. ConverseState *ConverseState `protobuf:"bytes,3,opt,name=converse_state,json=converseState,proto3" json:"converse_state,omitempty"`
  154. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  155. XXX_unrecognized []byte `json:"-"`
  156. XXX_sizecache int32 `json:"-"`
  157. }
  158. func (m *ConverseConfig) Reset() { *m = ConverseConfig{} }
  159. func (m *ConverseConfig) String() string { return proto.CompactTextString(m) }
  160. func (*ConverseConfig) ProtoMessage() {}
  161. func (*ConverseConfig) Descriptor() ([]byte, []int) {
  162. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{0}
  163. }
  164. func (m *ConverseConfig) XXX_Unmarshal(b []byte) error {
  165. return xxx_messageInfo_ConverseConfig.Unmarshal(m, b)
  166. }
  167. func (m *ConverseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  168. return xxx_messageInfo_ConverseConfig.Marshal(b, m, deterministic)
  169. }
  170. func (dst *ConverseConfig) XXX_Merge(src proto.Message) {
  171. xxx_messageInfo_ConverseConfig.Merge(dst, src)
  172. }
  173. func (m *ConverseConfig) XXX_Size() int {
  174. return xxx_messageInfo_ConverseConfig.Size(m)
  175. }
  176. func (m *ConverseConfig) XXX_DiscardUnknown() {
  177. xxx_messageInfo_ConverseConfig.DiscardUnknown(m)
  178. }
  179. var xxx_messageInfo_ConverseConfig proto.InternalMessageInfo
  180. func (m *ConverseConfig) GetAudioInConfig() *AudioInConfig {
  181. if m != nil {
  182. return m.AudioInConfig
  183. }
  184. return nil
  185. }
  186. func (m *ConverseConfig) GetAudioOutConfig() *AudioOutConfig {
  187. if m != nil {
  188. return m.AudioOutConfig
  189. }
  190. return nil
  191. }
  192. func (m *ConverseConfig) GetConverseState() *ConverseState {
  193. if m != nil {
  194. return m.ConverseState
  195. }
  196. return nil
  197. }
  198. // Specifies how to process the `audio_in` data that will be provided in
  199. // subsequent requests. For recommended settings, see the Google Assistant SDK
  200. // [best
  201. // practices](https://developers.google.com/assistant/sdk/develop/grpc/best-practices/audio).
  202. type AudioInConfig struct {
  203. // *Required* Encoding of audio data sent in all `audio_in` messages.
  204. Encoding AudioInConfig_Encoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.assistant.embedded.v1alpha1.AudioInConfig_Encoding" json:"encoding,omitempty"`
  205. // *Required* Sample rate (in Hertz) of the audio data sent in all `audio_in`
  206. // messages. Valid values are from 16000-24000, but 16000 is optimal.
  207. // For best results, set the sampling rate of the audio source to 16000 Hz.
  208. // If that's not possible, use the native sample rate of the audio source
  209. // (instead of re-sampling).
  210. SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
  211. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  212. XXX_unrecognized []byte `json:"-"`
  213. XXX_sizecache int32 `json:"-"`
  214. }
  215. func (m *AudioInConfig) Reset() { *m = AudioInConfig{} }
  216. func (m *AudioInConfig) String() string { return proto.CompactTextString(m) }
  217. func (*AudioInConfig) ProtoMessage() {}
  218. func (*AudioInConfig) Descriptor() ([]byte, []int) {
  219. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{1}
  220. }
  221. func (m *AudioInConfig) XXX_Unmarshal(b []byte) error {
  222. return xxx_messageInfo_AudioInConfig.Unmarshal(m, b)
  223. }
  224. func (m *AudioInConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  225. return xxx_messageInfo_AudioInConfig.Marshal(b, m, deterministic)
  226. }
  227. func (dst *AudioInConfig) XXX_Merge(src proto.Message) {
  228. xxx_messageInfo_AudioInConfig.Merge(dst, src)
  229. }
  230. func (m *AudioInConfig) XXX_Size() int {
  231. return xxx_messageInfo_AudioInConfig.Size(m)
  232. }
  233. func (m *AudioInConfig) XXX_DiscardUnknown() {
  234. xxx_messageInfo_AudioInConfig.DiscardUnknown(m)
  235. }
  236. var xxx_messageInfo_AudioInConfig proto.InternalMessageInfo
  237. func (m *AudioInConfig) GetEncoding() AudioInConfig_Encoding {
  238. if m != nil {
  239. return m.Encoding
  240. }
  241. return AudioInConfig_ENCODING_UNSPECIFIED
  242. }
  243. func (m *AudioInConfig) GetSampleRateHertz() int32 {
  244. if m != nil {
  245. return m.SampleRateHertz
  246. }
  247. return 0
  248. }
  249. // Specifies the desired format for the server to use when it returns
  250. // `audio_out` messages.
  251. type AudioOutConfig struct {
  252. // *Required* The encoding of audio data to be returned in all `audio_out`
  253. // messages.
  254. Encoding AudioOutConfig_Encoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding" json:"encoding,omitempty"`
  255. // *Required* The sample rate in Hertz of the audio data returned in
  256. // `audio_out` messages. Valid values are: 16000-24000.
  257. SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
  258. // *Required* Current volume setting of the device's audio output.
  259. // Valid values are 1 to 100 (corresponding to 1% to 100%).
  260. VolumePercentage int32 `protobuf:"varint,3,opt,name=volume_percentage,json=volumePercentage,proto3" json:"volume_percentage,omitempty"`
  261. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  262. XXX_unrecognized []byte `json:"-"`
  263. XXX_sizecache int32 `json:"-"`
  264. }
  265. func (m *AudioOutConfig) Reset() { *m = AudioOutConfig{} }
  266. func (m *AudioOutConfig) String() string { return proto.CompactTextString(m) }
  267. func (*AudioOutConfig) ProtoMessage() {}
  268. func (*AudioOutConfig) Descriptor() ([]byte, []int) {
  269. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{2}
  270. }
  271. func (m *AudioOutConfig) XXX_Unmarshal(b []byte) error {
  272. return xxx_messageInfo_AudioOutConfig.Unmarshal(m, b)
  273. }
  274. func (m *AudioOutConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  275. return xxx_messageInfo_AudioOutConfig.Marshal(b, m, deterministic)
  276. }
  277. func (dst *AudioOutConfig) XXX_Merge(src proto.Message) {
  278. xxx_messageInfo_AudioOutConfig.Merge(dst, src)
  279. }
  280. func (m *AudioOutConfig) XXX_Size() int {
  281. return xxx_messageInfo_AudioOutConfig.Size(m)
  282. }
  283. func (m *AudioOutConfig) XXX_DiscardUnknown() {
  284. xxx_messageInfo_AudioOutConfig.DiscardUnknown(m)
  285. }
  286. var xxx_messageInfo_AudioOutConfig proto.InternalMessageInfo
  287. func (m *AudioOutConfig) GetEncoding() AudioOutConfig_Encoding {
  288. if m != nil {
  289. return m.Encoding
  290. }
  291. return AudioOutConfig_ENCODING_UNSPECIFIED
  292. }
  293. func (m *AudioOutConfig) GetSampleRateHertz() int32 {
  294. if m != nil {
  295. return m.SampleRateHertz
  296. }
  297. return 0
  298. }
  299. func (m *AudioOutConfig) GetVolumePercentage() int32 {
  300. if m != nil {
  301. return m.VolumePercentage
  302. }
  303. return 0
  304. }
  305. // Provides information about the current dialog state.
  306. type ConverseState struct {
  307. // *Required* The `conversation_state` value returned in the prior
  308. // `ConverseResponse`. Omit (do not set the field) if there was no prior
  309. // `ConverseResponse`. If there was a prior `ConverseResponse`, do not omit
  310. // this field; doing so will end that conversation (and this new request will
  311. // start a new conversation).
  312. ConversationState []byte `protobuf:"bytes,1,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
  313. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  314. XXX_unrecognized []byte `json:"-"`
  315. XXX_sizecache int32 `json:"-"`
  316. }
  317. func (m *ConverseState) Reset() { *m = ConverseState{} }
  318. func (m *ConverseState) String() string { return proto.CompactTextString(m) }
  319. func (*ConverseState) ProtoMessage() {}
  320. func (*ConverseState) Descriptor() ([]byte, []int) {
  321. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{3}
  322. }
  323. func (m *ConverseState) XXX_Unmarshal(b []byte) error {
  324. return xxx_messageInfo_ConverseState.Unmarshal(m, b)
  325. }
  326. func (m *ConverseState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  327. return xxx_messageInfo_ConverseState.Marshal(b, m, deterministic)
  328. }
  329. func (dst *ConverseState) XXX_Merge(src proto.Message) {
  330. xxx_messageInfo_ConverseState.Merge(dst, src)
  331. }
  332. func (m *ConverseState) XXX_Size() int {
  333. return xxx_messageInfo_ConverseState.Size(m)
  334. }
  335. func (m *ConverseState) XXX_DiscardUnknown() {
  336. xxx_messageInfo_ConverseState.DiscardUnknown(m)
  337. }
  338. var xxx_messageInfo_ConverseState proto.InternalMessageInfo
  339. func (m *ConverseState) GetConversationState() []byte {
  340. if m != nil {
  341. return m.ConversationState
  342. }
  343. return nil
  344. }
  345. // The audio containing the assistant's response to the query. Sequential chunks
  346. // of audio data are received in sequential `ConverseResponse` messages.
  347. type AudioOut struct {
  348. // *Output-only* The audio data containing the assistant's response to the
  349. // query. Sequential chunks of audio data are received in sequential
  350. // `ConverseResponse` messages.
  351. AudioData []byte `protobuf:"bytes,1,opt,name=audio_data,json=audioData,proto3" json:"audio_data,omitempty"`
  352. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  353. XXX_unrecognized []byte `json:"-"`
  354. XXX_sizecache int32 `json:"-"`
  355. }
  356. func (m *AudioOut) Reset() { *m = AudioOut{} }
  357. func (m *AudioOut) String() string { return proto.CompactTextString(m) }
  358. func (*AudioOut) ProtoMessage() {}
  359. func (*AudioOut) Descriptor() ([]byte, []int) {
  360. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{4}
  361. }
  362. func (m *AudioOut) XXX_Unmarshal(b []byte) error {
  363. return xxx_messageInfo_AudioOut.Unmarshal(m, b)
  364. }
  365. func (m *AudioOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  366. return xxx_messageInfo_AudioOut.Marshal(b, m, deterministic)
  367. }
  368. func (dst *AudioOut) XXX_Merge(src proto.Message) {
  369. xxx_messageInfo_AudioOut.Merge(dst, src)
  370. }
  371. func (m *AudioOut) XXX_Size() int {
  372. return xxx_messageInfo_AudioOut.Size(m)
  373. }
  374. func (m *AudioOut) XXX_DiscardUnknown() {
  375. xxx_messageInfo_AudioOut.DiscardUnknown(m)
  376. }
  377. var xxx_messageInfo_AudioOut proto.InternalMessageInfo
  378. func (m *AudioOut) GetAudioData() []byte {
  379. if m != nil {
  380. return m.AudioData
  381. }
  382. return nil
  383. }
  384. // The semantic result for the user's spoken query.
  385. type ConverseResult struct {
  386. // *Output-only* The recognized transcript of what the user said.
  387. SpokenRequestText string `protobuf:"bytes,1,opt,name=spoken_request_text,json=spokenRequestText,proto3" json:"spoken_request_text,omitempty"`
  388. // *Output-only* The text of the assistant's spoken response. This is only
  389. // returned for an IFTTT action.
  390. SpokenResponseText string `protobuf:"bytes,2,opt,name=spoken_response_text,json=spokenResponseText,proto3" json:"spoken_response_text,omitempty"`
  391. // *Output-only* State information for subsequent `ConverseRequest`. This
  392. // value should be saved in the client and returned in the
  393. // `conversation_state` with the next `ConverseRequest`. (The client does not
  394. // need to interpret or otherwise use this value.) There is no need to save
  395. // this information across device restarts.
  396. ConversationState []byte `protobuf:"bytes,3,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
  397. // *Output-only* Specifies the mode of the microphone after this `Converse`
  398. // RPC is processed.
  399. MicrophoneMode ConverseResult_MicrophoneMode `protobuf:"varint,4,opt,name=microphone_mode,json=microphoneMode,proto3,enum=google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode" json:"microphone_mode,omitempty"`
  400. // *Output-only* Updated volume level. The value will be 0 or omitted
  401. // (indicating no change) unless a voice command such as "Increase the volume"
  402. // or "Set volume level 4" was recognized, in which case the value will be
  403. // between 1 and 100 (corresponding to the new volume level of 1% to 100%).
  404. // Typically, a client should use this volume level when playing the
  405. // `audio_out` data, and retain this value as the current volume level and
  406. // supply it in the `AudioOutConfig` of the next `ConverseRequest`. (Some
  407. // clients may also implement other ways to allow the current volume level to
  408. // be changed, for example, by providing a knob that the user can turn.)
  409. VolumePercentage int32 `protobuf:"varint,5,opt,name=volume_percentage,json=volumePercentage,proto3" json:"volume_percentage,omitempty"`
  410. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  411. XXX_unrecognized []byte `json:"-"`
  412. XXX_sizecache int32 `json:"-"`
  413. }
  414. func (m *ConverseResult) Reset() { *m = ConverseResult{} }
  415. func (m *ConverseResult) String() string { return proto.CompactTextString(m) }
  416. func (*ConverseResult) ProtoMessage() {}
  417. func (*ConverseResult) Descriptor() ([]byte, []int) {
  418. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{5}
  419. }
  420. func (m *ConverseResult) XXX_Unmarshal(b []byte) error {
  421. return xxx_messageInfo_ConverseResult.Unmarshal(m, b)
  422. }
  423. func (m *ConverseResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  424. return xxx_messageInfo_ConverseResult.Marshal(b, m, deterministic)
  425. }
  426. func (dst *ConverseResult) XXX_Merge(src proto.Message) {
  427. xxx_messageInfo_ConverseResult.Merge(dst, src)
  428. }
  429. func (m *ConverseResult) XXX_Size() int {
  430. return xxx_messageInfo_ConverseResult.Size(m)
  431. }
  432. func (m *ConverseResult) XXX_DiscardUnknown() {
  433. xxx_messageInfo_ConverseResult.DiscardUnknown(m)
  434. }
  435. var xxx_messageInfo_ConverseResult proto.InternalMessageInfo
  436. func (m *ConverseResult) GetSpokenRequestText() string {
  437. if m != nil {
  438. return m.SpokenRequestText
  439. }
  440. return ""
  441. }
  442. func (m *ConverseResult) GetSpokenResponseText() string {
  443. if m != nil {
  444. return m.SpokenResponseText
  445. }
  446. return ""
  447. }
  448. func (m *ConverseResult) GetConversationState() []byte {
  449. if m != nil {
  450. return m.ConversationState
  451. }
  452. return nil
  453. }
  454. func (m *ConverseResult) GetMicrophoneMode() ConverseResult_MicrophoneMode {
  455. if m != nil {
  456. return m.MicrophoneMode
  457. }
  458. return ConverseResult_MICROPHONE_MODE_UNSPECIFIED
  459. }
  460. func (m *ConverseResult) GetVolumePercentage() int32 {
  461. if m != nil {
  462. return m.VolumePercentage
  463. }
  464. return 0
  465. }
  466. // The top-level message sent by the client. Clients must send at least two, and
  467. // typically numerous `ConverseRequest` messages. The first message must
  468. // contain a `config` message and must not contain `audio_in` data. All
  469. // subsequent messages must contain `audio_in` data and must not contain a
  470. // `config` message.
  471. type ConverseRequest struct {
  472. // Exactly one of these fields must be specified in each `ConverseRequest`.
  473. //
  474. // Types that are valid to be assigned to ConverseRequest:
  475. // *ConverseRequest_Config
  476. // *ConverseRequest_AudioIn
  477. ConverseRequest isConverseRequest_ConverseRequest `protobuf_oneof:"converse_request"`
  478. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  479. XXX_unrecognized []byte `json:"-"`
  480. XXX_sizecache int32 `json:"-"`
  481. }
  482. func (m *ConverseRequest) Reset() { *m = ConverseRequest{} }
  483. func (m *ConverseRequest) String() string { return proto.CompactTextString(m) }
  484. func (*ConverseRequest) ProtoMessage() {}
  485. func (*ConverseRequest) Descriptor() ([]byte, []int) {
  486. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{6}
  487. }
  488. func (m *ConverseRequest) XXX_Unmarshal(b []byte) error {
  489. return xxx_messageInfo_ConverseRequest.Unmarshal(m, b)
  490. }
  491. func (m *ConverseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  492. return xxx_messageInfo_ConverseRequest.Marshal(b, m, deterministic)
  493. }
  494. func (dst *ConverseRequest) XXX_Merge(src proto.Message) {
  495. xxx_messageInfo_ConverseRequest.Merge(dst, src)
  496. }
  497. func (m *ConverseRequest) XXX_Size() int {
  498. return xxx_messageInfo_ConverseRequest.Size(m)
  499. }
  500. func (m *ConverseRequest) XXX_DiscardUnknown() {
  501. xxx_messageInfo_ConverseRequest.DiscardUnknown(m)
  502. }
  503. var xxx_messageInfo_ConverseRequest proto.InternalMessageInfo
  504. type isConverseRequest_ConverseRequest interface {
  505. isConverseRequest_ConverseRequest()
  506. }
  507. type ConverseRequest_Config struct {
  508. Config *ConverseConfig `protobuf:"bytes,1,opt,name=config,proto3,oneof"`
  509. }
  510. type ConverseRequest_AudioIn struct {
  511. AudioIn []byte `protobuf:"bytes,2,opt,name=audio_in,json=audioIn,proto3,oneof"`
  512. }
  513. func (*ConverseRequest_Config) isConverseRequest_ConverseRequest() {}
  514. func (*ConverseRequest_AudioIn) isConverseRequest_ConverseRequest() {}
  515. func (m *ConverseRequest) GetConverseRequest() isConverseRequest_ConverseRequest {
  516. if m != nil {
  517. return m.ConverseRequest
  518. }
  519. return nil
  520. }
  521. func (m *ConverseRequest) GetConfig() *ConverseConfig {
  522. if x, ok := m.GetConverseRequest().(*ConverseRequest_Config); ok {
  523. return x.Config
  524. }
  525. return nil
  526. }
  527. func (m *ConverseRequest) GetAudioIn() []byte {
  528. if x, ok := m.GetConverseRequest().(*ConverseRequest_AudioIn); ok {
  529. return x.AudioIn
  530. }
  531. return nil
  532. }
  533. // XXX_OneofFuncs is for the internal use of the proto package.
  534. func (*ConverseRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  535. return _ConverseRequest_OneofMarshaler, _ConverseRequest_OneofUnmarshaler, _ConverseRequest_OneofSizer, []interface{}{
  536. (*ConverseRequest_Config)(nil),
  537. (*ConverseRequest_AudioIn)(nil),
  538. }
  539. }
  540. func _ConverseRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  541. m := msg.(*ConverseRequest)
  542. // converse_request
  543. switch x := m.ConverseRequest.(type) {
  544. case *ConverseRequest_Config:
  545. b.EncodeVarint(1<<3 | proto.WireBytes)
  546. if err := b.EncodeMessage(x.Config); err != nil {
  547. return err
  548. }
  549. case *ConverseRequest_AudioIn:
  550. b.EncodeVarint(2<<3 | proto.WireBytes)
  551. b.EncodeRawBytes(x.AudioIn)
  552. case nil:
  553. default:
  554. return fmt.Errorf("ConverseRequest.ConverseRequest has unexpected type %T", x)
  555. }
  556. return nil
  557. }
  558. func _ConverseRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  559. m := msg.(*ConverseRequest)
  560. switch tag {
  561. case 1: // converse_request.config
  562. if wire != proto.WireBytes {
  563. return true, proto.ErrInternalBadWireType
  564. }
  565. msg := new(ConverseConfig)
  566. err := b.DecodeMessage(msg)
  567. m.ConverseRequest = &ConverseRequest_Config{msg}
  568. return true, err
  569. case 2: // converse_request.audio_in
  570. if wire != proto.WireBytes {
  571. return true, proto.ErrInternalBadWireType
  572. }
  573. x, err := b.DecodeRawBytes(true)
  574. m.ConverseRequest = &ConverseRequest_AudioIn{x}
  575. return true, err
  576. default:
  577. return false, nil
  578. }
  579. }
  580. func _ConverseRequest_OneofSizer(msg proto.Message) (n int) {
  581. m := msg.(*ConverseRequest)
  582. // converse_request
  583. switch x := m.ConverseRequest.(type) {
  584. case *ConverseRequest_Config:
  585. s := proto.Size(x.Config)
  586. n += 1 // tag and wire
  587. n += proto.SizeVarint(uint64(s))
  588. n += s
  589. case *ConverseRequest_AudioIn:
  590. n += 1 // tag and wire
  591. n += proto.SizeVarint(uint64(len(x.AudioIn)))
  592. n += len(x.AudioIn)
  593. case nil:
  594. default:
  595. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  596. }
  597. return n
  598. }
  599. // The top-level message received by the client. A series of one or more
  600. // `ConverseResponse` messages are streamed back to the client.
  601. type ConverseResponse struct {
  602. // Exactly one of these fields will be populated in each `ConverseResponse`.
  603. //
  604. // Types that are valid to be assigned to ConverseResponse:
  605. // *ConverseResponse_Error
  606. // *ConverseResponse_EventType_
  607. // *ConverseResponse_AudioOut
  608. // *ConverseResponse_Result
  609. ConverseResponse isConverseResponse_ConverseResponse `protobuf_oneof:"converse_response"`
  610. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  611. XXX_unrecognized []byte `json:"-"`
  612. XXX_sizecache int32 `json:"-"`
  613. }
  614. func (m *ConverseResponse) Reset() { *m = ConverseResponse{} }
  615. func (m *ConverseResponse) String() string { return proto.CompactTextString(m) }
  616. func (*ConverseResponse) ProtoMessage() {}
  617. func (*ConverseResponse) Descriptor() ([]byte, []int) {
  618. return fileDescriptor_embedded_assistant_907a82b6d4d77187, []int{7}
  619. }
  620. func (m *ConverseResponse) XXX_Unmarshal(b []byte) error {
  621. return xxx_messageInfo_ConverseResponse.Unmarshal(m, b)
  622. }
  623. func (m *ConverseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  624. return xxx_messageInfo_ConverseResponse.Marshal(b, m, deterministic)
  625. }
  626. func (dst *ConverseResponse) XXX_Merge(src proto.Message) {
  627. xxx_messageInfo_ConverseResponse.Merge(dst, src)
  628. }
  629. func (m *ConverseResponse) XXX_Size() int {
  630. return xxx_messageInfo_ConverseResponse.Size(m)
  631. }
  632. func (m *ConverseResponse) XXX_DiscardUnknown() {
  633. xxx_messageInfo_ConverseResponse.DiscardUnknown(m)
  634. }
  635. var xxx_messageInfo_ConverseResponse proto.InternalMessageInfo
  636. type isConverseResponse_ConverseResponse interface {
  637. isConverseResponse_ConverseResponse()
  638. }
  639. type ConverseResponse_Error struct {
  640. Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
  641. }
  642. type ConverseResponse_EventType_ struct {
  643. EventType ConverseResponse_EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=google.assistant.embedded.v1alpha1.ConverseResponse_EventType,oneof"`
  644. }
  645. type ConverseResponse_AudioOut struct {
  646. AudioOut *AudioOut `protobuf:"bytes,3,opt,name=audio_out,json=audioOut,proto3,oneof"`
  647. }
  648. type ConverseResponse_Result struct {
  649. Result *ConverseResult `protobuf:"bytes,5,opt,name=result,proto3,oneof"`
  650. }
  651. func (*ConverseResponse_Error) isConverseResponse_ConverseResponse() {}
  652. func (*ConverseResponse_EventType_) isConverseResponse_ConverseResponse() {}
  653. func (*ConverseResponse_AudioOut) isConverseResponse_ConverseResponse() {}
  654. func (*ConverseResponse_Result) isConverseResponse_ConverseResponse() {}
  655. func (m *ConverseResponse) GetConverseResponse() isConverseResponse_ConverseResponse {
  656. if m != nil {
  657. return m.ConverseResponse
  658. }
  659. return nil
  660. }
  661. func (m *ConverseResponse) GetError() *status.Status {
  662. if x, ok := m.GetConverseResponse().(*ConverseResponse_Error); ok {
  663. return x.Error
  664. }
  665. return nil
  666. }
  667. func (m *ConverseResponse) GetEventType() ConverseResponse_EventType {
  668. if x, ok := m.GetConverseResponse().(*ConverseResponse_EventType_); ok {
  669. return x.EventType
  670. }
  671. return ConverseResponse_EVENT_TYPE_UNSPECIFIED
  672. }
  673. func (m *ConverseResponse) GetAudioOut() *AudioOut {
  674. if x, ok := m.GetConverseResponse().(*ConverseResponse_AudioOut); ok {
  675. return x.AudioOut
  676. }
  677. return nil
  678. }
  679. func (m *ConverseResponse) GetResult() *ConverseResult {
  680. if x, ok := m.GetConverseResponse().(*ConverseResponse_Result); ok {
  681. return x.Result
  682. }
  683. return nil
  684. }
  685. // XXX_OneofFuncs is for the internal use of the proto package.
  686. func (*ConverseResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  687. return _ConverseResponse_OneofMarshaler, _ConverseResponse_OneofUnmarshaler, _ConverseResponse_OneofSizer, []interface{}{
  688. (*ConverseResponse_Error)(nil),
  689. (*ConverseResponse_EventType_)(nil),
  690. (*ConverseResponse_AudioOut)(nil),
  691. (*ConverseResponse_Result)(nil),
  692. }
  693. }
  694. func _ConverseResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  695. m := msg.(*ConverseResponse)
  696. // converse_response
  697. switch x := m.ConverseResponse.(type) {
  698. case *ConverseResponse_Error:
  699. b.EncodeVarint(1<<3 | proto.WireBytes)
  700. if err := b.EncodeMessage(x.Error); err != nil {
  701. return err
  702. }
  703. case *ConverseResponse_EventType_:
  704. b.EncodeVarint(2<<3 | proto.WireVarint)
  705. b.EncodeVarint(uint64(x.EventType))
  706. case *ConverseResponse_AudioOut:
  707. b.EncodeVarint(3<<3 | proto.WireBytes)
  708. if err := b.EncodeMessage(x.AudioOut); err != nil {
  709. return err
  710. }
  711. case *ConverseResponse_Result:
  712. b.EncodeVarint(5<<3 | proto.WireBytes)
  713. if err := b.EncodeMessage(x.Result); err != nil {
  714. return err
  715. }
  716. case nil:
  717. default:
  718. return fmt.Errorf("ConverseResponse.ConverseResponse has unexpected type %T", x)
  719. }
  720. return nil
  721. }
  722. func _ConverseResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  723. m := msg.(*ConverseResponse)
  724. switch tag {
  725. case 1: // converse_response.error
  726. if wire != proto.WireBytes {
  727. return true, proto.ErrInternalBadWireType
  728. }
  729. msg := new(status.Status)
  730. err := b.DecodeMessage(msg)
  731. m.ConverseResponse = &ConverseResponse_Error{msg}
  732. return true, err
  733. case 2: // converse_response.event_type
  734. if wire != proto.WireVarint {
  735. return true, proto.ErrInternalBadWireType
  736. }
  737. x, err := b.DecodeVarint()
  738. m.ConverseResponse = &ConverseResponse_EventType_{ConverseResponse_EventType(x)}
  739. return true, err
  740. case 3: // converse_response.audio_out
  741. if wire != proto.WireBytes {
  742. return true, proto.ErrInternalBadWireType
  743. }
  744. msg := new(AudioOut)
  745. err := b.DecodeMessage(msg)
  746. m.ConverseResponse = &ConverseResponse_AudioOut{msg}
  747. return true, err
  748. case 5: // converse_response.result
  749. if wire != proto.WireBytes {
  750. return true, proto.ErrInternalBadWireType
  751. }
  752. msg := new(ConverseResult)
  753. err := b.DecodeMessage(msg)
  754. m.ConverseResponse = &ConverseResponse_Result{msg}
  755. return true, err
  756. default:
  757. return false, nil
  758. }
  759. }
  760. func _ConverseResponse_OneofSizer(msg proto.Message) (n int) {
  761. m := msg.(*ConverseResponse)
  762. // converse_response
  763. switch x := m.ConverseResponse.(type) {
  764. case *ConverseResponse_Error:
  765. s := proto.Size(x.Error)
  766. n += 1 // tag and wire
  767. n += proto.SizeVarint(uint64(s))
  768. n += s
  769. case *ConverseResponse_EventType_:
  770. n += 1 // tag and wire
  771. n += proto.SizeVarint(uint64(x.EventType))
  772. case *ConverseResponse_AudioOut:
  773. s := proto.Size(x.AudioOut)
  774. n += 1 // tag and wire
  775. n += proto.SizeVarint(uint64(s))
  776. n += s
  777. case *ConverseResponse_Result:
  778. s := proto.Size(x.Result)
  779. n += 1 // tag and wire
  780. n += proto.SizeVarint(uint64(s))
  781. n += s
  782. case nil:
  783. default:
  784. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  785. }
  786. return n
  787. }
  788. func init() {
  789. proto.RegisterType((*ConverseConfig)(nil), "google.assistant.embedded.v1alpha1.ConverseConfig")
  790. proto.RegisterType((*AudioInConfig)(nil), "google.assistant.embedded.v1alpha1.AudioInConfig")
  791. proto.RegisterType((*AudioOutConfig)(nil), "google.assistant.embedded.v1alpha1.AudioOutConfig")
  792. proto.RegisterType((*ConverseState)(nil), "google.assistant.embedded.v1alpha1.ConverseState")
  793. proto.RegisterType((*AudioOut)(nil), "google.assistant.embedded.v1alpha1.AudioOut")
  794. proto.RegisterType((*ConverseResult)(nil), "google.assistant.embedded.v1alpha1.ConverseResult")
  795. proto.RegisterType((*ConverseRequest)(nil), "google.assistant.embedded.v1alpha1.ConverseRequest")
  796. proto.RegisterType((*ConverseResponse)(nil), "google.assistant.embedded.v1alpha1.ConverseResponse")
  797. proto.RegisterEnum("google.assistant.embedded.v1alpha1.AudioInConfig_Encoding", AudioInConfig_Encoding_name, AudioInConfig_Encoding_value)
  798. proto.RegisterEnum("google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding", AudioOutConfig_Encoding_name, AudioOutConfig_Encoding_value)
  799. proto.RegisterEnum("google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode", ConverseResult_MicrophoneMode_name, ConverseResult_MicrophoneMode_value)
  800. proto.RegisterEnum("google.assistant.embedded.v1alpha1.ConverseResponse_EventType", ConverseResponse_EventType_name, ConverseResponse_EventType_value)
  801. }
  802. // Reference imports to suppress errors if they are not otherwise used.
  803. var _ context.Context
  804. var _ grpc.ClientConn
  805. // This is a compile-time assertion to ensure that this generated file
  806. // is compatible with the grpc package it is being compiled against.
  807. const _ = grpc.SupportPackageIsVersion4
  808. // EmbeddedAssistantClient is the client API for EmbeddedAssistant service.
  809. //
  810. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  811. type EmbeddedAssistantClient interface {
  812. // Initiates or continues a conversation with the embedded assistant service.
  813. // Each call performs one round-trip, sending an audio request to the service
  814. // and receiving the audio response. Uses bidirectional streaming to receive
  815. // results, such as the `END_OF_UTTERANCE` event, while sending audio.
  816. //
  817. // A conversation is one or more gRPC connections, each consisting of several
  818. // streamed requests and responses.
  819. // For example, the user says *Add to my shopping list* and the assistant
  820. // responds *What do you want to add?*. The sequence of streamed requests and
  821. // responses in the first gRPC message could be:
  822. //
  823. // * ConverseRequest.config
  824. // * ConverseRequest.audio_in
  825. // * ConverseRequest.audio_in
  826. // * ConverseRequest.audio_in
  827. // * ConverseRequest.audio_in
  828. // * ConverseResponse.event_type.END_OF_UTTERANCE
  829. // * ConverseResponse.result.microphone_mode.DIALOG_FOLLOW_ON
  830. // * ConverseResponse.audio_out
  831. // * ConverseResponse.audio_out
  832. // * ConverseResponse.audio_out
  833. //
  834. // The user then says *bagels* and the assistant responds
  835. // *OK, I've added bagels to your shopping list*. This is sent as another gRPC
  836. // connection call to the `Converse` method, again with streamed requests and
  837. // responses, such as:
  838. //
  839. // * ConverseRequest.config
  840. // * ConverseRequest.audio_in
  841. // * ConverseRequest.audio_in
  842. // * ConverseRequest.audio_in
  843. // * ConverseResponse.event_type.END_OF_UTTERANCE
  844. // * ConverseResponse.result.microphone_mode.CLOSE_MICROPHONE
  845. // * ConverseResponse.audio_out
  846. // * ConverseResponse.audio_out
  847. // * ConverseResponse.audio_out
  848. // * ConverseResponse.audio_out
  849. //
  850. // Although the precise order of responses is not guaranteed, sequential
  851. // ConverseResponse.audio_out messages will always contain sequential portions
  852. // of audio.
  853. Converse(ctx context.Context, opts ...grpc.CallOption) (EmbeddedAssistant_ConverseClient, error)
  854. }
  855. type embeddedAssistantClient struct {
  856. cc *grpc.ClientConn
  857. }
  858. func NewEmbeddedAssistantClient(cc *grpc.ClientConn) EmbeddedAssistantClient {
  859. return &embeddedAssistantClient{cc}
  860. }
  861. func (c *embeddedAssistantClient) Converse(ctx context.Context, opts ...grpc.CallOption) (EmbeddedAssistant_ConverseClient, error) {
  862. stream, err := c.cc.NewStream(ctx, &_EmbeddedAssistant_serviceDesc.Streams[0], "/google.assistant.embedded.v1alpha1.EmbeddedAssistant/Converse", opts...)
  863. if err != nil {
  864. return nil, err
  865. }
  866. x := &embeddedAssistantConverseClient{stream}
  867. return x, nil
  868. }
  869. type EmbeddedAssistant_ConverseClient interface {
  870. Send(*ConverseRequest) error
  871. Recv() (*ConverseResponse, error)
  872. grpc.ClientStream
  873. }
  874. type embeddedAssistantConverseClient struct {
  875. grpc.ClientStream
  876. }
  877. func (x *embeddedAssistantConverseClient) Send(m *ConverseRequest) error {
  878. return x.ClientStream.SendMsg(m)
  879. }
  880. func (x *embeddedAssistantConverseClient) Recv() (*ConverseResponse, error) {
  881. m := new(ConverseResponse)
  882. if err := x.ClientStream.RecvMsg(m); err != nil {
  883. return nil, err
  884. }
  885. return m, nil
  886. }
  887. // EmbeddedAssistantServer is the server API for EmbeddedAssistant service.
  888. type EmbeddedAssistantServer interface {
  889. // Initiates or continues a conversation with the embedded assistant service.
  890. // Each call performs one round-trip, sending an audio request to the service
  891. // and receiving the audio response. Uses bidirectional streaming to receive
  892. // results, such as the `END_OF_UTTERANCE` event, while sending audio.
  893. //
  894. // A conversation is one or more gRPC connections, each consisting of several
  895. // streamed requests and responses.
  896. // For example, the user says *Add to my shopping list* and the assistant
  897. // responds *What do you want to add?*. The sequence of streamed requests and
  898. // responses in the first gRPC message could be:
  899. //
  900. // * ConverseRequest.config
  901. // * ConverseRequest.audio_in
  902. // * ConverseRequest.audio_in
  903. // * ConverseRequest.audio_in
  904. // * ConverseRequest.audio_in
  905. // * ConverseResponse.event_type.END_OF_UTTERANCE
  906. // * ConverseResponse.result.microphone_mode.DIALOG_FOLLOW_ON
  907. // * ConverseResponse.audio_out
  908. // * ConverseResponse.audio_out
  909. // * ConverseResponse.audio_out
  910. //
  911. // The user then says *bagels* and the assistant responds
  912. // *OK, I've added bagels to your shopping list*. This is sent as another gRPC
  913. // connection call to the `Converse` method, again with streamed requests and
  914. // responses, such as:
  915. //
  916. // * ConverseRequest.config
  917. // * ConverseRequest.audio_in
  918. // * ConverseRequest.audio_in
  919. // * ConverseRequest.audio_in
  920. // * ConverseResponse.event_type.END_OF_UTTERANCE
  921. // * ConverseResponse.result.microphone_mode.CLOSE_MICROPHONE
  922. // * ConverseResponse.audio_out
  923. // * ConverseResponse.audio_out
  924. // * ConverseResponse.audio_out
  925. // * ConverseResponse.audio_out
  926. //
  927. // Although the precise order of responses is not guaranteed, sequential
  928. // ConverseResponse.audio_out messages will always contain sequential portions
  929. // of audio.
  930. Converse(EmbeddedAssistant_ConverseServer) error
  931. }
  932. func RegisterEmbeddedAssistantServer(s *grpc.Server, srv EmbeddedAssistantServer) {
  933. s.RegisterService(&_EmbeddedAssistant_serviceDesc, srv)
  934. }
  935. func _EmbeddedAssistant_Converse_Handler(srv interface{}, stream grpc.ServerStream) error {
  936. return srv.(EmbeddedAssistantServer).Converse(&embeddedAssistantConverseServer{stream})
  937. }
  938. type EmbeddedAssistant_ConverseServer interface {
  939. Send(*ConverseResponse) error
  940. Recv() (*ConverseRequest, error)
  941. grpc.ServerStream
  942. }
  943. type embeddedAssistantConverseServer struct {
  944. grpc.ServerStream
  945. }
  946. func (x *embeddedAssistantConverseServer) Send(m *ConverseResponse) error {
  947. return x.ServerStream.SendMsg(m)
  948. }
  949. func (x *embeddedAssistantConverseServer) Recv() (*ConverseRequest, error) {
  950. m := new(ConverseRequest)
  951. if err := x.ServerStream.RecvMsg(m); err != nil {
  952. return nil, err
  953. }
  954. return m, nil
  955. }
  956. var _EmbeddedAssistant_serviceDesc = grpc.ServiceDesc{
  957. ServiceName: "google.assistant.embedded.v1alpha1.EmbeddedAssistant",
  958. HandlerType: (*EmbeddedAssistantServer)(nil),
  959. Methods: []grpc.MethodDesc{},
  960. Streams: []grpc.StreamDesc{
  961. {
  962. StreamName: "Converse",
  963. Handler: _EmbeddedAssistant_Converse_Handler,
  964. ServerStreams: true,
  965. ClientStreams: true,
  966. },
  967. },
  968. Metadata: "google/assistant/embedded/v1alpha1/embedded_assistant.proto",
  969. }
  970. func init() {
  971. proto.RegisterFile("google/assistant/embedded/v1alpha1/embedded_assistant.proto", fileDescriptor_embedded_assistant_907a82b6d4d77187)
  972. }
  973. var fileDescriptor_embedded_assistant_907a82b6d4d77187 = []byte{
  974. // 892 bytes of a gzipped FileDescriptorProto
  975. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x51, 0x73, 0xdb, 0x44,
  976. 0x10, 0xb6, 0xec, 0xa6, 0xb5, 0xb7, 0x89, 0x2c, 0x5f, 0x33, 0x90, 0x49, 0x61, 0x60, 0xf4, 0xc0,
  977. 0x94, 0x02, 0x72, 0xe3, 0x30, 0x3c, 0x10, 0xe8, 0x8c, 0x63, 0x2b, 0xb1, 0xc1, 0x96, 0x3c, 0x67,
  978. 0xa7, 0xa5, 0x0c, 0xcc, 0xcd, 0x55, 0x3e, 0x1c, 0x81, 0x7d, 0x27, 0xa4, 0x73, 0xa6, 0xe1, 0x07,
  979. 0xf0, 0xd8, 0xe1, 0x95, 0x67, 0x7e, 0x11, 0xff, 0x88, 0xd1, 0x9d, 0xa4, 0xd8, 0x90, 0x42, 0x1c,
  980. 0x1e, 0x6f, 0xf7, 0xbe, 0x4f, 0xbb, 0xdf, 0x7e, 0xb7, 0x23, 0x38, 0x9a, 0x09, 0x31, 0x9b, 0xb3,
  981. 0x26, 0x4d, 0x92, 0x30, 0x91, 0x94, 0xcb, 0x26, 0x5b, 0xbc, 0x64, 0xd3, 0x29, 0x9b, 0x36, 0x2f,
  982. 0x0e, 0xe8, 0x3c, 0x3a, 0xa7, 0x07, 0x45, 0x84, 0x14, 0x97, 0x9c, 0x28, 0x16, 0x52, 0x20, 0x5b,
  983. 0x83, 0x9d, 0xab, 0x78, 0x7e, 0xd5, 0xc9, 0xc1, 0xfb, 0xef, 0xe4, 0x1f, 0x88, 0xc2, 0x26, 0xe5,
  984. 0x5c, 0x48, 0x2a, 0x43, 0xc1, 0x13, 0xcd, 0xb0, 0xff, 0x76, 0x96, 0x8d, 0xa3, 0xa0, 0x99, 0x48,
  985. 0x2a, 0x97, 0x59, 0xc2, 0xfe, 0xa3, 0x0c, 0x66, 0x47, 0xf0, 0x0b, 0x16, 0x27, 0xac, 0x23, 0xf8,
  986. 0x0f, 0xe1, 0x0c, 0xbd, 0x80, 0x3a, 0x5d, 0x4e, 0x43, 0x41, 0x42, 0x4e, 0x02, 0x15, 0xda, 0x33,
  987. 0xde, 0x37, 0x1e, 0xdd, 0x6f, 0x1d, 0x38, 0xff, 0x5d, 0x87, 0xd3, 0x4e, 0xa1, 0x7d, 0xae, 0xb9,
  988. 0xf0, 0x0e, 0x5d, 0x3d, 0xa2, 0xef, 0xc0, 0xd2, 0xd4, 0x62, 0x29, 0x73, 0xee, 0xb2, 0xe2, 0x6e,
  989. 0xdd, 0x98, 0xdb, 0x5f, 0xca, 0x8c, 0xdc, 0xa4, 0x6b, 0x67, 0xf4, 0x0d, 0x98, 0x41, 0xd6, 0x0a,
  990. 0x49, 0x9b, 0x64, 0x7b, 0x95, 0x9b, 0xd7, 0x9d, 0x8b, 0x30, 0x4e, 0x81, 0x78, 0x27, 0x58, 0x3d,
  991. 0xda, 0x7f, 0x1a, 0xb0, 0xb3, 0xd6, 0x18, 0x7a, 0x06, 0x55, 0xc6, 0x03, 0x31, 0x0d, 0xb9, 0x56,
  992. 0xc7, 0x6c, 0x7d, 0xbe, 0xb1, 0x3a, 0x8e, 0x9b, 0x31, 0xe0, 0x82, 0x0b, 0x3d, 0x86, 0x46, 0x42,
  993. 0x17, 0xd1, 0x9c, 0x91, 0x98, 0x4a, 0x46, 0xce, 0x59, 0x2c, 0x7f, 0x51, 0x12, 0x6d, 0xe1, 0xba,
  994. 0x4e, 0x60, 0x2a, 0x59, 0x2f, 0x0d, 0xdb, 0x5f, 0x40, 0x35, 0x67, 0x40, 0x7b, 0xb0, 0xeb, 0x7a,
  995. 0x1d, 0xbf, 0xdb, 0xf7, 0x4e, 0xc9, 0x99, 0x37, 0x1e, 0xb9, 0x9d, 0xfe, 0x49, 0xdf, 0xed, 0x5a,
  996. 0x25, 0xb4, 0x0d, 0xd5, 0x41, 0xdf, 0x73, 0xdb, 0xf8, 0xe0, 0x33, 0xcb, 0x40, 0x55, 0xb8, 0x73,
  997. 0x32, 0x68, 0x77, 0xac, 0xb2, 0xfd, 0x5b, 0x19, 0xcc, 0x75, 0x41, 0xd1, 0xf3, 0x7f, 0x34, 0x75,
  998. 0xb4, 0xf9, 0x58, 0xfe, 0x67, 0x57, 0xe8, 0x23, 0x68, 0x5c, 0x88, 0xf9, 0x72, 0xc1, 0x48, 0xc4,
  999. 0xe2, 0x80, 0x71, 0x49, 0x67, 0x7a, 0x90, 0x5b, 0xd8, 0xd2, 0x89, 0x51, 0x11, 0xb7, 0x07, 0xb7,
  1000. 0x90, 0xe0, 0x1e, 0x54, 0x86, 0xa3, 0x43, 0xab, 0x8c, 0xea, 0x70, 0xdf, 0x1f, 0x9d, 0x8d, 0x49,
  1001. 0xdf, 0x23, 0xfe, 0xe9, 0xa9, 0x55, 0xb1, 0x9f, 0xc2, 0xce, 0x9a, 0x0d, 0xd0, 0x27, 0x80, 0x32,
  1002. 0x23, 0xa8, 0xd7, 0x94, 0xb9, 0x2a, 0x95, 0x66, 0x1b, 0x37, 0x56, 0x33, 0xda, 0x26, 0x1f, 0x42,
  1003. 0x35, 0xd7, 0x02, 0xbd, 0x0b, 0xa0, 0xad, 0x3e, 0xa5, 0x92, 0x66, 0x90, 0x9a, 0x8a, 0x74, 0xa9,
  1004. 0xa4, 0xf6, 0xef, 0x95, 0xab, 0x77, 0x87, 0x59, 0xb2, 0x9c, 0x4b, 0xe4, 0xc0, 0x83, 0x24, 0x12,
  1005. 0x3f, 0x31, 0x4e, 0x62, 0xf6, 0xf3, 0x92, 0x25, 0x92, 0x48, 0xf6, 0x4a, 0x2a, 0x68, 0x0d, 0x37,
  1006. 0x74, 0x0a, 0xeb, 0xcc, 0x84, 0xbd, 0x92, 0xe8, 0x09, 0xec, 0x16, 0xf7, 0x93, 0x48, 0xf0, 0x84,
  1007. 0x69, 0x40, 0x59, 0x01, 0x50, 0x0e, 0xd0, 0x29, 0x85, 0xb8, 0xbe, 0x9d, 0xca, 0x1b, 0xda, 0x41,
  1008. 0x3f, 0x42, 0x7d, 0x11, 0x06, 0xb1, 0x88, 0xce, 0x05, 0x67, 0x64, 0x21, 0xa6, 0x6c, 0xef, 0x8e,
  1009. 0x72, 0x45, 0x7b, 0x93, 0x07, 0xa5, 0xbb, 0x73, 0x86, 0x05, 0xd3, 0x50, 0x4c, 0x19, 0x36, 0x17,
  1010. 0x6b, 0xe7, 0xeb, 0xa7, 0xbe, 0xf5, 0x86, 0xa9, 0x7f, 0x0f, 0xe6, 0x3a, 0x1d, 0x7a, 0x0f, 0x1e,
  1011. 0x0e, 0xfb, 0x1d, 0xec, 0x8f, 0x7a, 0xbe, 0xe7, 0x92, 0xa1, 0xdf, 0x75, 0xff, 0x66, 0x81, 0x5d,
  1012. 0xb0, 0x3a, 0x03, 0x7f, 0xec, 0x92, 0xab, 0x6b, 0x96, 0x91, 0x46, 0xbb, 0xfd, 0xf6, 0xc0, 0x3f,
  1013. 0x25, 0x27, 0xfe, 0x60, 0xe0, 0x3f, 0x27, 0xbe, 0x97, 0xbe, 0x0c, 0x03, 0xea, 0x57, 0xd5, 0x2b,
  1014. 0xc1, 0xd1, 0x00, 0xee, 0xae, 0xed, 0xc2, 0xd6, 0x26, 0x12, 0xe8, 0x87, 0xd1, 0x2b, 0xe1, 0x8c,
  1015. 0x03, 0x3d, 0x84, 0x6a, 0xbe, 0x62, 0xd5, 0xb8, 0xb6, 0x7b, 0x25, 0x7c, 0x2f, 0x5b, 0x95, 0xc7,
  1016. 0x08, 0xac, 0x62, 0x8d, 0x65, 0x4e, 0xb0, 0x5f, 0x57, 0xc0, 0x5a, 0x11, 0x54, 0x8d, 0x14, 0x3d,
  1017. 0x86, 0x2d, 0x16, 0xc7, 0x22, 0xce, 0x4a, 0x42, 0x79, 0x49, 0x71, 0x14, 0x38, 0x63, 0xb5, 0xe4,
  1018. 0x7b, 0x25, 0xac, 0xaf, 0x20, 0x02, 0xc0, 0x2e, 0x18, 0x97, 0x44, 0x5e, 0x46, 0x4c, 0x7d, 0xd3,
  1019. 0x6c, 0x3d, 0xdd, 0x70, 0x8c, 0xea, 0xab, 0x8e, 0x9b, 0xd2, 0x4c, 0x2e, 0x23, 0xd6, 0x2b, 0xe1,
  1020. 0x1a, 0xcb, 0x0f, 0xe8, 0x6b, 0xa8, 0x15, 0xab, 0x3d, 0xdb, 0xbb, 0x1f, 0x6f, 0xb2, 0x3c, 0x7a,
  1021. 0x25, 0x5c, 0xcd, 0xf7, 0x79, 0xaa, 0x76, 0xac, 0x6c, 0xa3, 0x2c, 0xb0, 0xa1, 0xda, 0xda, 0x70,
  1022. 0xa9, 0xda, 0x9a, 0xc3, 0xfe, 0x12, 0x6a, 0x45, 0xd1, 0x68, 0x1f, 0xde, 0x72, 0x9f, 0xb9, 0xde,
  1023. 0x84, 0x4c, 0x5e, 0x8c, 0xae, 0x31, 0x89, 0xeb, 0x75, 0x89, 0x7f, 0x42, 0xce, 0x26, 0x13, 0x17,
  1024. 0xb7, 0xbd, 0x8e, 0x6b, 0x19, 0xc7, 0x0f, 0xa0, 0xb1, 0x32, 0x0f, 0xad, 0x42, 0xeb, 0xb5, 0x01,
  1025. 0x0d, 0x37, 0x2b, 0xa1, 0x9d, 0x17, 0x85, 0x2e, 0xa1, 0x9a, 0x57, 0x81, 0x0e, 0x37, 0xab, 0x59,
  1026. 0xcd, 0x79, 0xff, 0xd3, 0xdb, 0x8c, 0xe4, 0x91, 0xf1, 0xc4, 0x38, 0xfe, 0xd5, 0x80, 0x0f, 0x02,
  1027. 0xb1, 0xb8, 0x01, 0xfe, 0xd8, 0x2c, 0x0a, 0x1e, 0xa5, 0xff, 0x00, 0x23, 0xe3, 0xdb, 0xaf, 0x32,
  1028. 0xd4, 0x4c, 0xcc, 0x29, 0x9f, 0x39, 0x22, 0x9e, 0x35, 0x67, 0x8c, 0xab, 0x3f, 0x84, 0xa6, 0x4e,
  1029. 0xd1, 0x28, 0x4c, 0xfe, 0xed, 0xe7, 0xe5, 0x28, 0x8f, 0xbc, 0xbc, 0xab, 0x60, 0x87, 0x7f, 0x05,
  1030. 0x00, 0x00, 0xff, 0xff, 0xec, 0x7a, 0x68, 0xfa, 0xf2, 0x08, 0x00, 0x00,
  1031. }