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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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_6f0f32ddc044642c, []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}
491type ExportAgentResponse_AgentContent struct {
492	AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"`
493}
494
495func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent()     {}
496func (*ExportAgentResponse_AgentContent) isExportAgentResponse_Agent() {}
497
498func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agent {
499	if m != nil {
500		return m.Agent
501	}
502	return nil
503}
504
505func (m *ExportAgentResponse) GetAgentUri() string {
506	if x, ok := m.GetAgent().(*ExportAgentResponse_AgentUri); ok {
507		return x.AgentUri
508	}
509	return ""
510}
511
512func (m *ExportAgentResponse) GetAgentContent() []byte {
513	if x, ok := m.GetAgent().(*ExportAgentResponse_AgentContent); ok {
514		return x.AgentContent
515	}
516	return nil
517}
518
519// XXX_OneofFuncs is for the internal use of the proto package.
520func (*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{}) {
521	return _ExportAgentResponse_OneofMarshaler, _ExportAgentResponse_OneofUnmarshaler, _ExportAgentResponse_OneofSizer, []interface{}{
522		(*ExportAgentResponse_AgentUri)(nil),
523		(*ExportAgentResponse_AgentContent)(nil),
524	}
525}
526
527func _ExportAgentResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
528	m := msg.(*ExportAgentResponse)
529	// agent
530	switch x := m.Agent.(type) {
531	case *ExportAgentResponse_AgentUri:
532		b.EncodeVarint(1<<3 | proto.WireBytes)
533		b.EncodeStringBytes(x.AgentUri)
534	case *ExportAgentResponse_AgentContent:
535		b.EncodeVarint(2<<3 | proto.WireBytes)
536		b.EncodeRawBytes(x.AgentContent)
537	case nil:
538	default:
539		return fmt.Errorf("ExportAgentResponse.Agent has unexpected type %T", x)
540	}
541	return nil
542}
543
544func _ExportAgentResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
545	m := msg.(*ExportAgentResponse)
546	switch tag {
547	case 1: // agent.agent_uri
548		if wire != proto.WireBytes {
549			return true, proto.ErrInternalBadWireType
550		}
551		x, err := b.DecodeStringBytes()
552		m.Agent = &ExportAgentResponse_AgentUri{x}
553		return true, err
554	case 2: // agent.agent_content
555		if wire != proto.WireBytes {
556			return true, proto.ErrInternalBadWireType
557		}
558		x, err := b.DecodeRawBytes(true)
559		m.Agent = &ExportAgentResponse_AgentContent{x}
560		return true, err
561	default:
562		return false, nil
563	}
564}
565
566func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) {
567	m := msg.(*ExportAgentResponse)
568	// agent
569	switch x := m.Agent.(type) {
570	case *ExportAgentResponse_AgentUri:
571		n += 1 // tag and wire
572		n += proto.SizeVarint(uint64(len(x.AgentUri)))
573		n += len(x.AgentUri)
574	case *ExportAgentResponse_AgentContent:
575		n += 1 // tag and wire
576		n += proto.SizeVarint(uint64(len(x.AgentContent)))
577		n += len(x.AgentContent)
578	case nil:
579	default:
580		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
581	}
582	return n
583}
584
585// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
586type ImportAgentRequest struct {
587	// Required. The project that the agent to import is associated with.
588	// Format: `projects/<Project ID>`.
589	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
590	// Required. The agent to import.
591	//
592	// Types that are valid to be assigned to Agent:
593	//	*ImportAgentRequest_AgentUri
594	//	*ImportAgentRequest_AgentContent
595	Agent                isImportAgentRequest_Agent `protobuf_oneof:"agent"`
596	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
597	XXX_unrecognized     []byte                     `json:"-"`
598	XXX_sizecache        int32                      `json:"-"`
599}
600
601func (m *ImportAgentRequest) Reset()         { *m = ImportAgentRequest{} }
602func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) }
603func (*ImportAgentRequest) ProtoMessage()    {}
604func (*ImportAgentRequest) Descriptor() ([]byte, []int) {
605	return fileDescriptor_agent_6f0f32ddc044642c, []int{7}
606}
607func (m *ImportAgentRequest) XXX_Unmarshal(b []byte) error {
608	return xxx_messageInfo_ImportAgentRequest.Unmarshal(m, b)
609}
610func (m *ImportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
611	return xxx_messageInfo_ImportAgentRequest.Marshal(b, m, deterministic)
612}
613func (dst *ImportAgentRequest) XXX_Merge(src proto.Message) {
614	xxx_messageInfo_ImportAgentRequest.Merge(dst, src)
615}
616func (m *ImportAgentRequest) XXX_Size() int {
617	return xxx_messageInfo_ImportAgentRequest.Size(m)
618}
619func (m *ImportAgentRequest) XXX_DiscardUnknown() {
620	xxx_messageInfo_ImportAgentRequest.DiscardUnknown(m)
621}
622
623var xxx_messageInfo_ImportAgentRequest proto.InternalMessageInfo
624
625type isImportAgentRequest_Agent interface {
626	isImportAgentRequest_Agent()
627}
628
629type ImportAgentRequest_AgentUri struct {
630	AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
631}
632type ImportAgentRequest_AgentContent struct {
633	AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
634}
635
636func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent()     {}
637func (*ImportAgentRequest_AgentContent) isImportAgentRequest_Agent() {}
638
639func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent {
640	if m != nil {
641		return m.Agent
642	}
643	return nil
644}
645
646func (m *ImportAgentRequest) GetParent() string {
647	if m != nil {
648		return m.Parent
649	}
650	return ""
651}
652
653func (m *ImportAgentRequest) GetAgentUri() string {
654	if x, ok := m.GetAgent().(*ImportAgentRequest_AgentUri); ok {
655		return x.AgentUri
656	}
657	return ""
658}
659
660func (m *ImportAgentRequest) GetAgentContent() []byte {
661	if x, ok := m.GetAgent().(*ImportAgentRequest_AgentContent); ok {
662		return x.AgentContent
663	}
664	return nil
665}
666
667// XXX_OneofFuncs is for the internal use of the proto package.
668func (*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{}) {
669	return _ImportAgentRequest_OneofMarshaler, _ImportAgentRequest_OneofUnmarshaler, _ImportAgentRequest_OneofSizer, []interface{}{
670		(*ImportAgentRequest_AgentUri)(nil),
671		(*ImportAgentRequest_AgentContent)(nil),
672	}
673}
674
675func _ImportAgentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
676	m := msg.(*ImportAgentRequest)
677	// agent
678	switch x := m.Agent.(type) {
679	case *ImportAgentRequest_AgentUri:
680		b.EncodeVarint(2<<3 | proto.WireBytes)
681		b.EncodeStringBytes(x.AgentUri)
682	case *ImportAgentRequest_AgentContent:
683		b.EncodeVarint(3<<3 | proto.WireBytes)
684		b.EncodeRawBytes(x.AgentContent)
685	case nil:
686	default:
687		return fmt.Errorf("ImportAgentRequest.Agent has unexpected type %T", x)
688	}
689	return nil
690}
691
692func _ImportAgentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
693	m := msg.(*ImportAgentRequest)
694	switch tag {
695	case 2: // agent.agent_uri
696		if wire != proto.WireBytes {
697			return true, proto.ErrInternalBadWireType
698		}
699		x, err := b.DecodeStringBytes()
700		m.Agent = &ImportAgentRequest_AgentUri{x}
701		return true, err
702	case 3: // agent.agent_content
703		if wire != proto.WireBytes {
704			return true, proto.ErrInternalBadWireType
705		}
706		x, err := b.DecodeRawBytes(true)
707		m.Agent = &ImportAgentRequest_AgentContent{x}
708		return true, err
709	default:
710		return false, nil
711	}
712}
713
714func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) {
715	m := msg.(*ImportAgentRequest)
716	// agent
717	switch x := m.Agent.(type) {
718	case *ImportAgentRequest_AgentUri:
719		n += 1 // tag and wire
720		n += proto.SizeVarint(uint64(len(x.AgentUri)))
721		n += len(x.AgentUri)
722	case *ImportAgentRequest_AgentContent:
723		n += 1 // tag and wire
724		n += proto.SizeVarint(uint64(len(x.AgentContent)))
725		n += len(x.AgentContent)
726	case nil:
727	default:
728		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
729	}
730	return n
731}
732
733// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
734type RestoreAgentRequest struct {
735	// Required. The project that the agent to restore is associated with.
736	// Format: `projects/<Project ID>`.
737	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
738	// Required. The agent to restore.
739	//
740	// Types that are valid to be assigned to Agent:
741	//	*RestoreAgentRequest_AgentUri
742	//	*RestoreAgentRequest_AgentContent
743	Agent                isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
744	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
745	XXX_unrecognized     []byte                      `json:"-"`
746	XXX_sizecache        int32                       `json:"-"`
747}
748
749func (m *RestoreAgentRequest) Reset()         { *m = RestoreAgentRequest{} }
750func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) }
751func (*RestoreAgentRequest) ProtoMessage()    {}
752func (*RestoreAgentRequest) Descriptor() ([]byte, []int) {
753	return fileDescriptor_agent_6f0f32ddc044642c, []int{8}
754}
755func (m *RestoreAgentRequest) XXX_Unmarshal(b []byte) error {
756	return xxx_messageInfo_RestoreAgentRequest.Unmarshal(m, b)
757}
758func (m *RestoreAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
759	return xxx_messageInfo_RestoreAgentRequest.Marshal(b, m, deterministic)
760}
761func (dst *RestoreAgentRequest) XXX_Merge(src proto.Message) {
762	xxx_messageInfo_RestoreAgentRequest.Merge(dst, src)
763}
764func (m *RestoreAgentRequest) XXX_Size() int {
765	return xxx_messageInfo_RestoreAgentRequest.Size(m)
766}
767func (m *RestoreAgentRequest) XXX_DiscardUnknown() {
768	xxx_messageInfo_RestoreAgentRequest.DiscardUnknown(m)
769}
770
771var xxx_messageInfo_RestoreAgentRequest proto.InternalMessageInfo
772
773type isRestoreAgentRequest_Agent interface {
774	isRestoreAgentRequest_Agent()
775}
776
777type RestoreAgentRequest_AgentUri struct {
778	AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
779}
780type RestoreAgentRequest_AgentContent struct {
781	AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
782}
783
784func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent()     {}
785func (*RestoreAgentRequest_AgentContent) isRestoreAgentRequest_Agent() {}
786
787func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent {
788	if m != nil {
789		return m.Agent
790	}
791	return nil
792}
793
794func (m *RestoreAgentRequest) GetParent() string {
795	if m != nil {
796		return m.Parent
797	}
798	return ""
799}
800
801func (m *RestoreAgentRequest) GetAgentUri() string {
802	if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentUri); ok {
803		return x.AgentUri
804	}
805	return ""
806}
807
808func (m *RestoreAgentRequest) GetAgentContent() []byte {
809	if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentContent); ok {
810		return x.AgentContent
811	}
812	return nil
813}
814
815// XXX_OneofFuncs is for the internal use of the proto package.
816func (*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{}) {
817	return _RestoreAgentRequest_OneofMarshaler, _RestoreAgentRequest_OneofUnmarshaler, _RestoreAgentRequest_OneofSizer, []interface{}{
818		(*RestoreAgentRequest_AgentUri)(nil),
819		(*RestoreAgentRequest_AgentContent)(nil),
820	}
821}
822
823func _RestoreAgentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
824	m := msg.(*RestoreAgentRequest)
825	// agent
826	switch x := m.Agent.(type) {
827	case *RestoreAgentRequest_AgentUri:
828		b.EncodeVarint(2<<3 | proto.WireBytes)
829		b.EncodeStringBytes(x.AgentUri)
830	case *RestoreAgentRequest_AgentContent:
831		b.EncodeVarint(3<<3 | proto.WireBytes)
832		b.EncodeRawBytes(x.AgentContent)
833	case nil:
834	default:
835		return fmt.Errorf("RestoreAgentRequest.Agent has unexpected type %T", x)
836	}
837	return nil
838}
839
840func _RestoreAgentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
841	m := msg.(*RestoreAgentRequest)
842	switch tag {
843	case 2: // agent.agent_uri
844		if wire != proto.WireBytes {
845			return true, proto.ErrInternalBadWireType
846		}
847		x, err := b.DecodeStringBytes()
848		m.Agent = &RestoreAgentRequest_AgentUri{x}
849		return true, err
850	case 3: // agent.agent_content
851		if wire != proto.WireBytes {
852			return true, proto.ErrInternalBadWireType
853		}
854		x, err := b.DecodeRawBytes(true)
855		m.Agent = &RestoreAgentRequest_AgentContent{x}
856		return true, err
857	default:
858		return false, nil
859	}
860}
861
862func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) {
863	m := msg.(*RestoreAgentRequest)
864	// agent
865	switch x := m.Agent.(type) {
866	case *RestoreAgentRequest_AgentUri:
867		n += 1 // tag and wire
868		n += proto.SizeVarint(uint64(len(x.AgentUri)))
869		n += len(x.AgentUri)
870	case *RestoreAgentRequest_AgentContent:
871		n += 1 // tag and wire
872		n += proto.SizeVarint(uint64(len(x.AgentContent)))
873		n += len(x.AgentContent)
874	case nil:
875	default:
876		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
877	}
878	return n
879}
880
881func init() {
882	proto.RegisterType((*Agent)(nil), "google.cloud.dialogflow.v2beta1.Agent")
883	proto.RegisterType((*GetAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.GetAgentRequest")
884	proto.RegisterType((*SearchAgentsRequest)(nil), "google.cloud.dialogflow.v2beta1.SearchAgentsRequest")
885	proto.RegisterType((*SearchAgentsResponse)(nil), "google.cloud.dialogflow.v2beta1.SearchAgentsResponse")
886	proto.RegisterType((*TrainAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.TrainAgentRequest")
887	proto.RegisterType((*ExportAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.ExportAgentRequest")
888	proto.RegisterType((*ExportAgentResponse)(nil), "google.cloud.dialogflow.v2beta1.ExportAgentResponse")
889	proto.RegisterType((*ImportAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.ImportAgentRequest")
890	proto.RegisterType((*RestoreAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.RestoreAgentRequest")
891	proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value)
892}
893
894// Reference imports to suppress errors if they are not otherwise used.
895var _ context.Context
896var _ grpc.ClientConn
897
898// This is a compile-time assertion to ensure that this generated file
899// is compatible with the grpc package it is being compiled against.
900const _ = grpc.SupportPackageIsVersion4
901
902// AgentsClient is the client API for Agents service.
903//
904// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
905type AgentsClient interface {
906	// Retrieves the specified agent.
907	GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
908	// Returns the list of agents.
909	//
910	// Since there is at most one conversational agent per project, this method is
911	// useful primarily for listing all agents across projects the caller has
912	// access to. One can achieve that with a wildcard project collection id "-".
913	// Refer to [List
914	// Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
915	SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error)
916	// Trains the specified agent.
917	//
918	//
919	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
920	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
921	TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
922	// Exports the specified agent to a ZIP file.
923	//
924	//
925	// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
926	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
927	ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
928	// Imports the specified agent from a ZIP file.
929	//
930	// Uploads new intents and entity types without deleting the existing ones.
931	// Intents and entity types with the same name are replaced with the new
932	// versions from ImportAgentRequest.
933	//
934	//
935	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
936	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
937	ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
938	// Restores the specified agent from a ZIP file.
939	//
940	// Replaces the current agent version with a new one. All the intents and
941	// entity types in the older version are deleted.
942	//
943	//
944	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
945	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
946	RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
947}
948
949type agentsClient struct {
950	cc *grpc.ClientConn
951}
952
953func NewAgentsClient(cc *grpc.ClientConn) AgentsClient {
954	return &agentsClient{cc}
955}
956
957func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error) {
958	out := new(Agent)
959	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/GetAgent", in, out, opts...)
960	if err != nil {
961		return nil, err
962	}
963	return out, nil
964}
965
966func (c *agentsClient) SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error) {
967	out := new(SearchAgentsResponse)
968	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents", in, out, opts...)
969	if err != nil {
970		return nil, err
971	}
972	return out, nil
973}
974
975func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
976	out := new(longrunning.Operation)
977	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent", in, out, opts...)
978	if err != nil {
979		return nil, err
980	}
981	return out, nil
982}
983
984func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
985	out := new(longrunning.Operation)
986	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent", in, out, opts...)
987	if err != nil {
988		return nil, err
989	}
990	return out, nil
991}
992
993func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
994	out := new(longrunning.Operation)
995	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent", in, out, opts...)
996	if err != nil {
997		return nil, err
998	}
999	return out, nil
1000}
1001
1002func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1003	out := new(longrunning.Operation)
1004	err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent", in, out, opts...)
1005	if err != nil {
1006		return nil, err
1007	}
1008	return out, nil
1009}
1010
1011// AgentsServer is the server API for Agents service.
1012type AgentsServer interface {
1013	// Retrieves the specified agent.
1014	GetAgent(context.Context, *GetAgentRequest) (*Agent, error)
1015	// Returns the list of agents.
1016	//
1017	// Since there is at most one conversational agent per project, this method is
1018	// useful primarily for listing all agents across projects the caller has
1019	// access to. One can achieve that with a wildcard project collection id "-".
1020	// Refer to [List
1021	// Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
1022	SearchAgents(context.Context, *SearchAgentsRequest) (*SearchAgentsResponse, error)
1023	// Trains the specified agent.
1024	//
1025	//
1026	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
1027	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1028	TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error)
1029	// Exports the specified agent to a ZIP file.
1030	//
1031	//
1032	// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
1033	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1034	ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error)
1035	// Imports the specified agent from a ZIP file.
1036	//
1037	// Uploads new intents and entity types without deleting the existing ones.
1038	// Intents and entity types with the same name are replaced with the new
1039	// versions from ImportAgentRequest.
1040	//
1041	//
1042	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
1043	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1044	ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error)
1045	// Restores the specified agent from a ZIP file.
1046	//
1047	// Replaces the current agent version with a new one. All the intents and
1048	// entity types in the older version are deleted.
1049	//
1050	//
1051	// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
1052	//            metadata: [google.protobuf.Struct][google.protobuf.Struct]>
1053	RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error)
1054}
1055
1056func RegisterAgentsServer(s *grpc.Server, srv AgentsServer) {
1057	s.RegisterService(&_Agents_serviceDesc, srv)
1058}
1059
1060func _Agents_GetAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1061	in := new(GetAgentRequest)
1062	if err := dec(in); err != nil {
1063		return nil, err
1064	}
1065	if interceptor == nil {
1066		return srv.(AgentsServer).GetAgent(ctx, in)
1067	}
1068	info := &grpc.UnaryServerInfo{
1069		Server:     srv,
1070		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/GetAgent",
1071	}
1072	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1073		return srv.(AgentsServer).GetAgent(ctx, req.(*GetAgentRequest))
1074	}
1075	return interceptor(ctx, in, info, handler)
1076}
1077
1078func _Agents_SearchAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1079	in := new(SearchAgentsRequest)
1080	if err := dec(in); err != nil {
1081		return nil, err
1082	}
1083	if interceptor == nil {
1084		return srv.(AgentsServer).SearchAgents(ctx, in)
1085	}
1086	info := &grpc.UnaryServerInfo{
1087		Server:     srv,
1088		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents",
1089	}
1090	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1091		return srv.(AgentsServer).SearchAgents(ctx, req.(*SearchAgentsRequest))
1092	}
1093	return interceptor(ctx, in, info, handler)
1094}
1095
1096func _Agents_TrainAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1097	in := new(TrainAgentRequest)
1098	if err := dec(in); err != nil {
1099		return nil, err
1100	}
1101	if interceptor == nil {
1102		return srv.(AgentsServer).TrainAgent(ctx, in)
1103	}
1104	info := &grpc.UnaryServerInfo{
1105		Server:     srv,
1106		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent",
1107	}
1108	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1109		return srv.(AgentsServer).TrainAgent(ctx, req.(*TrainAgentRequest))
1110	}
1111	return interceptor(ctx, in, info, handler)
1112}
1113
1114func _Agents_ExportAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1115	in := new(ExportAgentRequest)
1116	if err := dec(in); err != nil {
1117		return nil, err
1118	}
1119	if interceptor == nil {
1120		return srv.(AgentsServer).ExportAgent(ctx, in)
1121	}
1122	info := &grpc.UnaryServerInfo{
1123		Server:     srv,
1124		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent",
1125	}
1126	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1127		return srv.(AgentsServer).ExportAgent(ctx, req.(*ExportAgentRequest))
1128	}
1129	return interceptor(ctx, in, info, handler)
1130}
1131
1132func _Agents_ImportAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1133	in := new(ImportAgentRequest)
1134	if err := dec(in); err != nil {
1135		return nil, err
1136	}
1137	if interceptor == nil {
1138		return srv.(AgentsServer).ImportAgent(ctx, in)
1139	}
1140	info := &grpc.UnaryServerInfo{
1141		Server:     srv,
1142		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent",
1143	}
1144	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1145		return srv.(AgentsServer).ImportAgent(ctx, req.(*ImportAgentRequest))
1146	}
1147	return interceptor(ctx, in, info, handler)
1148}
1149
1150func _Agents_RestoreAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1151	in := new(RestoreAgentRequest)
1152	if err := dec(in); err != nil {
1153		return nil, err
1154	}
1155	if interceptor == nil {
1156		return srv.(AgentsServer).RestoreAgent(ctx, in)
1157	}
1158	info := &grpc.UnaryServerInfo{
1159		Server:     srv,
1160		FullMethod: "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent",
1161	}
1162	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1163		return srv.(AgentsServer).RestoreAgent(ctx, req.(*RestoreAgentRequest))
1164	}
1165	return interceptor(ctx, in, info, handler)
1166}
1167
1168var _Agents_serviceDesc = grpc.ServiceDesc{
1169	ServiceName: "google.cloud.dialogflow.v2beta1.Agents",
1170	HandlerType: (*AgentsServer)(nil),
1171	Methods: []grpc.MethodDesc{
1172		{
1173			MethodName: "GetAgent",
1174			Handler:    _Agents_GetAgent_Handler,
1175		},
1176		{
1177			MethodName: "SearchAgents",
1178			Handler:    _Agents_SearchAgents_Handler,
1179		},
1180		{
1181			MethodName: "TrainAgent",
1182			Handler:    _Agents_TrainAgent_Handler,
1183		},
1184		{
1185			MethodName: "ExportAgent",
1186			Handler:    _Agents_ExportAgent_Handler,
1187		},
1188		{
1189			MethodName: "ImportAgent",
1190			Handler:    _Agents_ImportAgent_Handler,
1191		},
1192		{
1193			MethodName: "RestoreAgent",
1194			Handler:    _Agents_RestoreAgent_Handler,
1195		},
1196	},
1197	Streams:  []grpc.StreamDesc{},
1198	Metadata: "google/cloud/dialogflow/v2beta1/agent.proto",
1199}
1200
1201func init() {
1202	proto.RegisterFile("google/cloud/dialogflow/v2beta1/agent.proto", fileDescriptor_agent_6f0f32ddc044642c)
1203}
1204
1205var fileDescriptor_agent_6f0f32ddc044642c = []byte{
1206	// 975 bytes of a gzipped FileDescriptorProto
1207	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0xdc, 0x44,
1208	0x14, 0xae, 0x37, 0x4d, 0xb2, 0xfb, 0x92, 0xb4, 0xe9, 0x84, 0x06, 0x6b, 0xdb, 0xa8, 0x8b, 0x4b,
1209	0xab, 0xed, 0x46, 0xd8, 0x74, 0xd3, 0x4a, 0x10, 0x04, 0x52, 0xb3, 0x9b, 0x36, 0x2b, 0x65, 0x93,
1210	0xc8, 0x49, 0x2a, 0xb5, 0x17, 0x6b, 0x62, 0xcf, 0x3a, 0x43, 0xed, 0x19, 0xe3, 0x99, 0x2d, 0x6d,
1211	0x0a, 0x1c, 0xf8, 0x05, 0x48, 0x20, 0x21, 0x38, 0x72, 0x42, 0x1c, 0x38, 0xf1, 0x4f, 0xf8, 0x0b,
1212	0xfc, 0x08, 0x8e, 0xc8, 0x63, 0x6f, 0xd6, 0x9b, 0xb4, 0xb5, 0x91, 0x90, 0xb8, 0xd9, 0xdf, 0xfb,
1213	0xde, 0x7b, 0xdf, 0xcc, 0x7c, 0x4f, 0x33, 0xb0, 0xea, 0x73, 0xee, 0x07, 0xc4, 0x72, 0x03, 0x3e,
1214	0xf4, 0x2c, 0x8f, 0xe2, 0x80, 0xfb, 0x83, 0x80, 0x7f, 0x69, 0x3d, 0x6f, 0x1f, 0x11, 0x89, 0xef,
1215	0x5a, 0xd8, 0x27, 0x4c, 0x9a, 0x51, 0xcc, 0x25, 0x47, 0x37, 0x52, 0xb2, 0xa9, 0xc8, 0xe6, 0x98,
1216	0x6c, 0x66, 0xe4, 0xfa, 0xf5, 0xac, 0x1a, 0x8e, 0xa8, 0x85, 0x19, 0xe3, 0x12, 0x4b, 0xca, 0x99,
1217	0x48, 0xd3, 0xeb, 0x37, 0xb3, 0x68, 0xc0, 0x99, 0x1f, 0x0f, 0x19, 0xa3, 0xcc, 0xb7, 0x78, 0x44,
1218	0xe2, 0x09, 0xd2, 0xb5, 0x8c, 0xa4, 0xfe, 0x8e, 0x86, 0x03, 0x8b, 0x84, 0x91, 0x7c, 0x99, 0x05,
1219	0x1b, 0x67, 0x83, 0x03, 0x4a, 0x02, 0xcf, 0x09, 0xb1, 0x78, 0x96, 0x31, 0xae, 0x9f, 0x65, 0x08,
1220	0x19, 0x0f, 0xdd, 0x6c, 0x01, 0xc6, 0x4f, 0x17, 0x61, 0xfa, 0x41, 0xb2, 0x20, 0xb4, 0x0c, 0x33,
1221	0x11, 0x8e, 0x09, 0x93, 0xba, 0xd6, 0xd0, 0x9a, 0x35, 0x3b, 0xfb, 0x43, 0xef, 0xc1, 0xbc, 0x47,
1222	0x45, 0x14, 0xe0, 0x97, 0x0e, 0xc3, 0x21, 0xd1, 0x2b, 0x2a, 0x3a, 0x97, 0x61, 0x3b, 0x38, 0x24,
1223	0xa8, 0x0d, 0x57, 0x3d, 0x32, 0xc0, 0xc3, 0x40, 0x3a, 0x01, 0x66, 0xfe, 0x10, 0xfb, 0xc4, 0x71,
1224	0xb9, 0x47, 0xf4, 0x29, 0xc5, 0x5d, 0xca, 0x82, 0xdb, 0x59, 0xac, 0xc3, 0x3d, 0x82, 0x3e, 0x02,
1225	0x5d, 0x0c, 0xa3, 0x88, 0xc7, 0x92, 0x78, 0x93, 0x59, 0x42, 0xbf, 0xd8, 0x98, 0x6a, 0xd6, 0xec,
1226	0xe5, 0xd3, 0x78, 0x3e, 0x51, 0xa0, 0x6b, 0x50, 0x93, 0x34, 0x24, 0xce, 0x09, 0x67, 0x44, 0x9f,
1227	0x56, 0x1d, 0xaa, 0x09, 0xf0, 0x94, 0x33, 0x82, 0x1a, 0x30, 0xe7, 0x11, 0xe1, 0xc6, 0x34, 0x4a,
1228	0xb6, 0x50, 0x9f, 0xc9, 0xc4, 0x8e, 0x21, 0xb4, 0x02, 0x80, 0x9f, 0x63, 0x89, 0x63, 0x67, 0x18,
1229	0x53, 0x7d, 0x56, 0x11, 0x6a, 0x29, 0x72, 0x18, 0x53, 0x74, 0x0b, 0x2e, 0x11, 0x86, 0x8f, 0x02,
1230	0xe2, 0x04, 0xdc, 0xf7, 0x29, 0xf3, 0xf5, 0x6a, 0x43, 0x6b, 0x56, 0xed, 0x85, 0x14, 0xdd, 0x4e,
1231	0x41, 0xb4, 0x0b, 0x10, 0x62, 0xe9, 0x1e, 0x3b, 0x61, 0xb2, 0xce, 0x5a, 0x43, 0x6b, 0x5e, 0x6a,
1232	0x7f, 0x68, 0x16, 0xb8, 0xc1, 0x54, 0x3b, 0x6d, 0xf6, 0x93, 0xc4, 0x3e, 0xf7, 0x88, 0x5d, 0x0b,
1233	0x47, 0x9f, 0xe8, 0x63, 0xd0, 0xdd, 0x00, 0x0b, 0x41, 0x07, 0xd4, 0x55, 0xc7, 0xef, 0xc8, 0xe3,
1234	0x98, 0x88, 0x63, 0x1e, 0x78, 0x3a, 0x34, 0xb4, 0x66, 0xc5, 0x7e, 0x77, 0x32, 0x7e, 0x30, 0x0a,
1235	0x1b, 0x8f, 0xa1, 0x76, 0x5a, 0x12, 0xd5, 0x61, 0xb9, 0xff, 0xe0, 0xa0, 0xb3, 0xe5, 0xf4, 0x77,
1236	0xbb, 0x9b, 0xce, 0xe1, 0xce, 0xfe, 0xde, 0x66, 0xa7, 0xf7, 0xb0, 0xb7, 0xd9, 0x5d, 0xbc, 0x80,
1237	0xae, 0xc2, 0x95, 0x5c, 0x6c, 0xeb, 0xc9, 0x86, 0xdd, 0xeb, 0x2e, 0x6a, 0x68, 0x19, 0x50, 0x0e,
1238	0xee, 0x6f, 0x3b, 0xbb, 0x3b, 0xdb, 0x4f, 0x16, 0x2b, 0xc6, 0x1d, 0xb8, 0xfc, 0x88, 0x48, 0xa5,
1239	0xd9, 0x26, 0x5f, 0x0c, 0x89, 0x78, 0xa3, 0x49, 0x0c, 0x0a, 0x4b, 0xfb, 0x04, 0xc7, 0xee, 0xb1,
1240	0x62, 0x8b, 0x02, 0x7a, 0x72, 0x84, 0x51, 0x72, 0xdc, 0x82, 0x9e, 0xa4, 0x86, 0x9a, 0xb6, 0xab,
1241	0x09, 0xb0, 0x4f, 0x4f, 0x48, 0x72, 0x40, 0x2a, 0x28, 0xf9, 0x33, 0xc2, 0x32, 0x0b, 0x29, 0xfa,
1242	0x41, 0x02, 0x18, 0xdf, 0xc0, 0x3b, 0x93, 0xad, 0x44, 0xc4, 0x99, 0x20, 0xe8, 0x33, 0x98, 0x51,
1243	0x93, 0x29, 0x74, 0xad, 0x31, 0xd5, 0x9c, 0x6b, 0xdf, 0x2e, 0x77, 0x1a, 0x76, 0x96, 0x85, 0x6e,
1244	0xc3, 0x65, 0x46, 0x5e, 0x48, 0x27, 0xd7, 0x3b, 0xb5, 0xfa, 0x42, 0x02, 0xef, 0x9d, 0xf6, 0x5f,
1245	0x85, 0x2b, 0x07, 0x31, 0xa6, 0xac, 0xd4, 0xbe, 0xf4, 0x00, 0x6d, 0xbe, 0x48, 0x4c, 0x5c, 0x86,
1246	0x9d, 0x6c, 0x8b, 0x12, 0xa3, 0x9c, 0x99, 0x36, 0xaf, 0x2a, 0xe0, 0x30, 0xa6, 0x86, 0x07, 0x4b,
1247	0x13, 0xa5, 0xb2, 0x65, 0xaf, 0xe4, 0x73, 0x54, 0xb9, 0xad, 0x0b, 0xe3, 0x2c, 0x74, 0x0b, 0x16,
1248	0xd2, 0xb0, 0xcb, 0x99, 0x4c, 0x3a, 0x26, 0x65, 0xe7, 0xb7, 0x2e, 0xd8, 0xf3, 0x0a, 0xee, 0xa4,
1249	0xe8, 0xc6, 0x2c, 0x4c, 0xab, 0x7f, 0xe3, 0x15, 0xa0, 0x5e, 0x58, 0x5a, 0xf0, 0xca, 0x39, 0xc1,
1250	0x6f, 0x6f, 0x3e, 0xf5, 0xf6, 0xe6, 0x5f, 0xc1, 0x92, 0x4d, 0x84, 0xe4, 0x31, 0xf9, 0x1f, 0xba,
1251	0xb7, 0xff, 0x98, 0x85, 0x99, 0xd4, 0x53, 0xe8, 0x3b, 0x0d, 0xaa, 0x23, 0xeb, 0xa3, 0xe2, 0xb1,
1252	0x3e, 0x33, 0x25, 0xf5, 0x92, 0xd6, 0x33, 0x5a, 0xdf, 0xfe, 0xf9, 0xd7, 0xf7, 0x95, 0xf7, 0x91,
1253	0x71, 0x7a, 0xb7, 0xbc, 0x4a, 0x97, 0xf6, 0x69, 0x14, 0xf3, 0xcf, 0x89, 0x2b, 0x85, 0xd5, 0xfa,
1254	0x3a, 0xbd, 0x6f, 0xd0, 0xef, 0x1a, 0xcc, 0xe7, 0x7d, 0x8f, 0xee, 0x15, 0x36, 0x79, 0xcd, 0x44,
1255	0xd6, 0xef, 0xff, 0xcb, 0xac, 0xd4, 0x65, 0xc6, 0x5d, 0xa5, 0x74, 0x15, 0xdd, 0x29, 0x56, 0xba,
1256	0x2e, 0x54, 0x01, 0xf4, 0x83, 0x06, 0x30, 0x1e, 0x14, 0xd4, 0x2e, 0x6c, 0x7c, 0x6e, 0xaa, 0xea,
1257	0x2b, 0xa3, 0x9c, 0xdc, 0xfd, 0x68, 0xee, 0x8e, 0xee, 0x47, 0x63, 0x4d, 0x89, 0xfa, 0xc0, 0x68,
1258	0x96, 0x10, 0x25, 0x93, 0xe2, 0xeb, 0x5a, 0x0b, 0xfd, 0xa8, 0xc1, 0x5c, 0x6e, 0x8e, 0xd0, 0x5a,
1259	0xa1, 0xae, 0xf3, 0x03, 0x5c, 0x24, 0xec, 0x9e, 0x12, 0x66, 0x1a, 0x65, 0x76, 0x8b, 0xa8, 0xea,
1260	0x23, 0x65, 0xb9, 0xd9, 0x2b, 0xa1, 0xec, 0xfc, 0xa4, 0xfe, 0x97, 0xca, 0x68, 0x38, 0x52, 0xf6,
1261	0xb3, 0x06, 0xf3, 0xf9, 0xc1, 0x2c, 0xe1, 0xbd, 0xd7, 0xcc, 0x71, 0x91, 0xb6, 0xfb, 0x4a, 0x9b,
1262	0x65, 0xb4, 0x4a, 0x68, 0x8b, 0xd3, 0xf2, 0xeb, 0x5a, 0x6b, 0xe3, 0x57, 0x0d, 0x6e, 0xba, 0x3c,
1263	0x2c, 0x52, 0xb4, 0x01, 0x4a, 0xcb, 0x5e, 0xf2, 0xea, 0xd9, 0xd3, 0x9e, 0xf6, 0x32, 0xba, 0xcf,
1264	0x93, 0xb7, 0x87, 0xc9, 0x63, 0xdf, 0xf2, 0x09, 0x53, 0x6f, 0x22, 0x2b, 0x0d, 0xe1, 0x88, 0x8a,
1265	0x37, 0x3e, 0x02, 0x3f, 0x19, 0x43, 0x7f, 0x6b, 0xda, 0x2f, 0x95, 0x4a, 0xf7, 0xe1, 0x6f, 0x95,
1266	0x1b, 0x8f, 0xd2, 0x9a, 0x1d, 0x25, 0xa1, 0x3b, 0x96, 0xf0, 0x38, 0x4d, 0x3a, 0x9a, 0x51, 0xf5,
1267	0xd7, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x35, 0x4d, 0xe2, 0x83, 0x63, 0x0a, 0x00, 0x00,
1268}
1269