1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/dialogflow/v2beta1/session.proto
3
4package dialogflow
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	duration "github.com/golang/protobuf/ptypes/duration"
13	_struct "github.com/golang/protobuf/ptypes/struct"
14	_ "google.golang.org/genproto/googleapis/api/annotations"
15	status "google.golang.org/genproto/googleapis/rpc/status"
16	latlng "google.golang.org/genproto/googleapis/type/latlng"
17	field_mask "google.golang.org/genproto/protobuf/field_mask"
18	grpc "google.golang.org/grpc"
19	codes "google.golang.org/grpc/codes"
20	status1 "google.golang.org/grpc/status"
21)
22
23// Reference imports to suppress errors if they are not otherwise used.
24var _ = proto.Marshal
25var _ = fmt.Errorf
26var _ = math.Inf
27
28// This is a compile-time assertion to ensure that this generated file
29// is compatible with the proto package it is being compiled against.
30// A compilation error at this line likely means your copy of the
31// proto package needs to be updated.
32const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
33
34// Represents the system's confidence that this knowledge answer is a good
35// match for this conversational query.
36type KnowledgeAnswers_Answer_MatchConfidenceLevel int32
37
38const (
39	// Not specified.
40	KnowledgeAnswers_Answer_MATCH_CONFIDENCE_LEVEL_UNSPECIFIED KnowledgeAnswers_Answer_MatchConfidenceLevel = 0
41	// Indicates that the confidence is low.
42	KnowledgeAnswers_Answer_LOW KnowledgeAnswers_Answer_MatchConfidenceLevel = 1
43	// Indicates our confidence is medium.
44	KnowledgeAnswers_Answer_MEDIUM KnowledgeAnswers_Answer_MatchConfidenceLevel = 2
45	// Indicates our confidence is high.
46	KnowledgeAnswers_Answer_HIGH KnowledgeAnswers_Answer_MatchConfidenceLevel = 3
47)
48
49var KnowledgeAnswers_Answer_MatchConfidenceLevel_name = map[int32]string{
50	0: "MATCH_CONFIDENCE_LEVEL_UNSPECIFIED",
51	1: "LOW",
52	2: "MEDIUM",
53	3: "HIGH",
54}
55
56var KnowledgeAnswers_Answer_MatchConfidenceLevel_value = map[string]int32{
57	"MATCH_CONFIDENCE_LEVEL_UNSPECIFIED": 0,
58	"LOW":                                1,
59	"MEDIUM":                             2,
60	"HIGH":                               3,
61}
62
63func (x KnowledgeAnswers_Answer_MatchConfidenceLevel) String() string {
64	return proto.EnumName(KnowledgeAnswers_Answer_MatchConfidenceLevel_name, int32(x))
65}
66
67func (KnowledgeAnswers_Answer_MatchConfidenceLevel) EnumDescriptor() ([]byte, []int) {
68	return fileDescriptor_40a53f854d709740, []int{5, 0, 0}
69}
70
71// Type of the response message.
72type StreamingRecognitionResult_MessageType int32
73
74const (
75	// Not specified. Should never be used.
76	StreamingRecognitionResult_MESSAGE_TYPE_UNSPECIFIED StreamingRecognitionResult_MessageType = 0
77	// Message contains a (possibly partial) transcript.
78	StreamingRecognitionResult_TRANSCRIPT StreamingRecognitionResult_MessageType = 1
79	// Event indicates that the server has detected the end of the user's speech
80	// utterance and expects no additional speech. Therefore, the server will
81	// not process additional audio (although it may subsequently return
82	// additional results). The client should stop sending additional audio
83	// data, half-close the gRPC connection, and wait for any additional results
84	// until the server closes the gRPC connection. This message is only sent if
85	// `single_utterance` was set to `true`, and is not used otherwise.
86	StreamingRecognitionResult_END_OF_SINGLE_UTTERANCE StreamingRecognitionResult_MessageType = 2
87)
88
89var StreamingRecognitionResult_MessageType_name = map[int32]string{
90	0: "MESSAGE_TYPE_UNSPECIFIED",
91	1: "TRANSCRIPT",
92	2: "END_OF_SINGLE_UTTERANCE",
93}
94
95var StreamingRecognitionResult_MessageType_value = map[string]int32{
96	"MESSAGE_TYPE_UNSPECIFIED": 0,
97	"TRANSCRIPT":               1,
98	"END_OF_SINGLE_UTTERANCE":  2,
99}
100
101func (x StreamingRecognitionResult_MessageType) String() string {
102	return proto.EnumName(StreamingRecognitionResult_MessageType_name, int32(x))
103}
104
105func (StreamingRecognitionResult_MessageType) EnumDescriptor() ([]byte, []int) {
106	return fileDescriptor_40a53f854d709740, []int{8, 0}
107}
108
109// ============================================================================
110// Requests and responses for custom methods.
111// The request to detect user's intent.
112type DetectIntentRequest struct {
113	// Required. The name of the session this query is sent to. Format:
114	// `projects/<Project ID>/agent/sessions/<Session ID>`, or
115	// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
116	// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
117	// default 'draft' environment. If `User ID` is not specified, we are using
118	// "-". It's up to the API caller to choose an appropriate `Session ID` and
119	// `User Id`. They can be a random number or some type of user and session
120	// identifiers (preferably hashed). The length of the `Session ID` and
121	// `User ID` must not exceed 36 characters.
122	Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
123	// The parameters of this query.
124	QueryParams *QueryParameters `protobuf:"bytes,2,opt,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
125	// Required. The input specification. It can be set to:
126	//
127	// 1.  an audio config
128	//     which instructs the speech recognizer how to process the speech audio,
129	//
130	// 2.  a conversational query in the form of text, or
131	//
132	// 3.  an event that specifies which intent to trigger.
133	QueryInput *QueryInput `protobuf:"bytes,3,opt,name=query_input,json=queryInput,proto3" json:"query_input,omitempty"`
134	// Instructs the speech synthesizer how to generate the output
135	// audio. If this field is not set and agent-level speech synthesizer is not
136	// configured, no output audio is generated.
137	OutputAudioConfig *OutputAudioConfig `protobuf:"bytes,4,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
138	// Mask for [output_audio_config][google.cloud.dialogflow.v2beta1.DetectIntentRequest.output_audio_config] indicating which settings in this
139	// request-level config should override speech synthesizer settings defined at
140	// agent-level.
141	//
142	// If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2beta1.DetectIntentRequest.output_audio_config] replaces the agent-level
143	// config in its entirety.
144	OutputAudioConfigMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=output_audio_config_mask,json=outputAudioConfigMask,proto3" json:"output_audio_config_mask,omitempty"`
145	// The natural language speech audio to be processed. This field
146	// should be populated iff `query_input` is set to an input audio config.
147	// A single request can contain up to 1 minute of speech audio data.
148	InputAudio           []byte   `protobuf:"bytes,5,opt,name=input_audio,json=inputAudio,proto3" json:"input_audio,omitempty"`
149	XXX_NoUnkeyedLiteral struct{} `json:"-"`
150	XXX_unrecognized     []byte   `json:"-"`
151	XXX_sizecache        int32    `json:"-"`
152}
153
154func (m *DetectIntentRequest) Reset()         { *m = DetectIntentRequest{} }
155func (m *DetectIntentRequest) String() string { return proto.CompactTextString(m) }
156func (*DetectIntentRequest) ProtoMessage()    {}
157func (*DetectIntentRequest) Descriptor() ([]byte, []int) {
158	return fileDescriptor_40a53f854d709740, []int{0}
159}
160
161func (m *DetectIntentRequest) XXX_Unmarshal(b []byte) error {
162	return xxx_messageInfo_DetectIntentRequest.Unmarshal(m, b)
163}
164func (m *DetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
165	return xxx_messageInfo_DetectIntentRequest.Marshal(b, m, deterministic)
166}
167func (m *DetectIntentRequest) XXX_Merge(src proto.Message) {
168	xxx_messageInfo_DetectIntentRequest.Merge(m, src)
169}
170func (m *DetectIntentRequest) XXX_Size() int {
171	return xxx_messageInfo_DetectIntentRequest.Size(m)
172}
173func (m *DetectIntentRequest) XXX_DiscardUnknown() {
174	xxx_messageInfo_DetectIntentRequest.DiscardUnknown(m)
175}
176
177var xxx_messageInfo_DetectIntentRequest proto.InternalMessageInfo
178
179func (m *DetectIntentRequest) GetSession() string {
180	if m != nil {
181		return m.Session
182	}
183	return ""
184}
185
186func (m *DetectIntentRequest) GetQueryParams() *QueryParameters {
187	if m != nil {
188		return m.QueryParams
189	}
190	return nil
191}
192
193func (m *DetectIntentRequest) GetQueryInput() *QueryInput {
194	if m != nil {
195		return m.QueryInput
196	}
197	return nil
198}
199
200func (m *DetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig {
201	if m != nil {
202		return m.OutputAudioConfig
203	}
204	return nil
205}
206
207func (m *DetectIntentRequest) GetOutputAudioConfigMask() *field_mask.FieldMask {
208	if m != nil {
209		return m.OutputAudioConfigMask
210	}
211	return nil
212}
213
214func (m *DetectIntentRequest) GetInputAudio() []byte {
215	if m != nil {
216		return m.InputAudio
217	}
218	return nil
219}
220
221// The message returned from the DetectIntent method.
222type DetectIntentResponse struct {
223	// The unique identifier of the response. It can be used to
224	// locate a response in the training example set or for reporting issues.
225	ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
226	// The selected results of the conversational query or event processing.
227	// See `alternative_query_results` for additional potential results.
228	QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
229	// If Knowledge Connectors are enabled, there could be more than one result
230	// returned for a given query or event, and this field will contain all
231	// results except for the top one, which is captured in query_result. The
232	// alternative results are ordered by decreasing
233	// `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
234	// disabled, this field will be empty until multiple responses for regular
235	// intents are supported, at which point those additional results will be
236	// surfaced here.
237	AlternativeQueryResults []*QueryResult `protobuf:"bytes,5,rep,name=alternative_query_results,json=alternativeQueryResults,proto3" json:"alternative_query_results,omitempty"`
238	// Specifies the status of the webhook request.
239	WebhookStatus *status.Status `protobuf:"bytes,3,opt,name=webhook_status,json=webhookStatus,proto3" json:"webhook_status,omitempty"`
240	// The audio data bytes encoded as specified in the request.
241	// Note: The output audio is generated based on the values of default platform
242	// text responses found in the `query_result.fulfillment_messages` field. If
243	// multiple default text responses exist, they will be concatenated when
244	// generating audio. If no default platform text responses exist, the
245	// generated audio content will be empty.
246	OutputAudio []byte `protobuf:"bytes,4,opt,name=output_audio,json=outputAudio,proto3" json:"output_audio,omitempty"`
247	// The config used by the speech synthesizer to generate the output audio.
248	OutputAudioConfig    *OutputAudioConfig `protobuf:"bytes,6,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
249	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
250	XXX_unrecognized     []byte             `json:"-"`
251	XXX_sizecache        int32              `json:"-"`
252}
253
254func (m *DetectIntentResponse) Reset()         { *m = DetectIntentResponse{} }
255func (m *DetectIntentResponse) String() string { return proto.CompactTextString(m) }
256func (*DetectIntentResponse) ProtoMessage()    {}
257func (*DetectIntentResponse) Descriptor() ([]byte, []int) {
258	return fileDescriptor_40a53f854d709740, []int{1}
259}
260
261func (m *DetectIntentResponse) XXX_Unmarshal(b []byte) error {
262	return xxx_messageInfo_DetectIntentResponse.Unmarshal(m, b)
263}
264func (m *DetectIntentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
265	return xxx_messageInfo_DetectIntentResponse.Marshal(b, m, deterministic)
266}
267func (m *DetectIntentResponse) XXX_Merge(src proto.Message) {
268	xxx_messageInfo_DetectIntentResponse.Merge(m, src)
269}
270func (m *DetectIntentResponse) XXX_Size() int {
271	return xxx_messageInfo_DetectIntentResponse.Size(m)
272}
273func (m *DetectIntentResponse) XXX_DiscardUnknown() {
274	xxx_messageInfo_DetectIntentResponse.DiscardUnknown(m)
275}
276
277var xxx_messageInfo_DetectIntentResponse proto.InternalMessageInfo
278
279func (m *DetectIntentResponse) GetResponseId() string {
280	if m != nil {
281		return m.ResponseId
282	}
283	return ""
284}
285
286func (m *DetectIntentResponse) GetQueryResult() *QueryResult {
287	if m != nil {
288		return m.QueryResult
289	}
290	return nil
291}
292
293func (m *DetectIntentResponse) GetAlternativeQueryResults() []*QueryResult {
294	if m != nil {
295		return m.AlternativeQueryResults
296	}
297	return nil
298}
299
300func (m *DetectIntentResponse) GetWebhookStatus() *status.Status {
301	if m != nil {
302		return m.WebhookStatus
303	}
304	return nil
305}
306
307func (m *DetectIntentResponse) GetOutputAudio() []byte {
308	if m != nil {
309		return m.OutputAudio
310	}
311	return nil
312}
313
314func (m *DetectIntentResponse) GetOutputAudioConfig() *OutputAudioConfig {
315	if m != nil {
316		return m.OutputAudioConfig
317	}
318	return nil
319}
320
321// Represents the parameters of the conversational query.
322type QueryParameters struct {
323	// The time zone of this conversational query from the
324	// [time zone database](https://www.iana.org/time-zones), e.g.,
325	// America/New_York, Europe/Paris. If not provided, the time zone specified in
326	// agent settings is used.
327	TimeZone string `protobuf:"bytes,1,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
328	// The geo location of this conversational query.
329	GeoLocation *latlng.LatLng `protobuf:"bytes,2,opt,name=geo_location,json=geoLocation,proto3" json:"geo_location,omitempty"`
330	// The collection of contexts to be activated before this query is
331	// executed.
332	Contexts []*Context `protobuf:"bytes,3,rep,name=contexts,proto3" json:"contexts,omitempty"`
333	// Specifies whether to delete all contexts in the current session
334	// before the new ones are activated.
335	ResetContexts bool `protobuf:"varint,4,opt,name=reset_contexts,json=resetContexts,proto3" json:"reset_contexts,omitempty"`
336	// Additional session entity types to replace or extend developer
337	// entity types with. The entity synonyms apply to all languages and persist
338	// for the session of this query.
339	SessionEntityTypes []*SessionEntityType `protobuf:"bytes,5,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
340	// This field can be used to pass custom data into the webhook
341	// associated with the agent. Arbitrary JSON objects are supported.
342	Payload *_struct.Struct `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
343	// KnowledgeBases to get alternative results from. If not set, the
344	// KnowledgeBases enabled in the agent (through UI) will be used.
345	// Format:  `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
346	KnowledgeBaseNames []string `protobuf:"bytes,12,rep,name=knowledge_base_names,json=knowledgeBaseNames,proto3" json:"knowledge_base_names,omitempty"`
347	// Configures the type of sentiment analysis to perform. If not
348	// provided, sentiment analysis is not performed.
349	// Note: Sentiment Analysis is only currently available for Enterprise Edition
350	// agents.
351	SentimentAnalysisRequestConfig *SentimentAnalysisRequestConfig `protobuf:"bytes,10,opt,name=sentiment_analysis_request_config,json=sentimentAnalysisRequestConfig,proto3" json:"sentiment_analysis_request_config,omitempty"`
352	// For mega agent query, directly specify which sub agents to query.
353	// If any specified sub agent is not linked to the mega agent, an error will
354	// be returned. If empty, Dialogflow will decide which sub agents to query.
355	// If specified for a non-mega-agent query, will be silently ignored.
356	SubAgents []*SubAgent `protobuf:"bytes,13,rep,name=sub_agents,json=subAgents,proto3" json:"sub_agents,omitempty"`
357	// This field can be used to pass HTTP headers for a webhook
358	// call. These headers will be sent to webhook alone with the headers that
359	// have been configured through Dialogflow web console. The headers defined
360	// within this field will overwrite the headers configured through Dialogflow
361	// console if there is a conflict. Header names are case-insensitive.
362	// Google's specified headers are not allowed. Including: "Host",
363	// "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding",
364	// "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc.
365	WebhookHeaders       map[string]string `protobuf:"bytes,14,rep,name=webhook_headers,json=webhookHeaders,proto3" json:"webhook_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
366	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
367	XXX_unrecognized     []byte            `json:"-"`
368	XXX_sizecache        int32             `json:"-"`
369}
370
371func (m *QueryParameters) Reset()         { *m = QueryParameters{} }
372func (m *QueryParameters) String() string { return proto.CompactTextString(m) }
373func (*QueryParameters) ProtoMessage()    {}
374func (*QueryParameters) Descriptor() ([]byte, []int) {
375	return fileDescriptor_40a53f854d709740, []int{2}
376}
377
378func (m *QueryParameters) XXX_Unmarshal(b []byte) error {
379	return xxx_messageInfo_QueryParameters.Unmarshal(m, b)
380}
381func (m *QueryParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
382	return xxx_messageInfo_QueryParameters.Marshal(b, m, deterministic)
383}
384func (m *QueryParameters) XXX_Merge(src proto.Message) {
385	xxx_messageInfo_QueryParameters.Merge(m, src)
386}
387func (m *QueryParameters) XXX_Size() int {
388	return xxx_messageInfo_QueryParameters.Size(m)
389}
390func (m *QueryParameters) XXX_DiscardUnknown() {
391	xxx_messageInfo_QueryParameters.DiscardUnknown(m)
392}
393
394var xxx_messageInfo_QueryParameters proto.InternalMessageInfo
395
396func (m *QueryParameters) GetTimeZone() string {
397	if m != nil {
398		return m.TimeZone
399	}
400	return ""
401}
402
403func (m *QueryParameters) GetGeoLocation() *latlng.LatLng {
404	if m != nil {
405		return m.GeoLocation
406	}
407	return nil
408}
409
410func (m *QueryParameters) GetContexts() []*Context {
411	if m != nil {
412		return m.Contexts
413	}
414	return nil
415}
416
417func (m *QueryParameters) GetResetContexts() bool {
418	if m != nil {
419		return m.ResetContexts
420	}
421	return false
422}
423
424func (m *QueryParameters) GetSessionEntityTypes() []*SessionEntityType {
425	if m != nil {
426		return m.SessionEntityTypes
427	}
428	return nil
429}
430
431func (m *QueryParameters) GetPayload() *_struct.Struct {
432	if m != nil {
433		return m.Payload
434	}
435	return nil
436}
437
438func (m *QueryParameters) GetKnowledgeBaseNames() []string {
439	if m != nil {
440		return m.KnowledgeBaseNames
441	}
442	return nil
443}
444
445func (m *QueryParameters) GetSentimentAnalysisRequestConfig() *SentimentAnalysisRequestConfig {
446	if m != nil {
447		return m.SentimentAnalysisRequestConfig
448	}
449	return nil
450}
451
452func (m *QueryParameters) GetSubAgents() []*SubAgent {
453	if m != nil {
454		return m.SubAgents
455	}
456	return nil
457}
458
459func (m *QueryParameters) GetWebhookHeaders() map[string]string {
460	if m != nil {
461		return m.WebhookHeaders
462	}
463	return nil
464}
465
466// Represents the query input. It can contain either:
467//
468// 1.  An audio config which
469//     instructs the speech recognizer how to process the speech audio.
470//
471// 2.  A conversational query in the form of text.
472//
473// 3.  An event that specifies which intent to trigger.
474type QueryInput struct {
475	// Required. The input specification.
476	//
477	// Types that are valid to be assigned to Input:
478	//	*QueryInput_AudioConfig
479	//	*QueryInput_Text
480	//	*QueryInput_Event
481	Input                isQueryInput_Input `protobuf_oneof:"input"`
482	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
483	XXX_unrecognized     []byte             `json:"-"`
484	XXX_sizecache        int32              `json:"-"`
485}
486
487func (m *QueryInput) Reset()         { *m = QueryInput{} }
488func (m *QueryInput) String() string { return proto.CompactTextString(m) }
489func (*QueryInput) ProtoMessage()    {}
490func (*QueryInput) Descriptor() ([]byte, []int) {
491	return fileDescriptor_40a53f854d709740, []int{3}
492}
493
494func (m *QueryInput) XXX_Unmarshal(b []byte) error {
495	return xxx_messageInfo_QueryInput.Unmarshal(m, b)
496}
497func (m *QueryInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
498	return xxx_messageInfo_QueryInput.Marshal(b, m, deterministic)
499}
500func (m *QueryInput) XXX_Merge(src proto.Message) {
501	xxx_messageInfo_QueryInput.Merge(m, src)
502}
503func (m *QueryInput) XXX_Size() int {
504	return xxx_messageInfo_QueryInput.Size(m)
505}
506func (m *QueryInput) XXX_DiscardUnknown() {
507	xxx_messageInfo_QueryInput.DiscardUnknown(m)
508}
509
510var xxx_messageInfo_QueryInput proto.InternalMessageInfo
511
512type isQueryInput_Input interface {
513	isQueryInput_Input()
514}
515
516type QueryInput_AudioConfig struct {
517	AudioConfig *InputAudioConfig `protobuf:"bytes,1,opt,name=audio_config,json=audioConfig,proto3,oneof"`
518}
519
520type QueryInput_Text struct {
521	Text *TextInput `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
522}
523
524type QueryInput_Event struct {
525	Event *EventInput `protobuf:"bytes,3,opt,name=event,proto3,oneof"`
526}
527
528func (*QueryInput_AudioConfig) isQueryInput_Input() {}
529
530func (*QueryInput_Text) isQueryInput_Input() {}
531
532func (*QueryInput_Event) isQueryInput_Input() {}
533
534func (m *QueryInput) GetInput() isQueryInput_Input {
535	if m != nil {
536		return m.Input
537	}
538	return nil
539}
540
541func (m *QueryInput) GetAudioConfig() *InputAudioConfig {
542	if x, ok := m.GetInput().(*QueryInput_AudioConfig); ok {
543		return x.AudioConfig
544	}
545	return nil
546}
547
548func (m *QueryInput) GetText() *TextInput {
549	if x, ok := m.GetInput().(*QueryInput_Text); ok {
550		return x.Text
551	}
552	return nil
553}
554
555func (m *QueryInput) GetEvent() *EventInput {
556	if x, ok := m.GetInput().(*QueryInput_Event); ok {
557		return x.Event
558	}
559	return nil
560}
561
562// XXX_OneofWrappers is for the internal use of the proto package.
563func (*QueryInput) XXX_OneofWrappers() []interface{} {
564	return []interface{}{
565		(*QueryInput_AudioConfig)(nil),
566		(*QueryInput_Text)(nil),
567		(*QueryInput_Event)(nil),
568	}
569}
570
571// Represents the result of conversational query or event processing.
572type QueryResult struct {
573	// The original conversational query text:
574	//
575	// - If natural language text was provided as input, `query_text` contains
576	//   a copy of the input.
577	// - If natural language speech audio was provided as input, `query_text`
578	//   contains the speech recognition result. If speech recognizer produced
579	//   multiple alternatives, a particular one is picked.
580	// - If automatic spell correction is enabled, `query_text` will contain the
581	//   corrected user input.
582	QueryText string `protobuf:"bytes,1,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"`
583	// The language that was triggered during intent detection.
584	// See [Language
585	// Support](https://cloud.google.com/dialogflow/docs/reference/language)
586	// for a list of the currently supported language codes.
587	LanguageCode string `protobuf:"bytes,15,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
588	// The Speech recognition confidence between 0.0 and 1.0. A higher number
589	// indicates an estimated greater likelihood that the recognized words are
590	// correct. The default of 0.0 is a sentinel value indicating that confidence
591	// was not set.
592	//
593	// This field is not guaranteed to be accurate or set. In particular this
594	// field isn't set for StreamingDetectIntent since the streaming endpoint has
595	// separate confidence estimates per portion of the audio in
596	// StreamingRecognitionResult.
597	SpeechRecognitionConfidence float32 `protobuf:"fixed32,2,opt,name=speech_recognition_confidence,json=speechRecognitionConfidence,proto3" json:"speech_recognition_confidence,omitempty"`
598	// The action name from the matched intent.
599	Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
600	// The collection of extracted parameters.
601	Parameters *_struct.Struct `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"`
602	// This field is set to:
603	//
604	// - `false` if the matched intent has required parameters and not all of
605	//    the required parameter values have been collected.
606	// - `true` if all required parameter values have been collected, or if the
607	//    matched intent doesn't contain any required parameters.
608	AllRequiredParamsPresent bool `protobuf:"varint,5,opt,name=all_required_params_present,json=allRequiredParamsPresent,proto3" json:"all_required_params_present,omitempty"`
609	// The text to be pronounced to the user or shown on the screen.
610	// Note: This is a legacy field, `fulfillment_messages` should be preferred.
611	FulfillmentText string `protobuf:"bytes,6,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
612	// The collection of rich messages to present to the user.
613	FulfillmentMessages []*Intent_Message `protobuf:"bytes,7,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
614	// If the query was fulfilled by a webhook call, this field is set to the
615	// value of the `source` field returned in the webhook response.
616	WebhookSource string `protobuf:"bytes,8,opt,name=webhook_source,json=webhookSource,proto3" json:"webhook_source,omitempty"`
617	// If the query was fulfilled by a webhook call, this field is set to the
618	// value of the `payload` field returned in the webhook response.
619	WebhookPayload *_struct.Struct `protobuf:"bytes,9,opt,name=webhook_payload,json=webhookPayload,proto3" json:"webhook_payload,omitempty"`
620	// The collection of output contexts. If applicable,
621	// `output_contexts.parameters` contains entries with name
622	// `<parameter name>.original` containing the original parameter values
623	// before the query.
624	OutputContexts []*Context `protobuf:"bytes,10,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
625	// The intent that matched the conversational query. Some, not
626	// all fields are filled in this message, including but not limited to:
627	// `name`, `display_name`, `end_interaction` and `is_fallback`.
628	Intent *Intent `protobuf:"bytes,11,opt,name=intent,proto3" json:"intent,omitempty"`
629	// The intent detection confidence. Values range from 0.0
630	// (completely uncertain) to 1.0 (completely certain).
631	// This value is for informational purpose only and is only used to
632	// help match the best intent within the classification threshold.
633	// This value may change for the same end-user expression at any time due to a
634	// model retraining or change in implementation.
635	// If there are `multiple knowledge_answers` messages, this value is set to
636	// the greatest `knowledgeAnswers.match_confidence` value in the list.
637	IntentDetectionConfidence float32 `protobuf:"fixed32,12,opt,name=intent_detection_confidence,json=intentDetectionConfidence,proto3" json:"intent_detection_confidence,omitempty"`
638	// Free-form diagnostic information for the associated detect intent request.
639	// The fields of this data can change without notice, so you should not write
640	// code that depends on its structure.
641	// The data may contain:
642	//
643	// - webhook call latency
644	// - webhook errors
645	DiagnosticInfo *_struct.Struct `protobuf:"bytes,14,opt,name=diagnostic_info,json=diagnosticInfo,proto3" json:"diagnostic_info,omitempty"`
646	// The sentiment analysis result, which depends on the
647	// `sentiment_analysis_request_config` specified in the request.
648	SentimentAnalysisResult *SentimentAnalysisResult `protobuf:"bytes,17,opt,name=sentiment_analysis_result,json=sentimentAnalysisResult,proto3" json:"sentiment_analysis_result,omitempty"`
649	// The result from Knowledge Connector (if any), ordered by decreasing
650	// `KnowledgeAnswers.match_confidence`.
651	KnowledgeAnswers     *KnowledgeAnswers `protobuf:"bytes,18,opt,name=knowledge_answers,json=knowledgeAnswers,proto3" json:"knowledge_answers,omitempty"`
652	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
653	XXX_unrecognized     []byte            `json:"-"`
654	XXX_sizecache        int32             `json:"-"`
655}
656
657func (m *QueryResult) Reset()         { *m = QueryResult{} }
658func (m *QueryResult) String() string { return proto.CompactTextString(m) }
659func (*QueryResult) ProtoMessage()    {}
660func (*QueryResult) Descriptor() ([]byte, []int) {
661	return fileDescriptor_40a53f854d709740, []int{4}
662}
663
664func (m *QueryResult) XXX_Unmarshal(b []byte) error {
665	return xxx_messageInfo_QueryResult.Unmarshal(m, b)
666}
667func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
668	return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic)
669}
670func (m *QueryResult) XXX_Merge(src proto.Message) {
671	xxx_messageInfo_QueryResult.Merge(m, src)
672}
673func (m *QueryResult) XXX_Size() int {
674	return xxx_messageInfo_QueryResult.Size(m)
675}
676func (m *QueryResult) XXX_DiscardUnknown() {
677	xxx_messageInfo_QueryResult.DiscardUnknown(m)
678}
679
680var xxx_messageInfo_QueryResult proto.InternalMessageInfo
681
682func (m *QueryResult) GetQueryText() string {
683	if m != nil {
684		return m.QueryText
685	}
686	return ""
687}
688
689func (m *QueryResult) GetLanguageCode() string {
690	if m != nil {
691		return m.LanguageCode
692	}
693	return ""
694}
695
696func (m *QueryResult) GetSpeechRecognitionConfidence() float32 {
697	if m != nil {
698		return m.SpeechRecognitionConfidence
699	}
700	return 0
701}
702
703func (m *QueryResult) GetAction() string {
704	if m != nil {
705		return m.Action
706	}
707	return ""
708}
709
710func (m *QueryResult) GetParameters() *_struct.Struct {
711	if m != nil {
712		return m.Parameters
713	}
714	return nil
715}
716
717func (m *QueryResult) GetAllRequiredParamsPresent() bool {
718	if m != nil {
719		return m.AllRequiredParamsPresent
720	}
721	return false
722}
723
724func (m *QueryResult) GetFulfillmentText() string {
725	if m != nil {
726		return m.FulfillmentText
727	}
728	return ""
729}
730
731func (m *QueryResult) GetFulfillmentMessages() []*Intent_Message {
732	if m != nil {
733		return m.FulfillmentMessages
734	}
735	return nil
736}
737
738func (m *QueryResult) GetWebhookSource() string {
739	if m != nil {
740		return m.WebhookSource
741	}
742	return ""
743}
744
745func (m *QueryResult) GetWebhookPayload() *_struct.Struct {
746	if m != nil {
747		return m.WebhookPayload
748	}
749	return nil
750}
751
752func (m *QueryResult) GetOutputContexts() []*Context {
753	if m != nil {
754		return m.OutputContexts
755	}
756	return nil
757}
758
759func (m *QueryResult) GetIntent() *Intent {
760	if m != nil {
761		return m.Intent
762	}
763	return nil
764}
765
766func (m *QueryResult) GetIntentDetectionConfidence() float32 {
767	if m != nil {
768		return m.IntentDetectionConfidence
769	}
770	return 0
771}
772
773func (m *QueryResult) GetDiagnosticInfo() *_struct.Struct {
774	if m != nil {
775		return m.DiagnosticInfo
776	}
777	return nil
778}
779
780func (m *QueryResult) GetSentimentAnalysisResult() *SentimentAnalysisResult {
781	if m != nil {
782		return m.SentimentAnalysisResult
783	}
784	return nil
785}
786
787func (m *QueryResult) GetKnowledgeAnswers() *KnowledgeAnswers {
788	if m != nil {
789		return m.KnowledgeAnswers
790	}
791	return nil
792}
793
794// Represents the result of querying a Knowledge base.
795type KnowledgeAnswers struct {
796	// A list of answers from Knowledge Connector.
797	Answers              []*KnowledgeAnswers_Answer `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"`
798	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
799	XXX_unrecognized     []byte                     `json:"-"`
800	XXX_sizecache        int32                      `json:"-"`
801}
802
803func (m *KnowledgeAnswers) Reset()         { *m = KnowledgeAnswers{} }
804func (m *KnowledgeAnswers) String() string { return proto.CompactTextString(m) }
805func (*KnowledgeAnswers) ProtoMessage()    {}
806func (*KnowledgeAnswers) Descriptor() ([]byte, []int) {
807	return fileDescriptor_40a53f854d709740, []int{5}
808}
809
810func (m *KnowledgeAnswers) XXX_Unmarshal(b []byte) error {
811	return xxx_messageInfo_KnowledgeAnswers.Unmarshal(m, b)
812}
813func (m *KnowledgeAnswers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
814	return xxx_messageInfo_KnowledgeAnswers.Marshal(b, m, deterministic)
815}
816func (m *KnowledgeAnswers) XXX_Merge(src proto.Message) {
817	xxx_messageInfo_KnowledgeAnswers.Merge(m, src)
818}
819func (m *KnowledgeAnswers) XXX_Size() int {
820	return xxx_messageInfo_KnowledgeAnswers.Size(m)
821}
822func (m *KnowledgeAnswers) XXX_DiscardUnknown() {
823	xxx_messageInfo_KnowledgeAnswers.DiscardUnknown(m)
824}
825
826var xxx_messageInfo_KnowledgeAnswers proto.InternalMessageInfo
827
828func (m *KnowledgeAnswers) GetAnswers() []*KnowledgeAnswers_Answer {
829	if m != nil {
830		return m.Answers
831	}
832	return nil
833}
834
835// An answer from Knowledge Connector.
836type KnowledgeAnswers_Answer struct {
837	// Indicates which Knowledge Document this answer was extracted from.
838	// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
839	// ID>/documents/<Document ID>`.
840	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
841	// The corresponding FAQ question if the answer was extracted from a FAQ
842	// Document, empty otherwise.
843	FaqQuestion string `protobuf:"bytes,2,opt,name=faq_question,json=faqQuestion,proto3" json:"faq_question,omitempty"`
844	// The piece of text from the `source` knowledge base document that answers
845	// this conversational query.
846	Answer string `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"`
847	// The system's confidence level that this knowledge answer is a good match
848	// for this conversational query.
849	// NOTE: The confidence level for a given `<query, answer>` pair may change
850	// without notice, as it depends on models that are constantly being
851	// improved. However, it will change less frequently than the confidence
852	// score below, and should be preferred for referencing the quality of an
853	// answer.
854	MatchConfidenceLevel KnowledgeAnswers_Answer_MatchConfidenceLevel `protobuf:"varint,4,opt,name=match_confidence_level,json=matchConfidenceLevel,proto3,enum=google.cloud.dialogflow.v2beta1.KnowledgeAnswers_Answer_MatchConfidenceLevel" json:"match_confidence_level,omitempty"`
855	// The system's confidence score that this Knowledge answer is a good match
856	// for this conversational query.
857	// The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
858	// Note: The confidence score is likely to vary somewhat (possibly even for
859	// identical requests), as the underlying model is under constant
860	// improvement. It may be deprecated in the future. We recommend using
861	// `match_confidence_level` which should be generally more stable.
862	MatchConfidence      float32  `protobuf:"fixed32,5,opt,name=match_confidence,json=matchConfidence,proto3" json:"match_confidence,omitempty"`
863	XXX_NoUnkeyedLiteral struct{} `json:"-"`
864	XXX_unrecognized     []byte   `json:"-"`
865	XXX_sizecache        int32    `json:"-"`
866}
867
868func (m *KnowledgeAnswers_Answer) Reset()         { *m = KnowledgeAnswers_Answer{} }
869func (m *KnowledgeAnswers_Answer) String() string { return proto.CompactTextString(m) }
870func (*KnowledgeAnswers_Answer) ProtoMessage()    {}
871func (*KnowledgeAnswers_Answer) Descriptor() ([]byte, []int) {
872	return fileDescriptor_40a53f854d709740, []int{5, 0}
873}
874
875func (m *KnowledgeAnswers_Answer) XXX_Unmarshal(b []byte) error {
876	return xxx_messageInfo_KnowledgeAnswers_Answer.Unmarshal(m, b)
877}
878func (m *KnowledgeAnswers_Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
879	return xxx_messageInfo_KnowledgeAnswers_Answer.Marshal(b, m, deterministic)
880}
881func (m *KnowledgeAnswers_Answer) XXX_Merge(src proto.Message) {
882	xxx_messageInfo_KnowledgeAnswers_Answer.Merge(m, src)
883}
884func (m *KnowledgeAnswers_Answer) XXX_Size() int {
885	return xxx_messageInfo_KnowledgeAnswers_Answer.Size(m)
886}
887func (m *KnowledgeAnswers_Answer) XXX_DiscardUnknown() {
888	xxx_messageInfo_KnowledgeAnswers_Answer.DiscardUnknown(m)
889}
890
891var xxx_messageInfo_KnowledgeAnswers_Answer proto.InternalMessageInfo
892
893func (m *KnowledgeAnswers_Answer) GetSource() string {
894	if m != nil {
895		return m.Source
896	}
897	return ""
898}
899
900func (m *KnowledgeAnswers_Answer) GetFaqQuestion() string {
901	if m != nil {
902		return m.FaqQuestion
903	}
904	return ""
905}
906
907func (m *KnowledgeAnswers_Answer) GetAnswer() string {
908	if m != nil {
909		return m.Answer
910	}
911	return ""
912}
913
914func (m *KnowledgeAnswers_Answer) GetMatchConfidenceLevel() KnowledgeAnswers_Answer_MatchConfidenceLevel {
915	if m != nil {
916		return m.MatchConfidenceLevel
917	}
918	return KnowledgeAnswers_Answer_MATCH_CONFIDENCE_LEVEL_UNSPECIFIED
919}
920
921func (m *KnowledgeAnswers_Answer) GetMatchConfidence() float32 {
922	if m != nil {
923		return m.MatchConfidence
924	}
925	return 0
926}
927
928// The top-level message sent by the client to the
929// [Sessions.StreamingDetectIntent][google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent] method.
930//
931// Multiple request messages should be sent in order:
932//
933// 1.  The first message must contain
934// [session][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.session],
935//     [query_input][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.query_input] plus optionally
936//     [query_params][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.query_params]. If the client
937//     wants to receive an audio response, it should also contain
938//     [output_audio_config][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.output_audio_config].
939//     The message must not contain
940//     [input_audio][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.input_audio].
941// 2.  If [query_input][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.query_input] was set to
942//     [query_input.audio_config][google.cloud.dialogflow.v2beta1.InputAudioConfig], all subsequent
943//     messages must contain
944//     [input_audio][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.input_audio] to continue with
945//     Speech recognition.
946//     If you decide to rather detect an intent from text input after you
947//     already started Speech recognition, please send a message with
948//     [query_input.text][google.cloud.dialogflow.v2beta1.QueryInput.text].
949//
950//     However, note that:
951//
952//     * Dialogflow will bill you for the audio duration so far.
953//     * Dialogflow discards all Speech recognition results in favor of the
954//       input text.
955//     * Dialogflow will use the language code from the first message.
956//
957// After you sent all input, you must half-close or abort the request stream.
958type StreamingDetectIntentRequest struct {
959	// Required. The name of the session the query is sent to.
960	// Format of the session name:
961	// `projects/<Project ID>/agent/sessions/<Session ID>`, or
962	// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
963	// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
964	// default 'draft' environment. If `User ID` is not specified, we are using
965	// "-". It's up to the API caller to choose an appropriate `Session ID` and
966	// `User Id`. They can be a random number or some type of user and session
967	// identifiers (preferably hashed). The length of the `Session ID` and
968	// `User ID` must not exceed 36 characters.
969	Session string `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
970	// The parameters of this query.
971	QueryParams *QueryParameters `protobuf:"bytes,2,opt,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
972	// Required. The input specification. It can be set to:
973	//
974	// 1.  an audio config which instructs the speech recognizer how to process
975	//     the speech audio,
976	//
977	// 2.  a conversational query in the form of text, or
978	//
979	// 3.  an event that specifies which intent to trigger.
980	QueryInput *QueryInput `protobuf:"bytes,3,opt,name=query_input,json=queryInput,proto3" json:"query_input,omitempty"`
981	// DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
982	// If `false` (default), recognition does not cease until the
983	// client closes the stream.
984	// If `true`, the recognizer will detect a single spoken utterance in input
985	// audio. Recognition ceases when it detects the audio's voice has
986	// stopped or paused. In this case, once a detected intent is received, the
987	// client should close the stream and start a new request with a new stream as
988	// needed.
989	// This setting is ignored when `query_input` is a piece of text or an event.
990	SingleUtterance bool `protobuf:"varint,4,opt,name=single_utterance,json=singleUtterance,proto3" json:"single_utterance,omitempty"`
991	// Instructs the speech synthesizer how to generate the output
992	// audio. If this field is not set and agent-level speech synthesizer is not
993	// configured, no output audio is generated.
994	OutputAudioConfig *OutputAudioConfig `protobuf:"bytes,5,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
995	// Mask for [output_audio_config][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.output_audio_config] indicating which settings in this
996	// request-level config should override speech synthesizer settings defined at
997	// agent-level.
998	//
999	// If unspecified or empty, [output_audio_config][google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.output_audio_config] replaces the agent-level
1000	// config in its entirety.
1001	OutputAudioConfigMask *field_mask.FieldMask `protobuf:"bytes,7,opt,name=output_audio_config_mask,json=outputAudioConfigMask,proto3" json:"output_audio_config_mask,omitempty"`
1002	// The input audio content to be recognized. Must be sent if
1003	// `query_input` was set to a streaming input audio config. The complete audio
1004	// over all streaming messages must not exceed 1 minute.
1005	InputAudio           []byte   `protobuf:"bytes,6,opt,name=input_audio,json=inputAudio,proto3" json:"input_audio,omitempty"`
1006	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1007	XXX_unrecognized     []byte   `json:"-"`
1008	XXX_sizecache        int32    `json:"-"`
1009}
1010
1011func (m *StreamingDetectIntentRequest) Reset()         { *m = StreamingDetectIntentRequest{} }
1012func (m *StreamingDetectIntentRequest) String() string { return proto.CompactTextString(m) }
1013func (*StreamingDetectIntentRequest) ProtoMessage()    {}
1014func (*StreamingDetectIntentRequest) Descriptor() ([]byte, []int) {
1015	return fileDescriptor_40a53f854d709740, []int{6}
1016}
1017
1018func (m *StreamingDetectIntentRequest) XXX_Unmarshal(b []byte) error {
1019	return xxx_messageInfo_StreamingDetectIntentRequest.Unmarshal(m, b)
1020}
1021func (m *StreamingDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1022	return xxx_messageInfo_StreamingDetectIntentRequest.Marshal(b, m, deterministic)
1023}
1024func (m *StreamingDetectIntentRequest) XXX_Merge(src proto.Message) {
1025	xxx_messageInfo_StreamingDetectIntentRequest.Merge(m, src)
1026}
1027func (m *StreamingDetectIntentRequest) XXX_Size() int {
1028	return xxx_messageInfo_StreamingDetectIntentRequest.Size(m)
1029}
1030func (m *StreamingDetectIntentRequest) XXX_DiscardUnknown() {
1031	xxx_messageInfo_StreamingDetectIntentRequest.DiscardUnknown(m)
1032}
1033
1034var xxx_messageInfo_StreamingDetectIntentRequest proto.InternalMessageInfo
1035
1036func (m *StreamingDetectIntentRequest) GetSession() string {
1037	if m != nil {
1038		return m.Session
1039	}
1040	return ""
1041}
1042
1043func (m *StreamingDetectIntentRequest) GetQueryParams() *QueryParameters {
1044	if m != nil {
1045		return m.QueryParams
1046	}
1047	return nil
1048}
1049
1050func (m *StreamingDetectIntentRequest) GetQueryInput() *QueryInput {
1051	if m != nil {
1052		return m.QueryInput
1053	}
1054	return nil
1055}
1056
1057func (m *StreamingDetectIntentRequest) GetSingleUtterance() bool {
1058	if m != nil {
1059		return m.SingleUtterance
1060	}
1061	return false
1062}
1063
1064func (m *StreamingDetectIntentRequest) GetOutputAudioConfig() *OutputAudioConfig {
1065	if m != nil {
1066		return m.OutputAudioConfig
1067	}
1068	return nil
1069}
1070
1071func (m *StreamingDetectIntentRequest) GetOutputAudioConfigMask() *field_mask.FieldMask {
1072	if m != nil {
1073		return m.OutputAudioConfigMask
1074	}
1075	return nil
1076}
1077
1078func (m *StreamingDetectIntentRequest) GetInputAudio() []byte {
1079	if m != nil {
1080		return m.InputAudio
1081	}
1082	return nil
1083}
1084
1085// The top-level message returned from the
1086// `StreamingDetectIntent` method.
1087//
1088// Multiple response messages can be returned in order:
1089//
1090// 1.  If the input was set to streaming audio, the first one or more messages
1091//     contain `recognition_result`. Each `recognition_result` represents a more
1092//     complete transcript of what the user said. The last `recognition_result`
1093//     has `is_final` set to `true`.
1094//
1095// 2.  The next message contains `response_id`, `query_result`,
1096//     `alternative_query_results` and optionally `webhook_status` if a WebHook
1097//     was called.
1098//
1099// 3.  If `output_audio_config` was specified in the request or agent-level
1100//     speech synthesizer is configured, all subsequent messages contain
1101//     `output_audio` and `output_audio_config`.
1102type StreamingDetectIntentResponse struct {
1103	// The unique identifier of the response. It can be used to
1104	// locate a response in the training example set or for reporting issues.
1105	ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
1106	// The result of speech recognition.
1107	RecognitionResult *StreamingRecognitionResult `protobuf:"bytes,2,opt,name=recognition_result,json=recognitionResult,proto3" json:"recognition_result,omitempty"`
1108	// The selected results of the conversational query or event processing.
1109	// See `alternative_query_results` for additional potential results.
1110	QueryResult *QueryResult `protobuf:"bytes,3,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
1111	// If Knowledge Connectors are enabled, there could be more than one result
1112	// returned for a given query or event, and this field will contain all
1113	// results except for the top one, which is captured in query_result. The
1114	// alternative results are ordered by decreasing
1115	// `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
1116	// disabled, this field will be empty until multiple responses for regular
1117	// intents are supported, at which point those additional results will be
1118	// surfaced here.
1119	AlternativeQueryResults []*QueryResult `protobuf:"bytes,7,rep,name=alternative_query_results,json=alternativeQueryResults,proto3" json:"alternative_query_results,omitempty"`
1120	// Specifies the status of the webhook request.
1121	WebhookStatus *status.Status `protobuf:"bytes,4,opt,name=webhook_status,json=webhookStatus,proto3" json:"webhook_status,omitempty"`
1122	// The audio data bytes encoded as specified in the request.
1123	// Note: The output audio is generated based on the values of default platform
1124	// text responses found in the `query_result.fulfillment_messages` field. If
1125	// multiple default text responses exist, they will be concatenated when
1126	// generating audio. If no default platform text responses exist, the
1127	// generated audio content will be empty.
1128	OutputAudio []byte `protobuf:"bytes,5,opt,name=output_audio,json=outputAudio,proto3" json:"output_audio,omitempty"`
1129	// The config used by the speech synthesizer to generate the output audio.
1130	OutputAudioConfig    *OutputAudioConfig `protobuf:"bytes,6,opt,name=output_audio_config,json=outputAudioConfig,proto3" json:"output_audio_config,omitempty"`
1131	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
1132	XXX_unrecognized     []byte             `json:"-"`
1133	XXX_sizecache        int32              `json:"-"`
1134}
1135
1136func (m *StreamingDetectIntentResponse) Reset()         { *m = StreamingDetectIntentResponse{} }
1137func (m *StreamingDetectIntentResponse) String() string { return proto.CompactTextString(m) }
1138func (*StreamingDetectIntentResponse) ProtoMessage()    {}
1139func (*StreamingDetectIntentResponse) Descriptor() ([]byte, []int) {
1140	return fileDescriptor_40a53f854d709740, []int{7}
1141}
1142
1143func (m *StreamingDetectIntentResponse) XXX_Unmarshal(b []byte) error {
1144	return xxx_messageInfo_StreamingDetectIntentResponse.Unmarshal(m, b)
1145}
1146func (m *StreamingDetectIntentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1147	return xxx_messageInfo_StreamingDetectIntentResponse.Marshal(b, m, deterministic)
1148}
1149func (m *StreamingDetectIntentResponse) XXX_Merge(src proto.Message) {
1150	xxx_messageInfo_StreamingDetectIntentResponse.Merge(m, src)
1151}
1152func (m *StreamingDetectIntentResponse) XXX_Size() int {
1153	return xxx_messageInfo_StreamingDetectIntentResponse.Size(m)
1154}
1155func (m *StreamingDetectIntentResponse) XXX_DiscardUnknown() {
1156	xxx_messageInfo_StreamingDetectIntentResponse.DiscardUnknown(m)
1157}
1158
1159var xxx_messageInfo_StreamingDetectIntentResponse proto.InternalMessageInfo
1160
1161func (m *StreamingDetectIntentResponse) GetResponseId() string {
1162	if m != nil {
1163		return m.ResponseId
1164	}
1165	return ""
1166}
1167
1168func (m *StreamingDetectIntentResponse) GetRecognitionResult() *StreamingRecognitionResult {
1169	if m != nil {
1170		return m.RecognitionResult
1171	}
1172	return nil
1173}
1174
1175func (m *StreamingDetectIntentResponse) GetQueryResult() *QueryResult {
1176	if m != nil {
1177		return m.QueryResult
1178	}
1179	return nil
1180}
1181
1182func (m *StreamingDetectIntentResponse) GetAlternativeQueryResults() []*QueryResult {
1183	if m != nil {
1184		return m.AlternativeQueryResults
1185	}
1186	return nil
1187}
1188
1189func (m *StreamingDetectIntentResponse) GetWebhookStatus() *status.Status {
1190	if m != nil {
1191		return m.WebhookStatus
1192	}
1193	return nil
1194}
1195
1196func (m *StreamingDetectIntentResponse) GetOutputAudio() []byte {
1197	if m != nil {
1198		return m.OutputAudio
1199	}
1200	return nil
1201}
1202
1203func (m *StreamingDetectIntentResponse) GetOutputAudioConfig() *OutputAudioConfig {
1204	if m != nil {
1205		return m.OutputAudioConfig
1206	}
1207	return nil
1208}
1209
1210// Contains a speech recognition result corresponding to a portion of the audio
1211// that is currently being processed or an indication that this is the end
1212// of the single requested utterance.
1213//
1214// Example:
1215//
1216// 1.  transcript: "tube"
1217//
1218// 2.  transcript: "to be a"
1219//
1220// 3.  transcript: "to be"
1221//
1222// 4.  transcript: "to be or not to be"
1223//     is_final: true
1224//
1225// 5.  transcript: " that's"
1226//
1227// 6.  transcript: " that is"
1228//
1229// 7.  message_type: `END_OF_SINGLE_UTTERANCE`
1230//
1231// 8.  transcript: " that is the question"
1232//     is_final: true
1233//
1234// Only two of the responses contain final results (#4 and #8 indicated by
1235// `is_final: true`). Concatenating these generates the full transcript: "to be
1236// or not to be that is the question".
1237//
1238// In each response we populate:
1239//
1240// *  for `TRANSCRIPT`: `transcript` and possibly `is_final`.
1241//
1242// *  for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
1243type StreamingRecognitionResult struct {
1244	// Type of the result message.
1245	MessageType StreamingRecognitionResult_MessageType `protobuf:"varint,1,opt,name=message_type,json=messageType,proto3,enum=google.cloud.dialogflow.v2beta1.StreamingRecognitionResult_MessageType" json:"message_type,omitempty"`
1246	// Transcript text representing the words that the user spoke.
1247	// Populated if and only if `message_type` = `TRANSCRIPT`.
1248	Transcript string `protobuf:"bytes,2,opt,name=transcript,proto3" json:"transcript,omitempty"`
1249	// If `false`, the `StreamingRecognitionResult` represents an
1250	// interim result that may change. If `true`, the recognizer will not return
1251	// any further hypotheses about this piece of the audio. May only be populated
1252	// for `message_type` = `TRANSCRIPT`.
1253	IsFinal bool `protobuf:"varint,3,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
1254	// The Speech confidence between 0.0 and 1.0 for the current portion of audio.
1255	// A higher number indicates an estimated greater likelihood that the
1256	// recognized words are correct. The default of 0.0 is a sentinel value
1257	// indicating that confidence was not set.
1258	//
1259	// This field is typically only provided if `is_final` is true and you should
1260	// not rely on it being accurate or even set.
1261	Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
1262	// An estimate of the likelihood that the speech recognizer will
1263	// not change its guess about this interim recognition result:
1264	// * If the value is unspecified or 0.0, Dialogflow didn't compute the
1265	//   stability. In particular, Dialogflow will only provide stability for
1266	//   `TRANSCRIPT` results with `is_final = false`.
1267	// * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely
1268	//   unstable and 1.0 means completely stable.
1269	Stability float32 `protobuf:"fixed32,6,opt,name=stability,proto3" json:"stability,omitempty"`
1270	// Word-specific information for the words recognized by Speech in
1271	// [transcript][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
1272	// [InputAudioConfig.enable_word_info] is set.
1273	SpeechWordInfo []*SpeechWordInfo `protobuf:"bytes,7,rep,name=speech_word_info,json=speechWordInfo,proto3" json:"speech_word_info,omitempty"`
1274	// Time offset of the end of this Speech recognition result relative to the
1275	// beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
1276	SpeechEndOffset      *duration.Duration `protobuf:"bytes,8,opt,name=speech_end_offset,json=speechEndOffset,proto3" json:"speech_end_offset,omitempty"`
1277	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
1278	XXX_unrecognized     []byte             `json:"-"`
1279	XXX_sizecache        int32              `json:"-"`
1280}
1281
1282func (m *StreamingRecognitionResult) Reset()         { *m = StreamingRecognitionResult{} }
1283func (m *StreamingRecognitionResult) String() string { return proto.CompactTextString(m) }
1284func (*StreamingRecognitionResult) ProtoMessage()    {}
1285func (*StreamingRecognitionResult) Descriptor() ([]byte, []int) {
1286	return fileDescriptor_40a53f854d709740, []int{8}
1287}
1288
1289func (m *StreamingRecognitionResult) XXX_Unmarshal(b []byte) error {
1290	return xxx_messageInfo_StreamingRecognitionResult.Unmarshal(m, b)
1291}
1292func (m *StreamingRecognitionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1293	return xxx_messageInfo_StreamingRecognitionResult.Marshal(b, m, deterministic)
1294}
1295func (m *StreamingRecognitionResult) XXX_Merge(src proto.Message) {
1296	xxx_messageInfo_StreamingRecognitionResult.Merge(m, src)
1297}
1298func (m *StreamingRecognitionResult) XXX_Size() int {
1299	return xxx_messageInfo_StreamingRecognitionResult.Size(m)
1300}
1301func (m *StreamingRecognitionResult) XXX_DiscardUnknown() {
1302	xxx_messageInfo_StreamingRecognitionResult.DiscardUnknown(m)
1303}
1304
1305var xxx_messageInfo_StreamingRecognitionResult proto.InternalMessageInfo
1306
1307func (m *StreamingRecognitionResult) GetMessageType() StreamingRecognitionResult_MessageType {
1308	if m != nil {
1309		return m.MessageType
1310	}
1311	return StreamingRecognitionResult_MESSAGE_TYPE_UNSPECIFIED
1312}
1313
1314func (m *StreamingRecognitionResult) GetTranscript() string {
1315	if m != nil {
1316		return m.Transcript
1317	}
1318	return ""
1319}
1320
1321func (m *StreamingRecognitionResult) GetIsFinal() bool {
1322	if m != nil {
1323		return m.IsFinal
1324	}
1325	return false
1326}
1327
1328func (m *StreamingRecognitionResult) GetConfidence() float32 {
1329	if m != nil {
1330		return m.Confidence
1331	}
1332	return 0
1333}
1334
1335func (m *StreamingRecognitionResult) GetStability() float32 {
1336	if m != nil {
1337		return m.Stability
1338	}
1339	return 0
1340}
1341
1342func (m *StreamingRecognitionResult) GetSpeechWordInfo() []*SpeechWordInfo {
1343	if m != nil {
1344		return m.SpeechWordInfo
1345	}
1346	return nil
1347}
1348
1349func (m *StreamingRecognitionResult) GetSpeechEndOffset() *duration.Duration {
1350	if m != nil {
1351		return m.SpeechEndOffset
1352	}
1353	return nil
1354}
1355
1356// Represents the natural language text to be processed.
1357type TextInput struct {
1358	// Required. The UTF-8 encoded natural language text to be processed.
1359	// Text length must not exceed 256 characters.
1360	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
1361	// Required. The language of this conversational query. See [Language
1362	// Support](https://cloud.google.com/dialogflow/docs/reference/language)
1363	// for a list of the currently supported language codes. Note that queries in
1364	// the same session do not necessarily need to specify the same language.
1365	LanguageCode         string   `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
1366	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1367	XXX_unrecognized     []byte   `json:"-"`
1368	XXX_sizecache        int32    `json:"-"`
1369}
1370
1371func (m *TextInput) Reset()         { *m = TextInput{} }
1372func (m *TextInput) String() string { return proto.CompactTextString(m) }
1373func (*TextInput) ProtoMessage()    {}
1374func (*TextInput) Descriptor() ([]byte, []int) {
1375	return fileDescriptor_40a53f854d709740, []int{9}
1376}
1377
1378func (m *TextInput) XXX_Unmarshal(b []byte) error {
1379	return xxx_messageInfo_TextInput.Unmarshal(m, b)
1380}
1381func (m *TextInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1382	return xxx_messageInfo_TextInput.Marshal(b, m, deterministic)
1383}
1384func (m *TextInput) XXX_Merge(src proto.Message) {
1385	xxx_messageInfo_TextInput.Merge(m, src)
1386}
1387func (m *TextInput) XXX_Size() int {
1388	return xxx_messageInfo_TextInput.Size(m)
1389}
1390func (m *TextInput) XXX_DiscardUnknown() {
1391	xxx_messageInfo_TextInput.DiscardUnknown(m)
1392}
1393
1394var xxx_messageInfo_TextInput proto.InternalMessageInfo
1395
1396func (m *TextInput) GetText() string {
1397	if m != nil {
1398		return m.Text
1399	}
1400	return ""
1401}
1402
1403func (m *TextInput) GetLanguageCode() string {
1404	if m != nil {
1405		return m.LanguageCode
1406	}
1407	return ""
1408}
1409
1410// Events allow for matching intents by event name instead of the natural
1411// language input. For instance, input `<event: { name: "welcome_event",
1412// parameters: { name: "Sam" } }>` can trigger a personalized welcome response.
1413// The parameter `name` may be used by the agent in the response:
1414// `"Hello #welcome_event.name! What can I do for you today?"`.
1415type EventInput struct {
1416	// Required. The unique identifier of the event.
1417	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1418	// The collection of parameters associated with the event.
1419	Parameters *_struct.Struct `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"`
1420	// Required. The language of this query. See [Language
1421	// Support](https://cloud.google.com/dialogflow/docs/reference/language)
1422	// for a list of the currently supported language codes. Note that queries in
1423	// the same session do not necessarily need to specify the same language.
1424	LanguageCode         string   `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
1425	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1426	XXX_unrecognized     []byte   `json:"-"`
1427	XXX_sizecache        int32    `json:"-"`
1428}
1429
1430func (m *EventInput) Reset()         { *m = EventInput{} }
1431func (m *EventInput) String() string { return proto.CompactTextString(m) }
1432func (*EventInput) ProtoMessage()    {}
1433func (*EventInput) Descriptor() ([]byte, []int) {
1434	return fileDescriptor_40a53f854d709740, []int{10}
1435}
1436
1437func (m *EventInput) XXX_Unmarshal(b []byte) error {
1438	return xxx_messageInfo_EventInput.Unmarshal(m, b)
1439}
1440func (m *EventInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1441	return xxx_messageInfo_EventInput.Marshal(b, m, deterministic)
1442}
1443func (m *EventInput) XXX_Merge(src proto.Message) {
1444	xxx_messageInfo_EventInput.Merge(m, src)
1445}
1446func (m *EventInput) XXX_Size() int {
1447	return xxx_messageInfo_EventInput.Size(m)
1448}
1449func (m *EventInput) XXX_DiscardUnknown() {
1450	xxx_messageInfo_EventInput.DiscardUnknown(m)
1451}
1452
1453var xxx_messageInfo_EventInput proto.InternalMessageInfo
1454
1455func (m *EventInput) GetName() string {
1456	if m != nil {
1457		return m.Name
1458	}
1459	return ""
1460}
1461
1462func (m *EventInput) GetParameters() *_struct.Struct {
1463	if m != nil {
1464		return m.Parameters
1465	}
1466	return nil
1467}
1468
1469func (m *EventInput) GetLanguageCode() string {
1470	if m != nil {
1471		return m.LanguageCode
1472	}
1473	return ""
1474}
1475
1476// Configures the types of sentiment analysis to perform.
1477type SentimentAnalysisRequestConfig struct {
1478	// Instructs the service to perform sentiment analysis on
1479	// `query_text`. If not provided, sentiment analysis is not performed on
1480	// `query_text`.
1481	AnalyzeQueryTextSentiment bool     `protobuf:"varint,1,opt,name=analyze_query_text_sentiment,json=analyzeQueryTextSentiment,proto3" json:"analyze_query_text_sentiment,omitempty"`
1482	XXX_NoUnkeyedLiteral      struct{} `json:"-"`
1483	XXX_unrecognized          []byte   `json:"-"`
1484	XXX_sizecache             int32    `json:"-"`
1485}
1486
1487func (m *SentimentAnalysisRequestConfig) Reset()         { *m = SentimentAnalysisRequestConfig{} }
1488func (m *SentimentAnalysisRequestConfig) String() string { return proto.CompactTextString(m) }
1489func (*SentimentAnalysisRequestConfig) ProtoMessage()    {}
1490func (*SentimentAnalysisRequestConfig) Descriptor() ([]byte, []int) {
1491	return fileDescriptor_40a53f854d709740, []int{11}
1492}
1493
1494func (m *SentimentAnalysisRequestConfig) XXX_Unmarshal(b []byte) error {
1495	return xxx_messageInfo_SentimentAnalysisRequestConfig.Unmarshal(m, b)
1496}
1497func (m *SentimentAnalysisRequestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1498	return xxx_messageInfo_SentimentAnalysisRequestConfig.Marshal(b, m, deterministic)
1499}
1500func (m *SentimentAnalysisRequestConfig) XXX_Merge(src proto.Message) {
1501	xxx_messageInfo_SentimentAnalysisRequestConfig.Merge(m, src)
1502}
1503func (m *SentimentAnalysisRequestConfig) XXX_Size() int {
1504	return xxx_messageInfo_SentimentAnalysisRequestConfig.Size(m)
1505}
1506func (m *SentimentAnalysisRequestConfig) XXX_DiscardUnknown() {
1507	xxx_messageInfo_SentimentAnalysisRequestConfig.DiscardUnknown(m)
1508}
1509
1510var xxx_messageInfo_SentimentAnalysisRequestConfig proto.InternalMessageInfo
1511
1512func (m *SentimentAnalysisRequestConfig) GetAnalyzeQueryTextSentiment() bool {
1513	if m != nil {
1514		return m.AnalyzeQueryTextSentiment
1515	}
1516	return false
1517}
1518
1519// The result of sentiment analysis as configured by
1520// `sentiment_analysis_request_config`.
1521type SentimentAnalysisResult struct {
1522	// The sentiment analysis result for `query_text`.
1523	QueryTextSentiment   *Sentiment `protobuf:"bytes,1,opt,name=query_text_sentiment,json=queryTextSentiment,proto3" json:"query_text_sentiment,omitempty"`
1524	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
1525	XXX_unrecognized     []byte     `json:"-"`
1526	XXX_sizecache        int32      `json:"-"`
1527}
1528
1529func (m *SentimentAnalysisResult) Reset()         { *m = SentimentAnalysisResult{} }
1530func (m *SentimentAnalysisResult) String() string { return proto.CompactTextString(m) }
1531func (*SentimentAnalysisResult) ProtoMessage()    {}
1532func (*SentimentAnalysisResult) Descriptor() ([]byte, []int) {
1533	return fileDescriptor_40a53f854d709740, []int{12}
1534}
1535
1536func (m *SentimentAnalysisResult) XXX_Unmarshal(b []byte) error {
1537	return xxx_messageInfo_SentimentAnalysisResult.Unmarshal(m, b)
1538}
1539func (m *SentimentAnalysisResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1540	return xxx_messageInfo_SentimentAnalysisResult.Marshal(b, m, deterministic)
1541}
1542func (m *SentimentAnalysisResult) XXX_Merge(src proto.Message) {
1543	xxx_messageInfo_SentimentAnalysisResult.Merge(m, src)
1544}
1545func (m *SentimentAnalysisResult) XXX_Size() int {
1546	return xxx_messageInfo_SentimentAnalysisResult.Size(m)
1547}
1548func (m *SentimentAnalysisResult) XXX_DiscardUnknown() {
1549	xxx_messageInfo_SentimentAnalysisResult.DiscardUnknown(m)
1550}
1551
1552var xxx_messageInfo_SentimentAnalysisResult proto.InternalMessageInfo
1553
1554func (m *SentimentAnalysisResult) GetQueryTextSentiment() *Sentiment {
1555	if m != nil {
1556		return m.QueryTextSentiment
1557	}
1558	return nil
1559}
1560
1561// The sentiment, such as positive/negative feeling or association, for a unit
1562// of analysis, such as the query text.
1563type Sentiment struct {
1564	// Sentiment score between -1.0 (negative sentiment) and 1.0 (positive
1565	// sentiment).
1566	Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
1567	// A non-negative number in the [0, +inf) range, which represents the absolute
1568	// magnitude of sentiment, regardless of score (positive or negative).
1569	Magnitude            float32  `protobuf:"fixed32,2,opt,name=magnitude,proto3" json:"magnitude,omitempty"`
1570	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1571	XXX_unrecognized     []byte   `json:"-"`
1572	XXX_sizecache        int32    `json:"-"`
1573}
1574
1575func (m *Sentiment) Reset()         { *m = Sentiment{} }
1576func (m *Sentiment) String() string { return proto.CompactTextString(m) }
1577func (*Sentiment) ProtoMessage()    {}
1578func (*Sentiment) Descriptor() ([]byte, []int) {
1579	return fileDescriptor_40a53f854d709740, []int{13}
1580}
1581
1582func (m *Sentiment) XXX_Unmarshal(b []byte) error {
1583	return xxx_messageInfo_Sentiment.Unmarshal(m, b)
1584}
1585func (m *Sentiment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1586	return xxx_messageInfo_Sentiment.Marshal(b, m, deterministic)
1587}
1588func (m *Sentiment) XXX_Merge(src proto.Message) {
1589	xxx_messageInfo_Sentiment.Merge(m, src)
1590}
1591func (m *Sentiment) XXX_Size() int {
1592	return xxx_messageInfo_Sentiment.Size(m)
1593}
1594func (m *Sentiment) XXX_DiscardUnknown() {
1595	xxx_messageInfo_Sentiment.DiscardUnknown(m)
1596}
1597
1598var xxx_messageInfo_Sentiment proto.InternalMessageInfo
1599
1600func (m *Sentiment) GetScore() float32 {
1601	if m != nil {
1602		return m.Score
1603	}
1604	return 0
1605}
1606
1607func (m *Sentiment) GetMagnitude() float32 {
1608	if m != nil {
1609		return m.Magnitude
1610	}
1611	return 0
1612}
1613
1614func init() {
1615	proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeAnswers_Answer_MatchConfidenceLevel", KnowledgeAnswers_Answer_MatchConfidenceLevel_name, KnowledgeAnswers_Answer_MatchConfidenceLevel_value)
1616	proto.RegisterEnum("google.cloud.dialogflow.v2beta1.StreamingRecognitionResult_MessageType", StreamingRecognitionResult_MessageType_name, StreamingRecognitionResult_MessageType_value)
1617	proto.RegisterType((*DetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.DetectIntentRequest")
1618	proto.RegisterType((*DetectIntentResponse)(nil), "google.cloud.dialogflow.v2beta1.DetectIntentResponse")
1619	proto.RegisterType((*QueryParameters)(nil), "google.cloud.dialogflow.v2beta1.QueryParameters")
1620	proto.RegisterMapType((map[string]string)(nil), "google.cloud.dialogflow.v2beta1.QueryParameters.WebhookHeadersEntry")
1621	proto.RegisterType((*QueryInput)(nil), "google.cloud.dialogflow.v2beta1.QueryInput")
1622	proto.RegisterType((*QueryResult)(nil), "google.cloud.dialogflow.v2beta1.QueryResult")
1623	proto.RegisterType((*KnowledgeAnswers)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeAnswers")
1624	proto.RegisterType((*KnowledgeAnswers_Answer)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer")
1625	proto.RegisterType((*StreamingDetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest")
1626	proto.RegisterType((*StreamingDetectIntentResponse)(nil), "google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse")
1627	proto.RegisterType((*StreamingRecognitionResult)(nil), "google.cloud.dialogflow.v2beta1.StreamingRecognitionResult")
1628	proto.RegisterType((*TextInput)(nil), "google.cloud.dialogflow.v2beta1.TextInput")
1629	proto.RegisterType((*EventInput)(nil), "google.cloud.dialogflow.v2beta1.EventInput")
1630	proto.RegisterType((*SentimentAnalysisRequestConfig)(nil), "google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig")
1631	proto.RegisterType((*SentimentAnalysisResult)(nil), "google.cloud.dialogflow.v2beta1.SentimentAnalysisResult")
1632	proto.RegisterType((*Sentiment)(nil), "google.cloud.dialogflow.v2beta1.Sentiment")
1633}
1634
1635func init() {
1636	proto.RegisterFile("google/cloud/dialogflow/v2beta1/session.proto", fileDescriptor_40a53f854d709740)
1637}
1638
1639var fileDescriptor_40a53f854d709740 = []byte{
1640	// 2254 bytes of a gzipped FileDescriptorProto
1641	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0x4b, 0x6f, 0x1b, 0xc9,
1642	0xf1, 0x37, 0x49, 0xbd, 0x58, 0xa4, 0x25, 0xba, 0xad, 0x5d, 0x53, 0xb2, 0xd6, 0xd6, 0xd2, 0xff,
1643	0xff, 0xae, 0xfc, 0x58, 0xd2, 0x56, 0x5e, 0x5e, 0x1b, 0x5e, 0x9b, 0x22, 0x29, 0x89, 0x88, 0x5e,
1644	0x6e, 0xca, 0x76, 0x6c, 0x24, 0x3b, 0x68, 0xce, 0x34, 0xa9, 0xb1, 0x86, 0xd3, 0xd4, 0x74, 0x8f,
1645	0x64, 0xad, 0xe1, 0x1c, 0x92, 0x53, 0x72, 0x4c, 0x72, 0xcc, 0x29, 0x97, 0x20, 0x39, 0xe7, 0x03,
1646	0xe4, 0x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4e, 0x0f, 0xa9, 0x3b, 0xfa, 0x5d, 0x55,
1702	0x09, 0xb4, 0x43, 0x0c, 0x65, 0xbb, 0x32, 0x09, 0xe3, 0x92, 0xdc, 0x73, 0x3f, 0x99, 0x82, 0x54,
1703	0x84, 0xf3, 0xd0, 0x7b, 0xa0, 0xee, 0x33, 0x43, 0xee, 0x52, 0x79, 0x2e, 0x29, 0x25, 0xc1, 0x4e,
1704	0xd0, 0x15, 0x38, 0xeb, 0x10, 0xb7, 0xe9, 0x93, 0x26, 0x35, 0x4c, 0x66, 0xd1, 0xec, 0x8c, 0xd4,
1705	0x48, 0x87, 0xc2, 0x12, 0xb3, 0x28, 0x5a, 0x81, 0xf7, 0x78, 0x9b, 0x52, 0x73, 0xcf, 0xf0, 0xa8,
1706	0xc9, 0x9a, 0xae, 0x1d, 0x30, 0x84, 0x72, 0xa4, 0x45, 0x5d, 0x53, 0x39, 0x3f, 0x8e, 0x2f, 0x2a,
1707	0x25, 0xdc, 0xd5, 0x29, 0x75, 0x54, 0xd0, 0xbb, 0x30, 0x41, 0x4c, 0xc9, 0x40, 0x09, 0xb9, 0x82,
1708	0x1e, 0xa1, 0xef, 0x00, 0xb4, 0x3b, 0xb9, 0xa1, 0x2f, 0xd6, 0x81, 0xe7, 0x32, 0xa2, 0x8a, 0xee,
1709	0xc1, 0x45, 0xe2, 0x38, 0xf2, 0x60, 0xd9, 0x1e, 0xb5, 0x74, 0x11, 0x61, 0xb4, 0x03, 0x66, 0x71,
1710	0x85, 0xbc, 0xf1, 0xa6, 0x70, 0x96, 0x38, 0x0e, 0xd6, 0x1a, 0xaa, 0x40, 0xd8, 0x51, 0xf3, 0xe8,
1711	0x2a, 0x64, 0x1a, 0xbe, 0xd3, 0xb0, 0x1d, 0x47, 0x1e, 0x54, 0xe9, 0x9d, 0x09, 0xb9, 0xb3, 0x99,
1712	0x88, 0x5c, 0xfa, 0xa8, 0x0e, 0xb3, 0x51, 0xd5, 0x16, 0xe5, 0x9c, 0x34, 0x29, 0xcf, 0x4e, 0xca,
1713	0x03, 0x50, 0x18, 0x21, 0x85, 0x64, 0xd5, 0xb8, 0xa9, 0xec, 0xf0, 0xf9, 0x08, 0x98, 0x96, 0x49,
1714	0xa2, 0xec, 0xdc, 0x4c, 0xb2, 0x44, 0xce, 0x4e, 0xc9, 0xcd, 0x74, 0x6e, 0x21, 0x29, 0x44, 0x0f,
1715	0xba, 0xc7, 0x30, 0xa4, 0xb2, 0xe4, 0x9b, 0x5d, 0x16, 0xc2, 0xee, 0x68, 0x46, 0x7b, 0x08, 0x33,
1716	0xfa, 0x92, 0xea, 0x50, 0x32, 0x9c, 0x92, 0xde, 0xa7, 0x15, 0x40, 0x87, 0xbd, 0xef, 0xc3, 0x84,
1717	0x2a, 0x8c, 0xb3, 0x29, 0xb9, 0x97, 0x0f, 0x47, 0xf4, 0x08, 0xd6, 0x66, 0xe8, 0x13, 0xb8, 0xa8,
1718	0x9e, 0x0c, 0x4b, 0x56, 0x24, 0x3d, 0xd9, 0x95, 0x96, 0xd9, 0x35, 0xa7, 0x54, 0xca, 0xa1, 0x46,
1719	0x24, 0xb7, 0x1e, 0xc0, 0x8c, 0x65, 0x93, 0xa6, 0xcb, 0xb8, 0xb0, 0x4d, 0xc3, 0x76, 0x1b, 0x2c,
1720	0x3b, 0x3d, 0xc4, 0x2b, 0x5d, 0xfd, 0xaa, 0xdb, 0x60, 0x48, 0xc0, 0x5c, 0x5f, 0xd2, 0x96, 0x05,
1721	0xce, 0x39, 0x89, 0x75, 0xfb, 0x6d, 0xc8, 0x5a, 0x95, 0x23, 0xbc, 0xff, 0x04, 0xfa, 0x14, 0xce,
1722	0x75, 0x6f, 0x17, 0xe2, 0xf2, 0xa3, 0xe0, 0x08, 0xa0, 0x11, 0x89, 0xe9, 0xbb, 0xa1, 0x65, 0x51,
1723	0x19, 0xe2, 0xcc, 0x7e, 0x8f, 0x24, 0xf7, 0x65, 0x02, 0x32, 0xbd, 0x6a, 0x08, 0xc3, 0x64, 0xb8,
1724	0x54, 0x4c, 0x06, 0xfe, 0xf6, 0xa9, 0x97, 0xca, 0xab, 0x5f, 0x1c, 0x02, 0xcd, 0xff, 0x22, 0x01,
1725	0x13, 0x4a, 0x16, 0x24, 0x83, 0x4e, 0x60, 0xd5, 0x15, 0x7c, 0xf8, 0x45, 0xf1, 0xff, 0x20, 0x37,
1726	0xb8, 0x2b, 0x28, 0x33, 0xd3, 0x6f, 0xc9, 0x64, 0x50, 0x66, 0x41, 0xa1, 0xd5, 0x20, 0x07, 0x86,
1727	0xbc, 0xc6, 0xc2, 0x82, 0x25, 0x89, 0x53, 0x0d, 0x72, 0xf0, 0x50, 0x8b, 0x24, 0x97, 0xc8, 0xd5,
1728	0x3a, 0x5c, 0xa2, 0xd6, 0xfe, 0x71, 0x0c, 0xde, 0x6d, 0x11, 0x61, 0xee, 0x45, 0xb2, 0xc7, 0x70,
1729	0xe8, 0x21, 0x75, 0x24, 0xb1, 0x4c, 0x2f, 0x6f, 0xbe, 0xed, 0xab, 0xe6, 0x37, 0x03, 0xd8, 0x6e,
1730	0xca, 0x6d, 0x04, 0xa0, 0x78, 0xb6, 0xd5, 0x47, 0x1a, 0x30, 0x4b, 0xef, 0x26, 0x24, 0x1b, 0xc5,
1731	0xf1, 0x4c, 0x8f, 0x7e, 0xee, 0x07, 0x30, 0xdb, 0x0f, 0x18, 0x7d, 0x00, 0xb9, 0xcd, 0xe2, 0x6e,
1732	0x69, 0xdd, 0x28, 0x6d, 0x6f, 0xad, 0x56, 0xcb, 0x95, 0xad, 0x52, 0xc5, 0xd8, 0xa8, 0x3c, 0xae,
1733	0x6c, 0x18, 0x8f, 0xb6, 0x6a, 0x3b, 0x95, 0x52, 0x75, 0xb5, 0x5a, 0x29, 0x67, 0xce, 0xa0, 0x49,
1734	0x48, 0x6c, 0x6c, 0x3f, 0xc9, 0xc4, 0x10, 0xc0, 0xc4, 0x66, 0xa5, 0x5c, 0x7d, 0xb4, 0x99, 0x89,
1735	0xa3, 0x29, 0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 0x34, 0x42, 0xac, 0x63, 0x92, 0x58, 0x23, 0x12, 0xb4, 0x00, 0x49, 0x2e, 0x48,
1747	0xdd, 0x76, 0x6c, 0x71, 0x2c, 0xfd, 0x17, 0xc7, 0x5d, 0x01, 0x7a, 0x0a, 0x19, 0x5d, 0xca, 0x1e,
1748	0x31, 0xcf, 0x52, 0xb5, 0xc2, 0xa8, 0x75, 0x5c, 0x4d, 0x1a, 0x3e, 0x61, 0x9e, 0x15, 0xd4, 0x0c,
1749	0x78, 0x9a, 0xbf, 0x36, 0x46, 0x15, 0x38, 0xa7, 0xa1, 0xa9, 0x6b, 0x19, 0xac, 0xd1, 0xe0, 0x54,
1750	0xc8, 0x2a, 0x2e, 0xb5, 0x3c, 0x77, 0xe2, 0xe4, 0x97, 0xf5, 0x07, 0x3f, 0x3c, 0xa3, 0x6c, 0x2a,
1751	0xae, 0xb5, 0x2d, 0x2d, 0x72, 0xdf, 0x83, 0x54, 0xc4, 0x6d, 0x68, 0x01, 0xb2, 0x9b, 0x95, 0x5a,
1752	0xad, 0xb8, 0x56, 0x31, 0x76, 0x9f, 0xee, 0x54, 0x7a, 0x2e, 0x80, 0x69, 0x80, 0x5d, 0x5c, 0xdc,
1753	0xaa, 0x95, 0x70, 0x75, 0x67, 0x37, 0x13, 0x43, 0x17, 0xe1, 0x42, 0x65, 0xab, 0x6c, 0x6c, 0xaf,
1754	0x1a, 0xb5, 0xea, 0xd6, 0xda, 0x46, 0xc5, 0x78, 0xb4, 0xbb, 0x5b, 0xc1, 0xc5, 0xad, 0x52, 0x25,
1755	0x13, 0xcf, 0x95, 0x21, 0xd9, 0xe9, 0x3e, 0x10, 0xd2, 0x7d, 0x8b, 0xe2, 0x03, 0xd5, 0x89, 0x9c,
1756	0x68, 0x06, 0xe2, 0x27, 0x9b, 0x81, 0xdc, 0x0f, 0x01, 0xba, 0x0d, 0x48, 0x00, 0x13, 0x74, 0xc4,
1757	0x21, 0x4c, 0xf0, 0xdc, 0x53, 0xd2, 0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0xf1, 0xf2, 0xea, 0x6f, 0xe3, 0x97, 0xd7,
1780	0x14, 0x66, 0x49, 0x6e, 0xa2, 0xdc, 0xdd, 0xc4, 0x63, 0x65, 0x54, 0x9f, 0x90, 0xf8, 0xdf, 0xf8,
1781	0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x84, 0xe6, 0x76, 0x45, 0x41, 0x1c, 0x00, 0x00,
1782}
1783
1784// Reference imports to suppress errors if they are not otherwise used.
1785var _ context.Context
1786var _ grpc.ClientConnInterface
1787
1788// This is a compile-time assertion to ensure that this generated file
1789// is compatible with the grpc package it is being compiled against.
1790const _ = grpc.SupportPackageIsVersion6
1791
1792// SessionsClient is the client API for Sessions service.
1793//
1794// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1795type SessionsClient interface {
1796	// Processes a natural language query and returns structured, actionable data
1797	// as a result. This method is not idempotent, because it may cause contexts
1798	// and session entity types to be updated, which in turn might affect
1799	// results of future queries.
1800	DetectIntent(ctx context.Context, in *DetectIntentRequest, opts ...grpc.CallOption) (*DetectIntentResponse, error)
1801	// Processes a natural language query in audio format in a streaming fashion
1802	// and returns structured, actionable data as a result. This method is only
1803	// available via the gRPC API (not REST).
1804	StreamingDetectIntent(ctx context.Context, opts ...grpc.CallOption) (Sessions_StreamingDetectIntentClient, error)
1805}
1806
1807type sessionsClient struct {
1808	cc grpc.ClientConnInterface
1809}
1810
1811func NewSessionsClient(cc grpc.ClientConnInterface) SessionsClient {
1812	return &sessionsClient{cc}
1813}
1814
1815func (c *sessionsClient) DetectIntent(ctx context.Context, in *DetectIntentRequest, opts ...grpc.CallOption) (*DetectIntentResponse, error) {
1816	out := new(DetectIntentResponse)
1817	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Sessions/DetectIntent", in, out, opts...)
1818	if err != nil {
1819		return nil, err
1820	}
1821	return out, nil
1822}
1823
1824func (c *sessionsClient) StreamingDetectIntent(ctx context.Context, opts ...grpc.CallOption) (Sessions_StreamingDetectIntentClient, error) {
1825	stream, err := c.cc.NewStream(ctx, &_Sessions_serviceDesc.Streams[0], "/google.cloud.dialogflow.v2beta1.Sessions/StreamingDetectIntent", opts...)
1826	if err != nil {
1827		return nil, err
1828	}
1829	x := &sessionsStreamingDetectIntentClient{stream}
1830	return x, nil
1831}
1832
1833type Sessions_StreamingDetectIntentClient interface {
1834	Send(*StreamingDetectIntentRequest) error
1835	Recv() (*StreamingDetectIntentResponse, error)
1836	grpc.ClientStream
1837}
1838
1839type sessionsStreamingDetectIntentClient struct {
1840	grpc.ClientStream
1841}
1842
1843func (x *sessionsStreamingDetectIntentClient) Send(m *StreamingDetectIntentRequest) error {
1844	return x.ClientStream.SendMsg(m)
1845}
1846
1847func (x *sessionsStreamingDetectIntentClient) Recv() (*StreamingDetectIntentResponse, error) {
1848	m := new(StreamingDetectIntentResponse)
1849	if err := x.ClientStream.RecvMsg(m); err != nil {
1850		return nil, err
1851	}
1852	return m, nil
1853}
1854
1855// SessionsServer is the server API for Sessions service.
1856type SessionsServer interface {
1857	// Processes a natural language query and returns structured, actionable data
1858	// as a result. This method is not idempotent, because it may cause contexts
1859	// and session entity types to be updated, which in turn might affect
1860	// results of future queries.
1861	DetectIntent(context.Context, *DetectIntentRequest) (*DetectIntentResponse, error)
1862	// Processes a natural language query in audio format in a streaming fashion
1863	// and returns structured, actionable data as a result. This method is only
1864	// available via the gRPC API (not REST).
1865	StreamingDetectIntent(Sessions_StreamingDetectIntentServer) error
1866}
1867
1868// UnimplementedSessionsServer can be embedded to have forward compatible implementations.
1869type UnimplementedSessionsServer struct {
1870}
1871
1872func (*UnimplementedSessionsServer) DetectIntent(ctx context.Context, req *DetectIntentRequest) (*DetectIntentResponse, error) {
1873	return nil, status1.Errorf(codes.Unimplemented, "method DetectIntent not implemented")
1874}
1875func (*UnimplementedSessionsServer) StreamingDetectIntent(srv Sessions_StreamingDetectIntentServer) error {
1876	return status1.Errorf(codes.Unimplemented, "method StreamingDetectIntent not implemented")
1877}
1878
1879func RegisterSessionsServer(s *grpc.Server, srv SessionsServer) {
1880	s.RegisterService(&_Sessions_serviceDesc, srv)
1881}
1882
1883func _Sessions_DetectIntent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1884	in := new(DetectIntentRequest)
1885	if err := dec(in); err != nil {
1886		return nil, err
1887	}
1888	if interceptor == nil {
1889		return srv.(SessionsServer).DetectIntent(ctx, in)
1890	}
1891	info := &grpc.UnaryServerInfo{
1892		Server:     srv,
1893		FullMethod: "/google.cloud.dialogflow.v2beta1.Sessions/DetectIntent",
1894	}
1895	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1896		return srv.(SessionsServer).DetectIntent(ctx, req.(*DetectIntentRequest))
1897	}
1898	return interceptor(ctx, in, info, handler)
1899}
1900
1901func _Sessions_StreamingDetectIntent_Handler(srv interface{}, stream grpc.ServerStream) error {
1902	return srv.(SessionsServer).StreamingDetectIntent(&sessionsStreamingDetectIntentServer{stream})
1903}
1904
1905type Sessions_StreamingDetectIntentServer interface {
1906	Send(*StreamingDetectIntentResponse) error
1907	Recv() (*StreamingDetectIntentRequest, error)
1908	grpc.ServerStream
1909}
1910
1911type sessionsStreamingDetectIntentServer struct {
1912	grpc.ServerStream
1913}
1914
1915func (x *sessionsStreamingDetectIntentServer) Send(m *StreamingDetectIntentResponse) error {
1916	return x.ServerStream.SendMsg(m)
1917}
1918
1919func (x *sessionsStreamingDetectIntentServer) Recv() (*StreamingDetectIntentRequest, error) {
1920	m := new(StreamingDetectIntentRequest)
1921	if err := x.ServerStream.RecvMsg(m); err != nil {
1922		return nil, err
1923	}
1924	return m, nil
1925}
1926
1927var _Sessions_serviceDesc = grpc.ServiceDesc{
1928	ServiceName: "google.cloud.dialogflow.v2beta1.Sessions",
1929	HandlerType: (*SessionsServer)(nil),
1930	Methods: []grpc.MethodDesc{
1931		{
1932			MethodName: "DetectIntent",
1933			Handler:    _Sessions_DetectIntent_Handler,
1934		},
1935	},
1936	Streams: []grpc.StreamDesc{
1937		{
1938			StreamName:    "StreamingDetectIntent",
1939			Handler:       _Sessions_StreamingDetectIntent_Handler,
1940			ServerStreams: true,
1941			ClientStreams: true,
1942		},
1943	},
1944	Metadata: "google/cloud/dialogflow/v2beta1/session.proto",
1945}
1946