1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/dialogflow/v2beta1/agent.proto
3
4package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import _ "github.com/golang/protobuf/ptypes/empty"
10import _ "github.com/golang/protobuf/ptypes/struct"
11import _ "google.golang.org/genproto/googleapis/api/annotations"
12import longrunning "google.golang.org/genproto/googleapis/longrunning"
13import _ "google.golang.org/genproto/protobuf/field_mask"
14
15import (
16	context "golang.org/x/net/context"
17	grpc "google.golang.org/grpc"
18)
19
20// Reference imports to suppress errors if they are not otherwise used.
21var _ = proto.Marshal
22var _ = fmt.Errorf
23var _ = math.Inf
24
25// This is a compile-time assertion to ensure that this generated file
26// is compatible with the proto package it is being compiled against.
27// A compilation error at this line likely means your copy of the
28// proto package needs to be updated.
29const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
30
31// Match mode determines how intents are detected from user queries.
32type Agent_MatchMode int32
33
34const (
35	// Not specified.
36	Agent_MATCH_MODE_UNSPECIFIED Agent_MatchMode = 0
37	// Best for agents with a small number of examples in intents and/or wide
38	// use of templates syntax and composite entities.
39	Agent_MATCH_MODE_HYBRID Agent_MatchMode = 1
40	// Can be used for agents with a large number of examples in intents,
41	// especially the ones using @sys.any or very large developer entities.
42	Agent_MATCH_MODE_ML_ONLY Agent_MatchMode = 2
43)
44
45var Agent_MatchMode_name = map[int32]string{
46	0: "MATCH_MODE_UNSPECIFIED",
47	1: "MATCH_MODE_HYBRID",
48	2: "MATCH_MODE_ML_ONLY",
49}
50var Agent_MatchMode_value = map[string]int32{
51	"MATCH_MODE_UNSPECIFIED": 0,
52	"MATCH_MODE_HYBRID":      1,
53	"MATCH_MODE_ML_ONLY":     2,
54}
55
56func (x Agent_MatchMode) String() string {
57	return proto.EnumName(Agent_MatchMode_name, int32(x))
58}
59func (Agent_MatchMode) EnumDescriptor() ([]byte, []int) {
60	return fileDescriptor_agent_d116f64d830b765d, []int{0, 0}
61}
62
63// Represents a conversational agent.
64type Agent struct {
65	// Required. The project of this agent.
66	// Format: `projects/<Project ID>`.
67	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
68	// Required. The name of this agent.
69	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
70	// Required. The default language of the agent as a language tag. See
71	// [Language Support](https://dialogflow.com/docs/reference/language) for a
72	// list of the currently supported language codes.
73	// This field cannot be set by the `Update` method.
74	DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"`
75	// Optional. The list of all languages supported by this agent (except for the
76	// `default_language_code`).
77	SupportedLanguageCodes []string `protobuf:"bytes,4,rep,name=supported_language_codes,json=supportedLanguageCodes,proto3" json:"supported_language_codes,omitempty"`
78	// Required. The time zone of this agent from the
79	// [time zone database](https://www.iana.org/time-zones), e.g.,
80	// America/New_York, Europe/Paris.
81	TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
82	// Optional. The description of this agent.
83	// The maximum length is 500 characters. If exceeded, the request is rejected.
84	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
85	// Optional. The URI of the agent's avatar.
86	// Avatars are used throughout the Dialogflow console and in the self-hosted
87	// [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
88	AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri,proto3" json:"avatar_uri,omitempty"`
89	// Optional. Determines whether this agent should log conversation queries.
90	EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"`
91	// Optional. Determines how intents are detected from user queries.
92	MatchMode Agent_MatchMode `protobuf:"varint,9,opt,name=match_mode,json=matchMode,proto3,enum=google.cloud.dialogflow.v2beta1.Agent_MatchMode" json:"match_mode,omitempty"`
93	// Optional. To filter out false positive results and still get variety in
94	// matched natural language inputs for your agent, you can tune the machine
95	// learning classification threshold. If the returned score value is less than
96	// the threshold value, then a fallback intent is be triggered or, if there
97	// are no fallback intents defined, no intent will be triggered. The score
98	// values range from 0.0 (completely uncertain) to 1.0 (completely certain).
99	// If set to 0.0, the default of 0.3 is used.
100	ClassificationThreshold float32  `protobuf:"fixed32,10,opt,name=classification_threshold,json=classificationThreshold,proto3" json:"classification_threshold,omitempty"`
101	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
102	XXX_unrecognized        []byte   `json:"-"`
103	XXX_sizecache           int32    `json:"-"`
104}
105
106func (m *Agent) Reset()         { *m = Agent{} }
107func (m *Agent) String() string { return proto.CompactTextString(m) }
108func (*Agent) ProtoMessage()    {}
109func (*Agent) Descriptor() ([]byte, []int) {
110	return fileDescriptor_agent_d116f64d830b765d, []int{0}
111}
112func (m *Agent) XXX_Unmarshal(b []byte) error {
113	return xxx_messageInfo_Agent.Unmarshal(m, b)
114}
115func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
116	return xxx_messageInfo_Agent.Marshal(b, m, deterministic)
117}
118func (dst *Agent) XXX_Merge(src proto.Message) {
119	xxx_messageInfo_Agent.Merge(dst, src)
120}
121func (m *Agent) XXX_Size() int {
122	return xxx_messageInfo_Agent.Size(m)
123}
124func (m *Agent) XXX_DiscardUnknown() {
125	xxx_messageInfo_Agent.DiscardUnknown(m)
126}
127
128var xxx_messageInfo_Agent proto.InternalMessageInfo
129
130func (m *Agent) GetParent() string {
131	if m != nil {
132		return m.Parent
133	}
134	return ""
135}
136
137func (m *Agent) GetDisplayName() string {
138	if m != nil {
139		return m.DisplayName
140	}
141	return ""
142}
143
144func (m *Agent) GetDefaultLanguageCode() string {
145	if m != nil {
146		return m.DefaultLanguageCode
147	}
148	return ""
149}
150
151func (m *Agent) GetSupportedLanguageCodes() []string {
152	if m != nil {
153		return m.SupportedLanguageCodes
154	}
155	return nil
156}
157
158func (m *Agent) GetTimeZone() string {
159	if m != nil {
160		return m.TimeZone
161	}
162	return ""
163}
164
165func (m *Agent) GetDescription() string {
166	if m != nil {
167		return m.Description
168	}
169	return ""
170}
171
172func (m *Agent) GetAvatarUri() string {
173	if m != nil {
174		return m.AvatarUri
175	}
176	return ""
177}
178
179func (m *Agent) GetEnableLogging() bool {
180	if m != nil {
181		return m.EnableLogging
182	}
183	return false
184}
185
186func (m *Agent) GetMatchMode() Agent_MatchMode {
187	if m != nil {
188		return m.MatchMode
189	}
190	return Agent_MATCH_MODE_UNSPECIFIED
191}
192
193func (m *Agent) GetClassificationThreshold() float32 {
194	if m != nil {
195		return m.ClassificationThreshold
196	}
197	return 0
198}
199
200// The request message for [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
201type GetAgentRequest struct {
202	// Required. The project that the agent to fetch is associated with.
203	// Format: `projects/<Project ID>`.
204	Parent               string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
205	XXX_NoUnkeyedLiteral struct{} `json:"-"`
206	XXX_unrecognized     []byte   `json:"-"`
207	XXX_sizecache        int32    `json:"-"`
208}
209
210func (m *GetAgentRequest) Reset()         { *m = GetAgentRequest{} }
211func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) }
212func (*GetAgentRequest) ProtoMessage()    {}
213func (*GetAgentRequest) Descriptor() ([]byte, []int) {
214	return fileDescriptor_agent_d116f64d830b765d, []int{1}
215}
216func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error {
217	return xxx_messageInfo_GetAgentRequest.Unmarshal(m, b)
218}
219func (m *GetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
220	return xxx_messageInfo_GetAgentRequest.Marshal(b, m, deterministic)
221}
222func (dst *GetAgentRequest) XXX_Merge(src proto.Message) {
223	xxx_messageInfo_GetAgentRequest.Merge(dst, src)
224}
225func (m *GetAgentRequest) XXX_Size() int {
226	return xxx_messageInfo_GetAgentRequest.Size(m)
227}
228func (m *GetAgentRequest) XXX_DiscardUnknown() {
229	xxx_messageInfo_GetAgentRequest.DiscardUnknown(m)
230}
231
232var xxx_messageInfo_GetAgentRequest proto.InternalMessageInfo
233
234func (m *GetAgentRequest) GetParent() string {
235	if m != nil {
236		return m.Parent
237	}
238	return ""
239}
240
241// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
242type SearchAgentsRequest struct {
243	// Required. The project to list agents from.
244	// Format: `projects/<Project ID or '-'>`.
245	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
246	// Optional. The maximum number of items to return in a single page. By
247	// default 100 and at most 1000.
248	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
249	// Optional. The next_page_token value returned from a previous list request.
250	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
251	XXX_NoUnkeyedLiteral struct{} `json:"-"`
252	XXX_unrecognized     []byte   `json:"-"`
253	XXX_sizecache        int32    `json:"-"`
254}
255
256func (m *SearchAgentsRequest) Reset()         { *m = SearchAgentsRequest{} }
257func (m *SearchAgentsRequest) String() string { return proto.CompactTextString(m) }
258func (*SearchAgentsRequest) ProtoMessage()    {}
259func (*SearchAgentsRequest) Descriptor() ([]byte, []int) {
260	return fileDescriptor_agent_d116f64d830b765d, []int{2}
261}
262func (m *SearchAgentsRequest) XXX_Unmarshal(b []byte) error {
263	return xxx_messageInfo_SearchAgentsRequest.Unmarshal(m, b)
264}
265func (m *SearchAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
266	return xxx_messageInfo_SearchAgentsRequest.Marshal(b, m, deterministic)
267}
268func (dst *SearchAgentsRequest) XXX_Merge(src proto.Message) {
269	xxx_messageInfo_SearchAgentsRequest.Merge(dst, src)
270}
271func (m *SearchAgentsRequest) XXX_Size() int {
272	return xxx_messageInfo_SearchAgentsRequest.Size(m)
273}
274func (m *SearchAgentsRequest) XXX_DiscardUnknown() {
275	xxx_messageInfo_SearchAgentsRequest.DiscardUnknown(m)
276}
277
278var xxx_messageInfo_SearchAgentsRequest proto.InternalMessageInfo
279
280func (m *SearchAgentsRequest) GetParent() string {
281	if m != nil {
282		return m.Parent
283	}
284	return ""
285}
286
287func (m *SearchAgentsRequest) GetPageSize() int32 {
288	if m != nil {
289		return m.PageSize
290	}
291	return 0
292}
293
294func (m *SearchAgentsRequest) GetPageToken() string {
295	if m != nil {
296		return m.PageToken
297	}
298	return ""
299}
300
301// The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
302type SearchAgentsResponse struct {
303	// The list of agents. There will be a maximum number of items returned based
304	// on the page_size field in the request.
305	Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"`
306	// Token to retrieve the next page of results, or empty if there are no
307	// more results in the list.
308	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
309	XXX_NoUnkeyedLiteral struct{} `json:"-"`
310	XXX_unrecognized     []byte   `json:"-"`
311	XXX_sizecache        int32    `json:"-"`
312}
313
314func (m *SearchAgentsResponse) Reset()         { *m = SearchAgentsResponse{} }
315func (m *SearchAgentsResponse) String() string { return proto.CompactTextString(m) }
316func (*SearchAgentsResponse) ProtoMessage()    {}
317func (*SearchAgentsResponse) Descriptor() ([]byte, []int) {
318	return fileDescriptor_agent_d116f64d830b765d, []int{3}
319}
320func (m *SearchAgentsResponse) XXX_Unmarshal(b []byte) error {
321	return xxx_messageInfo_SearchAgentsResponse.Unmarshal(m, b)
322}
323func (m *SearchAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
324	return xxx_messageInfo_SearchAgentsResponse.Marshal(b, m, deterministic)
325}
326func (dst *SearchAgentsResponse) XXX_Merge(src proto.Message) {
327	xxx_messageInfo_SearchAgentsResponse.Merge(dst, src)
328}
329func (m *SearchAgentsResponse) XXX_Size() int {
330	return xxx_messageInfo_SearchAgentsResponse.Size(m)
331}
332func (m *SearchAgentsResponse) XXX_DiscardUnknown() {
333	xxx_messageInfo_SearchAgentsResponse.DiscardUnknown(m)
334}
335
336var xxx_messageInfo_SearchAgentsResponse proto.InternalMessageInfo
337
338func (m *SearchAgentsResponse) GetAgents() []*Agent {
339	if m != nil {
340		return m.Agents
341	}
342	return nil
343}
344
345func (m *SearchAgentsResponse) GetNextPageToken() string {
346	if m != nil {
347		return m.NextPageToken
348	}
349	return ""
350}
351
352// The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
353type TrainAgentRequest struct {
354	// Required. The project that the agent to train is associated with.
355	// Format: `projects/<Project ID>`.
356	Parent               string   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
357	XXX_NoUnkeyedLiteral struct{} `json:"-"`
358	XXX_unrecognized     []byte   `json:"-"`
359	XXX_sizecache        int32    `json:"-"`
360}
361
362func (m *TrainAgentRequest) Reset()         { *m = TrainAgentRequest{} }
363func (m *TrainAgentRequest) String() string { return proto.CompactTextString(m) }
364func (*TrainAgentRequest) ProtoMessage()    {}
365func (*TrainAgentRequest) Descriptor() ([]byte, []int) {
366	return fileDescriptor_agent_d116f64d830b765d, []int{4}
367}
368func (m *TrainAgentRequest) XXX_Unmarshal(b []byte) error {
369	return xxx_messageInfo_TrainAgentRequest.Unmarshal(m, b)
370}
371func (m *TrainAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
372	return xxx_messageInfo_TrainAgentRequest.Marshal(b, m, deterministic)
373}
374func (dst *TrainAgentRequest) XXX_Merge(src proto.Message) {
375	xxx_messageInfo_TrainAgentRequest.Merge(dst, src)
376}
377func (m *TrainAgentRequest) XXX_Size() int {
378	return xxx_messageInfo_TrainAgentRequest.Size(m)
379}
380func (m *TrainAgentRequest) XXX_DiscardUnknown() {
381	xxx_messageInfo_TrainAgentRequest.DiscardUnknown(m)
382}
383
384var xxx_messageInfo_TrainAgentRequest proto.InternalMessageInfo
385
386func (m *TrainAgentRequest) GetParent() string {
387	if m != nil {
388		return m.Parent
389	}
390	return ""
391}
392
393// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
394type ExportAgentRequest struct {
395	// Required. The project that the agent to export is associated with.
396	// Format: `projects/<Project ID>`.
397	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
398	// Optional. The
399	// [Google Cloud Storage](https://cloud.google.com/storage/docs/)
400	// URI to export the agent to.
401	// The format of this URI must be `gs://<bucket-name>/<object-name>`.
402	// If left unspecified, the serialized agent is returned inline.
403	AgentUri             string   `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3" json:"agent_uri,omitempty"`
404	XXX_NoUnkeyedLiteral struct{} `json:"-"`
405	XXX_unrecognized     []byte   `json:"-"`
406	XXX_sizecache        int32    `json:"-"`
407}
408
409func (m *ExportAgentRequest) Reset()         { *m = ExportAgentRequest{} }
410func (m *ExportAgentRequest) String() string { return proto.CompactTextString(m) }
411func (*ExportAgentRequest) ProtoMessage()    {}
412func (*ExportAgentRequest) Descriptor() ([]byte, []int) {
413	return fileDescriptor_agent_d116f64d830b765d, []int{5}
414}
415func (m *ExportAgentRequest) XXX_Unmarshal(b []byte) error {
416	return xxx_messageInfo_ExportAgentRequest.Unmarshal(m, b)
417}
418func (m *ExportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
419	return xxx_messageInfo_ExportAgentRequest.Marshal(b, m, deterministic)
420}
421func (dst *ExportAgentRequest) XXX_Merge(src proto.Message) {
422	xxx_messageInfo_ExportAgentRequest.Merge(dst, src)
423}
424func (m *ExportAgentRequest) XXX_Size() int {
425	return xxx_messageInfo_ExportAgentRequest.Size(m)
426}
427func (m *ExportAgentRequest) XXX_DiscardUnknown() {
428	xxx_messageInfo_ExportAgentRequest.DiscardUnknown(m)
429}
430
431var xxx_messageInfo_ExportAgentRequest proto.InternalMessageInfo
432
433func (m *ExportAgentRequest) GetParent() string {
434	if m != nil {
435		return m.Parent
436	}
437	return ""
438}
439
440func (m *ExportAgentRequest) GetAgentUri() string {
441	if m != nil {
442		return m.AgentUri
443	}
444	return ""
445}
446
447// The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
448type ExportAgentResponse struct {
449	// Required. The exported agent.
450	//
451	// Types that are valid to be assigned to Agent:
452	//	*ExportAgentResponse_AgentUri
453	//	*ExportAgentResponse_AgentContent
454	Agent                isExportAgentResponse_Agent `protobuf_oneof:"agent"`
455	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
456	XXX_unrecognized     []byte                      `json:"-"`
457	XXX_sizecache        int32                       `json:"-"`
458}
459
460func (m *ExportAgentResponse) Reset()         { *m = ExportAgentResponse{} }
461func (m *ExportAgentResponse) String() string { return proto.CompactTextString(m) }
462func (*ExportAgentResponse) ProtoMessage()    {}
463func (*ExportAgentResponse) Descriptor() ([]byte, []int) {
464	return fileDescriptor_agent_d116f64d830b765d, []int{6}
465}
466func (m *ExportAgentResponse) XXX_Unmarshal(b []byte) error {
467	return xxx_messageInfo_ExportAgentResponse.Unmarshal(m, b)
468}
469func (m *ExportAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
470	return xxx_messageInfo_ExportAgentResponse.Marshal(b, m, deterministic)
471}
472func (dst *ExportAgentResponse) XXX_Merge(src proto.Message) {
473	xxx_messageInfo_ExportAgentResponse.Merge(dst, src)
474}
475func (m *ExportAgentResponse) XXX_Size() int {
476	return xxx_messageInfo_ExportAgentResponse.Size(m)
477}
478func (m *ExportAgentResponse) XXX_DiscardUnknown() {
479	xxx_messageInfo_ExportAgentResponse.DiscardUnknown(m)
480}
481
482var xxx_messageInfo_ExportAgentResponse proto.InternalMessageInfo
483
484type isExportAgentResponse_Agent interface {
485	isExportAgentResponse_Agent()
486}
487
488type ExportAgentResponse_AgentUri struct {
489	AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,proto3,oneof"`
490}
491
492type ExportAgentResponse_AgentContent struct {
493	AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"`
494}
495
496func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent() {}
497
498func (*ExportAgentResponse_AgentContent) isExportAgentResponse_Agent() {}
499
500func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agent {
501	if m != nil {
502		return m.Agent
503	}
504	return nil
505}
506
507func (m *ExportAgentResponse) GetAgentUri() string {
508	if x, ok := m.GetAgent().(*ExportAgentResponse_AgentUri); ok {
509		return x.AgentUri
510	}
511	return ""
512}
513
514func (m *ExportAgentResponse) GetAgentContent() []byte {
515	if x, ok := m.GetAgent().(*ExportAgentResponse_AgentContent); ok {
516		return x.AgentContent
517	}
518	return nil
519}
520
521// XXX_OneofFuncs is for the internal use of the proto package.
522func (*ExportAgentResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
523	return _ExportAgentResponse_OneofMarshaler, _ExportAgentResponse_OneofUnmarshaler, _ExportAgentResponse_OneofSizer, []interface{}{
524		(*ExportAgentResponse_AgentUri)(nil),
525		(*ExportAgentResponse_AgentContent)(nil),
526	}
527}
528
529func _ExportAgentResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
530	m := msg.(*ExportAgentResponse)
531	// agent
532	switch x := m.Agent.(type) {
533	case *ExportAgentResponse_AgentUri:
534		b.EncodeVarint(1<<3 | proto.WireBytes)
535		b.EncodeStringBytes(x.AgentUri)
536	case *ExportAgentResponse_AgentContent:
537		b.EncodeVarint(2<<3 | proto.WireBytes)
538		b.EncodeRawBytes(x.AgentContent)
539	case nil:
540	default:
541		return fmt.Errorf("ExportAgentResponse.Agent has unexpected type %T", x)
542	}
543	return nil
544}
545
546func _ExportAgentResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
547	m := msg.(*ExportAgentResponse)
548	switch tag {
549	case 1: // agent.agent_uri
550		if wire != proto.WireBytes {
551			return true, proto.ErrInternalBadWireType
552		}
553		x, err := b.DecodeStringBytes()
554		m.Agent = &ExportAgentResponse_AgentUri{x}
555		return true, err
556	case 2: // agent.agent_content
557		if wire != proto.WireBytes {
558			return true, proto.ErrInternalBadWireType
559		}
560		x, err := b.DecodeRawBytes(true)
561		m.Agent = &ExportAgentResponse_AgentContent{x}
562		return true, err
563	default:
564		return false, nil
565	}
566}
567
568func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) {
569	m := msg.(*ExportAgentResponse)
570	// agent
571	switch x := m.Agent.(type) {
572	case *ExportAgentResponse_AgentUri:
573		n += 1 // tag and wire
574		n += proto.SizeVarint(uint64(len(x.AgentUri)))
575		n += len(x.AgentUri)
576	case *ExportAgentResponse_AgentContent:
577		n += 1 // tag and wire
578		n += proto.SizeVarint(uint64(len(x.AgentContent)))
579		n += len(x.AgentContent)
580	case nil:
581	default:
582		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
583	}
584	return n
585}
586
587// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
588type ImportAgentRequest struct {
589	// Required. The project that the agent to import is associated with.
590	// Format: `projects/<Project ID>`.
591	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
592	// Required. The agent to import.
593	//
594	// Types that are valid to be assigned to Agent:
595	//	*ImportAgentRequest_AgentUri
596	//	*ImportAgentRequest_AgentContent
597	Agent                isImportAgentRequest_Agent `protobuf_oneof:"agent"`
598	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
599	XXX_unrecognized     []byte                     `json:"-"`
600	XXX_sizecache        int32                      `json:"-"`
601}
602
603func (m *ImportAgentRequest) Reset()         { *m = ImportAgentRequest{} }
604func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) }
605func (*ImportAgentRequest) ProtoMessage()    {}
606func (*ImportAgentRequest) Descriptor() ([]byte, []int) {
607	return fileDescriptor_agent_d116f64d830b765d, []int{7}
608}
609func (m *ImportAgentRequest) XXX_Unmarshal(b []byte) error {
610	return xxx_messageInfo_ImportAgentRequest.Unmarshal(m, b)
611}
612func (m *ImportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
613	return xxx_messageInfo_ImportAgentRequest.Marshal(b, m, deterministic)
614}
615func (dst *ImportAgentRequest) XXX_Merge(src proto.Message) {
616	xxx_messageInfo_ImportAgentRequest.Merge(dst, src)
617}
618func (m *ImportAgentRequest) XXX_Size() int {
619	return xxx_messageInfo_ImportAgentRequest.Size(m)
620}
621func (m *ImportAgentRequest) XXX_DiscardUnknown() {
622	xxx_messageInfo_ImportAgentRequest.DiscardUnknown(m)
623}
624
625var xxx_messageInfo_ImportAgentRequest proto.InternalMessageInfo
626
627func (m *ImportAgentRequest) GetParent() string {
628	if m != nil {
629		return m.Parent
630	}
631	return ""
632}
633
634type isImportAgentRequest_Agent interface {
635	isImportAgentRequest_Agent()
636}
637
638type ImportAgentRequest_AgentUri struct {
639	AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
640}
641
642type ImportAgentRequest_AgentContent struct {
643	AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
644}
645
646func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent() {}
647
648func (*ImportAgentRequest_AgentContent) isImportAgentRequest_Agent() {}
649
650func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent {
651	if m != nil {
652		return m.Agent
653	}
654	return nil
655}
656
657func (m *ImportAgentRequest) GetAgentUri() string {
658	if x, ok := m.GetAgent().(*ImportAgentRequest_AgentUri); ok {
659		return x.AgentUri
660	}
661	return ""
662}
663
664func (m *ImportAgentRequest) GetAgentContent() []byte {
665	if x, ok := m.GetAgent().(*ImportAgentRequest_AgentContent); ok {
666		return x.AgentContent
667	}
668	return nil
669}
670
671// XXX_OneofFuncs is for the internal use of the proto package.
672func (*ImportAgentRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
673	return _ImportAgentRequest_OneofMarshaler, _ImportAgentRequest_OneofUnmarshaler, _ImportAgentRequest_OneofSizer, []interface{}{
674		(*ImportAgentRequest_AgentUri)(nil),
675		(*ImportAgentRequest_AgentContent)(nil),
676	}
677}
678
679func _ImportAgentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
680	m := msg.(*ImportAgentRequest)
681	// agent
682	switch x := m.Agent.(type) {
683	case *ImportAgentRequest_AgentUri:
684		b.EncodeVarint(2<<3 | proto.WireBytes)
685		b.EncodeStringBytes(x.AgentUri)
686	case *ImportAgentRequest_AgentContent:
687		b.EncodeVarint(3<<3 | proto.WireBytes)
688		b.EncodeRawBytes(x.AgentContent)
689	case nil:
690	default:
691		return fmt.Errorf("ImportAgentRequest.Agent has unexpected type %T", x)
692	}
693	return nil
694}
695
696func _ImportAgentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
697	m := msg.(*ImportAgentRequest)
698	switch tag {
699	case 2: // agent.agent_uri
700		if wire != proto.WireBytes {
701			return true, proto.ErrInternalBadWireType
702		}
703		x, err := b.DecodeStringBytes()
704		m.Agent = &ImportAgentRequest_AgentUri{x}
705		return true, err
706	case 3: // agent.agent_content
707		if wire != proto.WireBytes {
708			return true, proto.ErrInternalBadWireType
709		}
710		x, err := b.DecodeRawBytes(true)
711		m.Agent = &ImportAgentRequest_AgentContent{x}
712		return true, err
713	default:
714		return false, nil
715	}
716}
717
718func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) {
719	m := msg.(*ImportAgentRequest)
720	// agent
721	switch x := m.Agent.(type) {
722	case *ImportAgentRequest_AgentUri:
723		n += 1 // tag and wire
724		n += proto.SizeVarint(uint64(len(x.AgentUri)))
725		n += len(x.AgentUri)
726	case *ImportAgentRequest_AgentContent:
727		n += 1 // tag and wire
728		n += proto.SizeVarint(uint64(len(x.AgentContent)))
729		n += len(x.AgentContent)
730	case nil:
731	default:
732		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
733	}
734	return n
735}
736
737// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
738type RestoreAgentRequest struct {
739	// Required. The project that the agent to restore is associated with.
740	// Format: `projects/<Project ID>`.
741	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
742	// Required. The agent to restore.
743	//
744	// Types that are valid to be assigned to Agent:
745	//	*RestoreAgentRequest_AgentUri
746	//	*RestoreAgentRequest_AgentContent
747	Agent                isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
748	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
749	XXX_unrecognized     []byte                      `json:"-"`
750	XXX_sizecache        int32                       `json:"-"`
751}
752
753func (m *RestoreAgentRequest) Reset()         { *m = RestoreAgentRequest{} }
754func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) }
755func (*RestoreAgentRequest) ProtoMessage()    {}
756func (*RestoreAgentRequest) Descriptor() ([]byte, []int) {
757	return fileDescriptor_agent_d116f64d830b765d, []int{8}
758}
759func (m *RestoreAgentRequest) XXX_Unmarshal(b []byte) error {
760	return xxx_messageInfo_RestoreAgentRequest.Unmarshal(m, b)
761}
762func (m *RestoreAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
763	return xxx_messageInfo_RestoreAgentRequest.Marshal(b, m, deterministic)
764}
765func (dst *RestoreAgentRequest) XXX_Merge(src proto.Message) {
766	xxx_messageInfo_RestoreAgentRequest.Merge(dst, src)
767}
768func (m *RestoreAgentRequest) XXX_Size() int {
769	return xxx_messageInfo_RestoreAgentRequest.Size(m)
770}
771func (m *RestoreAgentRequest) XXX_DiscardUnknown() {
772	xxx_messageInfo_RestoreAgentRequest.DiscardUnknown(m)
773}
774
775var xxx_messageInfo_RestoreAgentRequest proto.InternalMessageInfo
776
777func (m *RestoreAgentRequest) GetParent() string {
778	if m != nil {
779		return m.Parent
780	}
781	return ""
782}
783
784type isRestoreAgentRequest_Agent interface {
785	isRestoreAgentRequest_Agent()
786}
787
788type RestoreAgentRequest_AgentUri struct {
789	AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
790}
791
792type RestoreAgentRequest_AgentContent struct {
793	AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
794}
795
796func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent() {}
797
798func (*RestoreAgentRequest_AgentContent) isRestoreAgentRequest_Agent() {}
799
800func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent {
801	if m != nil {
802		return m.Agent
803	}
804	return nil
805}
806
807func (m *RestoreAgentRequest) GetAgentUri() string {
808	if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentUri); ok {
809		return x.AgentUri
810	}
811	return ""
812}
813
814func (m *RestoreAgentRequest) GetAgentContent() []byte {
815	if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentContent); ok {
816		return x.AgentContent
817	}
818	return nil
819}
820
821// XXX_OneofFuncs is for the internal use of the proto package.
822func (*RestoreAgentRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
823	return _RestoreAgentRequest_OneofMarshaler, _RestoreAgentRequest_OneofUnmarshaler, _RestoreAgentRequest_OneofSizer, []interface{}{
824		(*RestoreAgentRequest_AgentUri)(nil),
825		(*RestoreAgentRequest_AgentContent)(nil),
826	}
827}
828
829func _RestoreAgentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
830	m := msg.(*RestoreAgentRequest)
831	// agent
832	switch x := m.Agent.(type) {
833	case *RestoreAgentRequest_AgentUri:
834		b.EncodeVarint(2<<3 | proto.WireBytes)
835		b.EncodeStringBytes(x.AgentUri)
836	case *RestoreAgentRequest_AgentContent:
837		b.EncodeVarint(3<<3 | proto.WireBytes)
838		b.EncodeRawBytes(x.AgentContent)
839	case nil:
840	default:
841		return fmt.Errorf("RestoreAgentRequest.Agent has unexpected type %T", x)
842	}
843	return nil
844}
845
846func _RestoreAgentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
847	m := msg.(*RestoreAgentRequest)
848	switch tag {
849	case 2: // agent.agent_uri
850		if wire != proto.WireBytes {
851			return true, proto.ErrInternalBadWireType
852		}
853		x, err := b.DecodeStringBytes()
854		m.Agent = &RestoreAgentRequest_AgentUri{x}
855		return true, err
856	case 3: // agent.agent_content
857		if wire != proto.WireBytes {
858			return true, proto.ErrInternalBadWireType
859		}
860		x, err := b.DecodeRawBytes(true)
861		m.Agent = &RestoreAgentRequest_AgentContent{x}
862		return true, err
863	default:
864		return false, nil
865	}
866}
867
868func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) {
869	m := msg.(*RestoreAgentRequest)
870	// agent
871	switch x := m.Agent.(type) {
872	case *RestoreAgentRequest_AgentUri:
873		n += 1 // tag and wire
874		n += proto.SizeVarint(uint64(len(x.AgentUri)))
875		n += len(x.AgentUri)
876	case *RestoreAgentRequest_AgentContent:
877		n += 1 // tag and wire
878		n += proto.SizeVarint(uint64(len(x.AgentContent)))
879		n += len(x.AgentContent)
880	case nil:
881	default:
882		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
883	}
884	return n
885}
886
887func init() {
888	proto.RegisterType((*Agent)(nil), "google.cloud.dialogflow.v2beta1.Agent")
889	proto.RegisterType((*GetAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.GetAgentRequest")
890	proto.RegisterType((*SearchAgentsRequest)(nil), "google.cloud.dialogflow.v2beta1.SearchAgentsRequest")
891	proto.RegisterType((*SearchAgentsResponse)(nil), "google.cloud.dialogflow.v2beta1.SearchAgentsResponse")
892	proto.RegisterType((*TrainAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.TrainAgentRequest")
893	proto.RegisterType((*ExportAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.ExportAgentRequest")
894	proto.RegisterType((*ExportAgentResponse)(nil), "google.cloud.dialogflow.v2beta1.ExportAgentResponse")
895	proto.RegisterType((*ImportAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.ImportAgentRequest")
896	proto.RegisterType((*RestoreAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.RestoreAgentRequest")
897	proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value)
898}
899
900// Reference imports to suppress errors if they are not otherwise used.
901var _ context.Context
902var _ grpc.ClientConn
903
904// This is a compile-time assertion to ensure that this generated file
905// is compatible with the grpc package it is being compiled against.
906const _ = grpc.SupportPackageIsVersion4
907
908// AgentsClient is the client API for Agents service.
909//
910// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
911type AgentsClient interface {
912	// Retrieves the specified agent.
913	GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
914	// Returns the list of agents.
915	//
916	// Since there is at most one conversational agent per project, this method is
917	// useful primarily for listing all agents across projects the caller has
918	// access to. One can achieve that with a wildcard project collection id "-".
919	// Refer to [List
920	// Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
921	SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error)
922	// Trains the specified agent.
923	//
924	//
925	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
926	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
927	TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
928	// Exports the specified agent to a ZIP file.
929	//
930	//
931	// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
932	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
933	ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
934	// Imports the specified agent from a ZIP file.
935	//
936	// Uploads new intents and entity types without deleting the existing ones.
937	// Intents and entity types with the same name are replaced with the new
938	// versions from ImportAgentRequest.
939	//
940	//
941	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
942	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
943	ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
944	// Restores the specified agent from a ZIP file.
945	//
946	// Replaces the current agent version with a new one. All the intents and
947	// entity types in the older version are deleted.
948	//
949	//
950	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
951	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
952	RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
953}
954
955type agentsClient struct {
956	cc *grpc.ClientConn
957}
958
959func NewAgentsClient(cc *grpc.ClientConn) AgentsClient {
960	return &agentsClient{cc}
961}
962
963func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error) {
964	out := new(Agent)
965	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/GetAgent", in, out, opts...)
966	if err != nil {
967		return nil, err
968	}
969	return out, nil
970}
971
972func (c *agentsClient) SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error) {
973	out := new(SearchAgentsResponse)
974	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents", in, out, opts...)
975	if err != nil {
976		return nil, err
977	}
978	return out, nil
979}
980
981func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
982	out := new(longrunning.Operation)
983	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent", in, out, opts...)
984	if err != nil {
985		return nil, err
986	}
987	return out, nil
988}
989
990func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
991	out := new(longrunning.Operation)
992	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent", in, out, opts...)
993	if err != nil {
994		return nil, err
995	}
996	return out, nil
997}
998
999func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1000	out := new(longrunning.Operation)
1001	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent", in, out, opts...)
1002	if err != nil {
1003		return nil, err
1004	}
1005	return out, nil
1006}
1007
1008func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1009	out := new(longrunning.Operation)
1010	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent", in, out, opts...)
1011	if err != nil {
1012		return nil, err
1013	}
1014	return out, nil
1015}
1016
1017// AgentsServer is the server API for Agents service.
1018type AgentsServer interface {
1019	// Retrieves the specified agent.
1020	GetAgent(context.Context, *GetAgentRequest) (*Agent, error)
1021	// Returns the list of agents.
1022	//
1023	// Since there is at most one conversational agent per project, this method is
1024	// useful primarily for listing all agents across projects the caller has
1025	// access to. One can achieve that with a wildcard project collection id "-".
1026	// Refer to [List
1027	// Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
1028	SearchAgents(context.Context, *SearchAgentsRequest) (*SearchAgentsResponse, error)
1029	// Trains the specified agent.
1030	//
1031	//
1032	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
1033	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1034	TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error)
1035	// Exports the specified agent to a ZIP file.
1036	//
1037	//
1038	// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
1039	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1040	ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error)
1041	// Imports the specified agent from a ZIP file.
1042	//
1043	// Uploads new intents and entity types without deleting the existing ones.
1044	// Intents and entity types with the same name are replaced with the new
1045	// versions from ImportAgentRequest.
1046	//
1047	//
1048	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
1049	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1050	ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error)
1051	// Restores the specified agent from a ZIP file.
1052	//
1053	// Replaces the current agent version with a new one. All the intents and
1054	// entity types in the older version are deleted.
1055	//
1056	//
1057	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
1058	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1059	RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error)
1060}
1061
1062func RegisterAgentsServer(s *grpc.Server, srv AgentsServer) {
1063	s.RegisterService(&_Agents_serviceDesc, srv)
1064}
1065
1066func _Agents_GetAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1067	in := new(GetAgentRequest)
1068	if err := dec(in); err != nil {
1069		return nil, err
1070	}
1071	if interceptor == nil {
1072		return srv.(AgentsServer).GetAgent(ctx, in)
1073	}
1074	info := &grpc.UnaryServerInfo{
1075		Server:     srv,
1076		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/GetAgent",
1077	}
1078	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1079		return srv.(AgentsServer).GetAgent(ctx, req.(*GetAgentRequest))
1080	}
1081	return interceptor(ctx, in, info, handler)
1082}
1083
1084func _Agents_SearchAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1085	in := new(SearchAgentsRequest)
1086	if err := dec(in); err != nil {
1087		return nil, err
1088	}
1089	if interceptor == nil {
1090		return srv.(AgentsServer).SearchAgents(ctx, in)
1091	}
1092	info := &grpc.UnaryServerInfo{
1093		Server:     srv,
1094		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents",
1095	}
1096	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1097		return srv.(AgentsServer).SearchAgents(ctx, req.(*SearchAgentsRequest))
1098	}
1099	return interceptor(ctx, in, info, handler)
1100}
1101
1102func _Agents_TrainAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1103	in := new(TrainAgentRequest)
1104	if err := dec(in); err != nil {
1105		return nil, err
1106	}
1107	if interceptor == nil {
1108		return srv.(AgentsServer).TrainAgent(ctx, in)
1109	}
1110	info := &grpc.UnaryServerInfo{
1111		Server:     srv,
1112		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent",
1113	}
1114	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1115		return srv.(AgentsServer).TrainAgent(ctx, req.(*TrainAgentRequest))
1116	}
1117	return interceptor(ctx, in, info, handler)
1118}
1119
1120func _Agents_ExportAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1121	in := new(ExportAgentRequest)
1122	if err := dec(in); err != nil {
1123		return nil, err
1124	}
1125	if interceptor == nil {
1126		return srv.(AgentsServer).ExportAgent(ctx, in)
1127	}
1128	info := &grpc.UnaryServerInfo{
1129		Server:     srv,
1130		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent",
1131	}
1132	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1133		return srv.(AgentsServer).ExportAgent(ctx, req.(*ExportAgentRequest))
1134	}
1135	return interceptor(ctx, in, info, handler)
1136}
1137
1138func _Agents_ImportAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1139	in := new(ImportAgentRequest)
1140	if err := dec(in); err != nil {
1141		return nil, err
1142	}
1143	if interceptor == nil {
1144		return srv.(AgentsServer).ImportAgent(ctx, in)
1145	}
1146	info := &grpc.UnaryServerInfo{
1147		Server:     srv,
1148		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent",
1149	}
1150	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1151		return srv.(AgentsServer).ImportAgent(ctx, req.(*ImportAgentRequest))
1152	}
1153	return interceptor(ctx, in, info, handler)
1154}
1155
1156func _Agents_RestoreAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1157	in := new(RestoreAgentRequest)
1158	if err := dec(in); err != nil {
1159		return nil, err
1160	}
1161	if interceptor == nil {
1162		return srv.(AgentsServer).RestoreAgent(ctx, in)
1163	}
1164	info := &grpc.UnaryServerInfo{
1165		Server:     srv,
1166		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent",
1167	}
1168	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1169		return srv.(AgentsServer).RestoreAgent(ctx, req.(*RestoreAgentRequest))
1170	}
1171	return interceptor(ctx, in, info, handler)
1172}
1173
1174var _Agents_serviceDesc = grpc.ServiceDesc{
1175	ServiceName: "google.cloud.dialogflow.v2beta1.Agents",
1176	HandlerType: (*AgentsServer)(nil),
1177	Methods: []grpc.MethodDesc{
1178		{
1179			MethodName: "GetAgent",
1180			Handler:    _Agents_GetAgent_Handler,
1181		},
1182		{
1183			MethodName: "SearchAgents",
1184			Handler:    _Agents_SearchAgents_Handler,
1185		},
1186		{
1187			MethodName: "TrainAgent",
1188			Handler:    _Agents_TrainAgent_Handler,
1189		},
1190		{
1191			MethodName: "ExportAgent",
1192			Handler:    _Agents_ExportAgent_Handler,
1193		},
1194		{
1195			MethodName: "ImportAgent",
1196			Handler:    _Agents_ImportAgent_Handler,
1197		},
1198		{
1199			MethodName: "RestoreAgent",
1200			Handler:    _Agents_RestoreAgent_Handler,
1201		},
1202	},
1203	Streams:  []grpc.StreamDesc{},
1204	Metadata: "google/cloud/dialogflow/v2beta1/agent.proto",
1205}
1206
1207func init() {
1208	proto.RegisterFile("google/cloud/dialogflow/v2beta1/agent.proto", fileDescriptor_agent_d116f64d830b765d)
1209}
1210
1211var fileDescriptor_agent_d116f64d830b765d = []byte{
1212	// 975 bytes of a gzipped FileDescriptorProto
1213	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0xdc, 0x44,
1214	0x14, 0xae, 0x37, 0x4d, 0xb2, 0xfb, 0x92, 0xb4, 0xe9, 0x84, 0x06, 0x6b, 0xdb, 0xa8, 0x8b, 0x4b,
1215	0xab, 0xed, 0x46, 0xd8, 0x74, 0xd3, 0x4a, 0x10, 0x04, 0x52, 0xb3, 0x9b, 0x36, 0x2b, 0x65, 0x93,
1216	0xc8, 0x49, 0x2a, 0xb5, 0x17, 0x6b, 0x62, 0xcf, 0x3a, 0x43, 0xed, 0x19, 0xe3, 0x99, 0x2d, 0x6d,
1217	0x0a, 0x1c, 0xf8, 0x05, 0x48, 0x20, 0x21, 0x38, 0x72, 0x42, 0x1c, 0x38, 0xf1, 0x4f, 0xf8, 0x0b,
1218	0xfc, 0x08, 0x8e, 0xc8, 0x63, 0x6f, 0xd6, 0x9b, 0xb4, 0xb5, 0x91, 0x90, 0xb8, 0xd9, 0xdf, 0xfb,
1219	0xde, 0x7b, 0xdf, 0xcc, 0x7c, 0x4f, 0x33, 0xb0, 0xea, 0x73, 0xee, 0x07, 0xc4, 0x72, 0x03, 0x3e,
1220	0xf4, 0x2c, 0x8f, 0xe2, 0x80, 0xfb, 0x83, 0x80, 0x7f, 0x69, 0x3d, 0x6f, 0x1f, 0x11, 0x89, 0xef,
1221	0x5a, 0xd8, 0x27, 0x4c, 0x9a, 0x51, 0xcc, 0x25, 0x47, 0x37, 0x52, 0xb2, 0xa9, 0xc8, 0xe6, 0x98,
1222	0x6c, 0x66, 0xe4, 0xfa, 0xf5, 0xac, 0x1a, 0x8e, 0xa8, 0x85, 0x19, 0xe3, 0x12, 0x4b, 0xca, 0x99,
1223	0x48, 0xd3, 0xeb, 0x37, 0xb3, 0x68, 0xc0, 0x99, 0x1f, 0x0f, 0x19, 0xa3, 0xcc, 0xb7, 0x78, 0x44,
1224	0xe2, 0x09, 0xd2, 0xb5, 0x8c, 0xa4, 0xfe, 0x8e, 0x86, 0x03, 0x8b, 0x84, 0x91, 0x7c, 0x99, 0x05,
1225	0x1b, 0x67, 0x83, 0x03, 0x4a, 0x02, 0xcf, 0x09, 0xb1, 0x78, 0x96, 0x31, 0xae, 0x9f, 0x65, 0x08,
1226	0x19, 0x0f, 0xdd, 0x6c, 0x01, 0xc6, 0x4f, 0x17, 0x61, 0xfa, 0x41, 0xb2, 0x20, 0xb4, 0x0c, 0x33,
1227	0x11, 0x8e, 0x09, 0x93, 0xba, 0xd6, 0xd0, 0x9a, 0x35, 0x3b, 0xfb, 0x43, 0xef, 0xc1, 0xbc, 0x47,
1228	0x45, 0x14, 0xe0, 0x97, 0x0e, 0xc3, 0x21, 0xd1, 0x2b, 0x2a, 0x3a, 0x97, 0x61, 0x3b, 0x38, 0x24,
1229	0xa8, 0x0d, 0x57, 0x3d, 0x32, 0xc0, 0xc3, 0x40, 0x3a, 0x01, 0x66, 0xfe, 0x10, 0xfb, 0xc4, 0x71,
1230	0xb9, 0x47, 0xf4, 0x29, 0xc5, 0x5d, 0xca, 0x82, 0xdb, 0x59, 0xac, 0xc3, 0x3d, 0x82, 0x3e, 0x02,
1231	0x5d, 0x0c, 0xa3, 0x88, 0xc7, 0x92, 0x78, 0x93, 0x59, 0x42, 0xbf, 0xd8, 0x98, 0x6a, 0xd6, 0xec,
1232	0xe5, 0xd3, 0x78, 0x3e, 0x51, 0xa0, 0x6b, 0x50, 0x93, 0x34, 0x24, 0xce, 0x09, 0x67, 0x44, 0x9f,
1233	0x56, 0x1d, 0xaa, 0x09, 0xf0, 0x94, 0x33, 0x82, 0x1a, 0x30, 0xe7, 0x11, 0xe1, 0xc6, 0x34, 0x4a,
1234	0xb6, 0x50, 0x9f, 0xc9, 0xc4, 0x8e, 0x21, 0xb4, 0x02, 0x80, 0x9f, 0x63, 0x89, 0x63, 0x67, 0x18,
1235	0x53, 0x7d, 0x56, 0x11, 0x6a, 0x29, 0x72, 0x18, 0x53, 0x74, 0x0b, 0x2e, 0x11, 0x86, 0x8f, 0x02,
1236	0xe2, 0x04, 0xdc, 0xf7, 0x29, 0xf3, 0xf5, 0x6a, 0x43, 0x6b, 0x56, 0xed, 0x85, 0x14, 0xdd, 0x4e,
1237	0x41, 0xb4, 0x0b, 0x10, 0x62, 0xe9, 0x1e, 0x3b, 0x61, 0xb2, 0xce, 0x5a, 0x43, 0x6b, 0x5e, 0x6a,
1238	0x7f, 0x68, 0x16, 0xb8, 0xc1, 0x54, 0x3b, 0x6d, 0xf6, 0x93, 0xc4, 0x3e, 0xf7, 0x88, 0x5d, 0x0b,
1239	0x47, 0x9f, 0xe8, 0x63, 0xd0, 0xdd, 0x00, 0x0b, 0x41, 0x07, 0xd4, 0x55, 0xc7, 0xef, 0xc8, 0xe3,
1240	0x98, 0x88, 0x63, 0x1e, 0x78, 0x3a, 0x34, 0xb4, 0x66, 0xc5, 0x7e, 0x77, 0x32, 0x7e, 0x30, 0x0a,
1241	0x1b, 0x8f, 0xa1, 0x76, 0x5a, 0x12, 0xd5, 0x61, 0xb9, 0xff, 0xe0, 0xa0, 0xb3, 0xe5, 0xf4, 0x77,
1242	0xbb, 0x9b, 0xce, 0xe1, 0xce, 0xfe, 0xde, 0x66, 0xa7, 0xf7, 0xb0, 0xb7, 0xd9, 0x5d, 0xbc, 0x80,
1243	0xae, 0xc2, 0x95, 0x5c, 0x6c, 0xeb, 0xc9, 0x86, 0xdd, 0xeb, 0x2e, 0x6a, 0x68, 0x19, 0x50, 0x0e,
1244	0xee, 0x6f, 0x3b, 0xbb, 0x3b, 0xdb, 0x4f, 0x16, 0x2b, 0xc6, 0x1d, 0xb8, 0xfc, 0x88, 0x48, 0xa5,
1245	0xd9, 0x26, 0x5f, 0x0c, 0x89, 0x78, 0xa3, 0x49, 0x0c, 0x0a, 0x4b, 0xfb, 0x04, 0xc7, 0xee, 0xb1,
1246	0x62, 0x8b, 0x02, 0x7a, 0x72, 0x84, 0x51, 0x72, 0xdc, 0x82, 0x9e, 0xa4, 0x86, 0x9a, 0xb6, 0xab,
1247	0x09, 0xb0, 0x4f, 0x4f, 0x48, 0x72, 0x40, 0x2a, 0x28, 0xf9, 0x33, 0xc2, 0x32, 0x0b, 0x29, 0xfa,
1248	0x41, 0x02, 0x18, 0xdf, 0xc0, 0x3b, 0x93, 0xad, 0x44, 0xc4, 0x99, 0x20, 0xe8, 0x33, 0x98, 0x51,
1249	0x93, 0x29, 0x74, 0xad, 0x31, 0xd5, 0x9c, 0x6b, 0xdf, 0x2e, 0x77, 0x1a, 0x76, 0x96, 0x85, 0x6e,
1250	0xc3, 0x65, 0x46, 0x5e, 0x48, 0x27, 0xd7, 0x3b, 0xb5, 0xfa, 0x42, 0x02, 0xef, 0x9d, 0xf6, 0x5f,
1251	0x85, 0x2b, 0x07, 0x31, 0xa6, 0xac, 0xd4, 0xbe, 0xf4, 0x00, 0x6d, 0xbe, 0x48, 0x4c, 0x5c, 0x86,
1252	0x9d, 0x6c, 0x8b, 0x12, 0xa3, 0x9c, 0x99, 0x36, 0xaf, 0x2a, 0xe0, 0x30, 0xa6, 0x86, 0x07, 0x4b,
1253	0x13, 0xa5, 0xb2, 0x65, 0xaf, 0xe4, 0x73, 0x54, 0xb9, 0xad, 0x0b, 0xe3, 0x2c, 0x74, 0x0b, 0x16,
1254	0xd2, 0xb0, 0xcb, 0x99, 0x4c, 0x3a, 0x26, 0x65, 0xe7, 0xb7, 0x2e, 0xd8, 0xf3, 0x0a, 0xee, 0xa4,
1255	0xe8, 0xc6, 0x2c, 0x4c, 0xab, 0x7f, 0xe3, 0x15, 0xa0, 0x5e, 0x58, 0x5a, 0xf0, 0xca, 0x39, 0xc1,
1256	0x6f, 0x6f, 0x3e, 0xf5, 0xf6, 0xe6, 0x5f, 0xc1, 0x92, 0x4d, 0x84, 0xe4, 0x31, 0xf9, 0x1f, 0xba,
1257	0xb7, 0xff, 0x98, 0x85, 0x99, 0xd4, 0x53, 0xe8, 0x3b, 0x0d, 0xaa, 0x23, 0xeb, 0xa3, 0xe2, 0xb1,
1258	0x3e, 0x33, 0x25, 0xf5, 0x92, 0xd6, 0x33, 0x5a, 0xdf, 0xfe, 0xf9, 0xd7, 0xf7, 0x95, 0xf7, 0x91,
1259	0x71, 0x7a, 0xb7, 0xbc, 0x4a, 0x97, 0xf6, 0x69, 0x14, 0xf3, 0xcf, 0x89, 0x2b, 0x85, 0xd5, 0xfa,
1260	0x3a, 0xbd, 0x6f, 0xd0, 0xef, 0x1a, 0xcc, 0xe7, 0x7d, 0x8f, 0xee, 0x15, 0x36, 0x79, 0xcd, 0x44,
1261	0xd6, 0xef, 0xff, 0xcb, 0xac, 0xd4, 0x65, 0xc6, 0x5d, 0xa5, 0x74, 0x15, 0xdd, 0x29, 0x56, 0xba,
1262	0x2e, 0x54, 0x01, 0xf4, 0x83, 0x06, 0x30, 0x1e, 0x14, 0xd4, 0x2e, 0x6c, 0x7c, 0x6e, 0xaa, 0xea,
1263	0x2b, 0xa3, 0x9c, 0xdc, 0xfd, 0x68, 0xee, 0x8e, 0xee, 0x47, 0x63, 0x4d, 0x89, 0xfa, 0xc0, 0x68,
1264	0x96, 0x10, 0x25, 0x93, 0xe2, 0xeb, 0x5a, 0x0b, 0xfd, 0xa8, 0xc1, 0x5c, 0x6e, 0x8e, 0xd0, 0x5a,
1265	0xa1, 0xae, 0xf3, 0x03, 0x5c, 0x24, 0xec, 0x9e, 0x12, 0x66, 0x1a, 0x65, 0x76, 0x8b, 0xa8, 0xea,
1266	0x23, 0x65, 0xb9, 0xd9, 0x2b, 0xa1, 0xec, 0xfc, 0xa4, 0xfe, 0x97, 0xca, 0x68, 0x38, 0x52, 0xf6,
1267	0xb3, 0x06, 0xf3, 0xf9, 0xc1, 0x2c, 0xe1, 0xbd, 0xd7, 0xcc, 0x71, 0x91, 0xb6, 0xfb, 0x4a, 0x9b,
1268	0x65, 0xb4, 0x4a, 0x68, 0x8b, 0xd3, 0xf2, 0xeb, 0x5a, 0x6b, 0xe3, 0x57, 0x0d, 0x6e, 0xba, 0x3c,
1269	0x2c, 0x52, 0xb4, 0x01, 0x4a, 0xcb, 0x5e, 0xf2, 0xea, 0xd9, 0xd3, 0x9e, 0xf6, 0x32, 0xba, 0xcf,
1270	0x93, 0xb7, 0x87, 0xc9, 0x63, 0xdf, 0xf2, 0x09, 0x53, 0x6f, 0x22, 0x2b, 0x0d, 0xe1, 0x88, 0x8a,
1271	0x37, 0x3e, 0x02, 0x3f, 0x19, 0x43, 0x7f, 0x6b, 0xda, 0x2f, 0x95, 0x4a, 0xf7, 0xe1, 0x6f, 0x95,
1272	0x1b, 0x8f, 0xd2, 0x9a, 0x1d, 0x25, 0xa1, 0x3b, 0x96, 0xf0, 0x38, 0x4d, 0x3a, 0x9a, 0x51, 0xf5,
1273	0xd7, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x35, 0x4d, 0xe2, 0x83, 0x63, 0x0a, 0x00, 0x00,
1274}
1275