mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
@ -1,29 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/assistant/embedded/v1alpha1/embedded_assistant.proto
|
||||
|
||||
/*
|
||||
Package embedded is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/assistant/embedded/v1alpha1/embedded_assistant.proto
|
||||
|
||||
It has these top-level messages:
|
||||
ConverseConfig
|
||||
AudioInConfig
|
||||
AudioOutConfig
|
||||
ConverseState
|
||||
AudioOut
|
||||
ConverseResult
|
||||
ConverseRequest
|
||||
ConverseResponse
|
||||
*/
|
||||
package embedded
|
||||
package embedded // import "google.golang.org/genproto/googleapis/assistant/embedded/v1alpha1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
|
||||
import status "google.golang.org/genproto/googleapis/rpc/status"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
@ -75,7 +59,9 @@ var AudioInConfig_Encoding_value = map[string]int32{
|
||||
func (x AudioInConfig_Encoding) String() string {
|
||||
return proto.EnumName(AudioInConfig_Encoding_name, int32(x))
|
||||
}
|
||||
func (AudioInConfig_Encoding) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
|
||||
func (AudioInConfig_Encoding) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{1, 0}
|
||||
}
|
||||
|
||||
// Audio encoding of the data returned in the audio message. All encodings are
|
||||
// raw audio bytes with no header, except as indicated below.
|
||||
@ -111,7 +97,9 @@ var AudioOutConfig_Encoding_value = map[string]int32{
|
||||
func (x AudioOutConfig_Encoding) String() string {
|
||||
return proto.EnumName(AudioOutConfig_Encoding_name, int32(x))
|
||||
}
|
||||
func (AudioOutConfig_Encoding) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
|
||||
func (AudioOutConfig_Encoding) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{2, 0}
|
||||
}
|
||||
|
||||
// Possible states of the microphone after a `Converse` RPC completes.
|
||||
type ConverseResult_MicrophoneMode int32
|
||||
@ -143,7 +131,7 @@ func (x ConverseResult_MicrophoneMode) String() string {
|
||||
return proto.EnumName(ConverseResult_MicrophoneMode_name, int32(x))
|
||||
}
|
||||
func (ConverseResult_MicrophoneMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor0, []int{5, 0}
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{5, 0}
|
||||
}
|
||||
|
||||
// Indicates the type of event.
|
||||
@ -174,23 +162,45 @@ func (x ConverseResponse_EventType) String() string {
|
||||
return proto.EnumName(ConverseResponse_EventType_name, int32(x))
|
||||
}
|
||||
func (ConverseResponse_EventType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor0, []int{7, 0}
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{7, 0}
|
||||
}
|
||||
|
||||
// Specifies how to process the `ConverseRequest` messages.
|
||||
type ConverseConfig struct {
|
||||
// *Required* Specifies how to process the subsequent incoming audio.
|
||||
AudioInConfig *AudioInConfig `protobuf:"bytes,1,opt,name=audio_in_config,json=audioInConfig" json:"audio_in_config,omitempty"`
|
||||
AudioInConfig *AudioInConfig `protobuf:"bytes,1,opt,name=audio_in_config,json=audioInConfig,proto3" json:"audio_in_config,omitempty"`
|
||||
// *Required* Specifies how to format the audio that will be returned.
|
||||
AudioOutConfig *AudioOutConfig `protobuf:"bytes,2,opt,name=audio_out_config,json=audioOutConfig" json:"audio_out_config,omitempty"`
|
||||
AudioOutConfig *AudioOutConfig `protobuf:"bytes,2,opt,name=audio_out_config,json=audioOutConfig,proto3" json:"audio_out_config,omitempty"`
|
||||
// *Required* Represents the current dialog state.
|
||||
ConverseState *ConverseState `protobuf:"bytes,3,opt,name=converse_state,json=converseState" json:"converse_state,omitempty"`
|
||||
ConverseState *ConverseState `protobuf:"bytes,3,opt,name=converse_state,json=converseState,proto3" json:"converse_state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ConverseConfig) Reset() { *m = ConverseConfig{} }
|
||||
func (m *ConverseConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseConfig) ProtoMessage() {}
|
||||
func (*ConverseConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *ConverseConfig) Reset() { *m = ConverseConfig{} }
|
||||
func (m *ConverseConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseConfig) ProtoMessage() {}
|
||||
func (*ConverseConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{0}
|
||||
}
|
||||
func (m *ConverseConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ConverseConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ConverseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ConverseConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ConverseConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ConverseConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *ConverseConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_ConverseConfig.Size(m)
|
||||
}
|
||||
func (m *ConverseConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ConverseConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ConverseConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *ConverseConfig) GetAudioInConfig() *AudioInConfig {
|
||||
if m != nil {
|
||||
@ -218,19 +228,41 @@ func (m *ConverseConfig) GetConverseState() *ConverseState {
|
||||
// [best practices](https://developers.google.com/assistant/sdk/develop/grpc/best-practices/audio).
|
||||
type AudioInConfig struct {
|
||||
// *Required* Encoding of audio data sent in all `audio_in` messages.
|
||||
Encoding AudioInConfig_Encoding `protobuf:"varint,1,opt,name=encoding,enum=google.assistant.embedded.v1alpha1.AudioInConfig_Encoding" json:"encoding,omitempty"`
|
||||
Encoding AudioInConfig_Encoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.assistant.embedded.v1alpha1.AudioInConfig_Encoding" json:"encoding,omitempty"`
|
||||
// *Required* Sample rate (in Hertz) of the audio data sent in all `audio_in`
|
||||
// messages. Valid values are from 16000-24000, but 16000 is optimal.
|
||||
// For best results, set the sampling rate of the audio source to 16000 Hz.
|
||||
// If that's not possible, use the native sample rate of the audio source
|
||||
// (instead of re-sampling).
|
||||
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz" json:"sample_rate_hertz,omitempty"`
|
||||
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AudioInConfig) Reset() { *m = AudioInConfig{} }
|
||||
func (m *AudioInConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*AudioInConfig) ProtoMessage() {}
|
||||
func (*AudioInConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *AudioInConfig) Reset() { *m = AudioInConfig{} }
|
||||
func (m *AudioInConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*AudioInConfig) ProtoMessage() {}
|
||||
func (*AudioInConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{1}
|
||||
}
|
||||
func (m *AudioInConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AudioInConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AudioInConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AudioInConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AudioInConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AudioInConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *AudioInConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_AudioInConfig.Size(m)
|
||||
}
|
||||
func (m *AudioInConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AudioInConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AudioInConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *AudioInConfig) GetEncoding() AudioInConfig_Encoding {
|
||||
if m != nil {
|
||||
@ -251,19 +283,41 @@ func (m *AudioInConfig) GetSampleRateHertz() int32 {
|
||||
type AudioOutConfig struct {
|
||||
// *Required* The encoding of audio data to be returned in all `audio_out`
|
||||
// messages.
|
||||
Encoding AudioOutConfig_Encoding `protobuf:"varint,1,opt,name=encoding,enum=google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding" json:"encoding,omitempty"`
|
||||
Encoding AudioOutConfig_Encoding `protobuf:"varint,1,opt,name=encoding,proto3,enum=google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding" json:"encoding,omitempty"`
|
||||
// *Required* The sample rate in Hertz of the audio data returned in
|
||||
// `audio_out` messages. Valid values are: 16000-24000.
|
||||
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz" json:"sample_rate_hertz,omitempty"`
|
||||
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
|
||||
// *Required* Current volume setting of the device's audio output.
|
||||
// Valid values are 1 to 100 (corresponding to 1% to 100%).
|
||||
VolumePercentage int32 `protobuf:"varint,3,opt,name=volume_percentage,json=volumePercentage" json:"volume_percentage,omitempty"`
|
||||
VolumePercentage int32 `protobuf:"varint,3,opt,name=volume_percentage,json=volumePercentage,proto3" json:"volume_percentage,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AudioOutConfig) Reset() { *m = AudioOutConfig{} }
|
||||
func (m *AudioOutConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*AudioOutConfig) ProtoMessage() {}
|
||||
func (*AudioOutConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *AudioOutConfig) Reset() { *m = AudioOutConfig{} }
|
||||
func (m *AudioOutConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*AudioOutConfig) ProtoMessage() {}
|
||||
func (*AudioOutConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{2}
|
||||
}
|
||||
func (m *AudioOutConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AudioOutConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AudioOutConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AudioOutConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AudioOutConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AudioOutConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *AudioOutConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_AudioOutConfig.Size(m)
|
||||
}
|
||||
func (m *AudioOutConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AudioOutConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AudioOutConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *AudioOutConfig) GetEncoding() AudioOutConfig_Encoding {
|
||||
if m != nil {
|
||||
@ -293,13 +347,35 @@ type ConverseState struct {
|
||||
// `ConverseResponse`. If there was a prior `ConverseResponse`, do not omit
|
||||
// this field; doing so will end that conversation (and this new request will
|
||||
// start a new conversation).
|
||||
ConversationState []byte `protobuf:"bytes,1,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
|
||||
ConversationState []byte `protobuf:"bytes,1,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ConverseState) Reset() { *m = ConverseState{} }
|
||||
func (m *ConverseState) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseState) ProtoMessage() {}
|
||||
func (*ConverseState) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
func (m *ConverseState) Reset() { *m = ConverseState{} }
|
||||
func (m *ConverseState) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseState) ProtoMessage() {}
|
||||
func (*ConverseState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{3}
|
||||
}
|
||||
func (m *ConverseState) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ConverseState.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ConverseState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ConverseState.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ConverseState) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ConverseState.Merge(dst, src)
|
||||
}
|
||||
func (m *ConverseState) XXX_Size() int {
|
||||
return xxx_messageInfo_ConverseState.Size(m)
|
||||
}
|
||||
func (m *ConverseState) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ConverseState.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ConverseState proto.InternalMessageInfo
|
||||
|
||||
func (m *ConverseState) GetConversationState() []byte {
|
||||
if m != nil {
|
||||
@ -314,13 +390,35 @@ type AudioOut struct {
|
||||
// *Output-only* The audio data containing the assistant's response to the
|
||||
// query. Sequential chunks of audio data are received in sequential
|
||||
// `ConverseResponse` messages.
|
||||
AudioData []byte `protobuf:"bytes,1,opt,name=audio_data,json=audioData,proto3" json:"audio_data,omitempty"`
|
||||
AudioData []byte `protobuf:"bytes,1,opt,name=audio_data,json=audioData,proto3" json:"audio_data,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AudioOut) Reset() { *m = AudioOut{} }
|
||||
func (m *AudioOut) String() string { return proto.CompactTextString(m) }
|
||||
func (*AudioOut) ProtoMessage() {}
|
||||
func (*AudioOut) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
func (m *AudioOut) Reset() { *m = AudioOut{} }
|
||||
func (m *AudioOut) String() string { return proto.CompactTextString(m) }
|
||||
func (*AudioOut) ProtoMessage() {}
|
||||
func (*AudioOut) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{4}
|
||||
}
|
||||
func (m *AudioOut) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AudioOut.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AudioOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AudioOut.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AudioOut) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AudioOut.Merge(dst, src)
|
||||
}
|
||||
func (m *AudioOut) XXX_Size() int {
|
||||
return xxx_messageInfo_AudioOut.Size(m)
|
||||
}
|
||||
func (m *AudioOut) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AudioOut.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AudioOut proto.InternalMessageInfo
|
||||
|
||||
func (m *AudioOut) GetAudioData() []byte {
|
||||
if m != nil {
|
||||
@ -332,10 +430,10 @@ func (m *AudioOut) GetAudioData() []byte {
|
||||
// The semantic result for the user's spoken query.
|
||||
type ConverseResult struct {
|
||||
// *Output-only* The recognized transcript of what the user said.
|
||||
SpokenRequestText string `protobuf:"bytes,1,opt,name=spoken_request_text,json=spokenRequestText" json:"spoken_request_text,omitempty"`
|
||||
SpokenRequestText string `protobuf:"bytes,1,opt,name=spoken_request_text,json=spokenRequestText,proto3" json:"spoken_request_text,omitempty"`
|
||||
// *Output-only* The text of the assistant's spoken response. This is only
|
||||
// returned for an IFTTT action.
|
||||
SpokenResponseText string `protobuf:"bytes,2,opt,name=spoken_response_text,json=spokenResponseText" json:"spoken_response_text,omitempty"`
|
||||
SpokenResponseText string `protobuf:"bytes,2,opt,name=spoken_response_text,json=spokenResponseText,proto3" json:"spoken_response_text,omitempty"`
|
||||
// *Output-only* State information for subsequent `ConverseRequest`. This
|
||||
// value should be saved in the client and returned in the
|
||||
// `conversation_state` with the next `ConverseRequest`. (The client does not
|
||||
@ -344,7 +442,7 @@ type ConverseResult struct {
|
||||
ConversationState []byte `protobuf:"bytes,3,opt,name=conversation_state,json=conversationState,proto3" json:"conversation_state,omitempty"`
|
||||
// *Output-only* Specifies the mode of the microphone after this `Converse`
|
||||
// RPC is processed.
|
||||
MicrophoneMode ConverseResult_MicrophoneMode `protobuf:"varint,4,opt,name=microphone_mode,json=microphoneMode,enum=google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode" json:"microphone_mode,omitempty"`
|
||||
MicrophoneMode ConverseResult_MicrophoneMode `protobuf:"varint,4,opt,name=microphone_mode,json=microphoneMode,proto3,enum=google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode" json:"microphone_mode,omitempty"`
|
||||
// *Output-only* Updated volume level. The value will be 0 or omitted
|
||||
// (indicating no change) unless a voice command such as "Increase the volume"
|
||||
// or "Set volume level 4" was recognized, in which case the value will be
|
||||
@ -354,13 +452,35 @@ type ConverseResult struct {
|
||||
// supply it in the `AudioOutConfig` of the next `ConverseRequest`. (Some
|
||||
// clients may also implement other ways to allow the current volume level to
|
||||
// be changed, for example, by providing a knob that the user can turn.)
|
||||
VolumePercentage int32 `protobuf:"varint,5,opt,name=volume_percentage,json=volumePercentage" json:"volume_percentage,omitempty"`
|
||||
VolumePercentage int32 `protobuf:"varint,5,opt,name=volume_percentage,json=volumePercentage,proto3" json:"volume_percentage,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ConverseResult) Reset() { *m = ConverseResult{} }
|
||||
func (m *ConverseResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseResult) ProtoMessage() {}
|
||||
func (*ConverseResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
func (m *ConverseResult) Reset() { *m = ConverseResult{} }
|
||||
func (m *ConverseResult) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseResult) ProtoMessage() {}
|
||||
func (*ConverseResult) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{5}
|
||||
}
|
||||
func (m *ConverseResult) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ConverseResult.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ConverseResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ConverseResult.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ConverseResult) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ConverseResult.Merge(dst, src)
|
||||
}
|
||||
func (m *ConverseResult) XXX_Size() int {
|
||||
return xxx_messageInfo_ConverseResult.Size(m)
|
||||
}
|
||||
func (m *ConverseResult) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ConverseResult.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ConverseResult proto.InternalMessageInfo
|
||||
|
||||
func (m *ConverseResult) GetSpokenRequestText() string {
|
||||
if m != nil {
|
||||
@ -408,26 +528,50 @@ type ConverseRequest struct {
|
||||
// Types that are valid to be assigned to ConverseRequest:
|
||||
// *ConverseRequest_Config
|
||||
// *ConverseRequest_AudioIn
|
||||
ConverseRequest isConverseRequest_ConverseRequest `protobuf_oneof:"converse_request"`
|
||||
ConverseRequest isConverseRequest_ConverseRequest `protobuf_oneof:"converse_request"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ConverseRequest) Reset() { *m = ConverseRequest{} }
|
||||
func (m *ConverseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseRequest) ProtoMessage() {}
|
||||
func (*ConverseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
func (m *ConverseRequest) Reset() { *m = ConverseRequest{} }
|
||||
func (m *ConverseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseRequest) ProtoMessage() {}
|
||||
func (*ConverseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{6}
|
||||
}
|
||||
func (m *ConverseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ConverseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ConverseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ConverseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ConverseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ConverseRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *ConverseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ConverseRequest.Size(m)
|
||||
}
|
||||
func (m *ConverseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ConverseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ConverseRequest proto.InternalMessageInfo
|
||||
|
||||
type isConverseRequest_ConverseRequest interface {
|
||||
isConverseRequest_ConverseRequest()
|
||||
}
|
||||
|
||||
type ConverseRequest_Config struct {
|
||||
Config *ConverseConfig `protobuf:"bytes,1,opt,name=config,oneof"`
|
||||
Config *ConverseConfig `protobuf:"bytes,1,opt,name=config,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ConverseRequest_AudioIn struct {
|
||||
AudioIn []byte `protobuf:"bytes,2,opt,name=audio_in,json=audioIn,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ConverseRequest_Config) isConverseRequest_ConverseRequest() {}
|
||||
func (*ConverseRequest_Config) isConverseRequest_ConverseRequest() {}
|
||||
|
||||
func (*ConverseRequest_AudioIn) isConverseRequest_ConverseRequest() {}
|
||||
|
||||
func (m *ConverseRequest) GetConverseRequest() isConverseRequest_ConverseRequest {
|
||||
@ -507,11 +651,11 @@ func _ConverseRequest_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.ConverseRequest.(type) {
|
||||
case *ConverseRequest_Config:
|
||||
s := proto.Size(x.Config)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *ConverseRequest_AudioIn:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AudioIn)))
|
||||
n += len(x.AudioIn)
|
||||
case nil:
|
||||
@ -531,35 +675,63 @@ type ConverseResponse struct {
|
||||
// *ConverseResponse_EventType_
|
||||
// *ConverseResponse_AudioOut
|
||||
// *ConverseResponse_Result
|
||||
ConverseResponse isConverseResponse_ConverseResponse `protobuf_oneof:"converse_response"`
|
||||
ConverseResponse isConverseResponse_ConverseResponse `protobuf_oneof:"converse_response"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ConverseResponse) Reset() { *m = ConverseResponse{} }
|
||||
func (m *ConverseResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseResponse) ProtoMessage() {}
|
||||
func (*ConverseResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
func (m *ConverseResponse) Reset() { *m = ConverseResponse{} }
|
||||
func (m *ConverseResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ConverseResponse) ProtoMessage() {}
|
||||
func (*ConverseResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_embedded_assistant_1e1f50e651d7eaee, []int{7}
|
||||
}
|
||||
func (m *ConverseResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ConverseResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ConverseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ConverseResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ConverseResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ConverseResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *ConverseResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ConverseResponse.Size(m)
|
||||
}
|
||||
func (m *ConverseResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ConverseResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ConverseResponse proto.InternalMessageInfo
|
||||
|
||||
type isConverseResponse_ConverseResponse interface {
|
||||
isConverseResponse_ConverseResponse()
|
||||
}
|
||||
|
||||
type ConverseResponse_Error struct {
|
||||
Error *google_rpc.Status `protobuf:"bytes,1,opt,name=error,oneof"`
|
||||
}
|
||||
type ConverseResponse_EventType_ struct {
|
||||
EventType ConverseResponse_EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,enum=google.assistant.embedded.v1alpha1.ConverseResponse_EventType,oneof"`
|
||||
}
|
||||
type ConverseResponse_AudioOut struct {
|
||||
AudioOut *AudioOut `protobuf:"bytes,3,opt,name=audio_out,json=audioOut,oneof"`
|
||||
}
|
||||
type ConverseResponse_Result struct {
|
||||
Result *ConverseResult `protobuf:"bytes,5,opt,name=result,oneof"`
|
||||
Error *status.Status `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ConverseResponse_Error) isConverseResponse_ConverseResponse() {}
|
||||
type ConverseResponse_EventType_ struct {
|
||||
EventType ConverseResponse_EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=google.assistant.embedded.v1alpha1.ConverseResponse_EventType,oneof"`
|
||||
}
|
||||
|
||||
type ConverseResponse_AudioOut struct {
|
||||
AudioOut *AudioOut `protobuf:"bytes,3,opt,name=audio_out,json=audioOut,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ConverseResponse_Result struct {
|
||||
Result *ConverseResult `protobuf:"bytes,5,opt,name=result,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ConverseResponse_Error) isConverseResponse_ConverseResponse() {}
|
||||
|
||||
func (*ConverseResponse_EventType_) isConverseResponse_ConverseResponse() {}
|
||||
func (*ConverseResponse_AudioOut) isConverseResponse_ConverseResponse() {}
|
||||
func (*ConverseResponse_Result) isConverseResponse_ConverseResponse() {}
|
||||
|
||||
func (*ConverseResponse_AudioOut) isConverseResponse_ConverseResponse() {}
|
||||
|
||||
func (*ConverseResponse_Result) isConverseResponse_ConverseResponse() {}
|
||||
|
||||
func (m *ConverseResponse) GetConverseResponse() isConverseResponse_ConverseResponse {
|
||||
if m != nil {
|
||||
@ -568,7 +740,7 @@ func (m *ConverseResponse) GetConverseResponse() isConverseResponse_ConverseResp
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ConverseResponse) GetError() *google_rpc.Status {
|
||||
func (m *ConverseResponse) GetError() *status.Status {
|
||||
if x, ok := m.GetConverseResponse().(*ConverseResponse_Error); ok {
|
||||
return x.Error
|
||||
}
|
||||
@ -642,7 +814,7 @@ func _ConverseResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *pro
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(google_rpc.Status)
|
||||
msg := new(status.Status)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.ConverseResponse = &ConverseResponse_Error{msg}
|
||||
return true, err
|
||||
@ -680,20 +852,20 @@ func _ConverseResponse_OneofSizer(msg proto.Message) (n int) {
|
||||
switch x := m.ConverseResponse.(type) {
|
||||
case *ConverseResponse_Error:
|
||||
s := proto.Size(x.Error)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *ConverseResponse_EventType_:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireVarint)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(x.EventType))
|
||||
case *ConverseResponse_AudioOut:
|
||||
s := proto.Size(x.AudioOut)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *ConverseResponse_Result:
|
||||
s := proto.Size(x.Result)
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
@ -726,8 +898,9 @@ var _ grpc.ClientConn
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for EmbeddedAssistant service
|
||||
|
||||
// EmbeddedAssistantClient is the client API for EmbeddedAssistant service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type EmbeddedAssistantClient interface {
|
||||
// Initiates or continues a conversation with the embedded assistant service.
|
||||
// Each call performs one round-trip, sending an audio request to the service
|
||||
@ -782,7 +955,7 @@ func NewEmbeddedAssistantClient(cc *grpc.ClientConn) EmbeddedAssistantClient {
|
||||
}
|
||||
|
||||
func (c *embeddedAssistantClient) Converse(ctx context.Context, opts ...grpc.CallOption) (EmbeddedAssistant_ConverseClient, error) {
|
||||
stream, err := grpc.NewClientStream(ctx, &_EmbeddedAssistant_serviceDesc.Streams[0], c.cc, "/google.assistant.embedded.v1alpha1.EmbeddedAssistant/Converse", opts...)
|
||||
stream, err := c.cc.NewStream(ctx, &_EmbeddedAssistant_serviceDesc.Streams[0], "/google.assistant.embedded.v1alpha1.EmbeddedAssistant/Converse", opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -812,8 +985,7 @@ func (x *embeddedAssistantConverseClient) Recv() (*ConverseResponse, error) {
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// Server API for EmbeddedAssistant service
|
||||
|
||||
// EmbeddedAssistantServer is the server API for EmbeddedAssistant service.
|
||||
type EmbeddedAssistantServer interface {
|
||||
// Initiates or continues a conversation with the embedded assistant service.
|
||||
// Each call performs one round-trip, sending an audio request to the service
|
||||
@ -905,10 +1077,10 @@ var _EmbeddedAssistant_serviceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/assistant/embedded/v1alpha1/embedded_assistant.proto", fileDescriptor0)
|
||||
proto.RegisterFile("google/assistant/embedded/v1alpha1/embedded_assistant.proto", fileDescriptor_embedded_assistant_1e1f50e651d7eaee)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_embedded_assistant_1e1f50e651d7eaee = []byte{
|
||||
// 892 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x51, 0x73, 0xdb, 0x44,
|
||||
0x10, 0xb6, 0xec, 0xa6, 0xb5, 0xb7, 0x89, 0x2c, 0x5f, 0x33, 0x90, 0x49, 0x61, 0x60, 0xf4, 0xc0,
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user